From dcbe03d18d1458ff7b9d63909dae4717118bee40 Mon Sep 17 00:00:00 2001 From: "Philip K. Warren" Date: Wed, 16 Apr 2025 10:16:22 -0500 Subject: [PATCH 1/4] Remove checked in generated code Update codegen to generate to the build directory to minimize the code in this project and match other protovalidate projects. Upgrade to Gradle 8.13. --- .gitattributes | 7 - buf.gen.yaml | 3 +- build.gradle.kts | 17 +- conformance/buf.gen.yaml | 3 +- conformance/build.gradle.kts | 12 +- .../validate/conformance/cases/AnEnum.java | 133 - .../buf/validate/conformance/cases/AnyIn.java | 558 -- .../conformance/cases/AnyInOrBuilder.java | 26 - .../validate/conformance/cases/AnyNone.java | 558 -- .../conformance/cases/AnyNoneOrBuilder.java | 26 - .../validate/conformance/cases/AnyNotIn.java | 558 -- .../conformance/cases/AnyNotInOrBuilder.java | 26 - .../conformance/cases/AnyRequired.java | 558 -- .../cases/AnyRequiredOrBuilder.java | 26 - .../conformance/cases/BoolConstFalse.java | 432 - .../cases/BoolConstFalseOrBuilder.java | 17 - .../conformance/cases/BoolConstTrue.java | 432 - .../cases/BoolConstTrueOrBuilder.java | 17 - .../conformance/cases/BoolExample.java | 432 - .../cases/BoolExampleOrBuilder.java | 17 - .../validate/conformance/cases/BoolNone.java | 432 - .../conformance/cases/BoolNoneOrBuilder.java | 17 - .../validate/conformance/cases/BoolProto.java | 110 - .../conformance/cases/BytesConst.java | 432 - .../cases/BytesConstOrBuilder.java | 17 - .../conformance/cases/BytesContains.java | 432 - .../cases/BytesContainsOrBuilder.java | 17 - .../cases/BytesEqualMinMaxLen.java | 432 - .../cases/BytesEqualMinMaxLenOrBuilder.java | 17 - .../conformance/cases/BytesExample.java | 432 - .../cases/BytesExampleOrBuilder.java | 17 - .../validate/conformance/cases/BytesIP.java | 432 - .../conformance/cases/BytesIPOrBuilder.java | 17 - .../validate/conformance/cases/BytesIPv4.java | 432 - .../conformance/cases/BytesIPv4OrBuilder.java | 17 - .../validate/conformance/cases/BytesIPv6.java | 432 - .../conformance/cases/BytesIPv6Ignore.java | 432 - .../cases/BytesIPv6IgnoreOrBuilder.java | 17 - .../conformance/cases/BytesIPv6OrBuilder.java | 17 - .../validate/conformance/cases/BytesIn.java | 432 - .../conformance/cases/BytesInOrBuilder.java | 17 - .../validate/conformance/cases/BytesLen.java | 432 - .../conformance/cases/BytesLenOrBuilder.java | 17 - .../conformance/cases/BytesMaxLen.java | 432 - .../cases/BytesMaxLenOrBuilder.java | 17 - .../conformance/cases/BytesMinLen.java | 432 - .../cases/BytesMinLenOrBuilder.java | 17 - .../conformance/cases/BytesMinMaxLen.java | 432 - .../cases/BytesMinMaxLenOrBuilder.java | 17 - .../validate/conformance/cases/BytesNone.java | 432 - .../conformance/cases/BytesNoneOrBuilder.java | 17 - .../conformance/cases/BytesNotIP.java | 432 - .../cases/BytesNotIPOrBuilder.java | 17 - .../conformance/cases/BytesNotIPv4.java | 432 - .../cases/BytesNotIPv4OrBuilder.java | 17 - .../conformance/cases/BytesNotIPv6.java | 432 - .../cases/BytesNotIPv6OrBuilder.java | 17 - .../conformance/cases/BytesNotIn.java | 432 - .../cases/BytesNotInOrBuilder.java | 17 - .../conformance/cases/BytesPattern.java | 432 - .../cases/BytesPatternOrBuilder.java | 17 - .../conformance/cases/BytesPrefix.java | 432 - .../cases/BytesPrefixOrBuilder.java | 17 - .../conformance/cases/BytesProto.java | 316 - .../conformance/cases/BytesSuffix.java | 432 - .../cases/BytesSuffixOrBuilder.java | 17 - .../conformance/cases/ComplexTestEnum.java | 133 - .../conformance/cases/ComplexTestMsg.java | 3022 ------- .../cases/ComplexTestMsgOrBuilder.java | 242 - .../conformance/cases/DoubleConst.java | 433 - .../cases/DoubleConstOrBuilder.java | 17 - .../conformance/cases/DoubleExGTELTE.java | 433 - .../cases/DoubleExGTELTEOrBuilder.java | 17 - .../conformance/cases/DoubleExLTGT.java | 433 - .../cases/DoubleExLTGTOrBuilder.java | 17 - .../conformance/cases/DoubleExample.java | 433 - .../cases/DoubleExampleOrBuilder.java | 17 - .../conformance/cases/DoubleFinite.java | 433 - .../cases/DoubleFiniteOrBuilder.java | 17 - .../validate/conformance/cases/DoubleGT.java | 433 - .../validate/conformance/cases/DoubleGTE.java | 433 - .../conformance/cases/DoubleGTELTE.java | 433 - .../cases/DoubleGTELTEOrBuilder.java | 17 - .../conformance/cases/DoubleGTEOrBuilder.java | 17 - .../conformance/cases/DoubleGTLT.java | 433 - .../cases/DoubleGTLTOrBuilder.java | 17 - .../conformance/cases/DoubleGTOrBuilder.java | 17 - .../conformance/cases/DoubleIgnore.java | 433 - .../cases/DoubleIgnoreOrBuilder.java | 17 - .../validate/conformance/cases/DoubleIn.java | 433 - .../conformance/cases/DoubleInOrBuilder.java | 17 - .../cases/DoubleIncorrectType.java | 433 - .../cases/DoubleIncorrectTypeOrBuilder.java | 17 - .../validate/conformance/cases/DoubleLT.java | 433 - .../validate/conformance/cases/DoubleLTE.java | 433 - .../conformance/cases/DoubleLTEOrBuilder.java | 17 - .../conformance/cases/DoubleLTOrBuilder.java | 17 - .../conformance/cases/DoubleNone.java | 433 - .../cases/DoubleNoneOrBuilder.java | 17 - .../conformance/cases/DoubleNotFinite.java | 433 - .../cases/DoubleNotFiniteOrBuilder.java | 17 - .../conformance/cases/DoubleNotIn.java | 433 - .../cases/DoubleNotInOrBuilder.java | 17 - .../conformance/cases/DurationConst.java | 558 -- .../cases/DurationConstOrBuilder.java | 26 - .../conformance/cases/DurationExGTELTE.java | 558 -- .../cases/DurationExGTELTEOrBuilder.java | 26 - .../conformance/cases/DurationExLTGT.java | 558 -- .../cases/DurationExLTGTOrBuilder.java | 26 - .../conformance/cases/DurationExample.java | 558 -- .../cases/DurationExampleOrBuilder.java | 26 - .../cases/DurationFieldWithOtherFields.java | 634 -- ...DurationFieldWithOtherFieldsOrBuilder.java | 32 - .../conformance/cases/DurationGT.java | 558 -- .../conformance/cases/DurationGTE.java | 558 -- .../conformance/cases/DurationGTELTE.java | 558 -- .../cases/DurationGTELTEOrBuilder.java | 26 - .../cases/DurationGTEOrBuilder.java | 26 - .../conformance/cases/DurationGTLT.java | 558 -- .../cases/DurationGTLTOrBuilder.java | 26 - .../cases/DurationGTOrBuilder.java | 26 - .../conformance/cases/DurationIn.java | 558 -- .../cases/DurationInOrBuilder.java | 26 - .../conformance/cases/DurationLT.java | 558 -- .../conformance/cases/DurationLTE.java | 558 -- .../cases/DurationLTEOrBuilder.java | 26 - .../cases/DurationLTOrBuilder.java | 26 - .../conformance/cases/DurationNone.java | 558 -- .../cases/DurationNoneOrBuilder.java | 26 - .../conformance/cases/DurationNotIn.java | 558 -- .../cases/DurationNotInOrBuilder.java | 26 - .../conformance/cases/DurationRequired.java | 558 -- .../cases/DurationRequiredOrBuilder.java | 26 - .../cases/EditionsMapIgnoreAlways.java | 640 -- .../EditionsMapIgnoreAlwaysOrBuilder.java | 43 - .../cases/EditionsMapIgnoreDefault.java | 640 -- .../EditionsMapIgnoreDefaultOrBuilder.java | 43 - .../cases/EditionsMapIgnoreEmpty.java | 640 -- .../EditionsMapIgnoreEmptyOrBuilder.java | 43 - .../cases/EditionsMapIgnoreUnspecified.java | 640 -- ...EditionsMapIgnoreUnspecifiedOrBuilder.java | 43 - .../cases/EditionsMapKeyIgnoreAlways.java | 640 -- .../EditionsMapKeyIgnoreAlwaysOrBuilder.java | 43 - .../cases/EditionsMapKeyIgnoreDefault.java | 640 -- .../EditionsMapKeyIgnoreDefaultOrBuilder.java | 43 - .../cases/EditionsMapKeyIgnoreEmpty.java | 640 -- .../EditionsMapKeyIgnoreEmptyOrBuilder.java | 43 - .../EditionsMapKeyIgnoreUnspecified.java | 640 -- ...tionsMapKeyIgnoreUnspecifiedOrBuilder.java | 43 - .../cases/EditionsMapValueIgnoreAlways.java | 640 -- ...EditionsMapValueIgnoreAlwaysOrBuilder.java | 43 - .../cases/EditionsMapValueIgnoreDefault.java | 640 -- ...ditionsMapValueIgnoreDefaultOrBuilder.java | 43 - .../cases/EditionsMapValueIgnoreEmpty.java | 640 -- .../EditionsMapValueIgnoreEmptyOrBuilder.java | 43 - .../EditionsMapValueIgnoreUnspecified.java | 640 -- ...onsMapValueIgnoreUnspecifiedOrBuilder.java | 43 - ...ExplicitPresenceDelimitedIgnoreAlways.java | 1097 --- ...resenceDelimitedIgnoreAlwaysOrBuilder.java | 26 - ...xplicitPresenceDelimitedIgnoreDefault.java | 1097 --- ...esenceDelimitedIgnoreDefaultOrBuilder.java | 26 - ...eExplicitPresenceDelimitedIgnoreEmpty.java | 1097 --- ...PresenceDelimitedIgnoreEmptyOrBuilder.java | 26 - ...citPresenceDelimitedIgnoreUnspecified.java | 1097 --- ...ceDelimitedIgnoreUnspecifiedOrBuilder.java | 26 - ...nsMessageExplicitPresenceIgnoreAlways.java | 1097 --- ...ExplicitPresenceIgnoreAlwaysOrBuilder.java | 26 - ...sMessageExplicitPresenceIgnoreDefault.java | 1097 --- ...xplicitPresenceIgnoreDefaultOrBuilder.java | 26 - ...onsMessageExplicitPresenceIgnoreEmpty.java | 1097 --- ...eExplicitPresenceIgnoreEmptyOrBuilder.java | 26 - ...sageExplicitPresenceIgnoreUnspecified.java | 1097 --- ...citPresenceIgnoreUnspecifiedOrBuilder.java | 26 - ...geLegacyRequiredDelimitedIgnoreAlways.java | 1104 --- ...equiredDelimitedIgnoreAlwaysOrBuilder.java | 26 - ...eLegacyRequiredDelimitedIgnoreDefault.java | 1104 --- ...quiredDelimitedIgnoreDefaultOrBuilder.java | 26 - ...ageLegacyRequiredDelimitedIgnoreEmpty.java | 1104 --- ...RequiredDelimitedIgnoreEmptyOrBuilder.java | 26 - ...acyRequiredDelimitedIgnoreUnspecified.java | 1104 --- ...edDelimitedIgnoreUnspecifiedOrBuilder.java | 26 - ...ionsMessageLegacyRequiredIgnoreAlways.java | 1104 --- ...geLegacyRequiredIgnoreAlwaysOrBuilder.java | 26 - ...onsMessageLegacyRequiredIgnoreDefault.java | 1104 --- ...eLegacyRequiredIgnoreDefaultOrBuilder.java | 26 - ...tionsMessageLegacyRequiredIgnoreEmpty.java | 1104 --- ...ageLegacyRequiredIgnoreEmptyOrBuilder.java | 26 - ...essageLegacyRequiredIgnoreUnspecified.java | 1104 --- ...acyRequiredIgnoreUnspecifiedOrBuilder.java | 26 - .../cases/EditionsOneofIgnoreAlways.java | 531 -- .../EditionsOneofIgnoreAlwaysOrBuilder.java | 24 - .../EditionsOneofIgnoreAlwaysWithDefault.java | 531 -- ...OneofIgnoreAlwaysWithDefaultOrBuilder.java | 24 - .../cases/EditionsOneofIgnoreDefault.java | 531 -- .../EditionsOneofIgnoreDefaultOrBuilder.java | 24 - ...EditionsOneofIgnoreDefaultWithDefault.java | 531 -- ...neofIgnoreDefaultWithDefaultOrBuilder.java | 24 - .../cases/EditionsOneofIgnoreEmpty.java | 531 -- .../EditionsOneofIgnoreEmptyOrBuilder.java | 24 - .../EditionsOneofIgnoreEmptyWithDefault.java | 531 -- ...sOneofIgnoreEmptyWithDefaultOrBuilder.java | 24 - .../cases/EditionsOneofIgnoreUnspecified.java | 531 -- ...itionsOneofIgnoreUnspecifiedOrBuilder.java | 24 - ...ionsOneofIgnoreUnspecifiedWithDefault.java | 531 -- ...IgnoreUnspecifiedWithDefaultOrBuilder.java | 24 - .../EditionsRepeatedExpandedIgnoreAlways.java | 529 -- ...RepeatedExpandedIgnoreAlwaysOrBuilder.java | 28 - ...EditionsRepeatedExpandedIgnoreDefault.java | 529 -- ...epeatedExpandedIgnoreDefaultOrBuilder.java | 28 - .../EditionsRepeatedExpandedIgnoreEmpty.java | 529 -- ...sRepeatedExpandedIgnoreEmptyOrBuilder.java | 28 - ...ionsRepeatedExpandedIgnoreUnspecified.java | 529 -- ...tedExpandedIgnoreUnspecifiedOrBuilder.java | 28 - ...tionsRepeatedExpandedItemIgnoreAlways.java | 529 -- ...atedExpandedItemIgnoreAlwaysOrBuilder.java | 28 - ...ionsRepeatedExpandedItemIgnoreDefault.java | 529 -- ...tedExpandedItemIgnoreDefaultOrBuilder.java | 28 - ...itionsRepeatedExpandedItemIgnoreEmpty.java | 529 -- ...eatedExpandedItemIgnoreEmptyOrBuilder.java | 28 - ...RepeatedExpandedItemIgnoreUnspecified.java | 529 -- ...xpandedItemIgnoreUnspecifiedOrBuilder.java | 28 - .../cases/EditionsRepeatedIgnoreAlways.java | 540 -- ...EditionsRepeatedIgnoreAlwaysOrBuilder.java | 28 - .../cases/EditionsRepeatedIgnoreDefault.java | 540 -- ...ditionsRepeatedIgnoreDefaultOrBuilder.java | 28 - .../cases/EditionsRepeatedIgnoreEmpty.java | 540 -- .../EditionsRepeatedIgnoreEmptyOrBuilder.java | 28 - .../EditionsRepeatedIgnoreUnspecified.java | 540 -- ...onsRepeatedIgnoreUnspecifiedOrBuilder.java | 28 - .../EditionsRepeatedItemIgnoreAlways.java | 540 -- ...ionsRepeatedItemIgnoreAlwaysOrBuilder.java | 28 - .../EditionsRepeatedItemIgnoreDefault.java | 540 -- ...onsRepeatedItemIgnoreDefaultOrBuilder.java | 28 - .../EditionsRepeatedItemIgnoreEmpty.java | 540 -- ...tionsRepeatedItemIgnoreEmptyOrBuilder.java | 28 - ...EditionsRepeatedItemIgnoreUnspecified.java | 540 -- ...epeatedItemIgnoreUnspecifiedOrBuilder.java | 28 - ...onsScalarExplicitPresenceIgnoreAlways.java | 456 - ...ExplicitPresenceIgnoreAlwaysOrBuilder.java | 22 - ...plicitPresenceIgnoreAlwaysWithDefault.java | 457 - ...senceIgnoreAlwaysWithDefaultOrBuilder.java | 22 - ...nsScalarExplicitPresenceIgnoreDefault.java | 456 - ...xplicitPresenceIgnoreDefaultOrBuilder.java | 22 - ...licitPresenceIgnoreDefaultWithDefault.java | 457 - ...enceIgnoreDefaultWithDefaultOrBuilder.java | 22 - ...ionsScalarExplicitPresenceIgnoreEmpty.java | 456 - ...rExplicitPresenceIgnoreEmptyOrBuilder.java | 22 - ...xplicitPresenceIgnoreEmptyWithDefault.java | 457 - ...esenceIgnoreEmptyWithDefaultOrBuilder.java | 22 - ...alarExplicitPresenceIgnoreUnspecified.java | 456 - ...citPresenceIgnoreUnspecifiedOrBuilder.java | 22 - ...tPresenceIgnoreUnspecifiedWithDefault.java | 457 - ...IgnoreUnspecifiedWithDefaultOrBuilder.java | 22 - ...onsScalarImplicitPresenceIgnoreAlways.java | 431 - ...ImplicitPresenceIgnoreAlwaysOrBuilder.java | 17 - ...nsScalarImplicitPresenceIgnoreDefault.java | 431 - ...mplicitPresenceIgnoreDefaultOrBuilder.java | 17 - ...ionsScalarImplicitPresenceIgnoreEmpty.java | 431 - ...rImplicitPresenceIgnoreEmptyOrBuilder.java | 17 - ...alarImplicitPresenceIgnoreUnspecified.java | 431 - ...citPresenceIgnoreUnspecifiedOrBuilder.java | 17 - ...tionsScalarLegacyRequiredIgnoreAlways.java | 463 - ...arLegacyRequiredIgnoreAlwaysOrBuilder.java | 22 - ...LegacyRequiredIgnoreAlwaysWithDefault.java | 464 - ...uiredIgnoreAlwaysWithDefaultOrBuilder.java | 22 - ...ionsScalarLegacyRequiredIgnoreDefault.java | 463 - ...rLegacyRequiredIgnoreDefaultOrBuilder.java | 22 - ...egacyRequiredIgnoreDefaultWithDefault.java | 464 - ...iredIgnoreDefaultWithDefaultOrBuilder.java | 22 - ...itionsScalarLegacyRequiredIgnoreEmpty.java | 463 - ...larLegacyRequiredIgnoreEmptyOrBuilder.java | 22 - ...rLegacyRequiredIgnoreEmptyWithDefault.java | 464 - ...quiredIgnoreEmptyWithDefaultOrBuilder.java | 22 - ...ScalarLegacyRequiredIgnoreUnspecified.java | 463 - ...acyRequiredIgnoreUnspecifiedOrBuilder.java | 22 - ...yRequiredIgnoreUnspecifiedWithDefault.java | 464 - ...IgnoreUnspecifiedWithDefaultOrBuilder.java | 22 - .../buf/validate/conformance/cases/Embed.java | 432 - .../conformance/cases/EmbedOrBuilder.java | 17 - .../conformance/cases/EnumAliasConst.java | 459 - .../cases/EnumAliasConstOrBuilder.java | 22 - .../conformance/cases/EnumAliasDefined.java | 459 - .../cases/EnumAliasDefinedOrBuilder.java | 22 - .../conformance/cases/EnumAliasIn.java | 459 - .../cases/EnumAliasInOrBuilder.java | 22 - .../conformance/cases/EnumAliasNotIn.java | 459 - .../cases/EnumAliasNotInOrBuilder.java | 22 - .../validate/conformance/cases/EnumConst.java | 459 - .../conformance/cases/EnumConstOrBuilder.java | 22 - .../conformance/cases/EnumDefined.java | 459 - .../cases/EnumDefinedOrBuilder.java | 22 - .../conformance/cases/EnumExample.java | 459 - .../cases/EnumExampleOrBuilder.java | 22 - .../conformance/cases/EnumExternal.java | 459 - .../conformance/cases/EnumExternal2.java | 459 - .../cases/EnumExternal2OrBuilder.java | 22 - .../cases/EnumExternalOrBuilder.java | 22 - .../validate/conformance/cases/EnumIn.java | 459 - .../conformance/cases/EnumInOrBuilder.java | 22 - .../conformance/cases/EnumInsideOneof.java | 767 -- .../cases/EnumInsideOneofOrBuilder.java | 47 - .../validate/conformance/cases/EnumNone.java | 459 - .../conformance/cases/EnumNoneOrBuilder.java | 22 - .../validate/conformance/cases/EnumNotIn.java | 459 - .../conformance/cases/EnumNotInOrBuilder.java | 22 - .../conformance/cases/EnumsProto.java | 348 - .../cases/FilenameWithDashProto.java | 57 - .../conformance/cases/Fixed32Const.java | 431 - .../cases/Fixed32ConstOrBuilder.java | 17 - .../conformance/cases/Fixed32ExGTELTE.java | 431 - .../cases/Fixed32ExGTELTEOrBuilder.java | 17 - .../conformance/cases/Fixed32ExLTGT.java | 431 - .../cases/Fixed32ExLTGTOrBuilder.java | 17 - .../conformance/cases/Fixed32Example.java | 431 - .../cases/Fixed32ExampleOrBuilder.java | 17 - .../validate/conformance/cases/Fixed32GT.java | 431 - .../conformance/cases/Fixed32GTE.java | 431 - .../conformance/cases/Fixed32GTELTE.java | 431 - .../cases/Fixed32GTELTEOrBuilder.java | 17 - .../cases/Fixed32GTEOrBuilder.java | 17 - .../conformance/cases/Fixed32GTLT.java | 431 - .../cases/Fixed32GTLTOrBuilder.java | 17 - .../conformance/cases/Fixed32GTOrBuilder.java | 17 - .../conformance/cases/Fixed32Ignore.java | 431 - .../cases/Fixed32IgnoreOrBuilder.java | 17 - .../validate/conformance/cases/Fixed32In.java | 431 - .../conformance/cases/Fixed32InOrBuilder.java | 17 - .../cases/Fixed32IncorrectType.java | 431 - .../cases/Fixed32IncorrectTypeOrBuilder.java | 17 - .../validate/conformance/cases/Fixed32LT.java | 431 - .../conformance/cases/Fixed32LTE.java | 431 - .../cases/Fixed32LTEOrBuilder.java | 17 - .../conformance/cases/Fixed32LTOrBuilder.java | 17 - .../conformance/cases/Fixed32None.java | 431 - .../cases/Fixed32NoneOrBuilder.java | 17 - .../conformance/cases/Fixed32NotIn.java | 431 - .../cases/Fixed32NotInOrBuilder.java | 17 - .../conformance/cases/Fixed64Const.java | 432 - .../cases/Fixed64ConstOrBuilder.java | 17 - .../conformance/cases/Fixed64ExGTELTE.java | 432 - .../cases/Fixed64ExGTELTEOrBuilder.java | 17 - .../conformance/cases/Fixed64ExLTGT.java | 432 - .../cases/Fixed64ExLTGTOrBuilder.java | 17 - .../conformance/cases/Fixed64Example.java | 432 - .../cases/Fixed64ExampleOrBuilder.java | 17 - .../validate/conformance/cases/Fixed64GT.java | 432 - .../conformance/cases/Fixed64GTE.java | 432 - .../conformance/cases/Fixed64GTELTE.java | 432 - .../cases/Fixed64GTELTEOrBuilder.java | 17 - .../cases/Fixed64GTEOrBuilder.java | 17 - .../conformance/cases/Fixed64GTLT.java | 432 - .../cases/Fixed64GTLTOrBuilder.java | 17 - .../conformance/cases/Fixed64GTOrBuilder.java | 17 - .../conformance/cases/Fixed64Ignore.java | 432 - .../cases/Fixed64IgnoreOrBuilder.java | 17 - .../validate/conformance/cases/Fixed64In.java | 432 - .../conformance/cases/Fixed64InOrBuilder.java | 17 - .../cases/Fixed64IncorrectType.java | 432 - .../cases/Fixed64IncorrectTypeOrBuilder.java | 17 - .../validate/conformance/cases/Fixed64LT.java | 432 - .../conformance/cases/Fixed64LTE.java | 432 - .../cases/Fixed64LTEOrBuilder.java | 17 - .../conformance/cases/Fixed64LTOrBuilder.java | 17 - .../conformance/cases/Fixed64None.java | 432 - .../cases/Fixed64NoneOrBuilder.java | 17 - .../conformance/cases/Fixed64NotIn.java | 432 - .../cases/Fixed64NotInOrBuilder.java | 17 - .../conformance/cases/FloatConst.java | 433 - .../cases/FloatConstOrBuilder.java | 17 - .../conformance/cases/FloatExGTELTE.java | 433 - .../cases/FloatExGTELTEOrBuilder.java | 17 - .../conformance/cases/FloatExLTGT.java | 433 - .../cases/FloatExLTGTOrBuilder.java | 17 - .../conformance/cases/FloatExample.java | 433 - .../cases/FloatExampleOrBuilder.java | 17 - .../conformance/cases/FloatFinite.java | 433 - .../cases/FloatFiniteOrBuilder.java | 17 - .../validate/conformance/cases/FloatGT.java | 433 - .../validate/conformance/cases/FloatGTE.java | 433 - .../conformance/cases/FloatGTELTE.java | 433 - .../cases/FloatGTELTEOrBuilder.java | 17 - .../conformance/cases/FloatGTEOrBuilder.java | 17 - .../validate/conformance/cases/FloatGTLT.java | 433 - .../conformance/cases/FloatGTLTOrBuilder.java | 17 - .../conformance/cases/FloatGTOrBuilder.java | 17 - .../conformance/cases/FloatIgnore.java | 433 - .../cases/FloatIgnoreOrBuilder.java | 17 - .../validate/conformance/cases/FloatIn.java | 433 - .../conformance/cases/FloatInOrBuilder.java | 17 - .../conformance/cases/FloatIncorrectType.java | 433 - .../cases/FloatIncorrectTypeOrBuilder.java | 17 - .../validate/conformance/cases/FloatLT.java | 433 - .../validate/conformance/cases/FloatLTE.java | 433 - .../conformance/cases/FloatLTEOrBuilder.java | 17 - .../conformance/cases/FloatLTOrBuilder.java | 17 - .../validate/conformance/cases/FloatNone.java | 433 - .../conformance/cases/FloatNoneOrBuilder.java | 17 - .../conformance/cases/FloatNotFinite.java | 433 - .../cases/FloatNotFiniteOrBuilder.java | 17 - .../conformance/cases/FloatNotIn.java | 433 - .../cases/FloatNotInOrBuilder.java | 17 - .../cases/IgnoreEmptyEditionsMap.java | 640 -- .../IgnoreEmptyEditionsMapOrBuilder.java | 43 - ...eEmptyEditionsMessageExplicitPresence.java | 1097 --- ...tionsMessageExplicitPresenceDelimited.java | 1097 --- ...ageExplicitPresenceDelimitedOrBuilder.java | 26 - ...tionsMessageExplicitPresenceOrBuilder.java | 26 - ...oreEmptyEditionsMessageLegacyRequired.java | 1104 --- ...ditionsMessageLegacyRequiredDelimited.java | 1104 --- ...ssageLegacyRequiredDelimitedOrBuilder.java | 26 - ...ditionsMessageLegacyRequiredOrBuilder.java | 26 - .../cases/IgnoreEmptyEditionsOneof.java | 531 -- .../IgnoreEmptyEditionsOneofOrBuilder.java | 24 - .../cases/IgnoreEmptyEditionsRepeated.java | 540 -- .../IgnoreEmptyEditionsRepeatedExpanded.java | 529 -- ...mptyEditionsRepeatedExpandedOrBuilder.java | 28 - .../IgnoreEmptyEditionsRepeatedOrBuilder.java | 28 - ...reEmptyEditionsScalarExplicitPresence.java | 456 - ...itionsScalarExplicitPresenceOrBuilder.java | 22 - ...ionsScalarExplicitPresenceWithDefault.java | 457 - ...rExplicitPresenceWithDefaultOrBuilder.java | 22 - ...reEmptyEditionsScalarImplicitPresence.java | 431 - ...itionsScalarImplicitPresenceOrBuilder.java | 17 - ...noreEmptyEditionsScalarLegacyRequired.java | 463 - ...EditionsScalarLegacyRequiredOrBuilder.java | 22 - ...itionsScalarLegacyRequiredWithDefault.java | 464 - ...larLegacyRequiredWithDefaultOrBuilder.java | 22 - .../cases/IgnoreEmptyMapPairs.java | 640 -- .../cases/IgnoreEmptyMapPairsOrBuilder.java | 43 - .../cases/IgnoreEmptyProto2Map.java | 640 -- .../cases/IgnoreEmptyProto2MapOrBuilder.java | 43 - .../cases/IgnoreEmptyProto2Message.java | 1100 --- .../IgnoreEmptyProto2MessageOrBuilder.java | 26 - .../cases/IgnoreEmptyProto2Oneof.java | 531 -- .../IgnoreEmptyProto2OneofOrBuilder.java | 24 - .../cases/IgnoreEmptyProto2Proto.java | 179 - .../cases/IgnoreEmptyProto2Repeated.java | 529 -- .../IgnoreEmptyProto2RepeatedOrBuilder.java | 28 - .../IgnoreEmptyProto2ScalarOptional.java | 456 - ...oreEmptyProto2ScalarOptionalOrBuilder.java | 22 - ...eEmptyProto2ScalarOptionalWithDefault.java | 457 - ...to2ScalarOptionalWithDefaultOrBuilder.java | 22 - .../IgnoreEmptyProto2ScalarRequired.java | 463 - ...oreEmptyProto2ScalarRequiredOrBuilder.java | 22 - .../cases/IgnoreEmptyProto3Map.java | 640 -- .../cases/IgnoreEmptyProto3MapOrBuilder.java | 43 - .../cases/IgnoreEmptyProto3Message.java | 1068 --- .../IgnoreEmptyProto3MessageOrBuilder.java | 26 - .../cases/IgnoreEmptyProto3Oneof.java | 531 -- .../IgnoreEmptyProto3OneofOrBuilder.java | 24 - .../IgnoreEmptyProto3OptionalScalar.java | 456 - ...oreEmptyProto3OptionalScalarOrBuilder.java | 22 - .../cases/IgnoreEmptyProto3Proto.java | 206 - .../cases/IgnoreEmptyProto3Repeated.java | 540 -- .../IgnoreEmptyProto3RepeatedOrBuilder.java | 28 - .../cases/IgnoreEmptyProto3Scalar.java | 431 - .../IgnoreEmptyProto3ScalarOrBuilder.java | 17 - .../cases/IgnoreEmptyProtoEditionsProto.java | 306 - .../cases/IgnoreEmptyRepeatedItems.java | 540 -- .../IgnoreEmptyRepeatedItemsOrBuilder.java | 28 - .../conformance/cases/IgnoreProto2Proto.java | 1012 --- .../conformance/cases/IgnoreProto3Proto.java | 858 -- .../cases/IgnoreProtoEditionsProto.java | 1411 --- .../conformance/cases/Int32Const.java | 431 - .../cases/Int32ConstOrBuilder.java | 17 - .../conformance/cases/Int32ExGTELTE.java | 431 - .../cases/Int32ExGTELTEOrBuilder.java | 17 - .../conformance/cases/Int32ExLTGT.java | 431 - .../cases/Int32ExLTGTOrBuilder.java | 17 - .../conformance/cases/Int32Example.java | 431 - .../cases/Int32ExampleOrBuilder.java | 17 - .../validate/conformance/cases/Int32GT.java | 431 - .../validate/conformance/cases/Int32GTE.java | 431 - .../conformance/cases/Int32GTELTE.java | 431 - .../cases/Int32GTELTEOrBuilder.java | 17 - .../conformance/cases/Int32GTEOrBuilder.java | 17 - .../validate/conformance/cases/Int32GTLT.java | 431 - .../conformance/cases/Int32GTLTOrBuilder.java | 17 - .../conformance/cases/Int32GTOrBuilder.java | 17 - .../conformance/cases/Int32Ignore.java | 431 - .../cases/Int32IgnoreOrBuilder.java | 17 - .../validate/conformance/cases/Int32In.java | 431 - .../conformance/cases/Int32InOrBuilder.java | 17 - .../conformance/cases/Int32IncorrectType.java | 431 - .../cases/Int32IncorrectTypeOrBuilder.java | 17 - .../validate/conformance/cases/Int32LT.java | 431 - .../validate/conformance/cases/Int32LTE.java | 431 - .../conformance/cases/Int32LTEOrBuilder.java | 17 - .../conformance/cases/Int32LTOrBuilder.java | 17 - .../validate/conformance/cases/Int32None.java | 431 - .../conformance/cases/Int32NoneOrBuilder.java | 17 - .../conformance/cases/Int32NotIn.java | 431 - .../cases/Int32NotInOrBuilder.java | 17 - .../cases/Int64BigConstraints.java | 1185 --- .../cases/Int64BigConstraintsOrBuilder.java | 87 - .../conformance/cases/Int64Const.java | 432 - .../cases/Int64ConstOrBuilder.java | 17 - .../conformance/cases/Int64ExGTELTE.java | 432 - .../cases/Int64ExGTELTEOrBuilder.java | 17 - .../conformance/cases/Int64ExLTGT.java | 432 - .../cases/Int64ExLTGTOrBuilder.java | 17 - .../conformance/cases/Int64Example.java | 432 - .../cases/Int64ExampleOrBuilder.java | 17 - .../validate/conformance/cases/Int64GT.java | 432 - .../validate/conformance/cases/Int64GTE.java | 432 - .../conformance/cases/Int64GTELTE.java | 432 - .../cases/Int64GTELTEOrBuilder.java | 17 - .../conformance/cases/Int64GTEOrBuilder.java | 17 - .../validate/conformance/cases/Int64GTLT.java | 432 - .../conformance/cases/Int64GTLTOrBuilder.java | 17 - .../conformance/cases/Int64GTOrBuilder.java | 17 - .../conformance/cases/Int64Ignore.java | 432 - .../cases/Int64IgnoreOrBuilder.java | 17 - .../validate/conformance/cases/Int64In.java | 432 - .../conformance/cases/Int64InOrBuilder.java | 17 - .../conformance/cases/Int64IncorrectType.java | 432 - .../cases/Int64IncorrectTypeOrBuilder.java | 17 - .../validate/conformance/cases/Int64LT.java | 432 - .../validate/conformance/cases/Int64LTE.java | 432 - .../conformance/cases/Int64LTEOptional.java | 457 - .../cases/Int64LTEOptionalOrBuilder.java | 22 - .../conformance/cases/Int64LTEOrBuilder.java | 17 - .../conformance/cases/Int64LTOrBuilder.java | 17 - .../validate/conformance/cases/Int64None.java | 432 - .../conformance/cases/Int64NoneOrBuilder.java | 17 - .../conformance/cases/Int64NotIn.java | 432 - .../cases/Int64NotInOrBuilder.java | 17 - .../validate/conformance/cases/IsEmail.java | 501 -- .../conformance/cases/IsEmailOrBuilder.java | 23 - .../conformance/cases/IsHostAndPort.java | 568 -- .../cases/IsHostAndPortOrBuilder.java | 29 - .../conformance/cases/IsHostname.java | 501 -- .../cases/IsHostnameOrBuilder.java | 23 - .../buf/validate/conformance/cases/IsIp.java | 592 -- .../conformance/cases/IsIpOrBuilder.java | 34 - .../conformance/cases/IsIpPrefix.java | 681 -- .../cases/IsIpPrefixOrBuilder.java | 45 - .../buf/validate/conformance/cases/IsUri.java | 501 -- .../conformance/cases/IsUriOrBuilder.java | 23 - .../validate/conformance/cases/IsUriRef.java | 501 -- .../conformance/cases/IsUriRefOrBuilder.java | 23 - .../conformance/cases/KitchenSinkMessage.java | 558 -- .../cases/KitchenSinkMessageOrBuilder.java | 26 - .../conformance/cases/KitchenSinkProto.java | 139 - .../conformance/cases/LibraryProto.java | 163 - .../conformance/cases/MapEnumDefined.java | 785 -- .../cases/MapEnumDefinedOrBuilder.java | 67 - .../validate/conformance/cases/MapExact.java | 644 -- .../conformance/cases/MapExactIgnore.java | 644 -- .../cases/MapExactIgnoreOrBuilder.java | 45 - .../conformance/cases/MapExactOrBuilder.java | 45 - .../cases/MapExternalEnumDefined.java | 785 -- .../MapExternalEnumDefinedOrBuilder.java | 67 - .../validate/conformance/cases/MapKeys.java | 644 -- .../conformance/cases/MapKeysOrBuilder.java | 45 - .../conformance/cases/MapKeysPattern.java | 644 -- .../cases/MapKeysPatternOrBuilder.java | 45 - .../validate/conformance/cases/MapMax.java | 640 -- .../conformance/cases/MapMaxOrBuilder.java | 43 - .../validate/conformance/cases/MapMin.java | 640 -- .../validate/conformance/cases/MapMinMax.java | 640 -- .../conformance/cases/MapMinMaxOrBuilder.java | 43 - .../conformance/cases/MapMinOrBuilder.java | 43 - .../validate/conformance/cases/MapNone.java | 640 -- .../conformance/cases/MapNoneOrBuilder.java | 43 - .../conformance/cases/MapRecursive.java | 1181 --- .../cases/MapRecursiveOrBuilder.java | 45 - .../validate/conformance/cases/MapValues.java | 644 -- .../conformance/cases/MapValuesOrBuilder.java | 45 - .../conformance/cases/MapValuesPattern.java | 644 -- .../cases/MapValuesPatternOrBuilder.java | 45 - .../validate/conformance/cases/MapsProto.java | 415 - .../validate/conformance/cases/Message.java | 558 -- .../cases/MessageCrossPackage.java | 558 -- .../cases/MessageCrossPackageOrBuilder.java | 26 - .../conformance/cases/MessageDisabled.java | 432 - .../cases/MessageDisabledOrBuilder.java | 17 - .../conformance/cases/MessageNone.java | 913 -- .../cases/MessageNoneOrBuilder.java | 26 - .../conformance/cases/MessageOrBuilder.java | 26 - .../conformance/cases/MessageRequired.java | 558 -- .../cases/MessageRequiredButOptional.java | 558 -- .../MessageRequiredButOptionalOrBuilder.java | 26 - .../cases/MessageRequiredOneof.java | 648 -- .../cases/MessageRequiredOneofOrBuilder.java | 28 - .../cases/MessageRequiredOrBuilder.java | 26 - .../conformance/cases/MessageSkip.java | 558 -- .../cases/MessageSkipOrBuilder.java | 26 - .../cases/MessageWith3dInside.java | 358 - .../cases/MessageWith3dInsideOrBuilder.java | 11 - .../conformance/cases/MessagesProto.java | 209 - .../conformance/cases/MultipleMaps.java | 1138 --- .../cases/MultipleMapsOrBuilder.java | 109 - .../conformance/cases/NumbersProto.java | 2335 ----- .../buf/validate/conformance/cases/Oneof.java | 912 -- .../validate/conformance/cases/OneofNone.java | 704 -- .../conformance/cases/OneofNoneOrBuilder.java | 41 - .../conformance/cases/OneofOrBuilder.java | 56 - .../conformance/cases/OneofRequired.java | 886 -- .../cases/OneofRequiredOrBuilder.java | 63 - .../cases/OneofRequiredWithRequiredField.java | 786 -- ...eofRequiredWithRequiredFieldOrBuilder.java | 47 - .../conformance/cases/OneofsProto.java | 129 - .../PredefinedAndCustomRuleEdition2023.java | 1110 --- ...inedAndCustomRuleEdition2023OrBuilder.java | 37 - .../cases/PredefinedAndCustomRuleProto2.java | 1110 --- ...redefinedAndCustomRuleProto2OrBuilder.java | 37 - .../cases/PredefinedAndCustomRuleProto3.java | 1058 --- ...redefinedAndCustomRuleProto3OrBuilder.java | 32 - .../cases/PredefinedBoolRuleEdition2023.java | 457 - ...redefinedBoolRuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedBoolRuleProto2.java | 457 - .../PredefinedBoolRuleProto2OrBuilder.java | 22 - .../cases/PredefinedBoolRuleProto3.java | 432 - .../PredefinedBoolRuleProto3OrBuilder.java | 17 - .../cases/PredefinedBytesRuleEdition2023.java | 457 - ...edefinedBytesRuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedBytesRuleProto2.java | 457 - .../PredefinedBytesRuleProto2OrBuilder.java | 22 - .../cases/PredefinedBytesRuleProto3.java | 432 - .../PredefinedBytesRuleProto3OrBuilder.java | 17 - .../PredefinedDoubleRuleEdition2023.java | 458 - ...definedDoubleRuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedDoubleRuleProto2.java | 458 - .../PredefinedDoubleRuleProto2OrBuilder.java | 22 - .../cases/PredefinedDoubleRuleProto3.java | 433 - .../PredefinedDoubleRuleProto3OrBuilder.java | 17 - .../PredefinedDurationRuleEdition2023.java | 558 -- ...finedDurationRuleEdition2023OrBuilder.java | 26 - .../cases/PredefinedDurationRuleProto2.java | 558 -- ...PredefinedDurationRuleProto2OrBuilder.java | 26 - .../cases/PredefinedDurationRuleProto3.java | 558 -- ...PredefinedDurationRuleProto3OrBuilder.java | 26 - .../cases/PredefinedEnumRuleEdition2023.java | 599 -- ...redefinedEnumRuleEdition2023OrBuilder.java | 27 - .../cases/PredefinedEnumRuleProto2.java | 569 -- .../PredefinedEnumRuleProto2OrBuilder.java | 22 - .../cases/PredefinedEnumRuleProto3.java | 576 -- .../PredefinedEnumRuleProto3OrBuilder.java | 22 - .../PredefinedFixed32RuleEdition2023.java | 456 - ...efinedFixed32RuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedFixed32RuleProto2.java | 456 - .../PredefinedFixed32RuleProto2OrBuilder.java | 22 - .../cases/PredefinedFixed32RuleProto3.java | 431 - .../PredefinedFixed32RuleProto3OrBuilder.java | 17 - .../PredefinedFixed64RuleEdition2023.java | 457 - ...efinedFixed64RuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedFixed64RuleProto2.java | 457 - .../PredefinedFixed64RuleProto2OrBuilder.java | 22 - .../cases/PredefinedFixed64RuleProto3.java | 432 - .../PredefinedFixed64RuleProto3OrBuilder.java | 17 - .../cases/PredefinedFloatRuleEdition2023.java | 458 - ...edefinedFloatRuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedFloatRuleProto2.java | 458 - .../PredefinedFloatRuleProto2OrBuilder.java | 22 - .../cases/PredefinedFloatRuleProto3.java | 433 - .../PredefinedFloatRuleProto3OrBuilder.java | 17 - .../cases/PredefinedInt32RuleEdition2023.java | 456 - ...edefinedInt32RuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedInt32RuleProto2.java | 456 - .../PredefinedInt32RuleProto2OrBuilder.java | 22 - .../cases/PredefinedInt32RuleProto3.java | 431 - .../PredefinedInt32RuleProto3OrBuilder.java | 17 - .../cases/PredefinedInt64RuleEdition2023.java | 457 - ...edefinedInt64RuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedInt64RuleProto2.java | 457 - .../PredefinedInt64RuleProto2OrBuilder.java | 22 - .../cases/PredefinedInt64RuleProto3.java | 432 - .../PredefinedInt64RuleProto3OrBuilder.java | 17 - .../cases/PredefinedMapRuleEdition2023.java | 640 -- ...PredefinedMapRuleEdition2023OrBuilder.java | 43 - .../cases/PredefinedMapRuleProto3.java | 640 -- .../PredefinedMapRuleProto3OrBuilder.java | 43 - .../PredefinedRepeatedRuleEdition2023.java | 540 -- ...finedRepeatedRuleEdition2023OrBuilder.java | 28 - .../cases/PredefinedRepeatedRuleProto2.java | 529 -- ...PredefinedRepeatedRuleProto2OrBuilder.java | 28 - .../cases/PredefinedRepeatedRuleProto3.java | 540 -- ...PredefinedRepeatedRuleProto3OrBuilder.java | 28 - ...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 | 956 --- .../cases/PredefinedRulesProto3Proto.java | 679 -- ...dRulesProto3UnusedImportBugWorkaround.java | 753 -- ...to3UnusedImportBugWorkaroundOrBuilder.java | 41 - .../PredefinedRulesProtoEditionsProto.java | 1017 --- .../PredefinedSFixed32RuleEdition2023.java | 456 - ...finedSFixed32RuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedSFixed32RuleProto2.java | 456 - ...PredefinedSFixed32RuleProto2OrBuilder.java | 22 - .../cases/PredefinedSFixed32RuleProto3.java | 431 - ...PredefinedSFixed32RuleProto3OrBuilder.java | 17 - .../PredefinedSFixed64RuleEdition2023.java | 457 - ...finedSFixed64RuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedSFixed64RuleProto2.java | 457 - ...PredefinedSFixed64RuleProto2OrBuilder.java | 22 - .../cases/PredefinedSFixed64RuleProto3.java | 432 - ...PredefinedSFixed64RuleProto3OrBuilder.java | 17 - .../PredefinedSInt32RuleEdition2023.java | 456 - ...definedSInt32RuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedSInt32RuleProto2.java | 456 - .../PredefinedSInt32RuleProto2OrBuilder.java | 22 - .../cases/PredefinedSInt32RuleProto3.java | 431 - .../PredefinedSInt32RuleProto3OrBuilder.java | 17 - .../PredefinedSInt64RuleEdition2023.java | 457 - ...definedSInt64RuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedSInt64RuleProto2.java | 457 - .../PredefinedSInt64RuleProto2OrBuilder.java | 22 - .../cases/PredefinedSInt64RuleProto3.java | 432 - .../PredefinedSInt64RuleProto3OrBuilder.java | 17 - .../PredefinedStringRuleEdition2023.java | 525 -- ...definedStringRuleEdition2023OrBuilder.java | 28 - .../cases/PredefinedStringRuleProto2.java | 528 -- .../PredefinedStringRuleProto2OrBuilder.java | 28 - .../cases/PredefinedStringRuleProto3.java | 501 -- .../PredefinedStringRuleProto3OrBuilder.java | 23 - .../PredefinedTimestampRuleEdition2023.java | 558 -- ...inedTimestampRuleEdition2023OrBuilder.java | 26 - .../cases/PredefinedTimestampRuleProto2.java | 558 -- ...redefinedTimestampRuleProto2OrBuilder.java | 26 - .../cases/PredefinedTimestampRuleProto3.java | 558 -- ...redefinedTimestampRuleProto3OrBuilder.java | 26 - .../PredefinedUInt32RuleEdition2023.java | 456 - ...definedUInt32RuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedUInt32RuleProto2.java | 456 - .../PredefinedUInt32RuleProto2OrBuilder.java | 22 - .../cases/PredefinedUInt32RuleProto3.java | 431 - .../PredefinedUInt32RuleProto3OrBuilder.java | 17 - .../PredefinedUInt64RuleEdition2023.java | 457 - ...definedUInt64RuleEdition2023OrBuilder.java | 22 - .../cases/PredefinedUInt64RuleProto2.java | 457 - .../PredefinedUInt64RuleProto2OrBuilder.java | 22 - .../cases/PredefinedUInt64RuleProto3.java | 432 - .../PredefinedUInt64RuleProto3OrBuilder.java | 17 - .../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 - .../cases/Proto2MapIgnoreAlways.java | 640 -- .../cases/Proto2MapIgnoreAlwaysOrBuilder.java | 43 - .../cases/Proto2MapIgnoreDefault.java | 640 -- .../Proto2MapIgnoreDefaultOrBuilder.java | 43 - .../cases/Proto2MapIgnoreEmpty.java | 640 -- .../cases/Proto2MapIgnoreEmptyOrBuilder.java | 43 - .../cases/Proto2MapIgnoreUnspecified.java | 640 -- .../Proto2MapIgnoreUnspecifiedOrBuilder.java | 43 - .../cases/Proto2MapKeyIgnoreAlways.java | 640 -- .../Proto2MapKeyIgnoreAlwaysOrBuilder.java | 43 - .../cases/Proto2MapKeyIgnoreDefault.java | 640 -- .../Proto2MapKeyIgnoreDefaultOrBuilder.java | 43 - .../cases/Proto2MapKeyIgnoreEmpty.java | 640 -- .../Proto2MapKeyIgnoreEmptyOrBuilder.java | 43 - .../cases/Proto2MapKeyIgnoreUnspecified.java | 640 -- ...roto2MapKeyIgnoreUnspecifiedOrBuilder.java | 43 - .../cases/Proto2MapValueIgnoreAlways.java | 640 -- .../Proto2MapValueIgnoreAlwaysOrBuilder.java | 43 - .../cases/Proto2MapValueIgnoreDefault.java | 640 -- .../Proto2MapValueIgnoreDefaultOrBuilder.java | 43 - .../cases/Proto2MapValueIgnoreEmpty.java | 640 -- .../Proto2MapValueIgnoreEmptyOrBuilder.java | 43 - .../Proto2MapValueIgnoreUnspecified.java | 640 -- ...to2MapValueIgnoreUnspecifiedOrBuilder.java | 43 - .../Proto2MessageOptionalIgnoreAlways.java | 1100 --- ...2MessageOptionalIgnoreAlwaysOrBuilder.java | 26 - .../Proto2MessageOptionalIgnoreDefault.java | 1100 --- ...MessageOptionalIgnoreDefaultOrBuilder.java | 26 - .../Proto2MessageOptionalIgnoreEmpty.java | 1100 --- ...o2MessageOptionalIgnoreEmptyOrBuilder.java | 26 - ...roto2MessageOptionalIgnoreUnspecified.java | 1100 --- ...ageOptionalIgnoreUnspecifiedOrBuilder.java | 26 - .../Proto2MessageRequiredIgnoreAlways.java | 1107 --- ...2MessageRequiredIgnoreAlwaysOrBuilder.java | 26 - .../Proto2MessageRequiredIgnoreDefault.java | 1107 --- ...MessageRequiredIgnoreDefaultOrBuilder.java | 26 - .../Proto2MessageRequiredIgnoreEmpty.java | 1107 --- ...o2MessageRequiredIgnoreEmptyOrBuilder.java | 26 - ...roto2MessageRequiredIgnoreUnspecified.java | 1107 --- ...ageRequiredIgnoreUnspecifiedOrBuilder.java | 26 - .../cases/Proto2OneofIgnoreAlways.java | 531 -- .../Proto2OneofIgnoreAlwaysOrBuilder.java | 24 - .../Proto2OneofIgnoreAlwaysWithDefault.java | 531 -- ...OneofIgnoreAlwaysWithDefaultOrBuilder.java | 24 - .../cases/Proto2OneofIgnoreDefault.java | 531 -- .../Proto2OneofIgnoreDefaultOrBuilder.java | 24 - .../Proto2OneofIgnoreDefaultWithDefault.java | 531 -- ...neofIgnoreDefaultWithDefaultOrBuilder.java | 24 - .../cases/Proto2OneofIgnoreEmpty.java | 531 -- .../Proto2OneofIgnoreEmptyOrBuilder.java | 24 - .../Proto2OneofIgnoreEmptyWithDefault.java | 531 -- ...2OneofIgnoreEmptyWithDefaultOrBuilder.java | 24 - .../cases/Proto2OneofIgnoreUnspecified.java | 531 -- ...Proto2OneofIgnoreUnspecifiedOrBuilder.java | 24 - ...oto2OneofIgnoreUnspecifiedWithDefault.java | 531 -- ...IgnoreUnspecifiedWithDefaultOrBuilder.java | 24 - .../cases/Proto2RepeatedIgnoreAlways.java | 529 -- .../Proto2RepeatedIgnoreAlwaysOrBuilder.java | 28 - .../cases/Proto2RepeatedIgnoreDefault.java | 529 -- .../Proto2RepeatedIgnoreDefaultOrBuilder.java | 28 - .../cases/Proto2RepeatedIgnoreEmpty.java | 529 -- .../Proto2RepeatedIgnoreEmptyOrBuilder.java | 28 - .../Proto2RepeatedIgnoreUnspecified.java | 529 -- ...to2RepeatedIgnoreUnspecifiedOrBuilder.java | 28 - .../cases/Proto2RepeatedItemIgnoreAlways.java | 529 -- ...oto2RepeatedItemIgnoreAlwaysOrBuilder.java | 28 - .../Proto2RepeatedItemIgnoreDefault.java | 529 -- ...to2RepeatedItemIgnoreDefaultOrBuilder.java | 28 - .../cases/Proto2RepeatedItemIgnoreEmpty.java | 529 -- ...roto2RepeatedItemIgnoreEmptyOrBuilder.java | 28 - .../Proto2RepeatedItemIgnoreUnspecified.java | 529 -- ...epeatedItemIgnoreUnspecifiedOrBuilder.java | 28 - .../Proto2ScalarOptionalIgnoreAlways.java | 456 - ...o2ScalarOptionalIgnoreAlwaysOrBuilder.java | 22 - ...ScalarOptionalIgnoreAlwaysWithDefault.java | 457 - ...ionalIgnoreAlwaysWithDefaultOrBuilder.java | 22 - .../Proto2ScalarOptionalIgnoreDefault.java | 456 - ...2ScalarOptionalIgnoreDefaultOrBuilder.java | 22 - ...calarOptionalIgnoreDefaultWithDefault.java | 457 - ...onalIgnoreDefaultWithDefaultOrBuilder.java | 22 - .../Proto2ScalarOptionalIgnoreEmpty.java | 456 - ...to2ScalarOptionalIgnoreEmptyOrBuilder.java | 22 - ...2ScalarOptionalIgnoreEmptyWithDefault.java | 457 - ...tionalIgnoreEmptyWithDefaultOrBuilder.java | 22 - ...Proto2ScalarOptionalIgnoreUnspecified.java | 456 - ...larOptionalIgnoreUnspecifiedOrBuilder.java | 22 - ...rOptionalIgnoreUnspecifiedWithDefault.java | 457 - ...IgnoreUnspecifiedWithDefaultOrBuilder.java | 22 - .../Proto2ScalarRequiredIgnoreAlways.java | 463 - ...o2ScalarRequiredIgnoreAlwaysOrBuilder.java | 22 - ...ScalarRequiredIgnoreAlwaysWithDefault.java | 464 - ...uiredIgnoreAlwaysWithDefaultOrBuilder.java | 22 - .../Proto2ScalarRequiredIgnoreDefault.java | 463 - ...2ScalarRequiredIgnoreDefaultOrBuilder.java | 22 - ...calarRequiredIgnoreDefaultWithDefault.java | 464 - ...iredIgnoreDefaultWithDefaultOrBuilder.java | 22 - .../Proto2ScalarRequiredIgnoreEmpty.java | 463 - ...to2ScalarRequiredIgnoreEmptyOrBuilder.java | 22 - ...2ScalarRequiredIgnoreEmptyWithDefault.java | 464 - ...quiredIgnoreEmptyWithDefaultOrBuilder.java | 22 - ...Proto2ScalarRequiredIgnoreUnspecified.java | 463 - ...larRequiredIgnoreUnspecifiedOrBuilder.java | 22 - ...rRequiredIgnoreUnspecifiedWithDefault.java | 464 - ...IgnoreUnspecifiedWithDefaultOrBuilder.java | 22 - .../cases/Proto3MapIgnoreAlways.java | 640 -- .../cases/Proto3MapIgnoreAlwaysOrBuilder.java | 43 - .../cases/Proto3MapIgnoreDefault.java | 640 -- .../Proto3MapIgnoreDefaultOrBuilder.java | 43 - .../cases/Proto3MapIgnoreEmpty.java | 640 -- .../cases/Proto3MapIgnoreEmptyOrBuilder.java | 43 - .../cases/Proto3MapIgnoreUnspecified.java | 640 -- .../Proto3MapIgnoreUnspecifiedOrBuilder.java | 43 - .../cases/Proto3MapKeyIgnoreAlways.java | 640 -- .../Proto3MapKeyIgnoreAlwaysOrBuilder.java | 43 - .../cases/Proto3MapKeyIgnoreDefault.java | 640 -- .../Proto3MapKeyIgnoreDefaultOrBuilder.java | 43 - .../cases/Proto3MapKeyIgnoreEmpty.java | 640 -- .../Proto3MapKeyIgnoreEmptyOrBuilder.java | 43 - .../cases/Proto3MapKeyIgnoreUnspecified.java | 640 -- ...roto3MapKeyIgnoreUnspecifiedOrBuilder.java | 43 - .../cases/Proto3MapValueIgnoreAlways.java | 640 -- .../Proto3MapValueIgnoreAlwaysOrBuilder.java | 43 - .../cases/Proto3MapValueIgnoreDefault.java | 640 -- .../Proto3MapValueIgnoreDefaultOrBuilder.java | 43 - .../cases/Proto3MapValueIgnoreEmpty.java | 640 -- .../Proto3MapValueIgnoreEmptyOrBuilder.java | 43 - .../Proto3MapValueIgnoreUnspecified.java | 640 -- ...to3MapValueIgnoreUnspecifiedOrBuilder.java | 43 - .../cases/Proto3MessageIgnoreAlways.java | 1097 --- .../Proto3MessageIgnoreAlwaysOrBuilder.java | 26 - .../cases/Proto3MessageIgnoreDefault.java | 1097 --- .../Proto3MessageIgnoreDefaultOrBuilder.java | 26 - .../cases/Proto3MessageIgnoreEmpty.java | 1097 --- .../Proto3MessageIgnoreEmptyOrBuilder.java | 26 - .../cases/Proto3MessageIgnoreUnspecified.java | 1097 --- ...oto3MessageIgnoreUnspecifiedOrBuilder.java | 26 - .../Proto3MessageOptionalIgnoreAlways.java | 1097 --- ...3MessageOptionalIgnoreAlwaysOrBuilder.java | 26 - .../Proto3MessageOptionalIgnoreDefault.java | 1097 --- ...MessageOptionalIgnoreDefaultOrBuilder.java | 26 - .../Proto3MessageOptionalIgnoreEmpty.java | 1097 --- ...o3MessageOptionalIgnoreEmptyOrBuilder.java | 26 - ...roto3MessageOptionalIgnoreUnspecified.java | 1097 --- ...ageOptionalIgnoreUnspecifiedOrBuilder.java | 26 - .../cases/Proto3OneofIgnoreAlways.java | 531 -- .../Proto3OneofIgnoreAlwaysOrBuilder.java | 24 - .../cases/Proto3OneofIgnoreDefault.java | 531 -- .../Proto3OneofIgnoreDefaultOrBuilder.java | 24 - .../cases/Proto3OneofIgnoreEmpty.java | 531 -- .../Proto3OneofIgnoreEmptyOrBuilder.java | 24 - .../cases/Proto3OneofIgnoreUnspecified.java | 531 -- ...Proto3OneofIgnoreUnspecifiedOrBuilder.java | 24 - .../cases/Proto3RepeatedIgnoreAlways.java | 540 -- .../Proto3RepeatedIgnoreAlwaysOrBuilder.java | 28 - .../cases/Proto3RepeatedIgnoreDefault.java | 540 -- .../Proto3RepeatedIgnoreDefaultOrBuilder.java | 28 - .../cases/Proto3RepeatedIgnoreEmpty.java | 540 -- .../Proto3RepeatedIgnoreEmptyOrBuilder.java | 28 - .../Proto3RepeatedIgnoreUnspecified.java | 540 -- ...to3RepeatedIgnoreUnspecifiedOrBuilder.java | 28 - .../cases/Proto3RepeatedItemIgnoreAlways.java | 540 -- ...oto3RepeatedItemIgnoreAlwaysOrBuilder.java | 28 - .../Proto3RepeatedItemIgnoreDefault.java | 540 -- ...to3RepeatedItemIgnoreDefaultOrBuilder.java | 28 - .../cases/Proto3RepeatedItemIgnoreEmpty.java | 540 -- ...roto3RepeatedItemIgnoreEmptyOrBuilder.java | 28 - .../Proto3RepeatedItemIgnoreUnspecified.java | 540 -- ...epeatedItemIgnoreUnspecifiedOrBuilder.java | 28 - .../cases/Proto3ScalarIgnoreAlways.java | 431 - .../Proto3ScalarIgnoreAlwaysOrBuilder.java | 17 - .../cases/Proto3ScalarIgnoreDefault.java | 431 - .../Proto3ScalarIgnoreDefaultOrBuilder.java | 17 - .../cases/Proto3ScalarIgnoreEmpty.java | 431 - .../Proto3ScalarIgnoreEmptyOrBuilder.java | 17 - .../cases/Proto3ScalarIgnoreUnspecified.java | 431 - ...roto3ScalarIgnoreUnspecifiedOrBuilder.java | 17 - .../Proto3ScalarOptionalIgnoreAlways.java | 456 - ...o3ScalarOptionalIgnoreAlwaysOrBuilder.java | 22 - .../Proto3ScalarOptionalIgnoreDefault.java | 456 - ...3ScalarOptionalIgnoreDefaultOrBuilder.java | 22 - .../Proto3ScalarOptionalIgnoreEmpty.java | 456 - ...to3ScalarOptionalIgnoreEmptyOrBuilder.java | 22 - ...Proto3ScalarOptionalIgnoreUnspecified.java | 456 - ...larOptionalIgnoreUnspecifiedOrBuilder.java | 22 - .../conformance/cases/RepeatedAnyIn.java | 719 -- .../cases/RepeatedAnyInOrBuilder.java | 35 - .../conformance/cases/RepeatedAnyNotIn.java | 719 -- .../cases/RepeatedAnyNotInOrBuilder.java | 35 - .../conformance/cases/RepeatedDuration.java | 719 -- .../cases/RepeatedDurationOrBuilder.java | 35 - .../cases/RepeatedEmbedCrossPackageNone.java | 719 -- ...epeatedEmbedCrossPackageNoneOrBuilder.java | 35 - .../conformance/cases/RepeatedEmbedNone.java | 719 -- .../cases/RepeatedEmbedNoneOrBuilder.java | 35 - .../conformance/cases/RepeatedEmbedSkip.java | 719 -- .../cases/RepeatedEmbedSkipOrBuilder.java | 35 - .../cases/RepeatedEmbeddedEnumIn.java | 753 -- .../RepeatedEmbeddedEnumInOrBuilder.java | 40 - .../cases/RepeatedEmbeddedEnumNotIn.java | 753 -- .../RepeatedEmbeddedEnumNotInOrBuilder.java | 40 - .../cases/RepeatedEnumDefined.java | 627 -- .../cases/RepeatedEnumDefinedOrBuilder.java | 40 - .../conformance/cases/RepeatedEnumIn.java | 627 -- .../cases/RepeatedEnumInOrBuilder.java | 40 - .../conformance/cases/RepeatedEnumNotIn.java | 627 -- .../cases/RepeatedEnumNotInOrBuilder.java | 40 - .../conformance/cases/RepeatedExact.java | 540 -- .../cases/RepeatedExactIgnore.java | 540 -- .../cases/RepeatedExactIgnoreOrBuilder.java | 28 - .../cases/RepeatedExactOrBuilder.java | 28 - .../cases/RepeatedExternalEnumDefined.java | 627 -- .../RepeatedExternalEnumDefinedOrBuilder.java | 40 - .../conformance/cases/RepeatedItemIn.java | 554 -- .../cases/RepeatedItemInOrBuilder.java | 36 - .../conformance/cases/RepeatedItemNotIn.java | 554 -- .../cases/RepeatedItemNotInOrBuilder.java | 36 - .../cases/RepeatedItemPattern.java | 554 -- .../cases/RepeatedItemPatternOrBuilder.java | 36 - .../conformance/cases/RepeatedItemRule.java | 544 -- .../cases/RepeatedItemRuleOrBuilder.java | 28 - .../conformance/cases/RepeatedMax.java | 544 -- .../cases/RepeatedMaxOrBuilder.java | 28 - .../conformance/cases/RepeatedMin.java | 719 -- .../cases/RepeatedMinAndItemLen.java | 554 -- .../cases/RepeatedMinAndItemLenOrBuilder.java | 36 - .../cases/RepeatedMinAndMaxItemLen.java | 554 -- .../RepeatedMinAndMaxItemLenOrBuilder.java | 36 - .../conformance/cases/RepeatedMinMax.java | 544 -- .../cases/RepeatedMinMaxOrBuilder.java | 28 - .../cases/RepeatedMinOrBuilder.java | 35 - .../cases/RepeatedMultipleUnique.java | 729 -- .../RepeatedMultipleUniqueOrBuilder.java | 53 - .../conformance/cases/RepeatedNone.java | 540 -- .../cases/RepeatedNoneOrBuilder.java | 28 - .../conformance/cases/RepeatedNotUnique.java | 554 -- .../cases/RepeatedNotUniqueOrBuilder.java | 36 - .../conformance/cases/RepeatedProto.java | 412 - .../conformance/cases/RepeatedUnique.java | 554 -- .../cases/RepeatedUniqueOrBuilder.java | 36 - ...RepeatedYetAnotherExternalEnumDefined.java | 627 -- ...etAnotherExternalEnumDefinedOrBuilder.java | 40 - .../cases/RequiredEditionsMap.java | 644 -- .../RequiredEditionsMapIgnoreAlways.java | 644 -- ...uiredEditionsMapIgnoreAlwaysOrBuilder.java | 45 - .../cases/RequiredEditionsMapOrBuilder.java | 45 - ...quiredEditionsMessageExplicitPresence.java | 1097 --- ...tionsMessageExplicitPresenceDelimited.java | 1097 --- ...ExplicitPresenceDelimitedIgnoreAlways.java | 1097 --- ...resenceDelimitedIgnoreAlwaysOrBuilder.java | 26 - ...ageExplicitPresenceDelimitedOrBuilder.java | 26 - ...nsMessageExplicitPresenceIgnoreAlways.java | 1097 --- ...ExplicitPresenceIgnoreAlwaysOrBuilder.java | 26 - ...tionsMessageExplicitPresenceOrBuilder.java | 26 - ...RequiredEditionsMessageLegacyRequired.java | 1104 --- ...ditionsMessageLegacyRequiredDelimited.java | 1104 --- ...ssageLegacyRequiredDelimitedOrBuilder.java | 26 - ...ditionsMessageLegacyRequiredOrBuilder.java | 26 - .../cases/RequiredEditionsOneof.java | 786 -- .../RequiredEditionsOneofIgnoreAlways.java | 786 -- ...redEditionsOneofIgnoreAlwaysOrBuilder.java | 47 - .../cases/RequiredEditionsOneofOrBuilder.java | 47 - .../cases/RequiredEditionsRepeated.java | 554 -- .../RequiredEditionsRepeatedExpanded.java | 554 -- ...dEditionsRepeatedExpandedIgnoreAlways.java | 554 -- ...RepeatedExpandedIgnoreAlwaysOrBuilder.java | 36 - ...iredEditionsRepeatedExpandedOrBuilder.java | 36 - .../RequiredEditionsRepeatedIgnoreAlways.java | 554 -- ...EditionsRepeatedIgnoreAlwaysOrBuilder.java | 36 - .../RequiredEditionsRepeatedOrBuilder.java | 36 - ...equiredEditionsScalarExplicitPresence.java | 525 -- ...EditionsScalarExplicitPresenceDefault.java | 525 -- ...arExplicitPresenceDefaultIgnoreAlways.java | 525 -- ...tPresenceDefaultIgnoreAlwaysOrBuilder.java | 28 - ...calarExplicitPresenceDefaultOrBuilder.java | 28 - ...onsScalarExplicitPresenceIgnoreAlways.java | 525 -- ...ExplicitPresenceIgnoreAlwaysOrBuilder.java | 28 - ...itionsScalarExplicitPresenceOrBuilder.java | 28 - ...equiredEditionsScalarImplicitPresence.java | 501 -- ...onsScalarImplicitPresenceIgnoreAlways.java | 501 -- ...ImplicitPresenceIgnoreAlwaysOrBuilder.java | 23 - ...itionsScalarImplicitPresenceOrBuilder.java | 23 - .../RequiredEditionsScalarLegacyRequired.java | 532 -- ...EditionsScalarLegacyRequiredOrBuilder.java | 28 - .../cases/RequiredFieldProto2Proto.java | 281 - .../cases/RequiredFieldProto3Proto.java | 268 - .../RequiredFieldProtoEditionsProto.java | 444 - .../conformance/cases/RequiredProto2Map.java | 644 -- .../cases/RequiredProto2MapIgnoreAlways.java | 644 -- ...equiredProto2MapIgnoreAlwaysOrBuilder.java | 45 - .../cases/RequiredProto2MapOrBuilder.java | 45 - .../cases/RequiredProto2Message.java | 1100 --- .../RequiredProto2MessageIgnoreAlways.java | 1100 --- ...redProto2MessageIgnoreAlwaysOrBuilder.java | 26 - .../cases/RequiredProto2MessageOrBuilder.java | 26 - .../cases/RequiredProto2Oneof.java | 788 -- .../RequiredProto2OneofIgnoreAlways.java | 788 -- ...uiredProto2OneofIgnoreAlwaysOrBuilder.java | 47 - .../cases/RequiredProto2OneofOrBuilder.java | 47 - .../cases/RequiredProto2Repeated.java | 553 -- .../RequiredProto2RepeatedIgnoreAlways.java | 553 -- ...edProto2RepeatedIgnoreAlwaysOrBuilder.java | 36 - .../RequiredProto2RepeatedOrBuilder.java | 36 - .../cases/RequiredProto2ScalarOptional.java | 528 -- .../RequiredProto2ScalarOptionalDefault.java | 528 -- ...oto2ScalarOptionalDefaultIgnoreAlways.java | 528 -- ...rOptionalDefaultIgnoreAlwaysOrBuilder.java | 28 - ...dProto2ScalarOptionalDefaultOrBuilder.java | 28 - ...uiredProto2ScalarOptionalIgnoreAlways.java | 528 -- ...o2ScalarOptionalIgnoreAlwaysOrBuilder.java | 28 - ...RequiredProto2ScalarOptionalOrBuilder.java | 28 - .../cases/RequiredProto2ScalarRequired.java | 535 -- ...RequiredProto2ScalarRequiredOrBuilder.java | 28 - .../conformance/cases/RequiredProto3Map.java | 644 -- .../cases/RequiredProto3MapIgnoreAlways.java | 644 -- ...equiredProto3MapIgnoreAlwaysOrBuilder.java | 45 - .../cases/RequiredProto3MapOrBuilder.java | 45 - .../cases/RequiredProto3Message.java | 1068 --- .../RequiredProto3MessageIgnoreAlways.java | 1068 --- ...redProto3MessageIgnoreAlwaysOrBuilder.java | 26 - .../cases/RequiredProto3MessageOrBuilder.java | 26 - .../cases/RequiredProto3OneOf.java | 786 -- .../RequiredProto3OneOfIgnoreAlways.java | 786 -- ...uiredProto3OneOfIgnoreAlwaysOrBuilder.java | 47 - .../cases/RequiredProto3OneOfOrBuilder.java | 47 - .../cases/RequiredProto3OptionalScalar.java | 525 -- ...uiredProto3OptionalScalarIgnoreAlways.java | 525 -- ...o3OptionalScalarIgnoreAlwaysOrBuilder.java | 28 - ...RequiredProto3OptionalScalarOrBuilder.java | 28 - .../cases/RequiredProto3Repeated.java | 554 -- .../RequiredProto3RepeatedIgnoreAlways.java | 554 -- ...edProto3RepeatedIgnoreAlwaysOrBuilder.java | 36 - .../RequiredProto3RepeatedOrBuilder.java | 36 - .../cases/RequiredProto3Scalar.java | 501 -- .../RequiredProto3ScalarIgnoreAlways.java | 501 -- ...iredProto3ScalarIgnoreAlwaysOrBuilder.java | 23 - .../cases/RequiredProto3ScalarOrBuilder.java | 23 - .../conformance/cases/SFixed32Const.java | 431 - .../cases/SFixed32ConstOrBuilder.java | 17 - .../conformance/cases/SFixed32ExGTELTE.java | 431 - .../cases/SFixed32ExGTELTEOrBuilder.java | 17 - .../conformance/cases/SFixed32ExLTGT.java | 431 - .../cases/SFixed32ExLTGTOrBuilder.java | 17 - .../conformance/cases/SFixed32Example.java | 431 - .../cases/SFixed32ExampleOrBuilder.java | 17 - .../conformance/cases/SFixed32GT.java | 431 - .../conformance/cases/SFixed32GTE.java | 431 - .../conformance/cases/SFixed32GTELTE.java | 431 - .../cases/SFixed32GTELTEOrBuilder.java | 17 - .../cases/SFixed32GTEOrBuilder.java | 17 - .../conformance/cases/SFixed32GTLT.java | 431 - .../cases/SFixed32GTLTOrBuilder.java | 17 - .../cases/SFixed32GTOrBuilder.java | 17 - .../conformance/cases/SFixed32Ignore.java | 431 - .../cases/SFixed32IgnoreOrBuilder.java | 17 - .../conformance/cases/SFixed32In.java | 431 - .../cases/SFixed32InOrBuilder.java | 17 - .../cases/SFixed32IncorrectType.java | 431 - .../cases/SFixed32IncorrectTypeOrBuilder.java | 17 - .../conformance/cases/SFixed32LT.java | 431 - .../conformance/cases/SFixed32LTE.java | 431 - .../cases/SFixed32LTEOrBuilder.java | 17 - .../cases/SFixed32LTOrBuilder.java | 17 - .../conformance/cases/SFixed32None.java | 431 - .../cases/SFixed32NoneOrBuilder.java | 17 - .../conformance/cases/SFixed32NotIn.java | 431 - .../cases/SFixed32NotInOrBuilder.java | 17 - .../conformance/cases/SFixed64Const.java | 432 - .../cases/SFixed64ConstOrBuilder.java | 17 - .../conformance/cases/SFixed64ExGTELTE.java | 432 - .../cases/SFixed64ExGTELTEOrBuilder.java | 17 - .../conformance/cases/SFixed64ExLTGT.java | 432 - .../cases/SFixed64ExLTGTOrBuilder.java | 17 - .../conformance/cases/SFixed64Example.java | 432 - .../cases/SFixed64ExampleOrBuilder.java | 17 - .../conformance/cases/SFixed64GT.java | 432 - .../conformance/cases/SFixed64GTE.java | 432 - .../conformance/cases/SFixed64GTELTE.java | 432 - .../cases/SFixed64GTELTEOrBuilder.java | 17 - .../cases/SFixed64GTEOrBuilder.java | 17 - .../conformance/cases/SFixed64GTLT.java | 432 - .../cases/SFixed64GTLTOrBuilder.java | 17 - .../cases/SFixed64GTOrBuilder.java | 17 - .../conformance/cases/SFixed64Ignore.java | 432 - .../cases/SFixed64IgnoreOrBuilder.java | 17 - .../conformance/cases/SFixed64In.java | 432 - .../cases/SFixed64InOrBuilder.java | 17 - .../cases/SFixed64IncorrectType.java | 432 - .../cases/SFixed64IncorrectTypeOrBuilder.java | 17 - .../conformance/cases/SFixed64LT.java | 432 - .../conformance/cases/SFixed64LTE.java | 432 - .../cases/SFixed64LTEOrBuilder.java | 17 - .../cases/SFixed64LTOrBuilder.java | 17 - .../conformance/cases/SFixed64None.java | 432 - .../cases/SFixed64NoneOrBuilder.java | 17 - .../conformance/cases/SFixed64NotIn.java | 432 - .../cases/SFixed64NotInOrBuilder.java | 17 - .../conformance/cases/SInt32Const.java | 431 - .../cases/SInt32ConstOrBuilder.java | 17 - .../conformance/cases/SInt32ExGTELTE.java | 431 - .../cases/SInt32ExGTELTEOrBuilder.java | 17 - .../conformance/cases/SInt32ExLTGT.java | 431 - .../cases/SInt32ExLTGTOrBuilder.java | 17 - .../conformance/cases/SInt32Example.java | 431 - .../cases/SInt32ExampleOrBuilder.java | 17 - .../validate/conformance/cases/SInt32GT.java | 431 - .../validate/conformance/cases/SInt32GTE.java | 431 - .../conformance/cases/SInt32GTELTE.java | 431 - .../cases/SInt32GTELTEOrBuilder.java | 17 - .../conformance/cases/SInt32GTEOrBuilder.java | 17 - .../conformance/cases/SInt32GTLT.java | 431 - .../cases/SInt32GTLTOrBuilder.java | 17 - .../conformance/cases/SInt32GTOrBuilder.java | 17 - .../conformance/cases/SInt32Ignore.java | 431 - .../cases/SInt32IgnoreOrBuilder.java | 17 - .../validate/conformance/cases/SInt32In.java | 431 - .../conformance/cases/SInt32InOrBuilder.java | 17 - .../cases/SInt32IncorrectType.java | 431 - .../cases/SInt32IncorrectTypeOrBuilder.java | 17 - .../validate/conformance/cases/SInt32LT.java | 431 - .../validate/conformance/cases/SInt32LTE.java | 431 - .../conformance/cases/SInt32LTEOrBuilder.java | 17 - .../conformance/cases/SInt32LTOrBuilder.java | 17 - .../conformance/cases/SInt32None.java | 431 - .../cases/SInt32NoneOrBuilder.java | 17 - .../conformance/cases/SInt32NotIn.java | 431 - .../cases/SInt32NotInOrBuilder.java | 17 - .../conformance/cases/SInt64Const.java | 432 - .../cases/SInt64ConstOrBuilder.java | 17 - .../conformance/cases/SInt64ExGTELTE.java | 432 - .../cases/SInt64ExGTELTEOrBuilder.java | 17 - .../conformance/cases/SInt64ExLTGT.java | 432 - .../cases/SInt64ExLTGTOrBuilder.java | 17 - .../conformance/cases/SInt64Example.java | 432 - .../cases/SInt64ExampleOrBuilder.java | 17 - .../validate/conformance/cases/SInt64GT.java | 432 - .../validate/conformance/cases/SInt64GTE.java | 432 - .../conformance/cases/SInt64GTELTE.java | 432 - .../cases/SInt64GTELTEOrBuilder.java | 17 - .../conformance/cases/SInt64GTEOrBuilder.java | 17 - .../conformance/cases/SInt64GTLT.java | 432 - .../cases/SInt64GTLTOrBuilder.java | 17 - .../conformance/cases/SInt64GTOrBuilder.java | 17 - .../conformance/cases/SInt64Ignore.java | 432 - .../cases/SInt64IgnoreOrBuilder.java | 17 - .../validate/conformance/cases/SInt64In.java | 432 - .../conformance/cases/SInt64InOrBuilder.java | 17 - .../cases/SInt64IncorrectType.java | 432 - .../cases/SInt64IncorrectTypeOrBuilder.java | 17 - .../validate/conformance/cases/SInt64LT.java | 432 - .../validate/conformance/cases/SInt64LTE.java | 432 - .../conformance/cases/SInt64LTEOrBuilder.java | 17 - .../conformance/cases/SInt64LTOrBuilder.java | 17 - .../conformance/cases/SInt64None.java | 432 - .../cases/SInt64NoneOrBuilder.java | 17 - .../conformance/cases/SInt64NotIn.java | 432 - .../cases/SInt64NotInOrBuilder.java | 17 - ...ardPredefinedAndCustomRuleEdition2023.java | 456 - ...inedAndCustomRuleEdition2023OrBuilder.java | 22 - ...StandardPredefinedAndCustomRuleProto2.java | 456 - ...redefinedAndCustomRuleProto2OrBuilder.java | 22 - ...StandardPredefinedAndCustomRuleProto3.java | 431 - ...redefinedAndCustomRuleProto3OrBuilder.java | 17 - .../conformance/cases/StringAddress.java | 501 -- .../cases/StringAddressOrBuilder.java | 23 - .../conformance/cases/StringConst.java | 501 -- .../cases/StringConstOrBuilder.java | 23 - .../conformance/cases/StringContains.java | 501 -- .../cases/StringContainsOrBuilder.java | 23 - .../conformance/cases/StringEmail.java | 501 -- .../cases/StringEmailOrBuilder.java | 23 - .../cases/StringEqualMinMaxBytes.java | 501 -- .../StringEqualMinMaxBytesOrBuilder.java | 23 - .../cases/StringEqualMinMaxLen.java | 501 -- .../cases/StringEqualMinMaxLenOrBuilder.java | 23 - .../conformance/cases/StringExample.java | 501 -- .../cases/StringExampleOrBuilder.java | 23 - .../cases/StringHostAndOptionalPort.java | 501 -- .../StringHostAndOptionalPortOrBuilder.java | 23 - .../conformance/cases/StringHostAndPort.java | 501 -- .../cases/StringHostAndPortOrBuilder.java | 23 - .../conformance/cases/StringHostname.java | 501 -- .../cases/StringHostnameOrBuilder.java | 23 - .../cases/StringHttpHeaderName.java | 501 -- .../cases/StringHttpHeaderNameLoose.java | 501 -- .../StringHttpHeaderNameLooseOrBuilder.java | 23 - .../cases/StringHttpHeaderNameOrBuilder.java | 23 - .../cases/StringHttpHeaderValue.java | 501 -- .../cases/StringHttpHeaderValueLoose.java | 501 -- .../StringHttpHeaderValueLooseOrBuilder.java | 23 - .../cases/StringHttpHeaderValueOrBuilder.java | 23 - .../validate/conformance/cases/StringIP.java | 501 -- .../conformance/cases/StringIPOrBuilder.java | 23 - .../conformance/cases/StringIPPrefix.java | 501 -- .../cases/StringIPPrefixOrBuilder.java | 23 - .../cases/StringIPWithPrefixLen.java | 501 -- .../cases/StringIPWithPrefixLenOrBuilder.java | 23 - .../conformance/cases/StringIPv4.java | 501 -- .../cases/StringIPv4OrBuilder.java | 23 - .../conformance/cases/StringIPv4Prefix.java | 501 -- .../cases/StringIPv4PrefixOrBuilder.java | 23 - .../cases/StringIPv4WithPrefixLen.java | 501 -- .../StringIPv4WithPrefixLenOrBuilder.java | 23 - .../conformance/cases/StringIPv6.java | 501 -- .../cases/StringIPv6OrBuilder.java | 23 - .../conformance/cases/StringIPv6Prefix.java | 501 -- .../cases/StringIPv6PrefixOrBuilder.java | 23 - .../cases/StringIPv6WithPrefixLen.java | 501 -- .../StringIPv6WithPrefixLenOrBuilder.java | 23 - .../validate/conformance/cases/StringIn.java | 501 -- .../conformance/cases/StringInOneof.java | 613 -- .../cases/StringInOneofOrBuilder.java | 30 - .../conformance/cases/StringInOrBuilder.java | 23 - .../validate/conformance/cases/StringLen.java | 501 -- .../conformance/cases/StringLenBytes.java | 501 -- .../cases/StringLenBytesOrBuilder.java | 23 - .../conformance/cases/StringLenOrBuilder.java | 23 - .../conformance/cases/StringMaxBytes.java | 501 -- .../cases/StringMaxBytesOrBuilder.java | 23 - .../conformance/cases/StringMaxLen.java | 501 -- .../cases/StringMaxLenOrBuilder.java | 23 - .../conformance/cases/StringMinBytes.java | 501 -- .../cases/StringMinBytesOrBuilder.java | 23 - .../conformance/cases/StringMinLen.java | 501 -- .../cases/StringMinLenOrBuilder.java | 23 - .../conformance/cases/StringMinMaxBytes.java | 501 -- .../cases/StringMinMaxBytesOrBuilder.java | 23 - .../conformance/cases/StringMinMaxLen.java | 501 -- .../cases/StringMinMaxLenOrBuilder.java | 23 - .../conformance/cases/StringNone.java | 501 -- .../cases/StringNoneOrBuilder.java | 23 - .../conformance/cases/StringNotAddress.java | 501 -- .../cases/StringNotAddressOrBuilder.java | 23 - .../conformance/cases/StringNotContains.java | 501 -- .../cases/StringNotContainsOrBuilder.java | 23 - .../conformance/cases/StringNotEmail.java | 501 -- .../cases/StringNotEmailOrBuilder.java | 23 - .../conformance/cases/StringNotHostname.java | 501 -- .../cases/StringNotHostnameOrBuilder.java | 23 - .../conformance/cases/StringNotIP.java | 501 -- .../cases/StringNotIPOrBuilder.java | 23 - .../conformance/cases/StringNotIPPrefix.java | 501 -- .../cases/StringNotIPPrefixOrBuilder.java | 23 - .../cases/StringNotIPWithPrefixLen.java | 501 -- .../StringNotIPWithPrefixLenOrBuilder.java | 23 - .../conformance/cases/StringNotIPv4.java | 501 -- .../cases/StringNotIPv4OrBuilder.java | 23 - .../cases/StringNotIPv4Prefix.java | 501 -- .../cases/StringNotIPv4PrefixOrBuilder.java | 23 - .../cases/StringNotIPv4WithPrefixLen.java | 501 -- .../StringNotIPv4WithPrefixLenOrBuilder.java | 23 - .../conformance/cases/StringNotIPv6.java | 501 -- .../cases/StringNotIPv6OrBuilder.java | 23 - .../cases/StringNotIPv6Prefix.java | 501 -- .../cases/StringNotIPv6PrefixOrBuilder.java | 23 - .../cases/StringNotIPv6WithPrefixLen.java | 501 -- .../StringNotIPv6WithPrefixLenOrBuilder.java | 23 - .../conformance/cases/StringNotIn.java | 501 -- .../cases/StringNotInOrBuilder.java | 23 - .../conformance/cases/StringNotTUUID.java | 501 -- .../cases/StringNotTUUIDOrBuilder.java | 23 - .../conformance/cases/StringNotURI.java | 501 -- .../cases/StringNotURIOrBuilder.java | 23 - .../conformance/cases/StringNotURIRef.java | 501 -- .../cases/StringNotURIRefOrBuilder.java | 23 - .../conformance/cases/StringNotUUID.java | 501 -- .../cases/StringNotUUIDOrBuilder.java | 23 - .../conformance/cases/StringPattern.java | 501 -- .../cases/StringPatternEscapes.java | 501 -- .../cases/StringPatternEscapesOrBuilder.java | 23 - .../cases/StringPatternOrBuilder.java | 23 - .../conformance/cases/StringPrefix.java | 501 -- .../cases/StringPrefixOrBuilder.java | 23 - .../conformance/cases/StringSuffix.java | 501 -- .../cases/StringSuffixOrBuilder.java | 23 - .../conformance/cases/StringTUUID.java | 501 -- .../cases/StringTUUIDOrBuilder.java | 23 - .../validate/conformance/cases/StringURI.java | 501 -- .../conformance/cases/StringURIOrBuilder.java | 23 - .../conformance/cases/StringURIRef.java | 501 -- .../cases/StringURIRefOrBuilder.java | 23 - .../conformance/cases/StringUUID.java | 501 -- .../conformance/cases/StringUUIDIgnore.java | 501 -- .../cases/StringUUIDIgnoreOrBuilder.java | 23 - .../cases/StringUUIDOrBuilder.java | 23 - .../conformance/cases/StringsProto.java | 809 -- .../validate/conformance/cases/TestEnum.java | 133 - .../conformance/cases/TestEnumAlias.java | 170 - .../validate/conformance/cases/TestMsg.java | 694 -- .../conformance/cases/TestMsgOrBuilder.java | 38 - .../conformance/cases/TestOneofMsg.java | 432 - .../cases/TestOneofMsgOrBuilder.java | 17 - .../conformance/cases/TimestampConst.java | 558 -- .../cases/TimestampConstOrBuilder.java | 26 - .../conformance/cases/TimestampExGTELTE.java | 558 -- .../cases/TimestampExGTELTEOrBuilder.java | 26 - .../conformance/cases/TimestampExLTGT.java | 558 -- .../cases/TimestampExLTGTOrBuilder.java | 26 - .../conformance/cases/TimestampExample.java | 558 -- .../cases/TimestampExampleOrBuilder.java | 26 - .../conformance/cases/TimestampGT.java | 558 -- .../conformance/cases/TimestampGTE.java | 558 -- .../conformance/cases/TimestampGTELTE.java | 558 -- .../cases/TimestampGTELTEOrBuilder.java | 26 - .../cases/TimestampGTEOrBuilder.java | 26 - .../conformance/cases/TimestampGTLT.java | 558 -- .../cases/TimestampGTLTOrBuilder.java | 26 - .../conformance/cases/TimestampGTNow.java | 558 -- .../cases/TimestampGTNowOrBuilder.java | 26 - .../cases/TimestampGTNowWithin.java | 558 -- .../cases/TimestampGTNowWithinOrBuilder.java | 26 - .../cases/TimestampGTOrBuilder.java | 26 - .../conformance/cases/TimestampLT.java | 558 -- .../conformance/cases/TimestampLTE.java | 558 -- .../cases/TimestampLTEOrBuilder.java | 26 - .../conformance/cases/TimestampLTNow.java | 558 -- .../cases/TimestampLTNowOrBuilder.java | 26 - .../cases/TimestampLTNowWithin.java | 558 -- .../cases/TimestampLTNowWithinOrBuilder.java | 26 - .../cases/TimestampLTOrBuilder.java | 26 - .../conformance/cases/TimestampNone.java | 558 -- .../cases/TimestampNoneOrBuilder.java | 26 - .../conformance/cases/TimestampNotGTNow.java | 558 -- .../cases/TimestampNotGTNowOrBuilder.java | 26 - .../conformance/cases/TimestampNotLTNow.java | 558 -- .../cases/TimestampNotLTNowOrBuilder.java | 26 - .../conformance/cases/TimestampRequired.java | 558 -- .../cases/TimestampRequiredOrBuilder.java | 26 - .../conformance/cases/TimestampWithin.java | 558 -- .../cases/TimestampWithinOrBuilder.java | 26 - .../conformance/cases/UInt32Const.java | 431 - .../cases/UInt32ConstOrBuilder.java | 17 - .../conformance/cases/UInt32ExGTELTE.java | 431 - .../cases/UInt32ExGTELTEOrBuilder.java | 17 - .../conformance/cases/UInt32ExLTGT.java | 431 - .../cases/UInt32ExLTGTOrBuilder.java | 17 - .../conformance/cases/UInt32Example.java | 431 - .../cases/UInt32ExampleOrBuilder.java | 17 - .../validate/conformance/cases/UInt32GT.java | 431 - .../validate/conformance/cases/UInt32GTE.java | 431 - .../conformance/cases/UInt32GTELTE.java | 431 - .../cases/UInt32GTELTEOrBuilder.java | 17 - .../conformance/cases/UInt32GTEOrBuilder.java | 17 - .../conformance/cases/UInt32GTLT.java | 431 - .../cases/UInt32GTLTOrBuilder.java | 17 - .../conformance/cases/UInt32GTOrBuilder.java | 17 - .../conformance/cases/UInt32Ignore.java | 431 - .../cases/UInt32IgnoreOrBuilder.java | 17 - .../validate/conformance/cases/UInt32In.java | 431 - .../conformance/cases/UInt32InOrBuilder.java | 17 - .../cases/UInt32IncorrectType.java | 431 - .../cases/UInt32IncorrectTypeOrBuilder.java | 17 - .../validate/conformance/cases/UInt32LT.java | 431 - .../validate/conformance/cases/UInt32LTE.java | 431 - .../conformance/cases/UInt32LTEOrBuilder.java | 17 - .../conformance/cases/UInt32LTOrBuilder.java | 17 - .../conformance/cases/UInt32None.java | 431 - .../cases/UInt32NoneOrBuilder.java | 17 - .../conformance/cases/UInt32NotIn.java | 431 - .../cases/UInt32NotInOrBuilder.java | 17 - .../conformance/cases/UInt64Const.java | 432 - .../cases/UInt64ConstOrBuilder.java | 17 - .../conformance/cases/UInt64ExGTELTE.java | 432 - .../cases/UInt64ExGTELTEOrBuilder.java | 17 - .../conformance/cases/UInt64ExLTGT.java | 432 - .../cases/UInt64ExLTGTOrBuilder.java | 17 - .../conformance/cases/UInt64Example.java | 432 - .../cases/UInt64ExampleOrBuilder.java | 17 - .../validate/conformance/cases/UInt64GT.java | 432 - .../validate/conformance/cases/UInt64GTE.java | 432 - .../conformance/cases/UInt64GTELTE.java | 432 - .../cases/UInt64GTELTEOrBuilder.java | 17 - .../conformance/cases/UInt64GTEOrBuilder.java | 17 - .../conformance/cases/UInt64GTLT.java | 432 - .../cases/UInt64GTLTOrBuilder.java | 17 - .../conformance/cases/UInt64GTOrBuilder.java | 17 - .../conformance/cases/UInt64Ignore.java | 432 - .../cases/UInt64IgnoreOrBuilder.java | 17 - .../validate/conformance/cases/UInt64In.java | 432 - .../conformance/cases/UInt64InOrBuilder.java | 17 - .../cases/UInt64IncorrectType.java | 432 - .../cases/UInt64IncorrectTypeOrBuilder.java | 17 - .../validate/conformance/cases/UInt64LT.java | 432 - .../validate/conformance/cases/UInt64LTE.java | 432 - .../conformance/cases/UInt64LTEOrBuilder.java | 17 - .../conformance/cases/UInt64LTOrBuilder.java | 17 - .../conformance/cases/UInt64None.java | 432 - .../cases/UInt64NoneOrBuilder.java | 17 - .../conformance/cases/UInt64NotIn.java | 432 - .../cases/UInt64NotInOrBuilder.java | 17 - .../conformance/cases/WktAnyProto.java | 116 - .../conformance/cases/WktDurationProto.java | 259 - .../conformance/cases/WktLevelOne.java | 1638 ---- .../cases/WktLevelOneOrBuilder.java | 26 - .../conformance/cases/WktNestedProto.java | 101 - .../conformance/cases/WktTimestampProto.java | 310 - .../conformance/cases/WktWrappersProto.java | 246 - .../conformance/cases/WrapperBool.java | 558 -- .../cases/WrapperBoolOrBuilder.java | 26 - .../conformance/cases/WrapperBytes.java | 558 -- .../cases/WrapperBytesOrBuilder.java | 26 - .../conformance/cases/WrapperDouble.java | 558 -- .../cases/WrapperDoubleOrBuilder.java | 26 - .../conformance/cases/WrapperFloat.java | 558 -- .../cases/WrapperFloatOrBuilder.java | 26 - .../conformance/cases/WrapperInt32.java | 558 -- .../cases/WrapperInt32OrBuilder.java | 26 - .../conformance/cases/WrapperInt64.java | 558 -- .../cases/WrapperInt64OrBuilder.java | 26 - .../conformance/cases/WrapperNone.java | 558 -- .../cases/WrapperNoneOrBuilder.java | 26 - .../cases/WrapperOptionalUuidString.java | 558 -- .../WrapperOptionalUuidStringOrBuilder.java | 26 - .../cases/WrapperRequiredEmptyString.java | 558 -- .../WrapperRequiredEmptyStringOrBuilder.java | 26 - .../cases/WrapperRequiredFloat.java | 558 -- .../cases/WrapperRequiredFloatOrBuilder.java | 26 - .../cases/WrapperRequiredString.java | 558 -- .../cases/WrapperRequiredStringOrBuilder.java | 26 - .../conformance/cases/WrapperString.java | 558 -- .../cases/WrapperStringOrBuilder.java | 26 - .../conformance/cases/WrapperUInt32.java | 558 -- .../cases/WrapperUInt32OrBuilder.java | 26 - .../conformance/cases/WrapperUInt64.java | 558 -- .../cases/WrapperUInt64OrBuilder.java | 26 - .../CustomConstraintsProto.java | 654 -- .../custom_constraints/DynRuntimeError.java | 431 - .../DynRuntimeErrorOrBuilder.java | 17 - .../cases/custom_constraints/Enum.java | 124 - .../FieldExpressionEnum.java | 459 - .../FieldExpressionEnumOrBuilder.java | 22 - .../FieldExpressionMapEnum.java | 785 -- .../FieldExpressionMapEnumOrBuilder.java | 67 - .../FieldExpressionMapEnumValues.java | 785 -- ...FieldExpressionMapEnumValuesOrBuilder.java | 67 - .../FieldExpressionMapKeys.java | 640 -- .../FieldExpressionMapKeysOrBuilder.java | 43 - .../FieldExpressionMapMessage.java | 1105 --- .../FieldExpressionMapMessageOrBuilder.java | 45 - .../FieldExpressionMapMessageValues.java | 1105 --- ...ldExpressionMapMessageValuesOrBuilder.java | 45 - .../FieldExpressionMapScalar.java | 640 -- .../FieldExpressionMapScalarOrBuilder.java | 43 - .../FieldExpressionMapScalarValues.java | 640 -- ...eldExpressionMapScalarValuesOrBuilder.java | 43 - .../FieldExpressionMessage.java | 992 --- .../FieldExpressionMessageOrBuilder.java | 26 - .../FieldExpressionMultipleScalar.java | 431 - ...ieldExpressionMultipleScalarOrBuilder.java | 17 - .../FieldExpressionNestedScalar.java | 558 -- .../FieldExpressionNestedScalarOrBuilder.java | 26 - .../FieldExpressionOptionalScalar.java | 456 - ...ieldExpressionOptionalScalarOrBuilder.java | 22 - .../FieldExpressionRepeatedEnum.java | 627 -- .../FieldExpressionRepeatedEnumItems.java | 627 -- ...dExpressionRepeatedEnumItemsOrBuilder.java | 40 - .../FieldExpressionRepeatedEnumOrBuilder.java | 40 - .../FieldExpressionRepeatedMessage.java | 1153 --- .../FieldExpressionRepeatedMessageItems.java | 1153 --- ...pressionRepeatedMessageItemsOrBuilder.java | 35 - ...eldExpressionRepeatedMessageOrBuilder.java | 35 - .../FieldExpressionRepeatedScalar.java | 540 -- .../FieldExpressionRepeatedScalarItems.java | 540 -- ...xpressionRepeatedScalarItemsOrBuilder.java | 28 - ...ieldExpressionRepeatedScalarOrBuilder.java | 28 - .../FieldExpressionScalar.java | 431 - .../FieldExpressionScalarOrBuilder.java | 17 - .../custom_constraints/IncorrectType.java | 431 - .../IncorrectTypeOrBuilder.java | 17 - .../MessageExpressions.java | 1577 ---- .../MessageExpressionsOrBuilder.java | 75 - .../custom_constraints/MissingField.java | 431 - .../MissingFieldOrBuilder.java | 17 - .../custom_constraints/NoExpressions.java | 1081 --- .../NoExpressionsOrBuilder.java | 43 - .../custom_constraints/NowEqualsNow.java | 358 - .../NowEqualsNowOrBuilder.java | 11 - .../cases/other_package/Embed.java | 1029 --- .../cases/other_package/EmbedOrBuilder.java | 17 - .../cases/other_package/EmbedProto.java | 91 - .../subdirectory/InSubdirectoryProto.java | 59 - .../cases/yet_another_package/Embed.java | 557 -- .../yet_another_package/Embed2Proto.java | 78 - .../yet_another_package/EmbedOrBuilder.java | 17 - .../conformance/harness/CaseResult.java | 1410 --- .../harness/CaseResultOrBuilder.java | 132 - .../conformance/harness/HarnessProto.java | 136 - .../conformance/harness/ResultOptions.java | 952 -- .../harness/ResultOptionsOrBuilder.java | 81 - .../conformance/harness/ResultSet.java | 1318 --- .../harness/ResultSetOrBuilder.java | 112 - .../conformance/harness/ResultsProto.java | 132 - .../conformance/harness/SuiteResults.java | 1482 ---- .../harness/SuiteResultsOrBuilder.java | 132 - .../harness/TestConformanceRequest.java | 887 -- .../TestConformanceRequestOrBuilder.java | 60 - .../harness/TestConformanceResponse.java | 681 -- .../TestConformanceResponseOrBuilder.java | 45 - .../conformance/harness/TestResult.java | 1447 ---- .../harness/TestResultOrBuilder.java | 146 - gradle/wrapper/gradle-wrapper.jar | Bin 43583 -> 43705 bytes gradle/wrapper/gradle-wrapper.properties | 2 +- gradlew | 5 +- .../java/build/buf/validate/AnyRules.java | 1061 --- .../build/buf/validate/AnyRulesOrBuilder.java | 157 - .../java/build/buf/validate/BoolRules.java | 875 -- .../buf/validate/BoolRulesOrBuilder.java | 109 - .../java/build/buf/validate/BytesRules.java | 3291 ------- .../buf/validate/BytesRulesOrBuilder.java | 611 -- .../java/build/buf/validate/Constraint.java | 1055 --- .../buf/validate/ConstraintOrBuilder.java | 119 - .../java/build/buf/validate/DoubleRules.java | 2517 ------ .../buf/validate/DoubleRulesOrBuilder.java | 426 - .../build/buf/validate/DurationRules.java | 4557 ---------- .../buf/validate/DurationRulesOrBuilder.java | 616 -- .../java/build/buf/validate/EnumRules.java | 1849 ---- .../buf/validate/EnumRulesOrBuilder.java | 328 - .../build/buf/validate/FieldConstraints.java | 6331 -------------- .../validate/FieldConstraintsOrBuilder.java | 567 -- .../java/build/buf/validate/FieldPath.java | 825 -- .../build/buf/validate/FieldPathElement.java | 1882 ---- .../validate/FieldPathElementOrBuilder.java | 250 - .../buf/validate/FieldPathOrBuilder.java | 55 - .../java/build/buf/validate/Fixed32Rules.java | 2386 ----- .../buf/validate/Fixed32RulesOrBuilder.java | 405 - .../java/build/buf/validate/Fixed64Rules.java | 2391 ------ .../buf/validate/Fixed64RulesOrBuilder.java | 405 - .../java/build/buf/validate/FloatRules.java | 2517 ------ .../buf/validate/FloatRulesOrBuilder.java | 426 - src/main/java/build/buf/validate/Ignore.java | 427 - .../java/build/buf/validate/Int32Rules.java | 2376 ----- .../buf/validate/Int32RulesOrBuilder.java | 405 - .../java/build/buf/validate/Int64Rules.java | 2381 ----- .../buf/validate/Int64RulesOrBuilder.java | 405 - .../java/build/buf/validate/KnownRegex.java | 141 - .../java/build/buf/validate/MapRules.java | 1521 ---- .../build/buf/validate/MapRulesOrBuilder.java | 214 - .../buf/validate/MessageConstraints.java | 1330 --- .../validate/MessageConstraintsOrBuilder.java | 165 - .../build/buf/validate/OneofConstraints.java | 587 -- .../validate/OneofConstraintsOrBuilder.java | 62 - .../buf/validate/PredefinedConstraints.java | 1120 --- .../PredefinedConstraintsOrBuilder.java | 120 - .../build/buf/validate/RepeatedRules.java | 1324 --- .../buf/validate/RepeatedRulesOrBuilder.java | 196 - .../build/buf/validate/SFixed32Rules.java | 2386 ----- .../buf/validate/SFixed32RulesOrBuilder.java | 405 - .../build/buf/validate/SFixed64Rules.java | 2391 ------ .../buf/validate/SFixed64RulesOrBuilder.java | 405 - .../java/build/buf/validate/SInt32Rules.java | 2374 ----- .../buf/validate/SInt32RulesOrBuilder.java | 405 - .../java/build/buf/validate/SInt64Rules.java | 2379 ----- .../buf/validate/SInt64RulesOrBuilder.java | 405 - .../java/build/buf/validate/StringRules.java | 7636 ----------------- .../buf/validate/StringRulesOrBuilder.java | 1567 ---- .../build/buf/validate/TimestampRules.java | 3450 -------- .../buf/validate/TimestampRulesOrBuilder.java | 454 - .../java/build/buf/validate/UInt32Rules.java | 2376 ----- .../buf/validate/UInt32RulesOrBuilder.java | 405 - .../java/build/buf/validate/UInt64Rules.java | 2381 ----- .../buf/validate/UInt64RulesOrBuilder.java | 405 - .../build/buf/validate/ValidateProto.java | 1827 ---- .../java/build/buf/validate/Violation.java | 1932 ----- .../buf/validate/ViolationOrBuilder.java | 283 - .../java/build/buf/validate/Violations.java | 823 -- .../buf/validate/ViolationsOrBuilder.java | 55 - 1705 files changed, 28 insertions(+), 577665 deletions(-) delete mode 100644 .gitattributes delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/AnEnum.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/AnyIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/AnyInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/AnyNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/AnyNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequired.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequiredOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalse.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalseOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrue.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrueOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BoolExample.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BoolExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BoolNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BoolNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BoolProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesConst.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesContains.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesContainsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesExample.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesIP.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6Ignore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6IgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIP.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv4.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv4OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv6.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv6OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesPattern.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesPatternOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefix.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefixOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffix.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffixOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestEnum.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsg.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsgOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConst.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExample.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFinite.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFiniteOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotFinite.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotFiniteOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationConst.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationExample.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFields.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFieldsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequired.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequiredOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Embed.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EmbedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConst.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefined.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefinedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumConst.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefined.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefinedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumExample.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternalOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneof.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneofOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/EnumsProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FilenameWithDashProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Const.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Example.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Ignore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32In.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32InOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32None.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Const.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Example.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Ignore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64In.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64InOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64None.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatConst.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatExample.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatFinite.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatFiniteOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotFinite.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotFiniteOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMap.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMapOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresence.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceDelimited.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceDelimitedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequired.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredDelimited.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredDelimitedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsOneof.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsOneofOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeated.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedExpanded.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedExpandedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresence.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarImplicitPresence.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarImplicitPresenceOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequired.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairs.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Map.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MapOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Message.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MessageOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Oneof.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2OneofOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Proto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Repeated.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2RepeatedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptional.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequired.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequiredOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Map.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MapOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Message.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MessageOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Oneof.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OneofOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalar.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalarOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Proto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Repeated.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3RepeatedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Scalar.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3ScalarOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProtoEditionsProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItems.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItemsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto2Proto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto3Proto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProtoEditionsProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32Const.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32ConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32Example.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32GT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32Ignore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32IgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32In.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32InOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32LT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32None.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32NoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraints.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraintsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64Const.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64ConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64Example.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64GT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64Ignore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64IgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64In.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64InOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64LT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptional.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptionalOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64None.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64NoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsEmail.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsEmailOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsHostAndPort.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsHostAndPortOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsHostname.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsHostnameOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsIp.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsIpOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsIpPrefix.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsIpPrefixOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsUri.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsUriOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsUriRef.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/IsUriRefOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessage.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessageOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/LibraryProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefined.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefinedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapExact.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapExactOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefined.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefinedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapKeys.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPattern.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPatternOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapMax.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapMaxOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapMin.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMax.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMaxOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapMinOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursive.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursiveOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapValues.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPattern.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPatternOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MapsProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Message.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackage.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackageOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabled.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabledOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequired.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptional.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptionalOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneof.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneofOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkip.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkipOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInside.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInsideOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MessagesProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMaps.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMapsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/NumbersProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Oneof.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/OneofNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/OneofNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/OneofOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequired.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredField.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredFieldOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/OneofsProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto2Proto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3Proto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3UnusedImportBugWorkaround.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3UnusedImportBugWorkaroundOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProtoEditionsProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmpty.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmptyOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecified.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecifiedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDuration.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDurationOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkip.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkipOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefined.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefinedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExact.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefined.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefinedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPattern.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPatternOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRule.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRuleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMax.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMaxOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMin.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMax.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMaxOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUnique.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUniqueOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNotUnique.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNotUniqueOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUnique.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUniqueOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefined.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefinedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMap.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresence.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimited.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequired.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredDelimited.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredDelimitedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneof.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeated.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpanded.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresence.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresence.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarLegacyRequired.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarLegacyRequiredOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto2Proto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto3Proto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProtoEditionsProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Map.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Message.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Oneof.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Repeated.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptional.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefault.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequired.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequiredOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Map.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Message.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOf.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalar.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Repeated.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Scalar.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarIgnoreAlways.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarIgnoreAlwaysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Const.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Example.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Ignore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32In.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32InOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32None.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Const.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Example.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Ignore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64In.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64InOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64None.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Const.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Example.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Ignore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32In.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32InOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32None.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Const.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Example.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Ignore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64In.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64InOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64None.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleEdition2023.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleEdition2023OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto2.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto2OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto3.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto3OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringAddress.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringAddressOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringConst.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringContains.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringContainsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringEmail.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringEmailOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytes.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytesOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringExample.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPort.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPortOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPort.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPortOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHostname.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHostnameOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderName.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLoose.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLooseOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValue.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLoose.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLooseOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIP.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefix.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefixOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4Prefix.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4PrefixOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6Prefix.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6PrefixOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneof.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneofOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytes.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytesOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytes.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytesOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytes.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytesOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytes.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytesOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotAddress.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotAddressOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContains.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContainsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotEmail.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotEmailOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotHostname.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotHostnameOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIP.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPPrefix.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPPrefixOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPWithPrefixLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPWithPrefixLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4Prefix.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4PrefixOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4WithPrefixLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4WithPrefixLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6Prefix.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6PrefixOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6WithPrefixLen.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6WithPrefixLenOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotTUUID.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotTUUIDOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURI.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIRef.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIRefOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotUUID.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringNotUUIDOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringPattern.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapes.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapesOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefix.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefixOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffix.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffixOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUID.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUIDOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringURI.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringURIOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRef.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRefOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringUUID.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/StringsProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TestEnum.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TestEnumAlias.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TestMsg.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TestMsgOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsg.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsgOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConst.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExample.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNow.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithin.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithinOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNow.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithin.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithinOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotGTNow.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotGTNowOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotLTNow.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotLTNowOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequired.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequiredOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithin.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithinOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Const.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Example.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Ignore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32In.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32InOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32None.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Const.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ConstOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Example.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExampleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Ignore.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IgnoreOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64In.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64InOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LT.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTE.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTEOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64None.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotIn.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotInOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WktAnyProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WktDurationProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WktLevelOne.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WktLevelOneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WktNestedProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WktTimestampProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WktWrappersProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBool.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBoolOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytes.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytesOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDouble.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDoubleOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloat.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloatOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNone.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNoneOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidString.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidStringOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyString.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyStringOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloat.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloatOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredString.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredStringOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperString.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperStringOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64OrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/CustomConstraintsProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/DynRuntimeError.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/DynRuntimeErrorOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/Enum.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionEnum.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionEnumOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnum.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumValues.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumValuesOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapKeys.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapKeysOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessage.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageValues.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageValuesOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalar.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarValues.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarValuesOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMessage.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMessageOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMultipleScalar.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMultipleScalarOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionNestedScalar.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionNestedScalarOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionOptionalScalar.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionOptionalScalarOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnum.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumItems.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumItemsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessage.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageItems.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageItemsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalar.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarItems.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarItemsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionScalar.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionScalarOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/IncorrectType.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/IncorrectTypeOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MessageExpressions.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MessageExpressionsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MissingField.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MissingFieldOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NoExpressions.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NoExpressionsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NowEqualsNow.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NowEqualsNowOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/other_package/Embed.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/other_package/EmbedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/other_package/EmbedProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/subdirectory/InSubdirectoryProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/Embed.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/Embed2Proto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/EmbedOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/CaseResult.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/CaseResultOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/HarnessProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptions.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptionsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/ResultSet.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/ResultSetOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/ResultsProto.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResults.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResultsOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequest.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequestOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponse.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponseOrBuilder.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/TestResult.java delete mode 100644 conformance/src/main/java/build/buf/validate/conformance/harness/TestResultOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/AnyRules.java delete mode 100644 src/main/java/build/buf/validate/AnyRulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/BoolRules.java delete mode 100644 src/main/java/build/buf/validate/BoolRulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/BytesRules.java delete mode 100644 src/main/java/build/buf/validate/BytesRulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/Constraint.java delete mode 100644 src/main/java/build/buf/validate/ConstraintOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/DoubleRules.java delete mode 100644 src/main/java/build/buf/validate/DoubleRulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/DurationRules.java delete mode 100644 src/main/java/build/buf/validate/DurationRulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/EnumRules.java delete mode 100644 src/main/java/build/buf/validate/EnumRulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/FieldConstraints.java delete mode 100644 src/main/java/build/buf/validate/FieldConstraintsOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/FieldPath.java delete mode 100644 src/main/java/build/buf/validate/FieldPathElement.java delete mode 100644 src/main/java/build/buf/validate/FieldPathElementOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/FieldPathOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/Fixed32Rules.java delete mode 100644 src/main/java/build/buf/validate/Fixed32RulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/Fixed64Rules.java delete mode 100644 src/main/java/build/buf/validate/Fixed64RulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/FloatRules.java delete mode 100644 src/main/java/build/buf/validate/FloatRulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/Ignore.java delete mode 100644 src/main/java/build/buf/validate/Int32Rules.java delete mode 100644 src/main/java/build/buf/validate/Int32RulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/Int64Rules.java delete mode 100644 src/main/java/build/buf/validate/Int64RulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/KnownRegex.java delete mode 100644 src/main/java/build/buf/validate/MapRules.java delete mode 100644 src/main/java/build/buf/validate/MapRulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/MessageConstraints.java delete mode 100644 src/main/java/build/buf/validate/MessageConstraintsOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/OneofConstraints.java delete mode 100644 src/main/java/build/buf/validate/OneofConstraintsOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/PredefinedConstraints.java delete mode 100644 src/main/java/build/buf/validate/PredefinedConstraintsOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/RepeatedRules.java delete mode 100644 src/main/java/build/buf/validate/RepeatedRulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/SFixed32Rules.java delete mode 100644 src/main/java/build/buf/validate/SFixed32RulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/SFixed64Rules.java delete mode 100644 src/main/java/build/buf/validate/SFixed64RulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/SInt32Rules.java delete mode 100644 src/main/java/build/buf/validate/SInt32RulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/SInt64Rules.java delete mode 100644 src/main/java/build/buf/validate/SInt64RulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/StringRules.java delete mode 100644 src/main/java/build/buf/validate/StringRulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/TimestampRules.java delete mode 100644 src/main/java/build/buf/validate/TimestampRulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/UInt32Rules.java delete mode 100644 src/main/java/build/buf/validate/UInt32RulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/UInt64Rules.java delete mode 100644 src/main/java/build/buf/validate/UInt64RulesOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/ValidateProto.java delete mode 100644 src/main/java/build/buf/validate/Violation.java delete mode 100644 src/main/java/build/buf/validate/ViolationOrBuilder.java delete mode 100644 src/main/java/build/buf/validate/Violations.java delete mode 100644 src/main/java/build/buf/validate/ViolationsOrBuilder.java diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 2e6f3e48..00000000 --- a/.gitattributes +++ /dev/null @@ -1,7 +0,0 @@ -# This is similar to the git option core.autocrlf but it applies to all -# users of the repository and therefore doesn't depend on a developers -# local configuration. -* text=auto - -src/main/java/build/buf/validate/**/*.java linguist-generated=true -conformance/src/main/java/build/buf/validate/**/*.java linguist-generated=true diff --git a/buf.gen.yaml b/buf.gen.yaml index 98fa72df..ae26973b 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,4 +1,5 @@ version: v2 +clean: true plugins: - remote: buf.build/protocolbuffers/java:v30.2 - out: src/main/java + out: build/generated/sources/bufgen diff --git a/build.gradle.kts b/build.gradle.kts index f5b11d68..cab51522 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -64,9 +64,9 @@ tasks.register("licenseHeader") { "--year-range", project.findProperty("license-header.years")!!.toString(), "--ignore", - "src/main/java/build/buf/validate/", + "build/generated/sources/bufgen/", "--ignore", - "conformance/src/main/java/build/buf/validate/conformance/", + "conformance/build/generated/sources/bufgen/", "--ignore", "src/main/resources/buf/validate/", ) @@ -109,13 +109,13 @@ tasks.register("exportProtovalidateModule") { tasks.register("generateSources") { dependsOn("exportProtovalidateModule") - description = "Generates sources for the bufbuild/protovalidate module sources to src/main/java." + description = "Generates sources for the bufbuild/protovalidate module sources to build/generated/sources/bufgen." commandLine(buf.asPath, "generate", "--template", "buf.gen.yaml", "src/main/resources") } tasks.register("generateConformance") { dependsOn("configureBuf") - description = "Generates sources for the bufbuild/protovalidate-testing module to conformance/src/main/java." + description = "Generates sources for the bufbuild/protovalidate-testing module to conformance/build/generated/sources/bufgen." commandLine( buf.asPath, "generate", @@ -145,7 +145,7 @@ tasks.withType { } } // Disable errorprone on generated code - options.errorprone.excludedPaths.set("(.*/src/main/java/build/buf/validate/.*|.*/build/generated/.*)") + options.errorprone.excludedPaths.set(".*/build/generated/.*") if (!name.lowercase().contains("test")) { options.errorprone { check("NullAway", CheckSeverity.ERROR) @@ -173,6 +173,11 @@ buildscript { } sourceSets { + main { + java { + srcDir(layout.buildDirectory.dir("generated/sources/bufgen")) + } + } test { java { srcDir(layout.buildDirectory.dir("generated/test-sources/bufgen")) @@ -183,7 +188,7 @@ sourceSets { apply(plugin = "com.diffplug.spotless") configure { java { - targetExclude("src/main/java/build/buf/validate/**/*.java", "build/generated/test-sources/bufgen/**/*.java") + targetExclude("build/generated/sources/bufgen/build/buf/validate/**/*.java", "build/generated/test-sources/bufgen/**/*.java") } kotlinGradle { ktlint() diff --git a/conformance/buf.gen.yaml b/conformance/buf.gen.yaml index a77ae075..49c83869 100644 --- a/conformance/buf.gen.yaml +++ b/conformance/buf.gen.yaml @@ -1,4 +1,5 @@ version: v2 +clean: true managed: enabled: true override: @@ -6,4 +7,4 @@ managed: value: build plugins: - remote: buf.build/protocolbuffers/java:v30.2 - out: src/main/java + out: build/generated/sources/bufgen diff --git a/conformance/build.gradle.kts b/conformance/build.gradle.kts index ad64ff16..0444109f 100644 --- a/conformance/build.gradle.kts +++ b/conformance/build.gradle.kts @@ -39,6 +39,14 @@ tasks.register("conformance") { commandLine(*(listOf(conformanceCLIPath) + conformanceArgs + listOf(conformanceAppScript)).toTypedArray()) } +sourceSets { + main { + java { + srcDir(layout.buildDirectory.dir("generated/sources/bufgen")) + } + } +} + tasks.withType { if (JavaVersion.current().isJava9Compatible) { doFirst { @@ -46,7 +54,7 @@ tasks.withType { } } // Disable errorprone on generated code - options.errorprone.excludedPaths.set(".*/src/main/java/build/buf/validate/conformance/.*") + options.errorprone.excludedPaths.set(".*/build/generated/sources/bufgen/.*") } // Disable javadoc for conformance tests @@ -81,7 +89,7 @@ tasks { apply(plugin = "com.diffplug.spotless") configure { java { - targetExclude("src/main/java/build/buf/validate/**/*.java") + targetExclude("build/generated/sources/bufgen/**/*.java") } } diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/AnEnum.java b/conformance/src/main/java/build/buf/validate/conformance/cases/AnEnum.java deleted file mode 100644 index aa3c3f5d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnEnum.java +++ /dev/null @@ -1,133 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf enum {@code buf.validate.conformance.cases.AnEnum} - */ -public enum AnEnum - implements com.google.protobuf.ProtocolMessageEnum { - /** - * AN_ENUM_UNSPECIFIED = 0; - */ - AN_ENUM_UNSPECIFIED(0), - /** - * AN_ENUM_X = 1; - */ - AN_ENUM_X(1), - /** - * AN_ENUM_Y = 2; - */ - AN_ENUM_Y(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - AnEnum.class.getName()); - } - /** - * AN_ENUM_UNSPECIFIED = 0; - */ - public static final int AN_ENUM_UNSPECIFIED_VALUE = 0; - /** - * AN_ENUM_X = 1; - */ - public static final int AN_ENUM_X_VALUE = 1; - /** - * AN_ENUM_Y = 2; - */ - public static final int AN_ENUM_Y_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AnEnum valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static AnEnum forNumber(int value) { - switch (value) { - case 0: return AN_ENUM_UNSPECIFIED; - case 1: return AN_ENUM_X; - case 2: return AN_ENUM_Y; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AnEnum> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AnEnum findValueByNumber(int number) { - return AnEnum.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.getDescriptor().getEnumTypes().get(0); - } - - private static final AnEnum[] VALUES = values(); - - public static AnEnum valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AnEnum(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.AnEnum) -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyIn.java deleted file mode 100644 index 3d7c230f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyIn.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_any.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.AnyIn} - */ -public final class AnyIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.AnyIn) - AnyInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - AnyIn.class.getName()); - } - // Use AnyIn.newBuilder() to construct. - private AnyIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private AnyIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.AnyIn.class, build.buf.validate.conformance.cases.AnyIn.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Any val_; - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Any getVal() { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.AnyIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.AnyIn other = (build.buf.validate.conformance.cases.AnyIn) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.AnyIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyIn 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.AnyIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyIn 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.AnyIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyIn 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.AnyIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.AnyIn 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.AnyIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.AnyIn 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.AnyIn 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.AnyIn 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.AnyIn 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.AnyIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.AnyIn) - build.buf.validate.conformance.cases.AnyInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.AnyIn.class, build.buf.validate.conformance.cases.AnyIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.AnyIn.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.AnyIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyIn build() { - build.buf.validate.conformance.cases.AnyIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyIn buildPartial() { - build.buf.validate.conformance.cases.AnyIn result = new build.buf.validate.conformance.cases.AnyIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.AnyIn result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.AnyIn) { - return mergeFrom((build.buf.validate.conformance.cases.AnyIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.AnyIn other) { - if (other == build.buf.validate.conformance.cases.AnyIn.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Any val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valBuilder_; - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Any getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Any value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Any.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Any value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Any.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.AnyOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Any.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.AnyIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.AnyIn) - private static final build.buf.validate.conformance.cases.AnyIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.AnyIn(); - } - - public static build.buf.validate.conformance.cases.AnyIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnyIn 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.AnyIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyInOrBuilder.java deleted file mode 100644 index 8735e12e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyInOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_any.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface AnyInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.AnyIn) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Any getVal(); - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.AnyOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNone.java deleted file mode 100644 index 49d16d0d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNone.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_any.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.AnyNone} - */ -public final class AnyNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.AnyNone) - AnyNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - AnyNone.class.getName()); - } - // Use AnyNone.newBuilder() to construct. - private AnyNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private AnyNone() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.AnyNone.class, build.buf.validate.conformance.cases.AnyNone.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Any val_; - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Any getVal() { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.AnyNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.AnyNone other = (build.buf.validate.conformance.cases.AnyNone) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.AnyNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyNone 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.AnyNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyNone 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.AnyNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyNone 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.AnyNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.AnyNone 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.AnyNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.AnyNone 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.AnyNone 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.AnyNone 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.AnyNone 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.AnyNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.AnyNone) - build.buf.validate.conformance.cases.AnyNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.AnyNone.class, build.buf.validate.conformance.cases.AnyNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.AnyNone.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.AnyNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyNone build() { - build.buf.validate.conformance.cases.AnyNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyNone buildPartial() { - build.buf.validate.conformance.cases.AnyNone result = new build.buf.validate.conformance.cases.AnyNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.AnyNone result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.AnyNone) { - return mergeFrom((build.buf.validate.conformance.cases.AnyNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.AnyNone other) { - if (other == build.buf.validate.conformance.cases.AnyNone.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Any val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valBuilder_; - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - * @return The val. - */ - public com.google.protobuf.Any getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - */ - public Builder setVal(com.google.protobuf.Any value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - */ - public Builder setVal( - com.google.protobuf.Any.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - */ - public Builder mergeVal(com.google.protobuf.Any value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Any.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - */ - public com.google.protobuf.Any.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - */ - public com.google.protobuf.AnyOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Any.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.AnyNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.AnyNone) - private static final build.buf.validate.conformance.cases.AnyNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.AnyNone(); - } - - public static build.buf.validate.conformance.cases.AnyNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnyNone 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.AnyNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNoneOrBuilder.java deleted file mode 100644 index 5533c543..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNoneOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_any.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface AnyNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.AnyNone) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - * @return The val. - */ - com.google.protobuf.Any getVal(); - /** - * .google.protobuf.Any val = 1 [json_name = "val"]; - */ - com.google.protobuf.AnyOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotIn.java deleted file mode 100644 index 6eeda0bb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotIn.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_any.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.AnyNotIn} - */ -public final class AnyNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.AnyNotIn) - AnyNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - AnyNotIn.class.getName()); - } - // Use AnyNotIn.newBuilder() to construct. - private AnyNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private AnyNotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.AnyNotIn.class, build.buf.validate.conformance.cases.AnyNotIn.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Any val_; - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Any getVal() { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.AnyNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.AnyNotIn other = (build.buf.validate.conformance.cases.AnyNotIn) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.AnyNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyNotIn 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.AnyNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyNotIn 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.AnyNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyNotIn 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.AnyNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.AnyNotIn 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.AnyNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.AnyNotIn 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.AnyNotIn 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.AnyNotIn 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.AnyNotIn 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.AnyNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.AnyNotIn) - build.buf.validate.conformance.cases.AnyNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.AnyNotIn.class, build.buf.validate.conformance.cases.AnyNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.AnyNotIn.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.AnyNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyNotIn build() { - build.buf.validate.conformance.cases.AnyNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyNotIn buildPartial() { - build.buf.validate.conformance.cases.AnyNotIn result = new build.buf.validate.conformance.cases.AnyNotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.AnyNotIn result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.AnyNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.AnyNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.AnyNotIn other) { - if (other == build.buf.validate.conformance.cases.AnyNotIn.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Any val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valBuilder_; - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Any getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Any value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Any.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Any value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Any.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.AnyOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Any.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.AnyNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.AnyNotIn) - private static final build.buf.validate.conformance.cases.AnyNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.AnyNotIn(); - } - - public static build.buf.validate.conformance.cases.AnyNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnyNotIn 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.AnyNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotInOrBuilder.java deleted file mode 100644 index d3abbe25..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyNotInOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_any.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface AnyNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.AnyNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Any getVal(); - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.AnyOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequired.java b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequired.java deleted file mode 100644 index d0983202..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequired.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_any.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.AnyRequired} - */ -public final class AnyRequired extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.AnyRequired) - AnyRequiredOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - AnyRequired.class.getName()); - } - // Use AnyRequired.newBuilder() to construct. - private AnyRequired(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private AnyRequired() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.AnyRequired.class, build.buf.validate.conformance.cases.AnyRequired.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Any val_; - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Any getVal() { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.AnyRequired)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.AnyRequired other = (build.buf.validate.conformance.cases.AnyRequired) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.AnyRequired parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyRequired 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.AnyRequired parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyRequired 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.AnyRequired parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.AnyRequired 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.AnyRequired parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.AnyRequired 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.AnyRequired parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.AnyRequired 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.AnyRequired 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.AnyRequired 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.AnyRequired 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.AnyRequired} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.AnyRequired) - build.buf.validate.conformance.cases.AnyRequiredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.AnyRequired.class, build.buf.validate.conformance.cases.AnyRequired.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.AnyRequired.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktAnyProto.internal_static_buf_validate_conformance_cases_AnyRequired_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyRequired getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.AnyRequired.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyRequired build() { - build.buf.validate.conformance.cases.AnyRequired result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.AnyRequired buildPartial() { - build.buf.validate.conformance.cases.AnyRequired result = new build.buf.validate.conformance.cases.AnyRequired(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.AnyRequired result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.AnyRequired) { - return mergeFrom((build.buf.validate.conformance.cases.AnyRequired)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.AnyRequired other) { - if (other == build.buf.validate.conformance.cases.AnyRequired.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Any val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valBuilder_; - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Any getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Any.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Any value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Any.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Any value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Any.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.AnyOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Any.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.AnyRequired) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.AnyRequired) - private static final build.buf.validate.conformance.cases.AnyRequired DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.AnyRequired(); - } - - public static build.buf.validate.conformance.cases.AnyRequired getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnyRequired 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.AnyRequired getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequiredOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequiredOrBuilder.java deleted file mode 100644 index b7e9ebeb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/AnyRequiredOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_any.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface AnyRequiredOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.AnyRequired) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Any getVal(); - /** - * .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.AnyOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalse.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalse.java deleted file mode 100644 index f6f42807..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalse.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bool.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BoolConstFalse} - */ -public final class BoolConstFalse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BoolConstFalse) - BoolConstFalseOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BoolConstFalse.class.getName()); - } - // Use BoolConstFalse.newBuilder() to construct. - private BoolConstFalse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BoolConstFalse() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstFalse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstFalse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BoolConstFalse.class, build.buf.validate.conformance.cases.BoolConstFalse.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private boolean val_ = false; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - - 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 { - if (val_ != false) { - output.writeBool(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, val_); - } - 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.BoolConstFalse)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BoolConstFalse other = (build.buf.validate.conformance.cases.BoolConstFalse) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BoolConstFalse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolConstFalse 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.BoolConstFalse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolConstFalse 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.BoolConstFalse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolConstFalse 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.BoolConstFalse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BoolConstFalse 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.BoolConstFalse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BoolConstFalse 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.BoolConstFalse 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.BoolConstFalse 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.BoolConstFalse 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.BoolConstFalse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BoolConstFalse) - build.buf.validate.conformance.cases.BoolConstFalseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstFalse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstFalse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BoolConstFalse.class, build.buf.validate.conformance.cases.BoolConstFalse.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BoolConstFalse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstFalse_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolConstFalse getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BoolConstFalse.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolConstFalse build() { - build.buf.validate.conformance.cases.BoolConstFalse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolConstFalse buildPartial() { - build.buf.validate.conformance.cases.BoolConstFalse result = new build.buf.validate.conformance.cases.BoolConstFalse(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BoolConstFalse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BoolConstFalse) { - return mergeFrom((build.buf.validate.conformance.cases.BoolConstFalse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BoolConstFalse other) { - if (other == build.buf.validate.conformance.cases.BoolConstFalse.getDefaultInstance()) return this; - if (other.getVal() != false) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 boolean val_ ; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(boolean value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BoolConstFalse) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BoolConstFalse) - private static final build.buf.validate.conformance.cases.BoolConstFalse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BoolConstFalse(); - } - - public static build.buf.validate.conformance.cases.BoolConstFalse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoolConstFalse 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.BoolConstFalse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalseOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalseOrBuilder.java deleted file mode 100644 index cc2a927e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstFalseOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bool.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BoolConstFalseOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BoolConstFalse) - com.google.protobuf.MessageOrBuilder { - - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - boolean getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrue.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrue.java deleted file mode 100644 index ed583588..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrue.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bool.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BoolConstTrue} - */ -public final class BoolConstTrue extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BoolConstTrue) - BoolConstTrueOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BoolConstTrue.class.getName()); - } - // Use BoolConstTrue.newBuilder() to construct. - private BoolConstTrue(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BoolConstTrue() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstTrue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstTrue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BoolConstTrue.class, build.buf.validate.conformance.cases.BoolConstTrue.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private boolean val_ = false; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - - 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 { - if (val_ != false) { - output.writeBool(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, val_); - } - 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.BoolConstTrue)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BoolConstTrue other = (build.buf.validate.conformance.cases.BoolConstTrue) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BoolConstTrue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolConstTrue 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.BoolConstTrue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolConstTrue 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.BoolConstTrue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolConstTrue 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.BoolConstTrue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BoolConstTrue 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.BoolConstTrue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BoolConstTrue 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.BoolConstTrue 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.BoolConstTrue 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.BoolConstTrue 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.BoolConstTrue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BoolConstTrue) - build.buf.validate.conformance.cases.BoolConstTrueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstTrue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstTrue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BoolConstTrue.class, build.buf.validate.conformance.cases.BoolConstTrue.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BoolConstTrue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolConstTrue_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolConstTrue getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BoolConstTrue.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolConstTrue build() { - build.buf.validate.conformance.cases.BoolConstTrue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolConstTrue buildPartial() { - build.buf.validate.conformance.cases.BoolConstTrue result = new build.buf.validate.conformance.cases.BoolConstTrue(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BoolConstTrue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BoolConstTrue) { - return mergeFrom((build.buf.validate.conformance.cases.BoolConstTrue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BoolConstTrue other) { - if (other == build.buf.validate.conformance.cases.BoolConstTrue.getDefaultInstance()) return this; - if (other.getVal() != false) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 boolean val_ ; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(boolean value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BoolConstTrue) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BoolConstTrue) - private static final build.buf.validate.conformance.cases.BoolConstTrue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BoolConstTrue(); - } - - public static build.buf.validate.conformance.cases.BoolConstTrue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoolConstTrue 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.BoolConstTrue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrueOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrueOrBuilder.java deleted file mode 100644 index 1415e0a2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolConstTrueOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bool.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BoolConstTrueOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BoolConstTrue) - com.google.protobuf.MessageOrBuilder { - - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - boolean getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolExample.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolExample.java deleted file mode 100644 index 86aca58b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolExample.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bool.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BoolExample} - */ -public final class BoolExample extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BoolExample) - BoolExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BoolExample.class.getName()); - } - // Use BoolExample.newBuilder() to construct. - private BoolExample(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BoolExample() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BoolExample.class, build.buf.validate.conformance.cases.BoolExample.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private boolean val_ = false; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - - 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 { - if (val_ != false) { - output.writeBool(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, val_); - } - 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.BoolExample)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BoolExample other = (build.buf.validate.conformance.cases.BoolExample) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BoolExample parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolExample 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.BoolExample parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolExample 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.BoolExample parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolExample 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.BoolExample parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BoolExample 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.BoolExample parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BoolExample 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.BoolExample 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.BoolExample 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.BoolExample 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.BoolExample} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BoolExample) - build.buf.validate.conformance.cases.BoolExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BoolExample.class, build.buf.validate.conformance.cases.BoolExample.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BoolExample.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolExample_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolExample getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BoolExample.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolExample build() { - build.buf.validate.conformance.cases.BoolExample result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolExample buildPartial() { - build.buf.validate.conformance.cases.BoolExample result = new build.buf.validate.conformance.cases.BoolExample(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BoolExample result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BoolExample) { - return mergeFrom((build.buf.validate.conformance.cases.BoolExample)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BoolExample other) { - if (other == build.buf.validate.conformance.cases.BoolExample.getDefaultInstance()) return this; - if (other.getVal() != false) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 boolean val_ ; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(boolean value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BoolExample) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BoolExample) - private static final build.buf.validate.conformance.cases.BoolExample DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BoolExample(); - } - - public static build.buf.validate.conformance.cases.BoolExample getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoolExample 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.BoolExample getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolExampleOrBuilder.java deleted file mode 100644 index 85d0a44c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bool.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BoolExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BoolExample) - com.google.protobuf.MessageOrBuilder { - - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - boolean getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolNone.java deleted file mode 100644 index 53650dfd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolNone.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bool.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BoolNone} - */ -public final class BoolNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BoolNone) - BoolNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BoolNone.class.getName()); - } - // Use BoolNone.newBuilder() to construct. - private BoolNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BoolNone() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BoolNone.class, build.buf.validate.conformance.cases.BoolNone.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private boolean val_ = false; - /** - * bool val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - - 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 { - if (val_ != false) { - output.writeBool(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, val_); - } - 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.BoolNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BoolNone other = (build.buf.validate.conformance.cases.BoolNone) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BoolNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolNone 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.BoolNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolNone 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.BoolNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BoolNone 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.BoolNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BoolNone 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.BoolNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BoolNone 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.BoolNone 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.BoolNone 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.BoolNone 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.BoolNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BoolNone) - build.buf.validate.conformance.cases.BoolNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BoolNone.class, build.buf.validate.conformance.cases.BoolNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BoolNone.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BoolProto.internal_static_buf_validate_conformance_cases_BoolNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BoolNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolNone build() { - build.buf.validate.conformance.cases.BoolNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BoolNone buildPartial() { - build.buf.validate.conformance.cases.BoolNone result = new build.buf.validate.conformance.cases.BoolNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BoolNone result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BoolNone) { - return mergeFrom((build.buf.validate.conformance.cases.BoolNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BoolNone other) { - if (other == build.buf.validate.conformance.cases.BoolNone.getDefaultInstance()) return this; - if (other.getVal() != false) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 boolean val_ ; - /** - * bool val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - /** - * bool val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(boolean value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BoolNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BoolNone) - private static final build.buf.validate.conformance.cases.BoolNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BoolNone(); - } - - public static build.buf.validate.conformance.cases.BoolNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoolNone 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.BoolNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolNoneOrBuilder.java deleted file mode 100644 index 0babb94d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolNoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bool.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BoolNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BoolNone) - com.google.protobuf.MessageOrBuilder { - - /** - * bool val = 1 [json_name = "val"]; - * @return The val. - */ - boolean getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BoolProto.java deleted file mode 100644 index 0ad7b3e9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BoolProto.java +++ /dev/null @@ -1,110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bool.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class BoolProto { - private BoolProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BoolProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BoolNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BoolNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BoolConstTrue_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BoolConstTrue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BoolConstFalse_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BoolConstFalse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BoolExample_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BoolExample_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)buf/validate/conformance/cases/bool.pr" + - "oto\022\036buf.validate.conformance.cases\032\033buf" + - "/validate/validate.proto\"\034\n\010BoolNone\022\020\n\003" + - "val\030\001 \001(\010R\003val\"*\n\rBoolConstTrue\022\031\n\003val\030\001" + - " \001(\010B\007\272H\004j\002\010\001R\003val\"+\n\016BoolConstFalse\022\031\n\003" + - "val\030\001 \001(\010B\007\272H\004j\002\010\000R\003val\"(\n\013BoolExample\022\031" + - "\n\003val\030\001 \001(\010B\007\272H\004j\002\020\001R\003valB\315\001\n$build.buf." + - "validate.conformance.casesB\tBoolProtoP\001\242" + - "\002\004BVCC\252\002\036Buf.Validate.Conformance.Cases\312" + - "\002\036Buf\\Validate\\Conformance\\Cases\342\002*Buf\\V" + - "alidate\\Conformance\\Cases\\GPBMetadata\352\002!" + - "Buf::Validate::Conformance::Casesb\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_BoolNone_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_BoolNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BoolNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BoolConstTrue_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_BoolConstTrue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BoolConstTrue_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BoolConstFalse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_BoolConstFalse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BoolConstFalse_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BoolExample_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_BoolExample_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BoolExample_descriptor, - new java.lang.String[] { "Val", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesConst.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesConst.java deleted file mode 100644 index 501e6948..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesConst.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesConst} - */ -public final class BytesConst extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesConst) - BytesConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesConst.class.getName()); - } - // Use BytesConst.newBuilder() to construct. - private BytesConst(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesConst() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesConst.class, build.buf.validate.conformance.cases.BytesConst.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesConst)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesConst other = (build.buf.validate.conformance.cases.BytesConst) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesConst parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesConst 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.BytesConst parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesConst 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.BytesConst parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesConst 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.BytesConst parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesConst 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.BytesConst parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesConst 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.BytesConst 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.BytesConst 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.BytesConst 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.BytesConst} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesConst) - build.buf.validate.conformance.cases.BytesConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesConst.class, build.buf.validate.conformance.cases.BytesConst.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesConst.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesConst_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesConst getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesConst.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesConst build() { - build.buf.validate.conformance.cases.BytesConst result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesConst buildPartial() { - build.buf.validate.conformance.cases.BytesConst result = new build.buf.validate.conformance.cases.BytesConst(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesConst result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesConst) { - return mergeFrom((build.buf.validate.conformance.cases.BytesConst)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesConst other) { - if (other == build.buf.validate.conformance.cases.BytesConst.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesConst) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesConst) - private static final build.buf.validate.conformance.cases.BytesConst DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesConst(); - } - - public static build.buf.validate.conformance.cases.BytesConst getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesConst 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.BytesConst getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesConstOrBuilder.java deleted file mode 100644 index 40573007..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesConst) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesContains.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesContains.java deleted file mode 100644 index 95d2b5f9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesContains.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesContains} - */ -public final class BytesContains extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesContains) - BytesContainsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesContains.class.getName()); - } - // Use BytesContains.newBuilder() to construct. - private BytesContains(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesContains() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesContains_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesContains_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesContains.class, build.buf.validate.conformance.cases.BytesContains.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesContains)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesContains other = (build.buf.validate.conformance.cases.BytesContains) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesContains parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesContains 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.BytesContains parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesContains 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.BytesContains parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesContains 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.BytesContains parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesContains 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.BytesContains parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesContains 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.BytesContains 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.BytesContains 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.BytesContains 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.BytesContains} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesContains) - build.buf.validate.conformance.cases.BytesContainsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesContains_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesContains_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesContains.class, build.buf.validate.conformance.cases.BytesContains.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesContains.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesContains_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesContains getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesContains.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesContains build() { - build.buf.validate.conformance.cases.BytesContains result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesContains buildPartial() { - build.buf.validate.conformance.cases.BytesContains result = new build.buf.validate.conformance.cases.BytesContains(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesContains result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesContains) { - return mergeFrom((build.buf.validate.conformance.cases.BytesContains)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesContains other) { - if (other == build.buf.validate.conformance.cases.BytesContains.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesContains) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesContains) - private static final build.buf.validate.conformance.cases.BytesContains DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesContains(); - } - - public static build.buf.validate.conformance.cases.BytesContains getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesContains 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.BytesContains getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesContainsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesContainsOrBuilder.java deleted file mode 100644 index e9b438dc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesContainsOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesContainsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesContains) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLen.java deleted file mode 100644 index a3607fcb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLen.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesEqualMinMaxLen} - */ -public final class BytesEqualMinMaxLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesEqualMinMaxLen) - BytesEqualMinMaxLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesEqualMinMaxLen.class.getName()); - } - // Use BytesEqualMinMaxLen.newBuilder() to construct. - private BytesEqualMinMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesEqualMinMaxLen() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesEqualMinMaxLen.class, build.buf.validate.conformance.cases.BytesEqualMinMaxLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesEqualMinMaxLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesEqualMinMaxLen other = (build.buf.validate.conformance.cases.BytesEqualMinMaxLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesEqualMinMaxLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesEqualMinMaxLen 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.BytesEqualMinMaxLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesEqualMinMaxLen 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.BytesEqualMinMaxLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesEqualMinMaxLen 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.BytesEqualMinMaxLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesEqualMinMaxLen 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.BytesEqualMinMaxLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesEqualMinMaxLen 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.BytesEqualMinMaxLen 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.BytesEqualMinMaxLen 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.BytesEqualMinMaxLen 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.BytesEqualMinMaxLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesEqualMinMaxLen) - build.buf.validate.conformance.cases.BytesEqualMinMaxLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesEqualMinMaxLen.class, build.buf.validate.conformance.cases.BytesEqualMinMaxLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesEqualMinMaxLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesEqualMinMaxLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesEqualMinMaxLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesEqualMinMaxLen build() { - build.buf.validate.conformance.cases.BytesEqualMinMaxLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesEqualMinMaxLen buildPartial() { - build.buf.validate.conformance.cases.BytesEqualMinMaxLen result = new build.buf.validate.conformance.cases.BytesEqualMinMaxLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesEqualMinMaxLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesEqualMinMaxLen) { - return mergeFrom((build.buf.validate.conformance.cases.BytesEqualMinMaxLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesEqualMinMaxLen other) { - if (other == build.buf.validate.conformance.cases.BytesEqualMinMaxLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesEqualMinMaxLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesEqualMinMaxLen) - private static final build.buf.validate.conformance.cases.BytesEqualMinMaxLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesEqualMinMaxLen(); - } - - public static build.buf.validate.conformance.cases.BytesEqualMinMaxLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesEqualMinMaxLen 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.BytesEqualMinMaxLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLenOrBuilder.java deleted file mode 100644 index 2e7e6ac3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesEqualMinMaxLenOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesEqualMinMaxLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesEqualMinMaxLen) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesExample.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesExample.java deleted file mode 100644 index ac154e67..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesExample.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesExample} - */ -public final class BytesExample extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesExample) - BytesExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesExample.class.getName()); - } - // Use BytesExample.newBuilder() to construct. - private BytesExample(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesExample() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesExample.class, build.buf.validate.conformance.cases.BytesExample.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesExample)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesExample other = (build.buf.validate.conformance.cases.BytesExample) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesExample parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesExample 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.BytesExample parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesExample 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.BytesExample parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesExample 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.BytesExample parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesExample 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.BytesExample parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesExample 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.BytesExample 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.BytesExample 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.BytesExample 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.BytesExample} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesExample) - build.buf.validate.conformance.cases.BytesExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesExample.class, build.buf.validate.conformance.cases.BytesExample.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesExample.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesExample_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesExample getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesExample.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesExample build() { - build.buf.validate.conformance.cases.BytesExample result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesExample buildPartial() { - build.buf.validate.conformance.cases.BytesExample result = new build.buf.validate.conformance.cases.BytesExample(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesExample result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesExample) { - return mergeFrom((build.buf.validate.conformance.cases.BytesExample)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesExample other) { - if (other == build.buf.validate.conformance.cases.BytesExample.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesExample) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesExample) - private static final build.buf.validate.conformance.cases.BytesExample DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesExample(); - } - - public static build.buf.validate.conformance.cases.BytesExample getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesExample 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.BytesExample getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesExampleOrBuilder.java deleted file mode 100644 index 49deb2b6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesExample) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIP.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIP.java deleted file mode 100644 index 86dc1bd7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIP.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesIP} - */ -public final class BytesIP extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesIP) - BytesIPOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesIP.class.getName()); - } - // Use BytesIP.newBuilder() to construct. - private BytesIP(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesIP() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIP_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIP_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesIP.class, build.buf.validate.conformance.cases.BytesIP.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesIP)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesIP other = (build.buf.validate.conformance.cases.BytesIP) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesIP parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIP 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.BytesIP parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIP 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.BytesIP parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIP 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.BytesIP parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesIP 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.BytesIP parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesIP 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.BytesIP 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.BytesIP 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.BytesIP 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.BytesIP} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesIP) - build.buf.validate.conformance.cases.BytesIPOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIP_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIP_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesIP.class, build.buf.validate.conformance.cases.BytesIP.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesIP.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIP_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIP getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesIP.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIP build() { - build.buf.validate.conformance.cases.BytesIP result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIP buildPartial() { - build.buf.validate.conformance.cases.BytesIP result = new build.buf.validate.conformance.cases.BytesIP(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesIP result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesIP) { - return mergeFrom((build.buf.validate.conformance.cases.BytesIP)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesIP other) { - if (other == build.buf.validate.conformance.cases.BytesIP.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesIP) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesIP) - private static final build.buf.validate.conformance.cases.BytesIP DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesIP(); - } - - public static build.buf.validate.conformance.cases.BytesIP getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesIP 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.BytesIP getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPOrBuilder.java deleted file mode 100644 index f8af1f3e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesIPOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesIP) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4.java deleted file mode 100644 index d0e81108..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesIPv4} - */ -public final class BytesIPv4 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesIPv4) - BytesIPv4OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesIPv4.class.getName()); - } - // Use BytesIPv4.newBuilder() to construct. - private BytesIPv4(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesIPv4() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv4_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv4_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesIPv4.class, build.buf.validate.conformance.cases.BytesIPv4.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesIPv4)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesIPv4 other = (build.buf.validate.conformance.cases.BytesIPv4) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesIPv4 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIPv4 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.BytesIPv4 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIPv4 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.BytesIPv4 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIPv4 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.BytesIPv4 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesIPv4 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.BytesIPv4 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesIPv4 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.BytesIPv4 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.BytesIPv4 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.BytesIPv4 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.BytesIPv4} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesIPv4) - build.buf.validate.conformance.cases.BytesIPv4OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv4_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv4_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesIPv4.class, build.buf.validate.conformance.cases.BytesIPv4.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesIPv4.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv4_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIPv4 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesIPv4.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIPv4 build() { - build.buf.validate.conformance.cases.BytesIPv4 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIPv4 buildPartial() { - build.buf.validate.conformance.cases.BytesIPv4 result = new build.buf.validate.conformance.cases.BytesIPv4(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesIPv4 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesIPv4) { - return mergeFrom((build.buf.validate.conformance.cases.BytesIPv4)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesIPv4 other) { - if (other == build.buf.validate.conformance.cases.BytesIPv4.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesIPv4) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesIPv4) - private static final build.buf.validate.conformance.cases.BytesIPv4 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesIPv4(); - } - - public static build.buf.validate.conformance.cases.BytesIPv4 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesIPv4 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.BytesIPv4 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4OrBuilder.java deleted file mode 100644 index 307deed7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv4OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesIPv4OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesIPv4) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6.java deleted file mode 100644 index 6704e1f6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesIPv6} - */ -public final class BytesIPv6 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesIPv6) - BytesIPv6OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesIPv6.class.getName()); - } - // Use BytesIPv6.newBuilder() to construct. - private BytesIPv6(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesIPv6() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesIPv6.class, build.buf.validate.conformance.cases.BytesIPv6.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesIPv6)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesIPv6 other = (build.buf.validate.conformance.cases.BytesIPv6) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesIPv6 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIPv6 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.BytesIPv6 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIPv6 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.BytesIPv6 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIPv6 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.BytesIPv6 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesIPv6 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.BytesIPv6 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesIPv6 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.BytesIPv6 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.BytesIPv6 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.BytesIPv6 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.BytesIPv6} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesIPv6) - build.buf.validate.conformance.cases.BytesIPv6OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesIPv6.class, build.buf.validate.conformance.cases.BytesIPv6.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesIPv6.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIPv6 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesIPv6.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIPv6 build() { - build.buf.validate.conformance.cases.BytesIPv6 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIPv6 buildPartial() { - build.buf.validate.conformance.cases.BytesIPv6 result = new build.buf.validate.conformance.cases.BytesIPv6(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesIPv6 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesIPv6) { - return mergeFrom((build.buf.validate.conformance.cases.BytesIPv6)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesIPv6 other) { - if (other == build.buf.validate.conformance.cases.BytesIPv6.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesIPv6) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesIPv6) - private static final build.buf.validate.conformance.cases.BytesIPv6 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesIPv6(); - } - - public static build.buf.validate.conformance.cases.BytesIPv6 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesIPv6 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.BytesIPv6 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6Ignore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6Ignore.java deleted file mode 100644 index c2ea9768..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6Ignore.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesIPv6Ignore} - */ -public final class BytesIPv6Ignore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesIPv6Ignore) - BytesIPv6IgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesIPv6Ignore.class.getName()); - } - // Use BytesIPv6Ignore.newBuilder() to construct. - private BytesIPv6Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesIPv6Ignore() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesIPv6Ignore.class, build.buf.validate.conformance.cases.BytesIPv6Ignore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesIPv6Ignore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesIPv6Ignore other = (build.buf.validate.conformance.cases.BytesIPv6Ignore) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesIPv6Ignore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIPv6Ignore 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.BytesIPv6Ignore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIPv6Ignore 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.BytesIPv6Ignore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIPv6Ignore 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.BytesIPv6Ignore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesIPv6Ignore 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.BytesIPv6Ignore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesIPv6Ignore 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.BytesIPv6Ignore 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.BytesIPv6Ignore 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.BytesIPv6Ignore 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.BytesIPv6Ignore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesIPv6Ignore) - build.buf.validate.conformance.cases.BytesIPv6IgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesIPv6Ignore.class, build.buf.validate.conformance.cases.BytesIPv6Ignore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesIPv6Ignore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIPv6Ignore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesIPv6Ignore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIPv6Ignore build() { - build.buf.validate.conformance.cases.BytesIPv6Ignore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIPv6Ignore buildPartial() { - build.buf.validate.conformance.cases.BytesIPv6Ignore result = new build.buf.validate.conformance.cases.BytesIPv6Ignore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesIPv6Ignore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesIPv6Ignore) { - return mergeFrom((build.buf.validate.conformance.cases.BytesIPv6Ignore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesIPv6Ignore other) { - if (other == build.buf.validate.conformance.cases.BytesIPv6Ignore.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesIPv6Ignore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesIPv6Ignore) - private static final build.buf.validate.conformance.cases.BytesIPv6Ignore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesIPv6Ignore(); - } - - public static build.buf.validate.conformance.cases.BytesIPv6Ignore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesIPv6Ignore 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.BytesIPv6Ignore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6IgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6IgnoreOrBuilder.java deleted file mode 100644 index 627a20f3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6IgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesIPv6IgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesIPv6Ignore) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6OrBuilder.java deleted file mode 100644 index 74ba57e0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIPv6OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesIPv6OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesIPv6) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIn.java deleted file mode 100644 index 8390a497..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesIn.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesIn} - */ -public final class BytesIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesIn) - BytesInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesIn.class.getName()); - } - // Use BytesIn.newBuilder() to construct. - private BytesIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesIn() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesIn.class, build.buf.validate.conformance.cases.BytesIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesIn other = (build.buf.validate.conformance.cases.BytesIn) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIn 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.BytesIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIn 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.BytesIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesIn 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.BytesIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesIn 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.BytesIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesIn 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.BytesIn 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.BytesIn 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.BytesIn 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.BytesIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesIn) - build.buf.validate.conformance.cases.BytesInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesIn.class, build.buf.validate.conformance.cases.BytesIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIn build() { - build.buf.validate.conformance.cases.BytesIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesIn buildPartial() { - build.buf.validate.conformance.cases.BytesIn result = new build.buf.validate.conformance.cases.BytesIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesIn) { - return mergeFrom((build.buf.validate.conformance.cases.BytesIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesIn other) { - if (other == build.buf.validate.conformance.cases.BytesIn.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesIn) - private static final build.buf.validate.conformance.cases.BytesIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesIn(); - } - - public static build.buf.validate.conformance.cases.BytesIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesIn 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.BytesIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesInOrBuilder.java deleted file mode 100644 index 54423592..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesIn) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesLen.java deleted file mode 100644 index a611f041..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesLen.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesLen} - */ -public final class BytesLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesLen) - BytesLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesLen.class.getName()); - } - // Use BytesLen.newBuilder() to construct. - private BytesLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesLen() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesLen.class, build.buf.validate.conformance.cases.BytesLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesLen other = (build.buf.validate.conformance.cases.BytesLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesLen 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.BytesLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesLen 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.BytesLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesLen 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.BytesLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesLen 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.BytesLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesLen 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.BytesLen 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.BytesLen 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.BytesLen 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.BytesLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesLen) - build.buf.validate.conformance.cases.BytesLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesLen.class, build.buf.validate.conformance.cases.BytesLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesLen build() { - build.buf.validate.conformance.cases.BytesLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesLen buildPartial() { - build.buf.validate.conformance.cases.BytesLen result = new build.buf.validate.conformance.cases.BytesLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesLen) { - return mergeFrom((build.buf.validate.conformance.cases.BytesLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesLen other) { - if (other == build.buf.validate.conformance.cases.BytesLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesLen) - private static final build.buf.validate.conformance.cases.BytesLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesLen(); - } - - public static build.buf.validate.conformance.cases.BytesLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesLen 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.BytesLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesLenOrBuilder.java deleted file mode 100644 index 718a85e2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesLenOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesLen) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLen.java deleted file mode 100644 index b26ee830..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLen.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesMaxLen} - */ -public final class BytesMaxLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesMaxLen) - BytesMaxLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesMaxLen.class.getName()); - } - // Use BytesMaxLen.newBuilder() to construct. - private BytesMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesMaxLen() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesMaxLen.class, build.buf.validate.conformance.cases.BytesMaxLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesMaxLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesMaxLen other = (build.buf.validate.conformance.cases.BytesMaxLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesMaxLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesMaxLen 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.BytesMaxLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesMaxLen 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.BytesMaxLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesMaxLen 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.BytesMaxLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesMaxLen 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.BytesMaxLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesMaxLen 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.BytesMaxLen 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.BytesMaxLen 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.BytesMaxLen 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.BytesMaxLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesMaxLen) - build.buf.validate.conformance.cases.BytesMaxLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesMaxLen.class, build.buf.validate.conformance.cases.BytesMaxLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesMaxLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMaxLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesMaxLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesMaxLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesMaxLen build() { - build.buf.validate.conformance.cases.BytesMaxLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesMaxLen buildPartial() { - build.buf.validate.conformance.cases.BytesMaxLen result = new build.buf.validate.conformance.cases.BytesMaxLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesMaxLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesMaxLen) { - return mergeFrom((build.buf.validate.conformance.cases.BytesMaxLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesMaxLen other) { - if (other == build.buf.validate.conformance.cases.BytesMaxLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesMaxLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesMaxLen) - private static final build.buf.validate.conformance.cases.BytesMaxLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesMaxLen(); - } - - public static build.buf.validate.conformance.cases.BytesMaxLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesMaxLen 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.BytesMaxLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLenOrBuilder.java deleted file mode 100644 index 2a77b5a4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMaxLenOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesMaxLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesMaxLen) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLen.java deleted file mode 100644 index d4384c5d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLen.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesMinLen} - */ -public final class BytesMinLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesMinLen) - BytesMinLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesMinLen.class.getName()); - } - // Use BytesMinLen.newBuilder() to construct. - private BytesMinLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesMinLen() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesMinLen.class, build.buf.validate.conformance.cases.BytesMinLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesMinLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesMinLen other = (build.buf.validate.conformance.cases.BytesMinLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesMinLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesMinLen 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.BytesMinLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesMinLen 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.BytesMinLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesMinLen 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.BytesMinLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesMinLen 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.BytesMinLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesMinLen 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.BytesMinLen 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.BytesMinLen 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.BytesMinLen 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.BytesMinLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesMinLen) - build.buf.validate.conformance.cases.BytesMinLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesMinLen.class, build.buf.validate.conformance.cases.BytesMinLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesMinLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesMinLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesMinLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesMinLen build() { - build.buf.validate.conformance.cases.BytesMinLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesMinLen buildPartial() { - build.buf.validate.conformance.cases.BytesMinLen result = new build.buf.validate.conformance.cases.BytesMinLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesMinLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesMinLen) { - return mergeFrom((build.buf.validate.conformance.cases.BytesMinLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesMinLen other) { - if (other == build.buf.validate.conformance.cases.BytesMinLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesMinLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesMinLen) - private static final build.buf.validate.conformance.cases.BytesMinLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesMinLen(); - } - - public static build.buf.validate.conformance.cases.BytesMinLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesMinLen 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.BytesMinLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLenOrBuilder.java deleted file mode 100644 index 4f3d398f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinLenOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesMinLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesMinLen) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLen.java deleted file mode 100644 index 460fa0fa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLen.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesMinMaxLen} - */ -public final class BytesMinMaxLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesMinMaxLen) - BytesMinMaxLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesMinMaxLen.class.getName()); - } - // Use BytesMinMaxLen.newBuilder() to construct. - private BytesMinMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesMinMaxLen() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesMinMaxLen.class, build.buf.validate.conformance.cases.BytesMinMaxLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesMinMaxLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesMinMaxLen other = (build.buf.validate.conformance.cases.BytesMinMaxLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesMinMaxLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesMinMaxLen 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.BytesMinMaxLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesMinMaxLen 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.BytesMinMaxLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesMinMaxLen 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.BytesMinMaxLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesMinMaxLen 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.BytesMinMaxLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesMinMaxLen 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.BytesMinMaxLen 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.BytesMinMaxLen 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.BytesMinMaxLen 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.BytesMinMaxLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesMinMaxLen) - build.buf.validate.conformance.cases.BytesMinMaxLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesMinMaxLen.class, build.buf.validate.conformance.cases.BytesMinMaxLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesMinMaxLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesMinMaxLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesMinMaxLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesMinMaxLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesMinMaxLen build() { - build.buf.validate.conformance.cases.BytesMinMaxLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesMinMaxLen buildPartial() { - build.buf.validate.conformance.cases.BytesMinMaxLen result = new build.buf.validate.conformance.cases.BytesMinMaxLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesMinMaxLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesMinMaxLen) { - return mergeFrom((build.buf.validate.conformance.cases.BytesMinMaxLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesMinMaxLen other) { - if (other == build.buf.validate.conformance.cases.BytesMinMaxLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesMinMaxLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesMinMaxLen) - private static final build.buf.validate.conformance.cases.BytesMinMaxLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesMinMaxLen(); - } - - public static build.buf.validate.conformance.cases.BytesMinMaxLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesMinMaxLen 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.BytesMinMaxLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLenOrBuilder.java deleted file mode 100644 index 5d9ee4ca..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesMinMaxLenOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesMinMaxLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesMinMaxLen) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNone.java deleted file mode 100644 index a67c8fb9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNone.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesNone} - */ -public final class BytesNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesNone) - BytesNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesNone.class.getName()); - } - // Use BytesNone.newBuilder() to construct. - private BytesNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesNone() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesNone.class, build.buf.validate.conformance.cases.BytesNone.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesNone other = (build.buf.validate.conformance.cases.BytesNone) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNone 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.BytesNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNone 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.BytesNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNone 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.BytesNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesNone 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.BytesNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesNone 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.BytesNone 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.BytesNone 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.BytesNone 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.BytesNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesNone) - build.buf.validate.conformance.cases.BytesNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesNone.class, build.buf.validate.conformance.cases.BytesNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesNone.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNone build() { - build.buf.validate.conformance.cases.BytesNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNone buildPartial() { - build.buf.validate.conformance.cases.BytesNone result = new build.buf.validate.conformance.cases.BytesNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesNone result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesNone) { - return mergeFrom((build.buf.validate.conformance.cases.BytesNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesNone other) { - if (other == build.buf.validate.conformance.cases.BytesNone.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesNone) - private static final build.buf.validate.conformance.cases.BytesNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesNone(); - } - - public static build.buf.validate.conformance.cases.BytesNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesNone 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.BytesNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNoneOrBuilder.java deleted file mode 100644 index 46377e8b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesNone) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val"]; - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIP.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIP.java deleted file mode 100644 index 57c5c5ff..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIP.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesNotIP} - */ -public final class BytesNotIP extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesNotIP) - BytesNotIPOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesNotIP.class.getName()); - } - // Use BytesNotIP.newBuilder() to construct. - private BytesNotIP(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesNotIP() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIP_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIP_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesNotIP.class, build.buf.validate.conformance.cases.BytesNotIP.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesNotIP)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesNotIP other = (build.buf.validate.conformance.cases.BytesNotIP) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesNotIP parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIP 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.BytesNotIP parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIP 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.BytesNotIP parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIP 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.BytesNotIP parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesNotIP 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.BytesNotIP parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesNotIP 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.BytesNotIP 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.BytesNotIP 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.BytesNotIP 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.BytesNotIP} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesNotIP) - build.buf.validate.conformance.cases.BytesNotIPOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIP_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIP_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesNotIP.class, build.buf.validate.conformance.cases.BytesNotIP.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesNotIP.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIP_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIP getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesNotIP.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIP build() { - build.buf.validate.conformance.cases.BytesNotIP result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIP buildPartial() { - build.buf.validate.conformance.cases.BytesNotIP result = new build.buf.validate.conformance.cases.BytesNotIP(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesNotIP result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesNotIP) { - return mergeFrom((build.buf.validate.conformance.cases.BytesNotIP)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesNotIP other) { - if (other == build.buf.validate.conformance.cases.BytesNotIP.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesNotIP) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesNotIP) - private static final build.buf.validate.conformance.cases.BytesNotIP DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesNotIP(); - } - - public static build.buf.validate.conformance.cases.BytesNotIP getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesNotIP 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.BytesNotIP getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPOrBuilder.java deleted file mode 100644 index 70afaf0a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesNotIPOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesNotIP) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv4.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv4.java deleted file mode 100644 index 1fa78b27..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv4.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesNotIPv4} - */ -public final class BytesNotIPv4 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesNotIPv4) - BytesNotIPv4OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesNotIPv4.class.getName()); - } - // Use BytesNotIPv4.newBuilder() to construct. - private BytesNotIPv4(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesNotIPv4() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIPv4_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIPv4_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesNotIPv4.class, build.buf.validate.conformance.cases.BytesNotIPv4.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesNotIPv4)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesNotIPv4 other = (build.buf.validate.conformance.cases.BytesNotIPv4) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesNotIPv4 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIPv4 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.BytesNotIPv4 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIPv4 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.BytesNotIPv4 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIPv4 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.BytesNotIPv4 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesNotIPv4 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.BytesNotIPv4 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesNotIPv4 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.BytesNotIPv4 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.BytesNotIPv4 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.BytesNotIPv4 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.BytesNotIPv4} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesNotIPv4) - build.buf.validate.conformance.cases.BytesNotIPv4OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIPv4_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIPv4_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesNotIPv4.class, build.buf.validate.conformance.cases.BytesNotIPv4.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesNotIPv4.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIPv4_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIPv4 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesNotIPv4.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIPv4 build() { - build.buf.validate.conformance.cases.BytesNotIPv4 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIPv4 buildPartial() { - build.buf.validate.conformance.cases.BytesNotIPv4 result = new build.buf.validate.conformance.cases.BytesNotIPv4(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesNotIPv4 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesNotIPv4) { - return mergeFrom((build.buf.validate.conformance.cases.BytesNotIPv4)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesNotIPv4 other) { - if (other == build.buf.validate.conformance.cases.BytesNotIPv4.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesNotIPv4) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesNotIPv4) - private static final build.buf.validate.conformance.cases.BytesNotIPv4 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesNotIPv4(); - } - - public static build.buf.validate.conformance.cases.BytesNotIPv4 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesNotIPv4 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.BytesNotIPv4 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv4OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv4OrBuilder.java deleted file mode 100644 index 556a92c3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv4OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesNotIPv4OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesNotIPv4) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv6.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv6.java deleted file mode 100644 index d44f4c04..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv6.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesNotIPv6} - */ -public final class BytesNotIPv6 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesNotIPv6) - BytesNotIPv6OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesNotIPv6.class.getName()); - } - // Use BytesNotIPv6.newBuilder() to construct. - private BytesNotIPv6(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesNotIPv6() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIPv6_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIPv6_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesNotIPv6.class, build.buf.validate.conformance.cases.BytesNotIPv6.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesNotIPv6)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesNotIPv6 other = (build.buf.validate.conformance.cases.BytesNotIPv6) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesNotIPv6 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIPv6 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.BytesNotIPv6 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIPv6 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.BytesNotIPv6 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIPv6 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.BytesNotIPv6 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesNotIPv6 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.BytesNotIPv6 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesNotIPv6 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.BytesNotIPv6 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.BytesNotIPv6 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.BytesNotIPv6 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.BytesNotIPv6} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesNotIPv6) - build.buf.validate.conformance.cases.BytesNotIPv6OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIPv6_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIPv6_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesNotIPv6.class, build.buf.validate.conformance.cases.BytesNotIPv6.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesNotIPv6.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIPv6_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIPv6 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesNotIPv6.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIPv6 build() { - build.buf.validate.conformance.cases.BytesNotIPv6 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIPv6 buildPartial() { - build.buf.validate.conformance.cases.BytesNotIPv6 result = new build.buf.validate.conformance.cases.BytesNotIPv6(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesNotIPv6 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesNotIPv6) { - return mergeFrom((build.buf.validate.conformance.cases.BytesNotIPv6)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesNotIPv6 other) { - if (other == build.buf.validate.conformance.cases.BytesNotIPv6.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesNotIPv6) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesNotIPv6) - private static final build.buf.validate.conformance.cases.BytesNotIPv6 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesNotIPv6(); - } - - public static build.buf.validate.conformance.cases.BytesNotIPv6 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesNotIPv6 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.BytesNotIPv6 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv6OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv6OrBuilder.java deleted file mode 100644 index 5897e257..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIPv6OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesNotIPv6OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesNotIPv6) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIn.java deleted file mode 100644 index e47e4457..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotIn.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesNotIn} - */ -public final class BytesNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesNotIn) - BytesNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesNotIn.class.getName()); - } - // Use BytesNotIn.newBuilder() to construct. - private BytesNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesNotIn() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesNotIn.class, build.buf.validate.conformance.cases.BytesNotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesNotIn other = (build.buf.validate.conformance.cases.BytesNotIn) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIn 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.BytesNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIn 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.BytesNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesNotIn 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.BytesNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesNotIn 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.BytesNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesNotIn 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.BytesNotIn 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.BytesNotIn 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.BytesNotIn 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.BytesNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesNotIn) - build.buf.validate.conformance.cases.BytesNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesNotIn.class, build.buf.validate.conformance.cases.BytesNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesNotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIn build() { - build.buf.validate.conformance.cases.BytesNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesNotIn buildPartial() { - build.buf.validate.conformance.cases.BytesNotIn result = new build.buf.validate.conformance.cases.BytesNotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesNotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.BytesNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesNotIn other) { - if (other == build.buf.validate.conformance.cases.BytesNotIn.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesNotIn) - private static final build.buf.validate.conformance.cases.BytesNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesNotIn(); - } - - public static build.buf.validate.conformance.cases.BytesNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesNotIn 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.BytesNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotInOrBuilder.java deleted file mode 100644 index 26a978b0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesNotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPattern.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPattern.java deleted file mode 100644 index 948bd28d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPattern.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesPattern} - */ -public final class BytesPattern extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesPattern) - BytesPatternOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesPattern.class.getName()); - } - // Use BytesPattern.newBuilder() to construct. - private BytesPattern(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesPattern() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPattern_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesPattern.class, build.buf.validate.conformance.cases.BytesPattern.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesPattern)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesPattern other = (build.buf.validate.conformance.cases.BytesPattern) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesPattern parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesPattern 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.BytesPattern parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesPattern 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.BytesPattern parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesPattern 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.BytesPattern parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesPattern 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.BytesPattern parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesPattern 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.BytesPattern 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.BytesPattern 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.BytesPattern 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.BytesPattern} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesPattern) - build.buf.validate.conformance.cases.BytesPatternOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPattern_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesPattern.class, build.buf.validate.conformance.cases.BytesPattern.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesPattern.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPattern_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesPattern getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesPattern.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesPattern build() { - build.buf.validate.conformance.cases.BytesPattern result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesPattern buildPartial() { - build.buf.validate.conformance.cases.BytesPattern result = new build.buf.validate.conformance.cases.BytesPattern(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesPattern result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesPattern) { - return mergeFrom((build.buf.validate.conformance.cases.BytesPattern)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesPattern other) { - if (other == build.buf.validate.conformance.cases.BytesPattern.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesPattern) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesPattern) - private static final build.buf.validate.conformance.cases.BytesPattern DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesPattern(); - } - - public static build.buf.validate.conformance.cases.BytesPattern getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesPattern 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.BytesPattern getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPatternOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPatternOrBuilder.java deleted file mode 100644 index fe6e10f7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPatternOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesPatternOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesPattern) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefix.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefix.java deleted file mode 100644 index c79b7285..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefix.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesPrefix} - */ -public final class BytesPrefix extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesPrefix) - BytesPrefixOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesPrefix.class.getName()); - } - // Use BytesPrefix.newBuilder() to construct. - private BytesPrefix(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesPrefix() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesPrefix.class, build.buf.validate.conformance.cases.BytesPrefix.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesPrefix)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesPrefix other = (build.buf.validate.conformance.cases.BytesPrefix) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesPrefix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesPrefix 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.BytesPrefix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesPrefix 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.BytesPrefix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesPrefix 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.BytesPrefix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesPrefix 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.BytesPrefix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesPrefix 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.BytesPrefix 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.BytesPrefix 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.BytesPrefix 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.BytesPrefix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesPrefix) - build.buf.validate.conformance.cases.BytesPrefixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesPrefix.class, build.buf.validate.conformance.cases.BytesPrefix.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesPrefix.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesPrefix_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesPrefix getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesPrefix.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesPrefix build() { - build.buf.validate.conformance.cases.BytesPrefix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesPrefix buildPartial() { - build.buf.validate.conformance.cases.BytesPrefix result = new build.buf.validate.conformance.cases.BytesPrefix(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesPrefix result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesPrefix) { - return mergeFrom((build.buf.validate.conformance.cases.BytesPrefix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesPrefix other) { - if (other == build.buf.validate.conformance.cases.BytesPrefix.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesPrefix) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesPrefix) - private static final build.buf.validate.conformance.cases.BytesPrefix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesPrefix(); - } - - public static build.buf.validate.conformance.cases.BytesPrefix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesPrefix 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.BytesPrefix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefixOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefixOrBuilder.java deleted file mode 100644 index f23e3cb2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesPrefixOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesPrefixOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesPrefix) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesProto.java deleted file mode 100644 index 5a9231a2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesProto.java +++ /dev/null @@ -1,316 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class BytesProto { - private BytesProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesConst_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesConst_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesNotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesMinLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesMinLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesMaxLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesMaxLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesMinMaxLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesMinMaxLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesPattern_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesPattern_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesPrefix_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesPrefix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesContains_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesContains_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesSuffix_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesSuffix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesIP_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesIP_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesNotIP_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesNotIP_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesIPv4_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesIPv4_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesNotIPv4_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesNotIPv4_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesIPv6_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesIPv6_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesNotIPv6_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesNotIPv6_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_BytesExample_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_BytesExample_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*buf/validate/conformance/cases/bytes.p" + - "roto\022\036buf.validate.conformance.cases\032\033bu" + - "f/validate/validate.proto\"\035\n\tBytesNone\022\020" + - "\n\003val\030\001 \001(\014R\003val\"*\n\nBytesConst\022\034\n\003val\030\001 " + - "\001(\014B\n\272H\007z\005\n\003fooR\003val\",\n\007BytesIn\022!\n\003val\030\001" + - " \001(\014B\017\272H\014z\nB\003barB\003bazR\003val\"1\n\nBytesNotIn" + - "\022#\n\003val\030\001 \001(\014B\021\272H\016z\014J\004fizzJ\004buzzR\003val\"%\n" + - "\010BytesLen\022\031\n\003val\030\001 \001(\014B\007\272H\004z\002h\003R\003val\"(\n\013" + - "BytesMinLen\022\031\n\003val\030\001 \001(\014B\007\272H\004z\002\020\003R\003val\"(" + - "\n\013BytesMaxLen\022\031\n\003val\030\001 \001(\014B\007\272H\004z\002\030\005R\003val" + - "\"-\n\016BytesMinMaxLen\022\033\n\003val\030\001 \001(\014B\t\272H\006z\004\020\003" + - "\030\005R\003val\"2\n\023BytesEqualMinMaxLen\022\033\n\003val\030\001 " + - "\001(\014B\t\272H\006z\004\020\005\030\005R\003val\"7\n\014BytesPattern\022\'\n\003v" + - "al\030\001 \001(\014B\025\272H\022z\020\"\016^[\\x00-\\x7F]+$R\003val\")\n\013" + - "BytesPrefix\022\032\n\003val\030\001 \001(\014B\010\272H\005z\003*\001\231R\003val\"" + - "-\n\rBytesContains\022\034\n\003val\030\001 \001(\014B\n\272H\007z\005:\003ba" + - "rR\003val\",\n\013BytesSuffix\022\035\n\003val\030\001 \001(\014B\013\272H\010z" + - "\0062\004buzzR\003val\"$\n\007BytesIP\022\031\n\003val\030\001 \001(\014B\007\272H" + - "\004z\002P\001R\003val\"\'\n\nBytesNotIP\022\031\n\003val\030\001 \001(\014B\007\272" + - "H\004z\002P\000R\003val\"&\n\tBytesIPv4\022\031\n\003val\030\001 \001(\014B\007\272" + - "H\004z\002X\001R\003val\")\n\014BytesNotIPv4\022\031\n\003val\030\001 \001(\014" + - "B\007\272H\004z\002X\000R\003val\"&\n\tBytesIPv6\022\031\n\003val\030\001 \001(\014" + - "B\007\272H\004z\002`\001R\003val\")\n\014BytesNotIPv6\022\031\n\003val\030\001 " + - "\001(\014B\007\272H\004z\002`\000R\003val\"/\n\017BytesIPv6Ignore\022\034\n\003" + - "val\030\001 \001(\014B\n\272H\007z\002`\001\330\001\001R\003val\"*\n\014BytesExamp" + - "le\022\032\n\003val\030\001 \001(\014B\010\272H\005z\003r\001\231R\003valB\316\001\n$build" + - ".buf.validate.conformance.casesB\nBytesPr" + - "otoP\001\242\002\004BVCC\252\002\036Buf.Validate.Conformance." + - "Cases\312\002\036Buf\\Validate\\Conformance\\Cases\342\002" + - "*Buf\\Validate\\Conformance\\Cases\\GPBMetad" + - "ata\352\002!Buf::Validate::Conformance::Casesb" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_BytesNone_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_BytesNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesConst_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_BytesConst_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesConst_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesIn_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_BytesIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesNotIn_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_BytesNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesNotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesLen_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_BytesLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesMinLen_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_BytesMinLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesMinLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesMaxLen_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_BytesMaxLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesMaxLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesMinMaxLen_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_BytesMinMaxLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesMinMaxLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesEqualMinMaxLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesPattern_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_BytesPattern_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesPattern_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesPrefix_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_BytesPrefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesPrefix_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesContains_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_BytesContains_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesContains_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesSuffix_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_BytesSuffix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesSuffix_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesIP_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_BytesIP_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesIP_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesNotIP_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_conformance_cases_BytesNotIP_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesNotIP_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesIPv4_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_conformance_cases_BytesIPv4_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesIPv4_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesNotIPv4_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_conformance_cases_BytesNotIPv4_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesNotIPv4_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesIPv6_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_conformance_cases_BytesIPv6_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesIPv6_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesNotIPv6_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_buf_validate_conformance_cases_BytesNotIPv6_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesNotIPv6_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesIPv6Ignore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_BytesExample_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_buf_validate_conformance_cases_BytesExample_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_BytesExample_descriptor, - new java.lang.String[] { "Val", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffix.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffix.java deleted file mode 100644 index 343ca59b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffix.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.BytesSuffix} - */ -public final class BytesSuffix extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.BytesSuffix) - BytesSuffixOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesSuffix.class.getName()); - } - // Use BytesSuffix.newBuilder() to construct. - private BytesSuffix(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private BytesSuffix() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesSuffix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesSuffix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesSuffix.class, build.buf.validate.conformance.cases.BytesSuffix.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.BytesSuffix)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.BytesSuffix other = (build.buf.validate.conformance.cases.BytesSuffix) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.BytesSuffix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesSuffix 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.BytesSuffix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesSuffix 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.BytesSuffix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.BytesSuffix 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.BytesSuffix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.BytesSuffix 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.BytesSuffix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.BytesSuffix 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.BytesSuffix 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.BytesSuffix 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.BytesSuffix 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.BytesSuffix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.BytesSuffix) - build.buf.validate.conformance.cases.BytesSuffixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesSuffix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesSuffix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.BytesSuffix.class, build.buf.validate.conformance.cases.BytesSuffix.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.BytesSuffix.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.BytesProto.internal_static_buf_validate_conformance_cases_BytesSuffix_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesSuffix getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.BytesSuffix.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesSuffix build() { - build.buf.validate.conformance.cases.BytesSuffix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.BytesSuffix buildPartial() { - build.buf.validate.conformance.cases.BytesSuffix result = new build.buf.validate.conformance.cases.BytesSuffix(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.BytesSuffix result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.BytesSuffix) { - return mergeFrom((build.buf.validate.conformance.cases.BytesSuffix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.BytesSuffix other) { - if (other == build.buf.validate.conformance.cases.BytesSuffix.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.BytesSuffix) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.BytesSuffix) - private static final build.buf.validate.conformance.cases.BytesSuffix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.BytesSuffix(); - } - - public static build.buf.validate.conformance.cases.BytesSuffix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesSuffix 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.BytesSuffix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffixOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffixOrBuilder.java deleted file mode 100644 index adc5b281..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/BytesSuffixOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/bytes.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface BytesSuffixOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.BytesSuffix) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestEnum.java b/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestEnum.java deleted file mode 100644 index 8be1bf49..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestEnum.java +++ /dev/null @@ -1,133 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/kitchen_sink.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf enum {@code buf.validate.conformance.cases.ComplexTestEnum} - */ -public enum ComplexTestEnum - implements com.google.protobuf.ProtocolMessageEnum { - /** - * COMPLEX_TEST_ENUM_UNSPECIFIED = 0; - */ - COMPLEX_TEST_ENUM_UNSPECIFIED(0), - /** - * COMPLEX_TEST_ENUM_ONE = 1; - */ - COMPLEX_TEST_ENUM_ONE(1), - /** - * COMPLEX_TEST_ENUM_TWO = 2; - */ - COMPLEX_TEST_ENUM_TWO(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - ComplexTestEnum.class.getName()); - } - /** - * COMPLEX_TEST_ENUM_UNSPECIFIED = 0; - */ - public static final int COMPLEX_TEST_ENUM_UNSPECIFIED_VALUE = 0; - /** - * COMPLEX_TEST_ENUM_ONE = 1; - */ - public static final int COMPLEX_TEST_ENUM_ONE_VALUE = 1; - /** - * COMPLEX_TEST_ENUM_TWO = 2; - */ - public static final int COMPLEX_TEST_ENUM_TWO_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ComplexTestEnum valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ComplexTestEnum forNumber(int value) { - switch (value) { - case 0: return COMPLEX_TEST_ENUM_UNSPECIFIED; - case 1: return COMPLEX_TEST_ENUM_ONE; - case 2: return COMPLEX_TEST_ENUM_TWO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ComplexTestEnum> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComplexTestEnum findValueByNumber(int number) { - return ComplexTestEnum.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.KitchenSinkProto.getDescriptor().getEnumTypes().get(0); - } - - private static final ComplexTestEnum[] VALUES = values(); - - public static ComplexTestEnum valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ComplexTestEnum(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.ComplexTestEnum) -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsg.java b/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsg.java deleted file mode 100644 index ebf868be..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsg.java +++ /dev/null @@ -1,3022 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/kitchen_sink.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.ComplexTestMsg} - */ -public final class ComplexTestMsg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.ComplexTestMsg) - ComplexTestMsgOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - ComplexTestMsg.class.getName()); - } - // Use ComplexTestMsg.newBuilder() to construct. - private ComplexTestMsg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ComplexTestMsg() { - const_ = ""; - enumConst_ = 0; - repTsVal_ = java.util.Collections.emptyList(); - bytesVal_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_ComplexTestMsg_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 14: - return internalGetMapVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_ComplexTestMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.ComplexTestMsg.class, build.buf.validate.conformance.cases.ComplexTestMsg.Builder.class); - } - - private int bitField0_; - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - X(16), - Y(17), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 16: return X; - case 17: return Y; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object const_ = ""; - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The const. - */ - @java.lang.Override - public java.lang.String getConst() { - java.lang.Object ref = const_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - const_ = s; - return s; - } - } - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The bytes for const. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getConstBytes() { - java.lang.Object ref = const_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - const_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NESTED_FIELD_NUMBER = 2; - private build.buf.validate.conformance.cases.ComplexTestMsg nested_; - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - * @return Whether the nested field is set. - */ - @java.lang.Override - public boolean hasNested() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - * @return The nested. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.ComplexTestMsg getNested() { - return nested_ == null ? build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : nested_; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getNestedOrBuilder() { - return nested_ == null ? build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : nested_; - } - - public static final int INT_CONST_FIELD_NUMBER = 3; - private int intConst_ = 0; - /** - * int32 int_const = 3 [json_name = "intConst", (.buf.validate.field) = { ... } - * @return The intConst. - */ - @java.lang.Override - public int getIntConst() { - return intConst_; - } - - public static final int BOOL_CONST_FIELD_NUMBER = 4; - private boolean boolConst_ = false; - /** - * bool bool_const = 4 [json_name = "boolConst", (.buf.validate.field) = { ... } - * @return The boolConst. - */ - @java.lang.Override - public boolean getBoolConst() { - return boolConst_; - } - - public static final int FLOAT_VAL_FIELD_NUMBER = 5; - private com.google.protobuf.FloatValue floatVal_; - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - * @return Whether the floatVal field is set. - */ - @java.lang.Override - public boolean hasFloatVal() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - * @return The floatVal. - */ - @java.lang.Override - public com.google.protobuf.FloatValue getFloatVal() { - return floatVal_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : floatVal_; - } - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.FloatValueOrBuilder getFloatValOrBuilder() { - return floatVal_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : floatVal_; - } - - public static final int DUR_VAL_FIELD_NUMBER = 6; - private com.google.protobuf.Duration durVal_; - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - * @return Whether the durVal field is set. - */ - @java.lang.Override - public boolean hasDurVal() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - * @return The durVal. - */ - @java.lang.Override - public com.google.protobuf.Duration getDurVal() { - return durVal_ == null ? com.google.protobuf.Duration.getDefaultInstance() : durVal_; - } - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDurValOrBuilder() { - return durVal_ == null ? com.google.protobuf.Duration.getDefaultInstance() : durVal_; - } - - public static final int TS_VAL_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp tsVal_; - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - * @return Whether the tsVal field is set. - */ - @java.lang.Override - public boolean hasTsVal() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - * @return The tsVal. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getTsVal() { - return tsVal_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : tsVal_; - } - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getTsValOrBuilder() { - return tsVal_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : tsVal_; - } - - public static final int ANOTHER_FIELD_NUMBER = 8; - private build.buf.validate.conformance.cases.ComplexTestMsg another_; - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - * @return Whether the another field is set. - */ - @java.lang.Override - public boolean hasAnother() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - * @return The another. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.ComplexTestMsg getAnother() { - return another_ == null ? build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : another_; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getAnotherOrBuilder() { - return another_ == null ? build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : another_; - } - - public static final int FLOAT_CONST_FIELD_NUMBER = 9; - private float floatConst_ = 0F; - /** - * float float_const = 9 [json_name = "floatConst", (.buf.validate.field) = { ... } - * @return The floatConst. - */ - @java.lang.Override - public float getFloatConst() { - return floatConst_; - } - - public static final int DOUBLE_IN_FIELD_NUMBER = 10; - private double doubleIn_ = 0D; - /** - * double double_in = 10 [json_name = "doubleIn", (.buf.validate.field) = { ... } - * @return The doubleIn. - */ - @java.lang.Override - public double getDoubleIn() { - return doubleIn_; - } - - public static final int ENUM_CONST_FIELD_NUMBER = 11; - private int enumConst_ = 0; - /** - * .buf.validate.conformance.cases.ComplexTestEnum enum_const = 11 [json_name = "enumConst", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for enumConst. - */ - @java.lang.Override public int getEnumConstValue() { - return enumConst_; - } - /** - * .buf.validate.conformance.cases.ComplexTestEnum enum_const = 11 [json_name = "enumConst", (.buf.validate.field) = { ... } - * @return The enumConst. - */ - @java.lang.Override public build.buf.validate.conformance.cases.ComplexTestEnum getEnumConst() { - build.buf.validate.conformance.cases.ComplexTestEnum result = build.buf.validate.conformance.cases.ComplexTestEnum.forNumber(enumConst_); - return result == null ? build.buf.validate.conformance.cases.ComplexTestEnum.UNRECOGNIZED : result; - } - - public static final int ANY_VAL_FIELD_NUMBER = 12; - private com.google.protobuf.Any anyVal_; - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - * @return Whether the anyVal field is set. - */ - @java.lang.Override - public boolean hasAnyVal() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - * @return The anyVal. - */ - @java.lang.Override - public com.google.protobuf.Any getAnyVal() { - return anyVal_ == null ? com.google.protobuf.Any.getDefaultInstance() : anyVal_; - } - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder getAnyValOrBuilder() { - return anyVal_ == null ? com.google.protobuf.Any.getDefaultInstance() : anyVal_; - } - - public static final int REP_TS_VAL_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private java.util.List repTsVal_; - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getRepTsValList() { - return repTsVal_; - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getRepTsValOrBuilderList() { - return repTsVal_; - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getRepTsValCount() { - return repTsVal_.size(); - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Timestamp getRepTsVal(int index) { - return repTsVal_.get(index); - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getRepTsValOrBuilder( - int index) { - return repTsVal_.get(index); - } - - public static final int MAP_VAL_FIELD_NUMBER = 14; - private static final class MapValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_ComplexTestMsg_MapValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.SINT32, - 0, - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.String> mapVal_; - private com.google.protobuf.MapField - internalGetMapVal() { - if (mapVal_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MapValDefaultEntryHolder.defaultEntry); - } - return mapVal_; - } - public int getMapValCount() { - return internalGetMapVal().getMap().size(); - } - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsMapVal( - int key) { - - return internalGetMapVal().getMap().containsKey(key); - } - /** - * Use {@link #getMapValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getMapVal() { - return getMapValMap(); - } - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getMapValMap() { - return internalGetMapVal().getMap(); - } - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getMapValOrDefault( - int key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetMapVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getMapValOrThrow( - int key) { - - java.util.Map map = - internalGetMapVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int BYTES_VAL_FIELD_NUMBER = 15; - private com.google.protobuf.ByteString bytesVal_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes bytes_val = 15 [json_name = "bytesVal", (.buf.validate.field) = { ... } - * @return The bytesVal. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBytesVal() { - return bytesVal_; - } - - public static final int X_FIELD_NUMBER = 16; - /** - * string x = 16 [json_name = "x"]; - * @return Whether the x field is set. - */ - public boolean hasX() { - return oCase_ == 16; - } - /** - * string x = 16 [json_name = "x"]; - * @return The x. - */ - public java.lang.String getX() { - java.lang.Object ref = ""; - if (oCase_ == 16) { - ref = o_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 16) { - o_ = s; - } - return s; - } - } - /** - * string x = 16 [json_name = "x"]; - * @return The bytes for x. - */ - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = ""; - if (oCase_ == 16) { - ref = o_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 16) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int Y_FIELD_NUMBER = 17; - /** - * int32 y = 17 [json_name = "y"]; - * @return Whether the y field is set. - */ - @java.lang.Override - public boolean hasY() { - return oCase_ == 17; - } - /** - * int32 y = 17 [json_name = "y"]; - * @return The y. - */ - @java.lang.Override - public int getY() { - if (oCase_ == 17) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(const_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, const_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getNested()); - } - if (intConst_ != 0) { - output.writeInt32(3, intConst_); - } - if (boolConst_ != false) { - output.writeBool(4, boolConst_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getFloatVal()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(6, getDurVal()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(7, getTsVal()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(8, getAnother()); - } - if (java.lang.Float.floatToRawIntBits(floatConst_) != 0) { - output.writeFloat(9, floatConst_); - } - if (java.lang.Double.doubleToRawLongBits(doubleIn_) != 0) { - output.writeDouble(10, doubleIn_); - } - if (enumConst_ != build.buf.validate.conformance.cases.ComplexTestEnum.COMPLEX_TEST_ENUM_UNSPECIFIED.getNumber()) { - output.writeEnum(11, enumConst_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(12, getAnyVal()); - } - for (int i = 0; i < repTsVal_.size(); i++) { - output.writeMessage(13, repTsVal_.get(i)); - } - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetMapVal(), - MapValDefaultEntryHolder.defaultEntry, - 14); - if (!bytesVal_.isEmpty()) { - output.writeBytes(15, bytesVal_); - } - if (oCase_ == 16) { - com.google.protobuf.GeneratedMessage.writeString(output, 16, o_); - } - if (oCase_ == 17) { - output.writeInt32( - 17, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(const_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, const_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNested()); - } - if (intConst_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, intConst_); - } - if (boolConst_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, boolConst_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getFloatVal()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDurVal()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTsVal()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAnother()); - } - if (java.lang.Float.floatToRawIntBits(floatConst_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(9, floatConst_); - } - if (java.lang.Double.doubleToRawLongBits(doubleIn_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(10, doubleIn_); - } - if (enumConst_ != build.buf.validate.conformance.cases.ComplexTestEnum.COMPLEX_TEST_ENUM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, enumConst_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getAnyVal()); - } - for (int i = 0; i < repTsVal_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, repTsVal_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetMapVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - mapVal__ = MapValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, mapVal__); - } - if (!bytesVal_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, bytesVal_); - } - if (oCase_ == 16) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(16, o_); - } - if (oCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 17, (int)((java.lang.Integer) o_)); - } - 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.ComplexTestMsg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.ComplexTestMsg other = (build.buf.validate.conformance.cases.ComplexTestMsg) obj; - - if (!getConst() - .equals(other.getConst())) return false; - if (hasNested() != other.hasNested()) return false; - if (hasNested()) { - if (!getNested() - .equals(other.getNested())) return false; - } - if (getIntConst() - != other.getIntConst()) return false; - if (getBoolConst() - != other.getBoolConst()) return false; - if (hasFloatVal() != other.hasFloatVal()) return false; - if (hasFloatVal()) { - if (!getFloatVal() - .equals(other.getFloatVal())) return false; - } - if (hasDurVal() != other.hasDurVal()) return false; - if (hasDurVal()) { - if (!getDurVal() - .equals(other.getDurVal())) return false; - } - if (hasTsVal() != other.hasTsVal()) return false; - if (hasTsVal()) { - if (!getTsVal() - .equals(other.getTsVal())) return false; - } - if (hasAnother() != other.hasAnother()) return false; - if (hasAnother()) { - if (!getAnother() - .equals(other.getAnother())) return false; - } - if (java.lang.Float.floatToIntBits(getFloatConst()) - != java.lang.Float.floatToIntBits( - other.getFloatConst())) return false; - if (java.lang.Double.doubleToLongBits(getDoubleIn()) - != java.lang.Double.doubleToLongBits( - other.getDoubleIn())) return false; - if (enumConst_ != other.enumConst_) return false; - if (hasAnyVal() != other.hasAnyVal()) return false; - if (hasAnyVal()) { - if (!getAnyVal() - .equals(other.getAnyVal())) return false; - } - if (!getRepTsValList() - .equals(other.getRepTsValList())) return false; - if (!internalGetMapVal().equals( - other.internalGetMapVal())) return false; - if (!getBytesVal() - .equals(other.getBytesVal())) return false; - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 16: - if (!getX() - .equals(other.getX())) return false; - break; - case 17: - if (getY() - != other.getY()) return false; - break; - case 0: - default: - } - 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(); - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst().hashCode(); - if (hasNested()) { - hash = (37 * hash) + NESTED_FIELD_NUMBER; - hash = (53 * hash) + getNested().hashCode(); - } - hash = (37 * hash) + INT_CONST_FIELD_NUMBER; - hash = (53 * hash) + getIntConst(); - hash = (37 * hash) + BOOL_CONST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolConst()); - if (hasFloatVal()) { - hash = (37 * hash) + FLOAT_VAL_FIELD_NUMBER; - hash = (53 * hash) + getFloatVal().hashCode(); - } - if (hasDurVal()) { - hash = (37 * hash) + DUR_VAL_FIELD_NUMBER; - hash = (53 * hash) + getDurVal().hashCode(); - } - if (hasTsVal()) { - hash = (37 * hash) + TS_VAL_FIELD_NUMBER; - hash = (53 * hash) + getTsVal().hashCode(); - } - if (hasAnother()) { - hash = (37 * hash) + ANOTHER_FIELD_NUMBER; - hash = (53 * hash) + getAnother().hashCode(); - } - hash = (37 * hash) + FLOAT_CONST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getFloatConst()); - hash = (37 * hash) + DOUBLE_IN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleIn())); - hash = (37 * hash) + ENUM_CONST_FIELD_NUMBER; - hash = (53 * hash) + enumConst_; - if (hasAnyVal()) { - hash = (37 * hash) + ANY_VAL_FIELD_NUMBER; - hash = (53 * hash) + getAnyVal().hashCode(); - } - if (getRepTsValCount() > 0) { - hash = (37 * hash) + REP_TS_VAL_FIELD_NUMBER; - hash = (53 * hash) + getRepTsValList().hashCode(); - } - if (!internalGetMapVal().getMap().isEmpty()) { - hash = (37 * hash) + MAP_VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetMapVal().hashCode(); - } - hash = (37 * hash) + BYTES_VAL_FIELD_NUMBER; - hash = (53 * hash) + getBytesVal().hashCode(); - switch (oCase_) { - case 16: - hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + getX().hashCode(); - break; - case 17: - hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + getY(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.ComplexTestMsg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.ComplexTestMsg 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.ComplexTestMsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.ComplexTestMsg 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.ComplexTestMsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.ComplexTestMsg 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.ComplexTestMsg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.ComplexTestMsg 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.ComplexTestMsg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.ComplexTestMsg 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.ComplexTestMsg 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.ComplexTestMsg 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.ComplexTestMsg 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.ComplexTestMsg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.ComplexTestMsg) - build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_ComplexTestMsg_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 14: - return internalGetMapVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 14: - return internalGetMutableMapVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_ComplexTestMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.ComplexTestMsg.class, build.buf.validate.conformance.cases.ComplexTestMsg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.ComplexTestMsg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetNestedFieldBuilder(); - internalGetFloatValFieldBuilder(); - internalGetDurValFieldBuilder(); - internalGetTsValFieldBuilder(); - internalGetAnotherFieldBuilder(); - internalGetAnyValFieldBuilder(); - internalGetRepTsValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = ""; - nested_ = null; - if (nestedBuilder_ != null) { - nestedBuilder_.dispose(); - nestedBuilder_ = null; - } - intConst_ = 0; - boolConst_ = false; - floatVal_ = null; - if (floatValBuilder_ != null) { - floatValBuilder_.dispose(); - floatValBuilder_ = null; - } - durVal_ = null; - if (durValBuilder_ != null) { - durValBuilder_.dispose(); - durValBuilder_ = null; - } - tsVal_ = null; - if (tsValBuilder_ != null) { - tsValBuilder_.dispose(); - tsValBuilder_ = null; - } - another_ = null; - if (anotherBuilder_ != null) { - anotherBuilder_.dispose(); - anotherBuilder_ = null; - } - floatConst_ = 0F; - doubleIn_ = 0D; - enumConst_ = 0; - anyVal_ = null; - if (anyValBuilder_ != null) { - anyValBuilder_.dispose(); - anyValBuilder_ = null; - } - if (repTsValBuilder_ == null) { - repTsVal_ = java.util.Collections.emptyList(); - } else { - repTsVal_ = null; - repTsValBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00001000); - internalGetMutableMapVal().clear(); - bytesVal_ = com.google.protobuf.ByteString.EMPTY; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_ComplexTestMsg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.ComplexTestMsg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.ComplexTestMsg build() { - build.buf.validate.conformance.cases.ComplexTestMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.ComplexTestMsg buildPartial() { - build.buf.validate.conformance.cases.ComplexTestMsg result = new build.buf.validate.conformance.cases.ComplexTestMsg(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.ComplexTestMsg result) { - if (repTsValBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { - repTsVal_ = java.util.Collections.unmodifiableList(repTsVal_); - bitField0_ = (bitField0_ & ~0x00001000); - } - result.repTsVal_ = repTsVal_; - } else { - result.repTsVal_ = repTsValBuilder_.build(); - } - } - - private void buildPartial0(build.buf.validate.conformance.cases.ComplexTestMsg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nested_ = nestedBuilder_ == null - ? nested_ - : nestedBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.intConst_ = intConst_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.boolConst_ = boolConst_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.floatVal_ = floatValBuilder_ == null - ? floatVal_ - : floatValBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.durVal_ = durValBuilder_ == null - ? durVal_ - : durValBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.tsVal_ = tsValBuilder_ == null - ? tsVal_ - : tsValBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.another_ = anotherBuilder_ == null - ? another_ - : anotherBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.floatConst_ = floatConst_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.doubleIn_ = doubleIn_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.enumConst_ = enumConst_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.anyVal_ = anyValBuilder_ == null - ? anyVal_ - : anyValBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.mapVal_ = internalGetMapVal(); - result.mapVal_.makeImmutable(); - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.bytesVal_ = bytesVal_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.ComplexTestMsg result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.ComplexTestMsg) { - return mergeFrom((build.buf.validate.conformance.cases.ComplexTestMsg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.ComplexTestMsg other) { - if (other == build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance()) return this; - if (!other.getConst().isEmpty()) { - const_ = other.const_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasNested()) { - mergeNested(other.getNested()); - } - if (other.getIntConst() != 0) { - setIntConst(other.getIntConst()); - } - if (other.getBoolConst() != false) { - setBoolConst(other.getBoolConst()); - } - if (other.hasFloatVal()) { - mergeFloatVal(other.getFloatVal()); - } - if (other.hasDurVal()) { - mergeDurVal(other.getDurVal()); - } - if (other.hasTsVal()) { - mergeTsVal(other.getTsVal()); - } - if (other.hasAnother()) { - mergeAnother(other.getAnother()); - } - if (java.lang.Float.floatToRawIntBits(other.getFloatConst()) != 0) { - setFloatConst(other.getFloatConst()); - } - if (java.lang.Double.doubleToRawLongBits(other.getDoubleIn()) != 0) { - setDoubleIn(other.getDoubleIn()); - } - if (other.enumConst_ != 0) { - setEnumConstValue(other.getEnumConstValue()); - } - if (other.hasAnyVal()) { - mergeAnyVal(other.getAnyVal()); - } - if (repTsValBuilder_ == null) { - if (!other.repTsVal_.isEmpty()) { - if (repTsVal_.isEmpty()) { - repTsVal_ = other.repTsVal_; - bitField0_ = (bitField0_ & ~0x00001000); - } else { - ensureRepTsValIsMutable(); - repTsVal_.addAll(other.repTsVal_); - } - onChanged(); - } - } else { - if (!other.repTsVal_.isEmpty()) { - if (repTsValBuilder_.isEmpty()) { - repTsValBuilder_.dispose(); - repTsValBuilder_ = null; - repTsVal_ = other.repTsVal_; - bitField0_ = (bitField0_ & ~0x00001000); - repTsValBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetRepTsValFieldBuilder() : null; - } else { - repTsValBuilder_.addAllMessages(other.repTsVal_); - } - } - } - internalGetMutableMapVal().mergeFrom( - other.internalGetMapVal()); - bitField0_ |= 0x00002000; - if (!other.getBytesVal().isEmpty()) { - setBytesVal(other.getBytesVal()); - } - switch (other.getOCase()) { - case X: { - oCase_ = 16; - o_ = other.o_; - onChanged(); - break; - } - case Y: { - setY(other.getY()); - break; - } - case O_NOT_SET: { - break; - } - } - 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: { - const_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - internalGetNestedFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - intConst_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - boolConst_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - internalGetFloatValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - internalGetDurValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - internalGetTsValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - internalGetAnotherFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 77: { - floatConst_ = input.readFloat(); - bitField0_ |= 0x00000100; - break; - } // case 77 - case 81: { - doubleIn_ = input.readDouble(); - bitField0_ |= 0x00000200; - break; - } // case 81 - case 88: { - enumConst_ = input.readEnum(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 98: { - input.readMessage( - internalGetAnyValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 106: { - com.google.protobuf.Timestamp m = - input.readMessage( - com.google.protobuf.Timestamp.parser(), - extensionRegistry); - if (repTsValBuilder_ == null) { - ensureRepTsValIsMutable(); - repTsVal_.add(m); - } else { - repTsValBuilder_.addMessage(m); - } - break; - } // case 106 - case 114: { - com.google.protobuf.MapEntry - mapVal__ = input.readMessage( - MapValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMapVal().getMutableMap().put( - mapVal__.getKey(), mapVal__.getValue()); - bitField0_ |= 0x00002000; - break; - } // case 114 - case 122: { - bytesVal_ = input.readBytes(); - bitField0_ |= 0x00004000; - break; - } // case 122 - case 130: { - java.lang.String s = input.readStringRequireUtf8(); - oCase_ = 16; - o_ = s; - break; - } // case 130 - case 136: { - o_ = input.readInt32(); - oCase_ = 17; - break; - } // case 136 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object const_ = ""; - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The const. - */ - public java.lang.String getConst() { - java.lang.Object ref = const_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - const_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The bytes for const. - */ - public com.google.protobuf.ByteString - getConstBytes() { - java.lang.Object ref = const_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - const_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - const_ = getDefaultInstance().getConst(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @param value The bytes for const to set. - * @return This builder for chaining. - */ - public Builder setConstBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private build.buf.validate.conformance.cases.ComplexTestMsg nested_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder> nestedBuilder_; - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - * @return Whether the nested field is set. - */ - public boolean hasNested() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - * @return The nested. - */ - public build.buf.validate.conformance.cases.ComplexTestMsg getNested() { - if (nestedBuilder_ == null) { - return nested_ == null ? build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : nested_; - } else { - return nestedBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - */ - public Builder setNested(build.buf.validate.conformance.cases.ComplexTestMsg value) { - if (nestedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nested_ = value; - } else { - nestedBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - */ - public Builder setNested( - build.buf.validate.conformance.cases.ComplexTestMsg.Builder builderForValue) { - if (nestedBuilder_ == null) { - nested_ = builderForValue.build(); - } else { - nestedBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - */ - public Builder mergeNested(build.buf.validate.conformance.cases.ComplexTestMsg value) { - if (nestedBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - nested_ != null && - nested_ != build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance()) { - getNestedBuilder().mergeFrom(value); - } else { - nested_ = value; - } - } else { - nestedBuilder_.mergeFrom(value); - } - if (nested_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - */ - public Builder clearNested() { - bitField0_ = (bitField0_ & ~0x00000002); - nested_ = null; - if (nestedBuilder_ != null) { - nestedBuilder_.dispose(); - nestedBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - */ - public build.buf.validate.conformance.cases.ComplexTestMsg.Builder getNestedBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetNestedFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - */ - public build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getNestedOrBuilder() { - if (nestedBuilder_ != null) { - return nestedBuilder_.getMessageOrBuilder(); - } else { - return nested_ == null ? - build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : nested_; - } - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder> - internalGetNestedFieldBuilder() { - if (nestedBuilder_ == null) { - nestedBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder>( - getNested(), - getParentForChildren(), - isClean()); - nested_ = null; - } - return nestedBuilder_; - } - - private int intConst_ ; - /** - * int32 int_const = 3 [json_name = "intConst", (.buf.validate.field) = { ... } - * @return The intConst. - */ - @java.lang.Override - public int getIntConst() { - return intConst_; - } - /** - * int32 int_const = 3 [json_name = "intConst", (.buf.validate.field) = { ... } - * @param value The intConst to set. - * @return This builder for chaining. - */ - public Builder setIntConst(int value) { - - intConst_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int32 int_const = 3 [json_name = "intConst", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearIntConst() { - bitField0_ = (bitField0_ & ~0x00000004); - intConst_ = 0; - onChanged(); - return this; - } - - private boolean boolConst_ ; - /** - * bool bool_const = 4 [json_name = "boolConst", (.buf.validate.field) = { ... } - * @return The boolConst. - */ - @java.lang.Override - public boolean getBoolConst() { - return boolConst_; - } - /** - * bool bool_const = 4 [json_name = "boolConst", (.buf.validate.field) = { ... } - * @param value The boolConst to set. - * @return This builder for chaining. - */ - public Builder setBoolConst(boolean value) { - - boolConst_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * bool bool_const = 4 [json_name = "boolConst", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearBoolConst() { - bitField0_ = (bitField0_ & ~0x00000008); - boolConst_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.FloatValue floatVal_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> floatValBuilder_; - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - * @return Whether the floatVal field is set. - */ - public boolean hasFloatVal() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - * @return The floatVal. - */ - public com.google.protobuf.FloatValue getFloatVal() { - if (floatValBuilder_ == null) { - return floatVal_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : floatVal_; - } else { - return floatValBuilder_.getMessage(); - } - } - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - */ - public Builder setFloatVal(com.google.protobuf.FloatValue value) { - if (floatValBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - floatVal_ = value; - } else { - floatValBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - */ - public Builder setFloatVal( - com.google.protobuf.FloatValue.Builder builderForValue) { - if (floatValBuilder_ == null) { - floatVal_ = builderForValue.build(); - } else { - floatValBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - */ - public Builder mergeFloatVal(com.google.protobuf.FloatValue value) { - if (floatValBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - floatVal_ != null && - floatVal_ != com.google.protobuf.FloatValue.getDefaultInstance()) { - getFloatValBuilder().mergeFrom(value); - } else { - floatVal_ = value; - } - } else { - floatValBuilder_.mergeFrom(value); - } - if (floatVal_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - */ - public Builder clearFloatVal() { - bitField0_ = (bitField0_ & ~0x00000010); - floatVal_ = null; - if (floatValBuilder_ != null) { - floatValBuilder_.dispose(); - floatValBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValue.Builder getFloatValBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetFloatValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValueOrBuilder getFloatValOrBuilder() { - if (floatValBuilder_ != null) { - return floatValBuilder_.getMessageOrBuilder(); - } else { - return floatVal_ == null ? - com.google.protobuf.FloatValue.getDefaultInstance() : floatVal_; - } - } - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> - internalGetFloatValFieldBuilder() { - if (floatValBuilder_ == null) { - floatValBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>( - getFloatVal(), - getParentForChildren(), - isClean()); - floatVal_ = null; - } - return floatValBuilder_; - } - - private com.google.protobuf.Duration durVal_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durValBuilder_; - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - * @return Whether the durVal field is set. - */ - public boolean hasDurVal() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - * @return The durVal. - */ - public com.google.protobuf.Duration getDurVal() { - if (durValBuilder_ == null) { - return durVal_ == null ? com.google.protobuf.Duration.getDefaultInstance() : durVal_; - } else { - return durValBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - */ - public Builder setDurVal(com.google.protobuf.Duration value) { - if (durValBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - durVal_ = value; - } else { - durValBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - */ - public Builder setDurVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (durValBuilder_ == null) { - durVal_ = builderForValue.build(); - } else { - durValBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - */ - public Builder mergeDurVal(com.google.protobuf.Duration value) { - if (durValBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - durVal_ != null && - durVal_ != com.google.protobuf.Duration.getDefaultInstance()) { - getDurValBuilder().mergeFrom(value); - } else { - durVal_ = value; - } - } else { - durValBuilder_.mergeFrom(value); - } - if (durVal_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - */ - public Builder clearDurVal() { - bitField0_ = (bitField0_ & ~0x00000020); - durVal_ = null; - if (durValBuilder_ != null) { - durValBuilder_.dispose(); - durValBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getDurValBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return internalGetDurValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getDurValOrBuilder() { - if (durValBuilder_ != null) { - return durValBuilder_.getMessageOrBuilder(); - } else { - return durVal_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : durVal_; - } - } - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetDurValFieldBuilder() { - if (durValBuilder_ == null) { - durValBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDurVal(), - getParentForChildren(), - isClean()); - durVal_ = null; - } - return durValBuilder_; - } - - private com.google.protobuf.Timestamp tsVal_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tsValBuilder_; - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - * @return Whether the tsVal field is set. - */ - public boolean hasTsVal() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - * @return The tsVal. - */ - public com.google.protobuf.Timestamp getTsVal() { - if (tsValBuilder_ == null) { - return tsVal_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : tsVal_; - } else { - return tsValBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - */ - public Builder setTsVal(com.google.protobuf.Timestamp value) { - if (tsValBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tsVal_ = value; - } else { - tsValBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - */ - public Builder setTsVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (tsValBuilder_ == null) { - tsVal_ = builderForValue.build(); - } else { - tsValBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - */ - public Builder mergeTsVal(com.google.protobuf.Timestamp value) { - if (tsValBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - tsVal_ != null && - tsVal_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getTsValBuilder().mergeFrom(value); - } else { - tsVal_ = value; - } - } else { - tsValBuilder_.mergeFrom(value); - } - if (tsVal_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - */ - public Builder clearTsVal() { - bitField0_ = (bitField0_ & ~0x00000040); - tsVal_ = null; - if (tsValBuilder_ != null) { - tsValBuilder_.dispose(); - tsValBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getTsValBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return internalGetTsValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getTsValOrBuilder() { - if (tsValBuilder_ != null) { - return tsValBuilder_.getMessageOrBuilder(); - } else { - return tsVal_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : tsVal_; - } - } - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetTsValFieldBuilder() { - if (tsValBuilder_ == null) { - tsValBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTsVal(), - getParentForChildren(), - isClean()); - tsVal_ = null; - } - return tsValBuilder_; - } - - private build.buf.validate.conformance.cases.ComplexTestMsg another_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder> anotherBuilder_; - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - * @return Whether the another field is set. - */ - public boolean hasAnother() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - * @return The another. - */ - public build.buf.validate.conformance.cases.ComplexTestMsg getAnother() { - if (anotherBuilder_ == null) { - return another_ == null ? build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : another_; - } else { - return anotherBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - */ - public Builder setAnother(build.buf.validate.conformance.cases.ComplexTestMsg value) { - if (anotherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - another_ = value; - } else { - anotherBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - */ - public Builder setAnother( - build.buf.validate.conformance.cases.ComplexTestMsg.Builder builderForValue) { - if (anotherBuilder_ == null) { - another_ = builderForValue.build(); - } else { - anotherBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - */ - public Builder mergeAnother(build.buf.validate.conformance.cases.ComplexTestMsg value) { - if (anotherBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - another_ != null && - another_ != build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance()) { - getAnotherBuilder().mergeFrom(value); - } else { - another_ = value; - } - } else { - anotherBuilder_.mergeFrom(value); - } - if (another_ != null) { - bitField0_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - */ - public Builder clearAnother() { - bitField0_ = (bitField0_ & ~0x00000080); - another_ = null; - if (anotherBuilder_ != null) { - anotherBuilder_.dispose(); - anotherBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - */ - public build.buf.validate.conformance.cases.ComplexTestMsg.Builder getAnotherBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return internalGetAnotherFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - */ - public build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getAnotherOrBuilder() { - if (anotherBuilder_ != null) { - return anotherBuilder_.getMessageOrBuilder(); - } else { - return another_ == null ? - build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : another_; - } - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder> - internalGetAnotherFieldBuilder() { - if (anotherBuilder_ == null) { - anotherBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder>( - getAnother(), - getParentForChildren(), - isClean()); - another_ = null; - } - return anotherBuilder_; - } - - private float floatConst_ ; - /** - * float float_const = 9 [json_name = "floatConst", (.buf.validate.field) = { ... } - * @return The floatConst. - */ - @java.lang.Override - public float getFloatConst() { - return floatConst_; - } - /** - * float float_const = 9 [json_name = "floatConst", (.buf.validate.field) = { ... } - * @param value The floatConst to set. - * @return This builder for chaining. - */ - public Builder setFloatConst(float value) { - - floatConst_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * float float_const = 9 [json_name = "floatConst", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearFloatConst() { - bitField0_ = (bitField0_ & ~0x00000100); - floatConst_ = 0F; - onChanged(); - return this; - } - - private double doubleIn_ ; - /** - * double double_in = 10 [json_name = "doubleIn", (.buf.validate.field) = { ... } - * @return The doubleIn. - */ - @java.lang.Override - public double getDoubleIn() { - return doubleIn_; - } - /** - * double double_in = 10 [json_name = "doubleIn", (.buf.validate.field) = { ... } - * @param value The doubleIn to set. - * @return This builder for chaining. - */ - public Builder setDoubleIn(double value) { - - doubleIn_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * double double_in = 10 [json_name = "doubleIn", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearDoubleIn() { - bitField0_ = (bitField0_ & ~0x00000200); - doubleIn_ = 0D; - onChanged(); - return this; - } - - private int enumConst_ = 0; - /** - * .buf.validate.conformance.cases.ComplexTestEnum enum_const = 11 [json_name = "enumConst", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for enumConst. - */ - @java.lang.Override public int getEnumConstValue() { - return enumConst_; - } - /** - * .buf.validate.conformance.cases.ComplexTestEnum enum_const = 11 [json_name = "enumConst", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for enumConst to set. - * @return This builder for chaining. - */ - public Builder setEnumConstValue(int value) { - enumConst_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestEnum enum_const = 11 [json_name = "enumConst", (.buf.validate.field) = { ... } - * @return The enumConst. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.ComplexTestEnum getEnumConst() { - build.buf.validate.conformance.cases.ComplexTestEnum result = build.buf.validate.conformance.cases.ComplexTestEnum.forNumber(enumConst_); - return result == null ? build.buf.validate.conformance.cases.ComplexTestEnum.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.ComplexTestEnum enum_const = 11 [json_name = "enumConst", (.buf.validate.field) = { ... } - * @param value The enumConst to set. - * @return This builder for chaining. - */ - public Builder setEnumConst(build.buf.validate.conformance.cases.ComplexTestEnum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - enumConst_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestEnum enum_const = 11 [json_name = "enumConst", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearEnumConst() { - bitField0_ = (bitField0_ & ~0x00000400); - enumConst_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Any anyVal_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> anyValBuilder_; - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - * @return Whether the anyVal field is set. - */ - public boolean hasAnyVal() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - * @return The anyVal. - */ - public com.google.protobuf.Any getAnyVal() { - if (anyValBuilder_ == null) { - return anyVal_ == null ? com.google.protobuf.Any.getDefaultInstance() : anyVal_; - } else { - return anyValBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - */ - public Builder setAnyVal(com.google.protobuf.Any value) { - if (anyValBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - anyVal_ = value; - } else { - anyValBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - */ - public Builder setAnyVal( - com.google.protobuf.Any.Builder builderForValue) { - if (anyValBuilder_ == null) { - anyVal_ = builderForValue.build(); - } else { - anyValBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - */ - public Builder mergeAnyVal(com.google.protobuf.Any value) { - if (anyValBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - anyVal_ != null && - anyVal_ != com.google.protobuf.Any.getDefaultInstance()) { - getAnyValBuilder().mergeFrom(value); - } else { - anyVal_ = value; - } - } else { - anyValBuilder_.mergeFrom(value); - } - if (anyVal_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - */ - public Builder clearAnyVal() { - bitField0_ = (bitField0_ & ~0x00000800); - anyVal_ = null; - if (anyValBuilder_ != null) { - anyValBuilder_.dispose(); - anyValBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any.Builder getAnyValBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return internalGetAnyValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.AnyOrBuilder getAnyValOrBuilder() { - if (anyValBuilder_ != null) { - return anyValBuilder_.getMessageOrBuilder(); - } else { - return anyVal_ == null ? - com.google.protobuf.Any.getDefaultInstance() : anyVal_; - } - } - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - internalGetAnyValFieldBuilder() { - if (anyValBuilder_ == null) { - anyValBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getAnyVal(), - getParentForChildren(), - isClean()); - anyVal_ = null; - } - return anyValBuilder_; - } - - private java.util.List repTsVal_ = - java.util.Collections.emptyList(); - private void ensureRepTsValIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { - repTsVal_ = new java.util.ArrayList(repTsVal_); - bitField0_ |= 0x00001000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> repTsValBuilder_; - - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public java.util.List getRepTsValList() { - if (repTsValBuilder_ == null) { - return java.util.Collections.unmodifiableList(repTsVal_); - } else { - return repTsValBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public int getRepTsValCount() { - if (repTsValBuilder_ == null) { - return repTsVal_.size(); - } else { - return repTsValBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp getRepTsVal(int index) { - if (repTsValBuilder_ == null) { - return repTsVal_.get(index); - } else { - return repTsValBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public Builder setRepTsVal( - int index, com.google.protobuf.Timestamp value) { - if (repTsValBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRepTsValIsMutable(); - repTsVal_.set(index, value); - onChanged(); - } else { - repTsValBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public Builder setRepTsVal( - int index, com.google.protobuf.Timestamp.Builder builderForValue) { - if (repTsValBuilder_ == null) { - ensureRepTsValIsMutable(); - repTsVal_.set(index, builderForValue.build()); - onChanged(); - } else { - repTsValBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public Builder addRepTsVal(com.google.protobuf.Timestamp value) { - if (repTsValBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRepTsValIsMutable(); - repTsVal_.add(value); - onChanged(); - } else { - repTsValBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public Builder addRepTsVal( - int index, com.google.protobuf.Timestamp value) { - if (repTsValBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRepTsValIsMutable(); - repTsVal_.add(index, value); - onChanged(); - } else { - repTsValBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public Builder addRepTsVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (repTsValBuilder_ == null) { - ensureRepTsValIsMutable(); - repTsVal_.add(builderForValue.build()); - onChanged(); - } else { - repTsValBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public Builder addRepTsVal( - int index, com.google.protobuf.Timestamp.Builder builderForValue) { - if (repTsValBuilder_ == null) { - ensureRepTsValIsMutable(); - repTsVal_.add(index, builderForValue.build()); - onChanged(); - } else { - repTsValBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public Builder addAllRepTsVal( - java.lang.Iterable values) { - if (repTsValBuilder_ == null) { - ensureRepTsValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, repTsVal_); - onChanged(); - } else { - repTsValBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public Builder clearRepTsVal() { - if (repTsValBuilder_ == null) { - repTsVal_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - } else { - repTsValBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public Builder removeRepTsVal(int index) { - if (repTsValBuilder_ == null) { - ensureRepTsValIsMutable(); - repTsVal_.remove(index); - onChanged(); - } else { - repTsValBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getRepTsValBuilder( - int index) { - return internalGetRepTsValFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getRepTsValOrBuilder( - int index) { - if (repTsValBuilder_ == null) { - return repTsVal_.get(index); } else { - return repTsValBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public java.util.List - getRepTsValOrBuilderList() { - if (repTsValBuilder_ != null) { - return repTsValBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(repTsVal_); - } - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder addRepTsValBuilder() { - return internalGetRepTsValFieldBuilder().addBuilder( - com.google.protobuf.Timestamp.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder addRepTsValBuilder( - int index) { - return internalGetRepTsValFieldBuilder().addBuilder( - index, com.google.protobuf.Timestamp.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - public java.util.List - getRepTsValBuilderList() { - return internalGetRepTsValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetRepTsValFieldBuilder() { - if (repTsValBuilder_ == null) { - repTsValBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - repTsVal_, - ((bitField0_ & 0x00001000) != 0), - getParentForChildren(), - isClean()); - repTsVal_ = null; - } - return repTsValBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.String> mapVal_; - private com.google.protobuf.MapField - internalGetMapVal() { - if (mapVal_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MapValDefaultEntryHolder.defaultEntry); - } - return mapVal_; - } - private com.google.protobuf.MapField - internalGetMutableMapVal() { - if (mapVal_ == null) { - mapVal_ = com.google.protobuf.MapField.newMapField( - MapValDefaultEntryHolder.defaultEntry); - } - if (!mapVal_.isMutable()) { - mapVal_ = mapVal_.copy(); - } - bitField0_ |= 0x00002000; - onChanged(); - return mapVal_; - } - public int getMapValCount() { - return internalGetMapVal().getMap().size(); - } - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsMapVal( - int key) { - - return internalGetMapVal().getMap().containsKey(key); - } - /** - * Use {@link #getMapValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getMapVal() { - return getMapValMap(); - } - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getMapValMap() { - return internalGetMapVal().getMap(); - } - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getMapValOrDefault( - int key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetMapVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getMapValOrThrow( - int key) { - - java.util.Map map = - internalGetMapVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearMapVal() { - bitField0_ = (bitField0_ & ~0x00002000); - internalGetMutableMapVal().getMutableMap() - .clear(); - return this; - } - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - public Builder removeMapVal( - int key) { - - internalGetMutableMapVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableMapVal() { - bitField0_ |= 0x00002000; - return internalGetMutableMapVal().getMutableMap(); - } - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - public Builder putMapVal( - int key, - java.lang.String value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableMapVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00002000; - return this; - } - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - public Builder putAllMapVal( - java.util.Map values) { - internalGetMutableMapVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00002000; - return this; - } - - private com.google.protobuf.ByteString bytesVal_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes bytes_val = 15 [json_name = "bytesVal", (.buf.validate.field) = { ... } - * @return The bytesVal. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBytesVal() { - return bytesVal_; - } - /** - * bytes bytes_val = 15 [json_name = "bytesVal", (.buf.validate.field) = { ... } - * @param value The bytesVal to set. - * @return This builder for chaining. - */ - public Builder setBytesVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - bytesVal_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * bytes bytes_val = 15 [json_name = "bytesVal", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearBytesVal() { - bitField0_ = (bitField0_ & ~0x00004000); - bytesVal_ = getDefaultInstance().getBytesVal(); - onChanged(); - return this; - } - - /** - * string x = 16 [json_name = "x"]; - * @return Whether the x field is set. - */ - @java.lang.Override - public boolean hasX() { - return oCase_ == 16; - } - /** - * string x = 16 [json_name = "x"]; - * @return The x. - */ - @java.lang.Override - public java.lang.String getX() { - java.lang.Object ref = ""; - if (oCase_ == 16) { - ref = o_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 16) { - o_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string x = 16 [json_name = "x"]; - * @return The bytes for x. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = ""; - if (oCase_ == 16) { - ref = o_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 16) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string x = 16 [json_name = "x"]; - * @param value The x to set. - * @return This builder for chaining. - */ - public Builder setX( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - oCase_ = 16; - o_ = value; - onChanged(); - return this; - } - /** - * string x = 16 [json_name = "x"]; - * @return This builder for chaining. - */ - public Builder clearX() { - if (oCase_ == 16) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - /** - * string x = 16 [json_name = "x"]; - * @param value The bytes for x to set. - * @return This builder for chaining. - */ - public Builder setXBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - oCase_ = 16; - o_ = value; - onChanged(); - return this; - } - - /** - * int32 y = 17 [json_name = "y"]; - * @return Whether the y field is set. - */ - public boolean hasY() { - return oCase_ == 17; - } - /** - * int32 y = 17 [json_name = "y"]; - * @return The y. - */ - public int getY() { - if (oCase_ == 17) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 y = 17 [json_name = "y"]; - * @param value The y to set. - * @return This builder for chaining. - */ - public Builder setY(int value) { - - oCase_ = 17; - o_ = value; - onChanged(); - return this; - } - /** - * int32 y = 17 [json_name = "y"]; - * @return This builder for chaining. - */ - public Builder clearY() { - if (oCase_ == 17) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.ComplexTestMsg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.ComplexTestMsg) - private static final build.buf.validate.conformance.cases.ComplexTestMsg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.ComplexTestMsg(); - } - - public static build.buf.validate.conformance.cases.ComplexTestMsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComplexTestMsg 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.ComplexTestMsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsgOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsgOrBuilder.java deleted file mode 100644 index b191ae21..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/ComplexTestMsgOrBuilder.java +++ /dev/null @@ -1,242 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/kitchen_sink.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface ComplexTestMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.ComplexTestMsg) - com.google.protobuf.MessageOrBuilder { - - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The const. - */ - java.lang.String getConst(); - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The bytes for const. - */ - com.google.protobuf.ByteString - getConstBytes(); - - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - * @return Whether the nested field is set. - */ - boolean hasNested(); - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - * @return The nested. - */ - build.buf.validate.conformance.cases.ComplexTestMsg getNested(); - /** - * .buf.validate.conformance.cases.ComplexTestMsg nested = 2 [json_name = "nested"]; - */ - build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getNestedOrBuilder(); - - /** - * int32 int_const = 3 [json_name = "intConst", (.buf.validate.field) = { ... } - * @return The intConst. - */ - int getIntConst(); - - /** - * bool bool_const = 4 [json_name = "boolConst", (.buf.validate.field) = { ... } - * @return The boolConst. - */ - boolean getBoolConst(); - - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - * @return Whether the floatVal field is set. - */ - boolean hasFloatVal(); - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - * @return The floatVal. - */ - com.google.protobuf.FloatValue getFloatVal(); - /** - * .google.protobuf.FloatValue float_val = 5 [json_name = "floatVal", (.buf.validate.field) = { ... } - */ - com.google.protobuf.FloatValueOrBuilder getFloatValOrBuilder(); - - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - * @return Whether the durVal field is set. - */ - boolean hasDurVal(); - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - * @return The durVal. - */ - com.google.protobuf.Duration getDurVal(); - /** - * .google.protobuf.Duration dur_val = 6 [json_name = "durVal", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getDurValOrBuilder(); - - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - * @return Whether the tsVal field is set. - */ - boolean hasTsVal(); - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - * @return The tsVal. - */ - com.google.protobuf.Timestamp getTsVal(); - /** - * .google.protobuf.Timestamp ts_val = 7 [json_name = "tsVal", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getTsValOrBuilder(); - - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - * @return Whether the another field is set. - */ - boolean hasAnother(); - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - * @return The another. - */ - build.buf.validate.conformance.cases.ComplexTestMsg getAnother(); - /** - * .buf.validate.conformance.cases.ComplexTestMsg another = 8 [json_name = "another"]; - */ - build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getAnotherOrBuilder(); - - /** - * float float_const = 9 [json_name = "floatConst", (.buf.validate.field) = { ... } - * @return The floatConst. - */ - float getFloatConst(); - - /** - * double double_in = 10 [json_name = "doubleIn", (.buf.validate.field) = { ... } - * @return The doubleIn. - */ - double getDoubleIn(); - - /** - * .buf.validate.conformance.cases.ComplexTestEnum enum_const = 11 [json_name = "enumConst", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for enumConst. - */ - int getEnumConstValue(); - /** - * .buf.validate.conformance.cases.ComplexTestEnum enum_const = 11 [json_name = "enumConst", (.buf.validate.field) = { ... } - * @return The enumConst. - */ - build.buf.validate.conformance.cases.ComplexTestEnum getEnumConst(); - - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - * @return Whether the anyVal field is set. - */ - boolean hasAnyVal(); - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - * @return The anyVal. - */ - com.google.protobuf.Any getAnyVal(); - /** - * .google.protobuf.Any any_val = 12 [json_name = "anyVal", (.buf.validate.field) = { ... } - */ - com.google.protobuf.AnyOrBuilder getAnyValOrBuilder(); - - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - java.util.List - getRepTsValList(); - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Timestamp getRepTsVal(int index); - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - int getRepTsValCount(); - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - java.util.List - getRepTsValOrBuilderList(); - /** - * repeated .google.protobuf.Timestamp rep_ts_val = 13 [json_name = "repTsVal", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getRepTsValOrBuilder( - int index); - - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - int getMapValCount(); - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - boolean containsMapVal( - int key); - /** - * Use {@link #getMapValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getMapVal(); - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - java.util.Map - getMapValMap(); - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getMapValOrDefault( - int key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<sint32, string> map_val = 14 [json_name = "mapVal", (.buf.validate.field) = { ... } - */ - java.lang.String getMapValOrThrow( - int key); - - /** - * bytes bytes_val = 15 [json_name = "bytesVal", (.buf.validate.field) = { ... } - * @return The bytesVal. - */ - com.google.protobuf.ByteString getBytesVal(); - - /** - * string x = 16 [json_name = "x"]; - * @return Whether the x field is set. - */ - boolean hasX(); - /** - * string x = 16 [json_name = "x"]; - * @return The x. - */ - java.lang.String getX(); - /** - * string x = 16 [json_name = "x"]; - * @return The bytes for x. - */ - com.google.protobuf.ByteString - getXBytes(); - - /** - * int32 y = 17 [json_name = "y"]; - * @return Whether the y field is set. - */ - boolean hasY(); - /** - * int32 y = 17 [json_name = "y"]; - * @return The y. - */ - int getY(); - - build.buf.validate.conformance.cases.ComplexTestMsg.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConst.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConst.java deleted file mode 100644 index 91008f34..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConst.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleConst} - */ -public final class DoubleConst extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleConst) - DoubleConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleConst.class.getName()); - } - // Use DoubleConst.newBuilder() to construct. - private DoubleConst(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleConst() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleConst.class, build.buf.validate.conformance.cases.DoubleConst.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleConst)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleConst other = (build.buf.validate.conformance.cases.DoubleConst) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleConst parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleConst 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.DoubleConst parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleConst 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.DoubleConst parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleConst 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.DoubleConst parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleConst 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.DoubleConst parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleConst 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.DoubleConst 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.DoubleConst 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.DoubleConst 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.DoubleConst} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleConst) - build.buf.validate.conformance.cases.DoubleConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleConst.class, build.buf.validate.conformance.cases.DoubleConst.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleConst.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleConst_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleConst getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleConst.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleConst build() { - build.buf.validate.conformance.cases.DoubleConst result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleConst buildPartial() { - build.buf.validate.conformance.cases.DoubleConst result = new build.buf.validate.conformance.cases.DoubleConst(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleConst result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleConst) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleConst)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleConst other) { - if (other == build.buf.validate.conformance.cases.DoubleConst.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleConst) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleConst) - private static final build.buf.validate.conformance.cases.DoubleConst DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleConst(); - } - - public static build.buf.validate.conformance.cases.DoubleConst getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleConst 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.DoubleConst getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConstOrBuilder.java deleted file mode 100644 index a0d0c09e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleConst) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTE.java deleted file mode 100644 index b19ab8ef..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTE.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleExGTELTE} - */ -public final class DoubleExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleExGTELTE) - DoubleExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleExGTELTE.class.getName()); - } - // Use DoubleExGTELTE.newBuilder() to construct. - private DoubleExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleExGTELTE.class, build.buf.validate.conformance.cases.DoubleExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleExGTELTE other = (build.buf.validate.conformance.cases.DoubleExGTELTE) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleExGTELTE 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.DoubleExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleExGTELTE 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.DoubleExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleExGTELTE 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.DoubleExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleExGTELTE 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.DoubleExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleExGTELTE 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.DoubleExGTELTE 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.DoubleExGTELTE 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.DoubleExGTELTE 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.DoubleExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleExGTELTE) - build.buf.validate.conformance.cases.DoubleExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleExGTELTE.class, build.buf.validate.conformance.cases.DoubleExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleExGTELTE build() { - build.buf.validate.conformance.cases.DoubleExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleExGTELTE buildPartial() { - build.buf.validate.conformance.cases.DoubleExGTELTE result = new build.buf.validate.conformance.cases.DoubleExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleExGTELTE other) { - if (other == build.buf.validate.conformance.cases.DoubleExGTELTE.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleExGTELTE) - private static final build.buf.validate.conformance.cases.DoubleExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleExGTELTE(); - } - - public static build.buf.validate.conformance.cases.DoubleExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleExGTELTE 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.DoubleExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTEOrBuilder.java deleted file mode 100644 index 92130544..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGT.java deleted file mode 100644 index 2422fd57..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGT.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleExLTGT} - */ -public final class DoubleExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleExLTGT) - DoubleExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleExLTGT.class.getName()); - } - // Use DoubleExLTGT.newBuilder() to construct. - private DoubleExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleExLTGT.class, build.buf.validate.conformance.cases.DoubleExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleExLTGT other = (build.buf.validate.conformance.cases.DoubleExLTGT) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleExLTGT 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.DoubleExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleExLTGT 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.DoubleExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleExLTGT 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.DoubleExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleExLTGT 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.DoubleExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleExLTGT 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.DoubleExLTGT 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.DoubleExLTGT 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.DoubleExLTGT 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.DoubleExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleExLTGT) - build.buf.validate.conformance.cases.DoubleExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleExLTGT.class, build.buf.validate.conformance.cases.DoubleExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleExLTGT build() { - build.buf.validate.conformance.cases.DoubleExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleExLTGT buildPartial() { - build.buf.validate.conformance.cases.DoubleExLTGT result = new build.buf.validate.conformance.cases.DoubleExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleExLTGT other) { - if (other == build.buf.validate.conformance.cases.DoubleExLTGT.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleExLTGT) - private static final build.buf.validate.conformance.cases.DoubleExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleExLTGT(); - } - - public static build.buf.validate.conformance.cases.DoubleExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleExLTGT 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.DoubleExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGTOrBuilder.java deleted file mode 100644 index 0c944edd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExample.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExample.java deleted file mode 100644 index 3b07599d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExample.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleExample} - */ -public final class DoubleExample extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleExample) - DoubleExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleExample.class.getName()); - } - // Use DoubleExample.newBuilder() to construct. - private DoubleExample(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleExample() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleExample.class, build.buf.validate.conformance.cases.DoubleExample.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleExample)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleExample other = (build.buf.validate.conformance.cases.DoubleExample) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleExample parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleExample 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.DoubleExample parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleExample 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.DoubleExample parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleExample 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.DoubleExample parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleExample 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.DoubleExample parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleExample 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.DoubleExample 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.DoubleExample 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.DoubleExample 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.DoubleExample} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleExample) - build.buf.validate.conformance.cases.DoubleExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleExample.class, build.buf.validate.conformance.cases.DoubleExample.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleExample.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleExample_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleExample getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleExample.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleExample build() { - build.buf.validate.conformance.cases.DoubleExample result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleExample buildPartial() { - build.buf.validate.conformance.cases.DoubleExample result = new build.buf.validate.conformance.cases.DoubleExample(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleExample result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleExample) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleExample)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleExample other) { - if (other == build.buf.validate.conformance.cases.DoubleExample.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleExample) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleExample) - private static final build.buf.validate.conformance.cases.DoubleExample DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleExample(); - } - - public static build.buf.validate.conformance.cases.DoubleExample getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleExample 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.DoubleExample getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExampleOrBuilder.java deleted file mode 100644 index 3cbe6812..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleExample) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFinite.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFinite.java deleted file mode 100644 index 8a8db33b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFinite.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleFinite} - */ -public final class DoubleFinite extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleFinite) - DoubleFiniteOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleFinite.class.getName()); - } - // Use DoubleFinite.newBuilder() to construct. - private DoubleFinite(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleFinite() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleFinite_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleFinite_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleFinite.class, build.buf.validate.conformance.cases.DoubleFinite.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleFinite)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleFinite other = (build.buf.validate.conformance.cases.DoubleFinite) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleFinite parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleFinite 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.DoubleFinite parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleFinite 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.DoubleFinite parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleFinite 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.DoubleFinite parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleFinite 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.DoubleFinite parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleFinite 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.DoubleFinite 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.DoubleFinite 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.DoubleFinite 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.DoubleFinite} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleFinite) - build.buf.validate.conformance.cases.DoubleFiniteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleFinite_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleFinite_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleFinite.class, build.buf.validate.conformance.cases.DoubleFinite.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleFinite.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleFinite_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleFinite getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleFinite.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleFinite build() { - build.buf.validate.conformance.cases.DoubleFinite result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleFinite buildPartial() { - build.buf.validate.conformance.cases.DoubleFinite result = new build.buf.validate.conformance.cases.DoubleFinite(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleFinite result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleFinite) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleFinite)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleFinite other) { - if (other == build.buf.validate.conformance.cases.DoubleFinite.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleFinite) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleFinite) - private static final build.buf.validate.conformance.cases.DoubleFinite DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleFinite(); - } - - public static build.buf.validate.conformance.cases.DoubleFinite getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleFinite 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.DoubleFinite getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFiniteOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFiniteOrBuilder.java deleted file mode 100644 index d1eef23b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleFiniteOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleFiniteOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleFinite) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGT.java deleted file mode 100644 index c2fc0c86..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGT.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleGT} - */ -public final class DoubleGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleGT) - DoubleGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleGT.class.getName()); - } - // Use DoubleGT.newBuilder() to construct. - private DoubleGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleGT.class, build.buf.validate.conformance.cases.DoubleGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleGT other = (build.buf.validate.conformance.cases.DoubleGT) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGT 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.DoubleGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGT 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.DoubleGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGT 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.DoubleGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleGT 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.DoubleGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleGT 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.DoubleGT 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.DoubleGT 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.DoubleGT 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.DoubleGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleGT) - build.buf.validate.conformance.cases.DoubleGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleGT.class, build.buf.validate.conformance.cases.DoubleGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGT build() { - build.buf.validate.conformance.cases.DoubleGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGT buildPartial() { - build.buf.validate.conformance.cases.DoubleGT result = new build.buf.validate.conformance.cases.DoubleGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleGT) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleGT other) { - if (other == build.buf.validate.conformance.cases.DoubleGT.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleGT) - private static final build.buf.validate.conformance.cases.DoubleGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleGT(); - } - - public static build.buf.validate.conformance.cases.DoubleGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleGT 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.DoubleGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTE.java deleted file mode 100644 index ba2d559b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTE.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleGTE} - */ -public final class DoubleGTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleGTE) - DoubleGTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleGTE.class.getName()); - } - // Use DoubleGTE.newBuilder() to construct. - private DoubleGTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleGTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleGTE.class, build.buf.validate.conformance.cases.DoubleGTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleGTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleGTE other = (build.buf.validate.conformance.cases.DoubleGTE) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleGTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGTE 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.DoubleGTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGTE 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.DoubleGTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGTE 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.DoubleGTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleGTE 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.DoubleGTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleGTE 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.DoubleGTE 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.DoubleGTE 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.DoubleGTE 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.DoubleGTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleGTE) - build.buf.validate.conformance.cases.DoubleGTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleGTE.class, build.buf.validate.conformance.cases.DoubleGTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleGTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleGTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGTE build() { - build.buf.validate.conformance.cases.DoubleGTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGTE buildPartial() { - build.buf.validate.conformance.cases.DoubleGTE result = new build.buf.validate.conformance.cases.DoubleGTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleGTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleGTE) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleGTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleGTE other) { - if (other == build.buf.validate.conformance.cases.DoubleGTE.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleGTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleGTE) - private static final build.buf.validate.conformance.cases.DoubleGTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleGTE(); - } - - public static build.buf.validate.conformance.cases.DoubleGTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleGTE 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.DoubleGTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTE.java deleted file mode 100644 index e14e78df..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTE.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleGTELTE} - */ -public final class DoubleGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleGTELTE) - DoubleGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleGTELTE.class.getName()); - } - // Use DoubleGTELTE.newBuilder() to construct. - private DoubleGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleGTELTE.class, build.buf.validate.conformance.cases.DoubleGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleGTELTE other = (build.buf.validate.conformance.cases.DoubleGTELTE) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGTELTE 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.DoubleGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGTELTE 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.DoubleGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGTELTE 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.DoubleGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleGTELTE 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.DoubleGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleGTELTE 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.DoubleGTELTE 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.DoubleGTELTE 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.DoubleGTELTE 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.DoubleGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleGTELTE) - build.buf.validate.conformance.cases.DoubleGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleGTELTE.class, build.buf.validate.conformance.cases.DoubleGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGTELTE build() { - build.buf.validate.conformance.cases.DoubleGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGTELTE buildPartial() { - build.buf.validate.conformance.cases.DoubleGTELTE result = new build.buf.validate.conformance.cases.DoubleGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleGTELTE other) { - if (other == build.buf.validate.conformance.cases.DoubleGTELTE.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleGTELTE) - private static final build.buf.validate.conformance.cases.DoubleGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleGTELTE(); - } - - public static build.buf.validate.conformance.cases.DoubleGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleGTELTE 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.DoubleGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTEOrBuilder.java deleted file mode 100644 index 21851ecf..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTEOrBuilder.java deleted file mode 100644 index bbf83445..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleGTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleGTE) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLT.java deleted file mode 100644 index 477196d9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLT.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleGTLT} - */ -public final class DoubleGTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleGTLT) - DoubleGTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleGTLT.class.getName()); - } - // Use DoubleGTLT.newBuilder() to construct. - private DoubleGTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleGTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleGTLT.class, build.buf.validate.conformance.cases.DoubleGTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleGTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleGTLT other = (build.buf.validate.conformance.cases.DoubleGTLT) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleGTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGTLT 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.DoubleGTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGTLT 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.DoubleGTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleGTLT 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.DoubleGTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleGTLT 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.DoubleGTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleGTLT 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.DoubleGTLT 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.DoubleGTLT 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.DoubleGTLT 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.DoubleGTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleGTLT) - build.buf.validate.conformance.cases.DoubleGTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleGTLT.class, build.buf.validate.conformance.cases.DoubleGTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleGTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleGTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleGTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGTLT build() { - build.buf.validate.conformance.cases.DoubleGTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleGTLT buildPartial() { - build.buf.validate.conformance.cases.DoubleGTLT result = new build.buf.validate.conformance.cases.DoubleGTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleGTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleGTLT) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleGTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleGTLT other) { - if (other == build.buf.validate.conformance.cases.DoubleGTLT.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleGTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleGTLT) - private static final build.buf.validate.conformance.cases.DoubleGTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleGTLT(); - } - - public static build.buf.validate.conformance.cases.DoubleGTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleGTLT 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.DoubleGTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLTOrBuilder.java deleted file mode 100644 index 3c0d9c7f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleGTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleGTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTOrBuilder.java deleted file mode 100644 index acbb085d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleGT) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnore.java deleted file mode 100644 index 7ca8987d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnore.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleIgnore} - */ -public final class DoubleIgnore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleIgnore) - DoubleIgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleIgnore.class.getName()); - } - // Use DoubleIgnore.newBuilder() to construct. - private DoubleIgnore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleIgnore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIgnore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIgnore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleIgnore.class, build.buf.validate.conformance.cases.DoubleIgnore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleIgnore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleIgnore other = (build.buf.validate.conformance.cases.DoubleIgnore) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleIgnore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleIgnore 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.DoubleIgnore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleIgnore 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.DoubleIgnore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleIgnore 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.DoubleIgnore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleIgnore 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.DoubleIgnore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleIgnore 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.DoubleIgnore 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.DoubleIgnore 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.DoubleIgnore 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.DoubleIgnore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleIgnore) - build.buf.validate.conformance.cases.DoubleIgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIgnore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIgnore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleIgnore.class, build.buf.validate.conformance.cases.DoubleIgnore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleIgnore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIgnore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleIgnore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleIgnore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleIgnore build() { - build.buf.validate.conformance.cases.DoubleIgnore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleIgnore buildPartial() { - build.buf.validate.conformance.cases.DoubleIgnore result = new build.buf.validate.conformance.cases.DoubleIgnore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleIgnore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleIgnore) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleIgnore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleIgnore other) { - if (other == build.buf.validate.conformance.cases.DoubleIgnore.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleIgnore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleIgnore) - private static final build.buf.validate.conformance.cases.DoubleIgnore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleIgnore(); - } - - public static build.buf.validate.conformance.cases.DoubleIgnore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleIgnore 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.DoubleIgnore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnoreOrBuilder.java deleted file mode 100644 index 8ee5d145..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleIgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleIgnore) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIn.java deleted file mode 100644 index 230e0612..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIn.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleIn} - */ -public final class DoubleIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleIn) - DoubleInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleIn.class.getName()); - } - // Use DoubleIn.newBuilder() to construct. - private DoubleIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleIn.class, build.buf.validate.conformance.cases.DoubleIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleIn other = (build.buf.validate.conformance.cases.DoubleIn) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleIn 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.DoubleIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleIn 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.DoubleIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleIn 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.DoubleIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleIn 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.DoubleIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleIn 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.DoubleIn 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.DoubleIn 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.DoubleIn 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.DoubleIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleIn) - build.buf.validate.conformance.cases.DoubleInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleIn.class, build.buf.validate.conformance.cases.DoubleIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleIn build() { - build.buf.validate.conformance.cases.DoubleIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleIn buildPartial() { - build.buf.validate.conformance.cases.DoubleIn result = new build.buf.validate.conformance.cases.DoubleIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleIn) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleIn other) { - if (other == build.buf.validate.conformance.cases.DoubleIn.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleIn) - private static final build.buf.validate.conformance.cases.DoubleIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleIn(); - } - - public static build.buf.validate.conformance.cases.DoubleIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleIn 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.DoubleIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleInOrBuilder.java deleted file mode 100644 index 1a22edef..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleIn) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectType.java deleted file mode 100644 index 2d9b0cff..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectType.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleIncorrectType} - */ -public final class DoubleIncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleIncorrectType) - DoubleIncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleIncorrectType.class.getName()); - } - // Use DoubleIncorrectType.newBuilder() to construct. - private DoubleIncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleIncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleIncorrectType.class, build.buf.validate.conformance.cases.DoubleIncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleIncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleIncorrectType other = (build.buf.validate.conformance.cases.DoubleIncorrectType) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleIncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleIncorrectType 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.DoubleIncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleIncorrectType 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.DoubleIncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleIncorrectType 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.DoubleIncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleIncorrectType 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.DoubleIncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleIncorrectType 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.DoubleIncorrectType 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.DoubleIncorrectType 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.DoubleIncorrectType 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.DoubleIncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleIncorrectType) - build.buf.validate.conformance.cases.DoubleIncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleIncorrectType.class, build.buf.validate.conformance.cases.DoubleIncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleIncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleIncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleIncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleIncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleIncorrectType build() { - build.buf.validate.conformance.cases.DoubleIncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleIncorrectType buildPartial() { - build.buf.validate.conformance.cases.DoubleIncorrectType result = new build.buf.validate.conformance.cases.DoubleIncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleIncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleIncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleIncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleIncorrectType other) { - if (other == build.buf.validate.conformance.cases.DoubleIncorrectType.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleIncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleIncorrectType) - private static final build.buf.validate.conformance.cases.DoubleIncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleIncorrectType(); - } - - public static build.buf.validate.conformance.cases.DoubleIncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleIncorrectType 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.DoubleIncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectTypeOrBuilder.java deleted file mode 100644 index 691ce893..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleIncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleIncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleIncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLT.java deleted file mode 100644 index 45a9840d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLT.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleLT} - */ -public final class DoubleLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleLT) - DoubleLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleLT.class.getName()); - } - // Use DoubleLT.newBuilder() to construct. - private DoubleLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleLT.class, build.buf.validate.conformance.cases.DoubleLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleLT other = (build.buf.validate.conformance.cases.DoubleLT) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleLT 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.DoubleLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleLT 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.DoubleLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleLT 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.DoubleLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleLT 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.DoubleLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleLT 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.DoubleLT 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.DoubleLT 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.DoubleLT 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.DoubleLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleLT) - build.buf.validate.conformance.cases.DoubleLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleLT.class, build.buf.validate.conformance.cases.DoubleLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleLT build() { - build.buf.validate.conformance.cases.DoubleLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleLT buildPartial() { - build.buf.validate.conformance.cases.DoubleLT result = new build.buf.validate.conformance.cases.DoubleLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleLT) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleLT other) { - if (other == build.buf.validate.conformance.cases.DoubleLT.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleLT) - private static final build.buf.validate.conformance.cases.DoubleLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleLT(); - } - - public static build.buf.validate.conformance.cases.DoubleLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleLT 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.DoubleLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTE.java deleted file mode 100644 index 29c2d40e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTE.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleLTE} - */ -public final class DoubleLTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleLTE) - DoubleLTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleLTE.class.getName()); - } - // Use DoubleLTE.newBuilder() to construct. - private DoubleLTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleLTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleLTE.class, build.buf.validate.conformance.cases.DoubleLTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleLTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleLTE other = (build.buf.validate.conformance.cases.DoubleLTE) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleLTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleLTE 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.DoubleLTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleLTE 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.DoubleLTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleLTE 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.DoubleLTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleLTE 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.DoubleLTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleLTE 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.DoubleLTE 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.DoubleLTE 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.DoubleLTE 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.DoubleLTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleLTE) - build.buf.validate.conformance.cases.DoubleLTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleLTE.class, build.buf.validate.conformance.cases.DoubleLTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleLTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleLTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleLTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleLTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleLTE build() { - build.buf.validate.conformance.cases.DoubleLTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleLTE buildPartial() { - build.buf.validate.conformance.cases.DoubleLTE result = new build.buf.validate.conformance.cases.DoubleLTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleLTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleLTE) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleLTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleLTE other) { - if (other == build.buf.validate.conformance.cases.DoubleLTE.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleLTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleLTE) - private static final build.buf.validate.conformance.cases.DoubleLTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleLTE(); - } - - public static build.buf.validate.conformance.cases.DoubleLTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleLTE 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.DoubleLTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTEOrBuilder.java deleted file mode 100644 index 78a5cfe7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleLTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleLTE) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTOrBuilder.java deleted file mode 100644 index e488c06d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleLT) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNone.java deleted file mode 100644 index 8a581c47..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNone.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleNone} - */ -public final class DoubleNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleNone) - DoubleNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleNone.class.getName()); - } - // Use DoubleNone.newBuilder() to construct. - private DoubleNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleNone() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleNone.class, build.buf.validate.conformance.cases.DoubleNone.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleNone other = (build.buf.validate.conformance.cases.DoubleNone) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleNone 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.DoubleNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleNone 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.DoubleNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleNone 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.DoubleNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleNone 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.DoubleNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleNone 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.DoubleNone 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.DoubleNone 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.DoubleNone 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.DoubleNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleNone) - build.buf.validate.conformance.cases.DoubleNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleNone.class, build.buf.validate.conformance.cases.DoubleNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleNone.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleNone build() { - build.buf.validate.conformance.cases.DoubleNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleNone buildPartial() { - build.buf.validate.conformance.cases.DoubleNone result = new build.buf.validate.conformance.cases.DoubleNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleNone result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleNone) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleNone other) { - if (other == build.buf.validate.conformance.cases.DoubleNone.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleNone) - private static final build.buf.validate.conformance.cases.DoubleNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleNone(); - } - - public static build.buf.validate.conformance.cases.DoubleNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleNone 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.DoubleNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNoneOrBuilder.java deleted file mode 100644 index 3c00d356..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleNone) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val"]; - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotFinite.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotFinite.java deleted file mode 100644 index a7a69ce4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotFinite.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleNotFinite} - */ -public final class DoubleNotFinite extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleNotFinite) - DoubleNotFiniteOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleNotFinite.class.getName()); - } - // Use DoubleNotFinite.newBuilder() to construct. - private DoubleNotFinite(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleNotFinite() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotFinite_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotFinite_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleNotFinite.class, build.buf.validate.conformance.cases.DoubleNotFinite.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleNotFinite)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleNotFinite other = (build.buf.validate.conformance.cases.DoubleNotFinite) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleNotFinite parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleNotFinite 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.DoubleNotFinite parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleNotFinite 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.DoubleNotFinite parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleNotFinite 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.DoubleNotFinite parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleNotFinite 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.DoubleNotFinite parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleNotFinite 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.DoubleNotFinite 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.DoubleNotFinite 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.DoubleNotFinite 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.DoubleNotFinite} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleNotFinite) - build.buf.validate.conformance.cases.DoubleNotFiniteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotFinite_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotFinite_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleNotFinite.class, build.buf.validate.conformance.cases.DoubleNotFinite.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleNotFinite.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotFinite_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleNotFinite getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleNotFinite.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleNotFinite build() { - build.buf.validate.conformance.cases.DoubleNotFinite result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleNotFinite buildPartial() { - build.buf.validate.conformance.cases.DoubleNotFinite result = new build.buf.validate.conformance.cases.DoubleNotFinite(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleNotFinite result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleNotFinite) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleNotFinite)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleNotFinite other) { - if (other == build.buf.validate.conformance.cases.DoubleNotFinite.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleNotFinite) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleNotFinite) - private static final build.buf.validate.conformance.cases.DoubleNotFinite DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleNotFinite(); - } - - public static build.buf.validate.conformance.cases.DoubleNotFinite getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleNotFinite 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.DoubleNotFinite getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotFiniteOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotFiniteOrBuilder.java deleted file mode 100644 index 675e55b7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotFiniteOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleNotFiniteOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleNotFinite) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotIn.java deleted file mode 100644 index f553b022..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotIn.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DoubleNotIn} - */ -public final class DoubleNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DoubleNotIn) - DoubleNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleNotIn.class.getName()); - } - // Use DoubleNotIn.newBuilder() to construct. - private DoubleNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleNotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleNotIn.class, build.buf.validate.conformance.cases.DoubleNotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.DoubleNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DoubleNotIn other = (build.buf.validate.conformance.cases.DoubleNotIn) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DoubleNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleNotIn 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.DoubleNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleNotIn 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.DoubleNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DoubleNotIn 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.DoubleNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DoubleNotIn 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.DoubleNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DoubleNotIn 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.DoubleNotIn 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.DoubleNotIn 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.DoubleNotIn 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.DoubleNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DoubleNotIn) - build.buf.validate.conformance.cases.DoubleNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DoubleNotIn.class, build.buf.validate.conformance.cases.DoubleNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DoubleNotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_DoubleNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DoubleNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleNotIn build() { - build.buf.validate.conformance.cases.DoubleNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DoubleNotIn buildPartial() { - build.buf.validate.conformance.cases.DoubleNotIn result = new build.buf.validate.conformance.cases.DoubleNotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DoubleNotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DoubleNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.DoubleNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DoubleNotIn other) { - if (other == build.buf.validate.conformance.cases.DoubleNotIn.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DoubleNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DoubleNotIn) - private static final build.buf.validate.conformance.cases.DoubleNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DoubleNotIn(); - } - - public static build.buf.validate.conformance.cases.DoubleNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleNotIn 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.DoubleNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotInOrBuilder.java deleted file mode 100644 index c82b93c8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DoubleNotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DoubleNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DoubleNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationConst.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationConst.java deleted file mode 100644 index 39567cee..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationConst.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationConst} - */ -public final class DurationConst extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationConst) - DurationConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationConst.class.getName()); - } - // Use DurationConst.newBuilder() to construct. - private DurationConst(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationConst() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationConst.class, build.buf.validate.conformance.cases.DurationConst.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationConst)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationConst other = (build.buf.validate.conformance.cases.DurationConst) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationConst parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationConst 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.DurationConst parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationConst 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.DurationConst parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationConst 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.DurationConst parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationConst 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.DurationConst parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationConst 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.DurationConst 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.DurationConst 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.DurationConst 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.DurationConst} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationConst) - build.buf.validate.conformance.cases.DurationConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationConst.class, build.buf.validate.conformance.cases.DurationConst.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationConst.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationConst_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationConst getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationConst.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationConst build() { - build.buf.validate.conformance.cases.DurationConst result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationConst buildPartial() { - build.buf.validate.conformance.cases.DurationConst result = new build.buf.validate.conformance.cases.DurationConst(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationConst result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationConst) { - return mergeFrom((build.buf.validate.conformance.cases.DurationConst)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationConst other) { - if (other == build.buf.validate.conformance.cases.DurationConst.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationConst) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationConst) - private static final build.buf.validate.conformance.cases.DurationConst DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationConst(); - } - - public static build.buf.validate.conformance.cases.DurationConst getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationConst 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.DurationConst getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationConstOrBuilder.java deleted file mode 100644 index 30961d33..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationConstOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationConst) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTE.java deleted file mode 100644 index 0e81e29d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTE.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationExGTELTE} - */ -public final class DurationExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationExGTELTE) - DurationExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationExGTELTE.class.getName()); - } - // Use DurationExGTELTE.newBuilder() to construct. - private DurationExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationExGTELTE.class, build.buf.validate.conformance.cases.DurationExGTELTE.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationExGTELTE other = (build.buf.validate.conformance.cases.DurationExGTELTE) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationExGTELTE 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.DurationExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationExGTELTE 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.DurationExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationExGTELTE 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.DurationExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationExGTELTE 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.DurationExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationExGTELTE 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.DurationExGTELTE 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.DurationExGTELTE 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.DurationExGTELTE 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.DurationExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationExGTELTE) - build.buf.validate.conformance.cases.DurationExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationExGTELTE.class, build.buf.validate.conformance.cases.DurationExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationExGTELTE.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationExGTELTE build() { - build.buf.validate.conformance.cases.DurationExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationExGTELTE buildPartial() { - build.buf.validate.conformance.cases.DurationExGTELTE result = new build.buf.validate.conformance.cases.DurationExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationExGTELTE result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.DurationExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationExGTELTE other) { - if (other == build.buf.validate.conformance.cases.DurationExGTELTE.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationExGTELTE) - private static final build.buf.validate.conformance.cases.DurationExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationExGTELTE(); - } - - public static build.buf.validate.conformance.cases.DurationExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationExGTELTE 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.DurationExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTEOrBuilder.java deleted file mode 100644 index 172b7b0d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExGTELTEOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGT.java deleted file mode 100644 index 560bb8c4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGT.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationExLTGT} - */ -public final class DurationExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationExLTGT) - DurationExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationExLTGT.class.getName()); - } - // Use DurationExLTGT.newBuilder() to construct. - private DurationExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationExLTGT.class, build.buf.validate.conformance.cases.DurationExLTGT.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationExLTGT other = (build.buf.validate.conformance.cases.DurationExLTGT) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationExLTGT 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.DurationExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationExLTGT 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.DurationExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationExLTGT 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.DurationExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationExLTGT 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.DurationExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationExLTGT 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.DurationExLTGT 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.DurationExLTGT 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.DurationExLTGT 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.DurationExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationExLTGT) - build.buf.validate.conformance.cases.DurationExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationExLTGT.class, build.buf.validate.conformance.cases.DurationExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationExLTGT.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationExLTGT build() { - build.buf.validate.conformance.cases.DurationExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationExLTGT buildPartial() { - build.buf.validate.conformance.cases.DurationExLTGT result = new build.buf.validate.conformance.cases.DurationExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationExLTGT result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.DurationExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationExLTGT other) { - if (other == build.buf.validate.conformance.cases.DurationExLTGT.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationExLTGT) - private static final build.buf.validate.conformance.cases.DurationExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationExLTGT(); - } - - public static build.buf.validate.conformance.cases.DurationExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationExLTGT 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.DurationExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGTOrBuilder.java deleted file mode 100644 index fa3c276c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExLTGTOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExample.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExample.java deleted file mode 100644 index b5b6aaf8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExample.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationExample} - */ -public final class DurationExample extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationExample) - DurationExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationExample.class.getName()); - } - // Use DurationExample.newBuilder() to construct. - private DurationExample(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationExample() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationExample.class, build.buf.validate.conformance.cases.DurationExample.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationExample)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationExample other = (build.buf.validate.conformance.cases.DurationExample) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationExample parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationExample 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.DurationExample parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationExample 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.DurationExample parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationExample 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.DurationExample parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationExample 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.DurationExample parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationExample 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.DurationExample 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.DurationExample 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.DurationExample 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.DurationExample} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationExample) - build.buf.validate.conformance.cases.DurationExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationExample.class, build.buf.validate.conformance.cases.DurationExample.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationExample.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationExample_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationExample getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationExample.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationExample build() { - build.buf.validate.conformance.cases.DurationExample result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationExample buildPartial() { - build.buf.validate.conformance.cases.DurationExample result = new build.buf.validate.conformance.cases.DurationExample(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationExample result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationExample) { - return mergeFrom((build.buf.validate.conformance.cases.DurationExample)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationExample other) { - if (other == build.buf.validate.conformance.cases.DurationExample.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationExample) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationExample) - private static final build.buf.validate.conformance.cases.DurationExample DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationExample(); - } - - public static build.buf.validate.conformance.cases.DurationExample getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationExample 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.DurationExample getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExampleOrBuilder.java deleted file mode 100644 index f2070123..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationExampleOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationExample) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFields.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFields.java deleted file mode 100644 index e06869ac..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFields.java +++ /dev/null @@ -1,634 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - *
- * Regression for earlier bug where missing Duration field would short circuit
- * evaluation in C++.
- * 
- * - * Protobuf type {@code buf.validate.conformance.cases.DurationFieldWithOtherFields} - */ -public final class DurationFieldWithOtherFields extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationFieldWithOtherFields) - DurationFieldWithOtherFieldsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationFieldWithOtherFields.class.getName()); - } - // Use DurationFieldWithOtherFields.newBuilder() to construct. - private DurationFieldWithOtherFields(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationFieldWithOtherFields() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationFieldWithOtherFields.class, build.buf.validate.conformance.cases.DurationFieldWithOtherFields.Builder.class); - } - - private int bitField0_; - public static final int DURATION_VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration durationVal_; - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - * @return Whether the durationVal field is set. - */ - @java.lang.Override - public boolean hasDurationVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - * @return The durationVal. - */ - @java.lang.Override - public com.google.protobuf.Duration getDurationVal() { - return durationVal_ == null ? com.google.protobuf.Duration.getDefaultInstance() : durationVal_; - } - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDurationValOrBuilder() { - return durationVal_ == null ? com.google.protobuf.Duration.getDefaultInstance() : durationVal_; - } - - public static final int INT_VAL_FIELD_NUMBER = 2; - private int intVal_ = 0; - /** - * int32 int_val = 2 [json_name = "intVal", (.buf.validate.field) = { ... } - * @return The intVal. - */ - @java.lang.Override - public int getIntVal() { - return intVal_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getDurationVal()); - } - if (intVal_ != 0) { - output.writeInt32(2, intVal_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDurationVal()); - } - if (intVal_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, intVal_); - } - 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.DurationFieldWithOtherFields)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationFieldWithOtherFields other = (build.buf.validate.conformance.cases.DurationFieldWithOtherFields) obj; - - if (hasDurationVal() != other.hasDurationVal()) return false; - if (hasDurationVal()) { - if (!getDurationVal() - .equals(other.getDurationVal())) return false; - } - if (getIntVal() - != other.getIntVal()) 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 (hasDurationVal()) { - hash = (37 * hash) + DURATION_VAL_FIELD_NUMBER; - hash = (53 * hash) + getDurationVal().hashCode(); - } - hash = (37 * hash) + INT_VAL_FIELD_NUMBER; - hash = (53 * hash) + getIntVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationFieldWithOtherFields parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationFieldWithOtherFields 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.DurationFieldWithOtherFields parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationFieldWithOtherFields 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.DurationFieldWithOtherFields parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationFieldWithOtherFields 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.DurationFieldWithOtherFields parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationFieldWithOtherFields 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.DurationFieldWithOtherFields parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationFieldWithOtherFields 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.DurationFieldWithOtherFields 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.DurationFieldWithOtherFields 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.DurationFieldWithOtherFields 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; - } - /** - *
-   * Regression for earlier bug where missing Duration field would short circuit
-   * evaluation in C++.
-   * 
- * - * Protobuf type {@code buf.validate.conformance.cases.DurationFieldWithOtherFields} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationFieldWithOtherFields) - build.buf.validate.conformance.cases.DurationFieldWithOtherFieldsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationFieldWithOtherFields.class, build.buf.validate.conformance.cases.DurationFieldWithOtherFields.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationFieldWithOtherFields.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetDurationValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - durationVal_ = null; - if (durationValBuilder_ != null) { - durationValBuilder_.dispose(); - durationValBuilder_ = null; - } - intVal_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationFieldWithOtherFields getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationFieldWithOtherFields.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationFieldWithOtherFields build() { - build.buf.validate.conformance.cases.DurationFieldWithOtherFields result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationFieldWithOtherFields buildPartial() { - build.buf.validate.conformance.cases.DurationFieldWithOtherFields result = new build.buf.validate.conformance.cases.DurationFieldWithOtherFields(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationFieldWithOtherFields result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.durationVal_ = durationValBuilder_ == null - ? durationVal_ - : durationValBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.intVal_ = intVal_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationFieldWithOtherFields) { - return mergeFrom((build.buf.validate.conformance.cases.DurationFieldWithOtherFields)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationFieldWithOtherFields other) { - if (other == build.buf.validate.conformance.cases.DurationFieldWithOtherFields.getDefaultInstance()) return this; - if (other.hasDurationVal()) { - mergeDurationVal(other.getDurationVal()); - } - if (other.getIntVal() != 0) { - setIntVal(other.getIntVal()); - } - 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: { - input.readMessage( - internalGetDurationValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - intVal_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - 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 com.google.protobuf.Duration durationVal_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationValBuilder_; - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - * @return Whether the durationVal field is set. - */ - public boolean hasDurationVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - * @return The durationVal. - */ - public com.google.protobuf.Duration getDurationVal() { - if (durationValBuilder_ == null) { - return durationVal_ == null ? com.google.protobuf.Duration.getDefaultInstance() : durationVal_; - } else { - return durationValBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - */ - public Builder setDurationVal(com.google.protobuf.Duration value) { - if (durationValBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - durationVal_ = value; - } else { - durationValBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - */ - public Builder setDurationVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationValBuilder_ == null) { - durationVal_ = builderForValue.build(); - } else { - durationValBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - */ - public Builder mergeDurationVal(com.google.protobuf.Duration value) { - if (durationValBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - durationVal_ != null && - durationVal_ != com.google.protobuf.Duration.getDefaultInstance()) { - getDurationValBuilder().mergeFrom(value); - } else { - durationVal_ = value; - } - } else { - durationValBuilder_.mergeFrom(value); - } - if (durationVal_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - */ - public Builder clearDurationVal() { - bitField0_ = (bitField0_ & ~0x00000001); - durationVal_ = null; - if (durationValBuilder_ != null) { - durationValBuilder_.dispose(); - durationValBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getDurationValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetDurationValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getDurationValOrBuilder() { - if (durationValBuilder_ != null) { - return durationValBuilder_.getMessageOrBuilder(); - } else { - return durationVal_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : durationVal_; - } - } - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetDurationValFieldBuilder() { - if (durationValBuilder_ == null) { - durationValBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDurationVal(), - getParentForChildren(), - isClean()); - durationVal_ = null; - } - return durationValBuilder_; - } - - private int intVal_ ; - /** - * int32 int_val = 2 [json_name = "intVal", (.buf.validate.field) = { ... } - * @return The intVal. - */ - @java.lang.Override - public int getIntVal() { - return intVal_; - } - /** - * int32 int_val = 2 [json_name = "intVal", (.buf.validate.field) = { ... } - * @param value The intVal to set. - * @return This builder for chaining. - */ - public Builder setIntVal(int value) { - - intVal_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int32 int_val = 2 [json_name = "intVal", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearIntVal() { - bitField0_ = (bitField0_ & ~0x00000002); - intVal_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationFieldWithOtherFields) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationFieldWithOtherFields) - private static final build.buf.validate.conformance.cases.DurationFieldWithOtherFields DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationFieldWithOtherFields(); - } - - public static build.buf.validate.conformance.cases.DurationFieldWithOtherFields getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationFieldWithOtherFields 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.DurationFieldWithOtherFields getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFieldsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFieldsOrBuilder.java deleted file mode 100644 index 4b58abc8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationFieldWithOtherFieldsOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationFieldWithOtherFieldsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationFieldWithOtherFields) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - * @return Whether the durationVal field is set. - */ - boolean hasDurationVal(); - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - * @return The durationVal. - */ - com.google.protobuf.Duration getDurationVal(); - /** - * .google.protobuf.Duration duration_val = 1 [json_name = "durationVal", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getDurationValOrBuilder(); - - /** - * int32 int_val = 2 [json_name = "intVal", (.buf.validate.field) = { ... } - * @return The intVal. - */ - int getIntVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGT.java deleted file mode 100644 index 63f7576d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGT.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationGT} - */ -public final class DurationGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationGT) - DurationGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationGT.class.getName()); - } - // Use DurationGT.newBuilder() to construct. - private DurationGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationGT.class, build.buf.validate.conformance.cases.DurationGT.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationGT other = (build.buf.validate.conformance.cases.DurationGT) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGT 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.DurationGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGT 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.DurationGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGT 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.DurationGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationGT 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.DurationGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationGT 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.DurationGT 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.DurationGT 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.DurationGT 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.DurationGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationGT) - build.buf.validate.conformance.cases.DurationGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationGT.class, build.buf.validate.conformance.cases.DurationGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationGT.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGT build() { - build.buf.validate.conformance.cases.DurationGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGT buildPartial() { - build.buf.validate.conformance.cases.DurationGT result = new build.buf.validate.conformance.cases.DurationGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationGT result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationGT) { - return mergeFrom((build.buf.validate.conformance.cases.DurationGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationGT other) { - if (other == build.buf.validate.conformance.cases.DurationGT.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationGT) - private static final build.buf.validate.conformance.cases.DurationGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationGT(); - } - - public static build.buf.validate.conformance.cases.DurationGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationGT 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.DurationGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTE.java deleted file mode 100644 index 986ce96f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTE.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationGTE} - */ -public final class DurationGTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationGTE) - DurationGTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationGTE.class.getName()); - } - // Use DurationGTE.newBuilder() to construct. - private DurationGTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationGTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationGTE.class, build.buf.validate.conformance.cases.DurationGTE.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationGTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationGTE other = (build.buf.validate.conformance.cases.DurationGTE) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationGTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGTE 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.DurationGTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGTE 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.DurationGTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGTE 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.DurationGTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationGTE 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.DurationGTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationGTE 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.DurationGTE 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.DurationGTE 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.DurationGTE 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.DurationGTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationGTE) - build.buf.validate.conformance.cases.DurationGTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationGTE.class, build.buf.validate.conformance.cases.DurationGTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationGTE.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationGTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGTE build() { - build.buf.validate.conformance.cases.DurationGTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGTE buildPartial() { - build.buf.validate.conformance.cases.DurationGTE result = new build.buf.validate.conformance.cases.DurationGTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationGTE result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationGTE) { - return mergeFrom((build.buf.validate.conformance.cases.DurationGTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationGTE other) { - if (other == build.buf.validate.conformance.cases.DurationGTE.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationGTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationGTE) - private static final build.buf.validate.conformance.cases.DurationGTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationGTE(); - } - - public static build.buf.validate.conformance.cases.DurationGTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationGTE 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.DurationGTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTE.java deleted file mode 100644 index 7ee8916e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTE.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationGTELTE} - */ -public final class DurationGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationGTELTE) - DurationGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationGTELTE.class.getName()); - } - // Use DurationGTELTE.newBuilder() to construct. - private DurationGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationGTELTE.class, build.buf.validate.conformance.cases.DurationGTELTE.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationGTELTE other = (build.buf.validate.conformance.cases.DurationGTELTE) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGTELTE 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.DurationGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGTELTE 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.DurationGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGTELTE 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.DurationGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationGTELTE 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.DurationGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationGTELTE 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.DurationGTELTE 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.DurationGTELTE 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.DurationGTELTE 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.DurationGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationGTELTE) - build.buf.validate.conformance.cases.DurationGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationGTELTE.class, build.buf.validate.conformance.cases.DurationGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationGTELTE.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGTELTE build() { - build.buf.validate.conformance.cases.DurationGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGTELTE buildPartial() { - build.buf.validate.conformance.cases.DurationGTELTE result = new build.buf.validate.conformance.cases.DurationGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationGTELTE result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.DurationGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationGTELTE other) { - if (other == build.buf.validate.conformance.cases.DurationGTELTE.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationGTELTE) - private static final build.buf.validate.conformance.cases.DurationGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationGTELTE(); - } - - public static build.buf.validate.conformance.cases.DurationGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationGTELTE 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.DurationGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTEOrBuilder.java deleted file mode 100644 index 622c4941..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTELTEOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTEOrBuilder.java deleted file mode 100644 index e637df67..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTEOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationGTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationGTE) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLT.java deleted file mode 100644 index 69eb88ec..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLT.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationGTLT} - */ -public final class DurationGTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationGTLT) - DurationGTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationGTLT.class.getName()); - } - // Use DurationGTLT.newBuilder() to construct. - private DurationGTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationGTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationGTLT.class, build.buf.validate.conformance.cases.DurationGTLT.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationGTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationGTLT other = (build.buf.validate.conformance.cases.DurationGTLT) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationGTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGTLT 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.DurationGTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGTLT 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.DurationGTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationGTLT 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.DurationGTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationGTLT 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.DurationGTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationGTLT 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.DurationGTLT 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.DurationGTLT 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.DurationGTLT 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.DurationGTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationGTLT) - build.buf.validate.conformance.cases.DurationGTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationGTLT.class, build.buf.validate.conformance.cases.DurationGTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationGTLT.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationGTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationGTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGTLT build() { - build.buf.validate.conformance.cases.DurationGTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationGTLT buildPartial() { - build.buf.validate.conformance.cases.DurationGTLT result = new build.buf.validate.conformance.cases.DurationGTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationGTLT result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationGTLT) { - return mergeFrom((build.buf.validate.conformance.cases.DurationGTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationGTLT other) { - if (other == build.buf.validate.conformance.cases.DurationGTLT.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationGTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationGTLT) - private static final build.buf.validate.conformance.cases.DurationGTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationGTLT(); - } - - public static build.buf.validate.conformance.cases.DurationGTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationGTLT 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.DurationGTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLTOrBuilder.java deleted file mode 100644 index 7578fd58..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTLTOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationGTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationGTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTOrBuilder.java deleted file mode 100644 index ae260d2a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationGTOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationGT) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationIn.java deleted file mode 100644 index 46eb1df6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationIn.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationIn} - */ -public final class DurationIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationIn) - DurationInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationIn.class.getName()); - } - // Use DurationIn.newBuilder() to construct. - private DurationIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationIn.class, build.buf.validate.conformance.cases.DurationIn.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationIn other = (build.buf.validate.conformance.cases.DurationIn) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationIn 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.DurationIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationIn 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.DurationIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationIn 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.DurationIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationIn 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.DurationIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationIn 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.DurationIn 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.DurationIn 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.DurationIn 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.DurationIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationIn) - build.buf.validate.conformance.cases.DurationInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationIn.class, build.buf.validate.conformance.cases.DurationIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationIn.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationIn build() { - build.buf.validate.conformance.cases.DurationIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationIn buildPartial() { - build.buf.validate.conformance.cases.DurationIn result = new build.buf.validate.conformance.cases.DurationIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationIn result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationIn) { - return mergeFrom((build.buf.validate.conformance.cases.DurationIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationIn other) { - if (other == build.buf.validate.conformance.cases.DurationIn.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationIn) - private static final build.buf.validate.conformance.cases.DurationIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationIn(); - } - - public static build.buf.validate.conformance.cases.DurationIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationIn 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.DurationIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationInOrBuilder.java deleted file mode 100644 index 936b5dc0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationInOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationIn) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLT.java deleted file mode 100644 index 80b050d2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLT.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationLT} - */ -public final class DurationLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationLT) - DurationLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationLT.class.getName()); - } - // Use DurationLT.newBuilder() to construct. - private DurationLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationLT.class, build.buf.validate.conformance.cases.DurationLT.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationLT other = (build.buf.validate.conformance.cases.DurationLT) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationLT 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.DurationLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationLT 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.DurationLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationLT 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.DurationLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationLT 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.DurationLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationLT 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.DurationLT 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.DurationLT 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.DurationLT 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.DurationLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationLT) - build.buf.validate.conformance.cases.DurationLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationLT.class, build.buf.validate.conformance.cases.DurationLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationLT.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationLT build() { - build.buf.validate.conformance.cases.DurationLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationLT buildPartial() { - build.buf.validate.conformance.cases.DurationLT result = new build.buf.validate.conformance.cases.DurationLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationLT result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationLT) { - return mergeFrom((build.buf.validate.conformance.cases.DurationLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationLT other) { - if (other == build.buf.validate.conformance.cases.DurationLT.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationLT) - private static final build.buf.validate.conformance.cases.DurationLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationLT(); - } - - public static build.buf.validate.conformance.cases.DurationLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationLT 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.DurationLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTE.java deleted file mode 100644 index 9a4e1589..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTE.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationLTE} - */ -public final class DurationLTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationLTE) - DurationLTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationLTE.class.getName()); - } - // Use DurationLTE.newBuilder() to construct. - private DurationLTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationLTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationLTE.class, build.buf.validate.conformance.cases.DurationLTE.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationLTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationLTE other = (build.buf.validate.conformance.cases.DurationLTE) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationLTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationLTE 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.DurationLTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationLTE 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.DurationLTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationLTE 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.DurationLTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationLTE 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.DurationLTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationLTE 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.DurationLTE 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.DurationLTE 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.DurationLTE 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.DurationLTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationLTE) - build.buf.validate.conformance.cases.DurationLTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationLTE.class, build.buf.validate.conformance.cases.DurationLTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationLTE.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationLTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationLTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationLTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationLTE build() { - build.buf.validate.conformance.cases.DurationLTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationLTE buildPartial() { - build.buf.validate.conformance.cases.DurationLTE result = new build.buf.validate.conformance.cases.DurationLTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationLTE result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationLTE) { - return mergeFrom((build.buf.validate.conformance.cases.DurationLTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationLTE other) { - if (other == build.buf.validate.conformance.cases.DurationLTE.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationLTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationLTE) - private static final build.buf.validate.conformance.cases.DurationLTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationLTE(); - } - - public static build.buf.validate.conformance.cases.DurationLTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationLTE 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.DurationLTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTEOrBuilder.java deleted file mode 100644 index 02c58367..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTEOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationLTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationLTE) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTOrBuilder.java deleted file mode 100644 index bb0167f7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationLTOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationLT) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNone.java deleted file mode 100644 index a3a374af..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNone.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationNone} - */ -public final class DurationNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationNone) - DurationNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationNone.class.getName()); - } - // Use DurationNone.newBuilder() to construct. - private DurationNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationNone() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationNone.class, build.buf.validate.conformance.cases.DurationNone.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationNone other = (build.buf.validate.conformance.cases.DurationNone) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationNone 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.DurationNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationNone 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.DurationNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationNone 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.DurationNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationNone 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.DurationNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationNone 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.DurationNone 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.DurationNone 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.DurationNone 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.DurationNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationNone) - build.buf.validate.conformance.cases.DurationNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationNone.class, build.buf.validate.conformance.cases.DurationNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationNone.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationNone build() { - build.buf.validate.conformance.cases.DurationNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationNone buildPartial() { - build.buf.validate.conformance.cases.DurationNone result = new build.buf.validate.conformance.cases.DurationNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationNone result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationNone) { - return mergeFrom((build.buf.validate.conformance.cases.DurationNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationNone other) { - if (other == build.buf.validate.conformance.cases.DurationNone.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationNone) - private static final build.buf.validate.conformance.cases.DurationNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationNone(); - } - - public static build.buf.validate.conformance.cases.DurationNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationNone 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.DurationNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNoneOrBuilder.java deleted file mode 100644 index 73151ea4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNoneOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationNone) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val"]; - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotIn.java deleted file mode 100644 index 272a42b4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotIn.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationNotIn} - */ -public final class DurationNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationNotIn) - DurationNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationNotIn.class.getName()); - } - // Use DurationNotIn.newBuilder() to construct. - private DurationNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationNotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationNotIn.class, build.buf.validate.conformance.cases.DurationNotIn.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationNotIn other = (build.buf.validate.conformance.cases.DurationNotIn) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationNotIn 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.DurationNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationNotIn 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.DurationNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationNotIn 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.DurationNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationNotIn 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.DurationNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationNotIn 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.DurationNotIn 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.DurationNotIn 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.DurationNotIn 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.DurationNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationNotIn) - build.buf.validate.conformance.cases.DurationNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationNotIn.class, build.buf.validate.conformance.cases.DurationNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationNotIn.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationNotIn build() { - build.buf.validate.conformance.cases.DurationNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationNotIn buildPartial() { - build.buf.validate.conformance.cases.DurationNotIn result = new build.buf.validate.conformance.cases.DurationNotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationNotIn result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.DurationNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationNotIn other) { - if (other == build.buf.validate.conformance.cases.DurationNotIn.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationNotIn) - private static final build.buf.validate.conformance.cases.DurationNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationNotIn(); - } - - public static build.buf.validate.conformance.cases.DurationNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationNotIn 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.DurationNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotInOrBuilder.java deleted file mode 100644 index c6b696a2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationNotInOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequired.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequired.java deleted file mode 100644 index 8349c2db..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequired.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.DurationRequired} - */ -public final class DurationRequired extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.DurationRequired) - DurationRequiredOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationRequired.class.getName()); - } - // Use DurationRequired.newBuilder() to construct. - private DurationRequired(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DurationRequired() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationRequired.class, build.buf.validate.conformance.cases.DurationRequired.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.DurationRequired)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.DurationRequired other = (build.buf.validate.conformance.cases.DurationRequired) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.DurationRequired parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationRequired 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.DurationRequired parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationRequired 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.DurationRequired parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.DurationRequired 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.DurationRequired parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.DurationRequired 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.DurationRequired parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.DurationRequired 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.DurationRequired 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.DurationRequired 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.DurationRequired 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.DurationRequired} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.DurationRequired) - build.buf.validate.conformance.cases.DurationRequiredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.DurationRequired.class, build.buf.validate.conformance.cases.DurationRequired.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.DurationRequired.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktDurationProto.internal_static_buf_validate_conformance_cases_DurationRequired_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationRequired getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.DurationRequired.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationRequired build() { - build.buf.validate.conformance.cases.DurationRequired result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.DurationRequired buildPartial() { - build.buf.validate.conformance.cases.DurationRequired result = new build.buf.validate.conformance.cases.DurationRequired(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.DurationRequired result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.DurationRequired) { - return mergeFrom((build.buf.validate.conformance.cases.DurationRequired)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.DurationRequired other) { - if (other == build.buf.validate.conformance.cases.DurationRequired.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.DurationRequired) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.DurationRequired) - private static final build.buf.validate.conformance.cases.DurationRequired DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.DurationRequired(); - } - - public static build.buf.validate.conformance.cases.DurationRequired getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationRequired 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.DurationRequired getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequiredOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequiredOrBuilder.java deleted file mode 100644 index 411b2206..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/DurationRequiredOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface DurationRequiredOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.DurationRequired) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreAlways.java deleted file mode 100644 index ca4ad722..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreAlways.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapIgnoreAlways} - */ -public final class EditionsMapIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapIgnoreAlways) - EditionsMapIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapIgnoreAlways.class.getName()); - } - // Use EditionsMapIgnoreAlways.newBuilder() to construct. - private EditionsMapIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMapIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsMapIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreAlways 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.EditionsMapIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreAlways 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.EditionsMapIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreAlways 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.EditionsMapIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreAlways 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.EditionsMapIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreAlways 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.EditionsMapIgnoreAlways 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.EditionsMapIgnoreAlways 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.EditionsMapIgnoreAlways 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.EditionsMapIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapIgnoreAlways) - build.buf.validate.conformance.cases.EditionsMapIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMapIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsMapIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsMapIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsMapIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsMapIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsMapIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapIgnoreAlways 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.EditionsMapIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreAlwaysOrBuilder.java deleted file mode 100644 index fcab22c4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreDefault.java deleted file mode 100644 index 2a46be49..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreDefault.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapIgnoreDefault} - */ -public final class EditionsMapIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapIgnoreDefault) - EditionsMapIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapIgnoreDefault.class.getName()); - } - // Use EditionsMapIgnoreDefault.newBuilder() to construct. - private EditionsMapIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMapIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsMapIgnoreDefault) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreDefault 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.EditionsMapIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreDefault 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.EditionsMapIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreDefault 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.EditionsMapIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreDefault 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.EditionsMapIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreDefault 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.EditionsMapIgnoreDefault 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.EditionsMapIgnoreDefault 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.EditionsMapIgnoreDefault 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.EditionsMapIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapIgnoreDefault) - build.buf.validate.conformance.cases.EditionsMapIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMapIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsMapIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsMapIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsMapIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsMapIgnoreDefault.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsMapIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapIgnoreDefault 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.EditionsMapIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreDefaultOrBuilder.java deleted file mode 100644 index b526f888..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreEmpty.java deleted file mode 100644 index 564317de..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreEmpty.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapIgnoreEmpty} - */ -public final class EditionsMapIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapIgnoreEmpty) - EditionsMapIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapIgnoreEmpty.class.getName()); - } - // Use EditionsMapIgnoreEmpty.newBuilder() to construct. - private EditionsMapIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty 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.EditionsMapIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty 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.EditionsMapIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty 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.EditionsMapIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty 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.EditionsMapIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty 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.EditionsMapIgnoreEmpty 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.EditionsMapIgnoreEmpty 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.EditionsMapIgnoreEmpty 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.EditionsMapIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsMapIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapIgnoreEmpty 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.EditionsMapIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreEmptyOrBuilder.java deleted file mode 100644 index 487de27c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreUnspecified.java deleted file mode 100644 index ca485eb9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreUnspecified.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapIgnoreUnspecified} - */ -public final class EditionsMapIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapIgnoreUnspecified) - EditionsMapIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapIgnoreUnspecified.class.getName()); - } - // Use EditionsMapIgnoreUnspecified.newBuilder() to construct. - private EditionsMapIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified 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.EditionsMapIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified 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.EditionsMapIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified 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.EditionsMapIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified 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.EditionsMapIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified 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.EditionsMapIgnoreUnspecified 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.EditionsMapIgnoreUnspecified 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.EditionsMapIgnoreUnspecified 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.EditionsMapIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsMapIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapIgnoreUnspecified 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.EditionsMapIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 0cdac6c8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreAlways.java deleted file mode 100644 index 600a8d98..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreAlways.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways} - */ -public final class EditionsMapKeyIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways) - EditionsMapKeyIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapKeyIgnoreAlways.class.getName()); - } - // Use EditionsMapKeyIgnoreAlways.newBuilder() to construct. - private EditionsMapKeyIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapKeyIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapKeyIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways 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.EditionsMapKeyIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways 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.EditionsMapKeyIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways 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.EditionsMapKeyIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways 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.EditionsMapKeyIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways 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.EditionsMapKeyIgnoreAlways 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.EditionsMapKeyIgnoreAlways 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.EditionsMapKeyIgnoreAlways 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.EditionsMapKeyIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways) - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapKeyIgnoreAlways 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.EditionsMapKeyIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 6f464b6c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapKeyIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapKeyIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreDefault.java deleted file mode 100644 index 8211ae11..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreDefault.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault} - */ -public final class EditionsMapKeyIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault) - EditionsMapKeyIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapKeyIgnoreDefault.class.getName()); - } - // Use EditionsMapKeyIgnoreDefault.newBuilder() to construct. - private EditionsMapKeyIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapKeyIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapKeyIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault 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.EditionsMapKeyIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault 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.EditionsMapKeyIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault 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.EditionsMapKeyIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault 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.EditionsMapKeyIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault 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.EditionsMapKeyIgnoreDefault 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.EditionsMapKeyIgnoreDefault 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.EditionsMapKeyIgnoreDefault 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.EditionsMapKeyIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault) - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapKeyIgnoreDefault 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.EditionsMapKeyIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreDefaultOrBuilder.java deleted file mode 100644 index 2d149972..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapKeyIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapKeyIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreEmpty.java deleted file mode 100644 index 3497d859..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreEmpty.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty} - */ -public final class EditionsMapKeyIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty) - EditionsMapKeyIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapKeyIgnoreEmpty.class.getName()); - } - // Use EditionsMapKeyIgnoreEmpty.newBuilder() to construct. - private EditionsMapKeyIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapKeyIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapKeyIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty 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.EditionsMapKeyIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty 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.EditionsMapKeyIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty 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.EditionsMapKeyIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty 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.EditionsMapKeyIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty 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.EditionsMapKeyIgnoreEmpty 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.EditionsMapKeyIgnoreEmpty 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.EditionsMapKeyIgnoreEmpty 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.EditionsMapKeyIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapKeyIgnoreEmpty 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.EditionsMapKeyIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreEmptyOrBuilder.java deleted file mode 100644 index 681bd5e5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapKeyIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapKeyIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreUnspecified.java deleted file mode 100644 index 2cd27747..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreUnspecified.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified} - */ -public final class EditionsMapKeyIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified) - EditionsMapKeyIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapKeyIgnoreUnspecified.class.getName()); - } - // Use EditionsMapKeyIgnoreUnspecified.newBuilder() to construct. - private EditionsMapKeyIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapKeyIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapKeyIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified 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.EditionsMapKeyIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified 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.EditionsMapKeyIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified 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.EditionsMapKeyIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified 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.EditionsMapKeyIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified 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.EditionsMapKeyIgnoreUnspecified 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.EditionsMapKeyIgnoreUnspecified 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.EditionsMapKeyIgnoreUnspecified 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.EditionsMapKeyIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapKeyIgnoreUnspecified 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.EditionsMapKeyIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index b61f2f98..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapKeyIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapKeyIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapKeyIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreAlways.java deleted file mode 100644 index 1f76bfd8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreAlways.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapValueIgnoreAlways} - */ -public final class EditionsMapValueIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapValueIgnoreAlways) - EditionsMapValueIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapValueIgnoreAlways.class.getName()); - } - // Use EditionsMapValueIgnoreAlways.newBuilder() to construct. - private EditionsMapValueIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapValueIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapValueIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways 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.EditionsMapValueIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways 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.EditionsMapValueIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways 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.EditionsMapValueIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways 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.EditionsMapValueIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways 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.EditionsMapValueIgnoreAlways 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.EditionsMapValueIgnoreAlways 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.EditionsMapValueIgnoreAlways 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.EditionsMapValueIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapValueIgnoreAlways) - build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapValueIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapValueIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapValueIgnoreAlways 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.EditionsMapValueIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreAlwaysOrBuilder.java deleted file mode 100644 index ec49c4c0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapValueIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapValueIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreDefault.java deleted file mode 100644 index 7d049232..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreDefault.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapValueIgnoreDefault} - */ -public final class EditionsMapValueIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapValueIgnoreDefault) - EditionsMapValueIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapValueIgnoreDefault.class.getName()); - } - // Use EditionsMapValueIgnoreDefault.newBuilder() to construct. - private EditionsMapValueIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapValueIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapValueIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault 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.EditionsMapValueIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault 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.EditionsMapValueIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault 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.EditionsMapValueIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault 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.EditionsMapValueIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault 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.EditionsMapValueIgnoreDefault 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.EditionsMapValueIgnoreDefault 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.EditionsMapValueIgnoreDefault 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.EditionsMapValueIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapValueIgnoreDefault) - build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapValueIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapValueIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapValueIgnoreDefault 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.EditionsMapValueIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreDefaultOrBuilder.java deleted file mode 100644 index ec333e40..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapValueIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapValueIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreEmpty.java deleted file mode 100644 index a31ea75b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreEmpty.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty} - */ -public final class EditionsMapValueIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty) - EditionsMapValueIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapValueIgnoreEmpty.class.getName()); - } - // Use EditionsMapValueIgnoreEmpty.newBuilder() to construct. - private EditionsMapValueIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapValueIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapValueIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty 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.EditionsMapValueIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty 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.EditionsMapValueIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty 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.EditionsMapValueIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty 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.EditionsMapValueIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty 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.EditionsMapValueIgnoreEmpty 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.EditionsMapValueIgnoreEmpty 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.EditionsMapValueIgnoreEmpty 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.EditionsMapValueIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapValueIgnoreEmpty 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.EditionsMapValueIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreEmptyOrBuilder.java deleted file mode 100644 index 072a7bfb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapValueIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapValueIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreUnspecified.java deleted file mode 100644 index 2c76180f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreUnspecified.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified} - */ -public final class EditionsMapValueIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified) - EditionsMapValueIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMapValueIgnoreUnspecified.class.getName()); - } - // Use EditionsMapValueIgnoreUnspecified.newBuilder() to construct. - private EditionsMapValueIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMapValueIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.EditionsMapValueIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified 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.EditionsMapValueIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified 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.EditionsMapValueIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified 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.EditionsMapValueIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified 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.EditionsMapValueIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified 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.EditionsMapValueIgnoreUnspecified 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.EditionsMapValueIgnoreUnspecified 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.EditionsMapValueIgnoreUnspecified 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.EditionsMapValueIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMapValueIgnoreUnspecified 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.EditionsMapValueIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 2967b0b6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMapValueIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMapValueIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMapValueIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreAlways.java deleted file mode 100644 index 77dd9de9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreAlways.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways} - */ -public final class EditionsMessageExplicitPresenceDelimitedIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways) - EditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageExplicitPresenceDelimitedIgnoreAlways.class.getName()); - } - // Use EditionsMessageExplicitPresenceDelimitedIgnoreAlways.newBuilder() to construct. - private EditionsMessageExplicitPresenceDelimitedIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageExplicitPresenceDelimitedIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.EditionsMessageExplicitPresenceDelimitedIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 4a558790..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreDefault.java deleted file mode 100644 index 84e4ca22..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreDefault.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault} - */ -public final class EditionsMessageExplicitPresenceDelimitedIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault) - EditionsMessageExplicitPresenceDelimitedIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageExplicitPresenceDelimitedIgnoreDefault.class.getName()); - } - // Use EditionsMessageExplicitPresenceDelimitedIgnoreDefault.newBuilder() to construct. - private EditionsMessageExplicitPresenceDelimitedIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageExplicitPresenceDelimitedIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageExplicitPresenceDelimitedIgnoreDefault 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.EditionsMessageExplicitPresenceDelimitedIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreDefaultOrBuilder.java deleted file mode 100644 index b174f688..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageExplicitPresenceDelimitedIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreDefault.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.java deleted file mode 100644 index 0ad3d943..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty} - */ -public final class EditionsMessageExplicitPresenceDelimitedIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty) - EditionsMessageExplicitPresenceDelimitedIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.class.getName()); - } - // Use EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.newBuilder() to construct. - private EditionsMessageExplicitPresenceDelimitedIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageExplicitPresenceDelimitedIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageExplicitPresenceDelimitedIgnoreEmpty 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.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreEmptyOrBuilder.java deleted file mode 100644 index a81f7b29..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageExplicitPresenceDelimitedIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreEmpty.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.java deleted file mode 100644 index 37fa888d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified} - */ -public final class EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified) - EditionsMessageExplicitPresenceDelimitedIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.class.getName()); - } - // Use EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.newBuilder() to construct. - private EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified 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.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 48679e5c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceDelimitedIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageExplicitPresenceDelimitedIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreAlways.java deleted file mode 100644 index 08c9ed06..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreAlways.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways} - */ -public final class EditionsMessageExplicitPresenceIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways) - EditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageExplicitPresenceIgnoreAlways.class.getName()); - } - // Use EditionsMessageExplicitPresenceIgnoreAlways.newBuilder() to construct. - private EditionsMessageExplicitPresenceIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageExplicitPresenceIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageExplicitPresenceIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceIgnoreAlways.Msg 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.EditionsMessageExplicitPresenceIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageExplicitPresenceIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.EditionsMessageExplicitPresenceIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways 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.EditionsMessageExplicitPresenceIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways 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.EditionsMessageExplicitPresenceIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways 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.EditionsMessageExplicitPresenceIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways 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.EditionsMessageExplicitPresenceIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways 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.EditionsMessageExplicitPresenceIgnoreAlways 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.EditionsMessageExplicitPresenceIgnoreAlways 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.EditionsMessageExplicitPresenceIgnoreAlways 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.EditionsMessageExplicitPresenceIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageExplicitPresenceIgnoreAlways 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.EditionsMessageExplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder.java deleted file mode 100644 index eda5bb6a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreDefault.java deleted file mode 100644 index 11cadd4e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreDefault.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault} - */ -public final class EditionsMessageExplicitPresenceIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault) - EditionsMessageExplicitPresenceIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageExplicitPresenceIgnoreDefault.class.getName()); - } - // Use EditionsMessageExplicitPresenceIgnoreDefault.newBuilder() to construct. - private EditionsMessageExplicitPresenceIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageExplicitPresenceIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageExplicitPresenceIgnoreDefault.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceIgnoreDefault.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceIgnoreDefault.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceIgnoreDefault.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceIgnoreDefault.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceIgnoreDefault.Msg 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.EditionsMessageExplicitPresenceIgnoreDefault.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageExplicitPresenceIgnoreDefault.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.EditionsMessageExplicitPresenceIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault 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.EditionsMessageExplicitPresenceIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault 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.EditionsMessageExplicitPresenceIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault 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.EditionsMessageExplicitPresenceIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault 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.EditionsMessageExplicitPresenceIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault 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.EditionsMessageExplicitPresenceIgnoreDefault 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.EditionsMessageExplicitPresenceIgnoreDefault 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.EditionsMessageExplicitPresenceIgnoreDefault 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.EditionsMessageExplicitPresenceIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageExplicitPresenceIgnoreDefault 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.EditionsMessageExplicitPresenceIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreDefaultOrBuilder.java deleted file mode 100644 index 3db2ad80..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageExplicitPresenceIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreDefault.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreEmpty.java deleted file mode 100644 index a07dfe4a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreEmpty.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty} - */ -public final class EditionsMessageExplicitPresenceIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty) - EditionsMessageExplicitPresenceIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageExplicitPresenceIgnoreEmpty.class.getName()); - } - // Use EditionsMessageExplicitPresenceIgnoreEmpty.newBuilder() to construct. - private EditionsMessageExplicitPresenceIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageExplicitPresenceIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageExplicitPresenceIgnoreEmpty.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceIgnoreEmpty.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceIgnoreEmpty.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceIgnoreEmpty.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceIgnoreEmpty.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceIgnoreEmpty.Msg 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.EditionsMessageExplicitPresenceIgnoreEmpty.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageExplicitPresenceIgnoreEmpty.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.EditionsMessageExplicitPresenceIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty 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.EditionsMessageExplicitPresenceIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty 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.EditionsMessageExplicitPresenceIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty 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.EditionsMessageExplicitPresenceIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty 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.EditionsMessageExplicitPresenceIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty 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.EditionsMessageExplicitPresenceIgnoreEmpty 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.EditionsMessageExplicitPresenceIgnoreEmpty 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.EditionsMessageExplicitPresenceIgnoreEmpty 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.EditionsMessageExplicitPresenceIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageExplicitPresenceIgnoreEmpty 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.EditionsMessageExplicitPresenceIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreEmptyOrBuilder.java deleted file mode 100644 index 3f417f1f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageExplicitPresenceIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreEmpty.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreUnspecified.java deleted file mode 100644 index db49cbb8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreUnspecified.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified} - */ -public final class EditionsMessageExplicitPresenceIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified) - EditionsMessageExplicitPresenceIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageExplicitPresenceIgnoreUnspecified.class.getName()); - } - // Use EditionsMessageExplicitPresenceIgnoreUnspecified.newBuilder() to construct. - private EditionsMessageExplicitPresenceIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageExplicitPresenceIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg 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.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.EditionsMessageExplicitPresenceIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified 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.EditionsMessageExplicitPresenceIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified 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.EditionsMessageExplicitPresenceIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified 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.EditionsMessageExplicitPresenceIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified 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.EditionsMessageExplicitPresenceIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified 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.EditionsMessageExplicitPresenceIgnoreUnspecified 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.EditionsMessageExplicitPresenceIgnoreUnspecified 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.EditionsMessageExplicitPresenceIgnoreUnspecified 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.EditionsMessageExplicitPresenceIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageExplicitPresenceIgnoreUnspecified 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.EditionsMessageExplicitPresenceIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 5123a394..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageExplicitPresenceIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageExplicitPresenceIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageExplicitPresenceIgnoreUnspecified.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreAlways.java deleted file mode 100644 index 990da2d4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreAlways.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways} - */ -public final class EditionsMessageLegacyRequiredDelimitedIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways) - EditionsMessageLegacyRequiredDelimitedIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageLegacyRequiredDelimitedIgnoreAlways.class.getName()); - } - // Use EditionsMessageLegacyRequiredDelimitedIgnoreAlways.newBuilder() to construct. - private EditionsMessageLegacyRequiredDelimitedIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageLegacyRequiredDelimitedIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageLegacyRequiredDelimitedIgnoreAlways 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.EditionsMessageLegacyRequiredDelimitedIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 34b04367..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageLegacyRequiredDelimitedIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreDefault.java deleted file mode 100644 index 31acb6fd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreDefault.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault} - */ -public final class EditionsMessageLegacyRequiredDelimitedIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault) - EditionsMessageLegacyRequiredDelimitedIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageLegacyRequiredDelimitedIgnoreDefault.class.getName()); - } - // Use EditionsMessageLegacyRequiredDelimitedIgnoreDefault.newBuilder() to construct. - private EditionsMessageLegacyRequiredDelimitedIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageLegacyRequiredDelimitedIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageLegacyRequiredDelimitedIgnoreDefault 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.EditionsMessageLegacyRequiredDelimitedIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreDefaultOrBuilder.java deleted file mode 100644 index 6c4efec1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageLegacyRequiredDelimitedIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreDefault.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.java deleted file mode 100644 index 10ba527c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty} - */ -public final class EditionsMessageLegacyRequiredDelimitedIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty) - EditionsMessageLegacyRequiredDelimitedIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.class.getName()); - } - // Use EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.newBuilder() to construct. - private EditionsMessageLegacyRequiredDelimitedIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageLegacyRequiredDelimitedIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageLegacyRequiredDelimitedIgnoreEmpty 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.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreEmptyOrBuilder.java deleted file mode 100644 index 7ad67f67..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageLegacyRequiredDelimitedIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreEmpty.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.java deleted file mode 100644 index 3eb6c26a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified} - */ -public final class EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified) - EditionsMessageLegacyRequiredDelimitedIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.class.getName()); - } - // Use EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.newBuilder() to construct. - private EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified 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.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 1656b965..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredDelimitedIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageLegacyRequiredDelimitedIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreAlways.java deleted file mode 100644 index 14fbe982..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreAlways.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways} - */ -public final class EditionsMessageLegacyRequiredIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways) - EditionsMessageLegacyRequiredIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageLegacyRequiredIgnoreAlways.class.getName()); - } - // Use EditionsMessageLegacyRequiredIgnoreAlways.newBuilder() to construct. - private EditionsMessageLegacyRequiredIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageLegacyRequiredIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageLegacyRequiredIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredIgnoreAlways.Msg 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.EditionsMessageLegacyRequiredIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageLegacyRequiredIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.EditionsMessageLegacyRequiredIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways 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.EditionsMessageLegacyRequiredIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways 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.EditionsMessageLegacyRequiredIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways 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.EditionsMessageLegacyRequiredIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways 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.EditionsMessageLegacyRequiredIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways 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.EditionsMessageLegacyRequiredIgnoreAlways 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.EditionsMessageLegacyRequiredIgnoreAlways 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.EditionsMessageLegacyRequiredIgnoreAlways 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.EditionsMessageLegacyRequiredIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageLegacyRequiredIgnoreAlways 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.EditionsMessageLegacyRequiredIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 5853b9d6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageLegacyRequiredIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreDefault.java deleted file mode 100644 index 0436f03f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreDefault.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault} - */ -public final class EditionsMessageLegacyRequiredIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault) - EditionsMessageLegacyRequiredIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageLegacyRequiredIgnoreDefault.class.getName()); - } - // Use EditionsMessageLegacyRequiredIgnoreDefault.newBuilder() to construct. - private EditionsMessageLegacyRequiredIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageLegacyRequiredIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageLegacyRequiredIgnoreDefault.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredIgnoreDefault.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredIgnoreDefault.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredIgnoreDefault.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredIgnoreDefault.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredIgnoreDefault.Msg 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.EditionsMessageLegacyRequiredIgnoreDefault.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageLegacyRequiredIgnoreDefault.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.EditionsMessageLegacyRequiredIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault 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.EditionsMessageLegacyRequiredIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault 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.EditionsMessageLegacyRequiredIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault 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.EditionsMessageLegacyRequiredIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault 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.EditionsMessageLegacyRequiredIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault 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.EditionsMessageLegacyRequiredIgnoreDefault 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.EditionsMessageLegacyRequiredIgnoreDefault 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.EditionsMessageLegacyRequiredIgnoreDefault 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.EditionsMessageLegacyRequiredIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageLegacyRequiredIgnoreDefault 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.EditionsMessageLegacyRequiredIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreDefaultOrBuilder.java deleted file mode 100644 index c541835d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageLegacyRequiredIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreDefault.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreEmpty.java deleted file mode 100644 index 6ff51c5d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreEmpty.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty} - */ -public final class EditionsMessageLegacyRequiredIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty) - EditionsMessageLegacyRequiredIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageLegacyRequiredIgnoreEmpty.class.getName()); - } - // Use EditionsMessageLegacyRequiredIgnoreEmpty.newBuilder() to construct. - private EditionsMessageLegacyRequiredIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageLegacyRequiredIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageLegacyRequiredIgnoreEmpty.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredIgnoreEmpty.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredIgnoreEmpty.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredIgnoreEmpty.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredIgnoreEmpty.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredIgnoreEmpty.Msg 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.EditionsMessageLegacyRequiredIgnoreEmpty.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageLegacyRequiredIgnoreEmpty.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.EditionsMessageLegacyRequiredIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty 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.EditionsMessageLegacyRequiredIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty 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.EditionsMessageLegacyRequiredIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty 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.EditionsMessageLegacyRequiredIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty 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.EditionsMessageLegacyRequiredIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty 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.EditionsMessageLegacyRequiredIgnoreEmpty 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.EditionsMessageLegacyRequiredIgnoreEmpty 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.EditionsMessageLegacyRequiredIgnoreEmpty 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.EditionsMessageLegacyRequiredIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageLegacyRequiredIgnoreEmpty 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.EditionsMessageLegacyRequiredIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreEmptyOrBuilder.java deleted file mode 100644 index cf0326e6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageLegacyRequiredIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreEmpty.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreUnspecified.java deleted file mode 100644 index 103c1b2a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreUnspecified.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified} - */ -public final class EditionsMessageLegacyRequiredIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified) - EditionsMessageLegacyRequiredIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsMessageLegacyRequiredIgnoreUnspecified.class.getName()); - } - // Use EditionsMessageLegacyRequiredIgnoreUnspecified.newBuilder() to construct. - private EditionsMessageLegacyRequiredIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsMessageLegacyRequiredIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg 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.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.EditionsMessageLegacyRequiredIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified 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.EditionsMessageLegacyRequiredIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified 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.EditionsMessageLegacyRequiredIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified 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.EditionsMessageLegacyRequiredIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified 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.EditionsMessageLegacyRequiredIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified 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.EditionsMessageLegacyRequiredIgnoreUnspecified 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.EditionsMessageLegacyRequiredIgnoreUnspecified 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.EditionsMessageLegacyRequiredIgnoreUnspecified 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.EditionsMessageLegacyRequiredIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsMessageLegacyRequiredIgnoreUnspecified 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.EditionsMessageLegacyRequiredIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 5e6f5d43..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsMessageLegacyRequiredIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsMessageLegacyRequiredIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg getVal(); - /** - * .buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.EditionsMessageLegacyRequiredIgnoreUnspecified.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlways.java deleted file mode 100644 index 715dba3a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlways.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsOneofIgnoreAlways} - */ -public final class EditionsOneofIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsOneofIgnoreAlways) - EditionsOneofIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsOneofIgnoreAlways.class.getName()); - } - // Use EditionsOneofIgnoreAlways.newBuilder() to construct. - private EditionsOneofIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsOneofIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.EditionsOneofIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways 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.EditionsOneofIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways 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.EditionsOneofIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways 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.EditionsOneofIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways 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.EditionsOneofIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways 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.EditionsOneofIgnoreAlways 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.EditionsOneofIgnoreAlways 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.EditionsOneofIgnoreAlways 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.EditionsOneofIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsOneofIgnoreAlways) - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsOneofIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsOneofIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsOneofIgnoreAlways 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.EditionsOneofIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 930f7a33..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsOneofIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsOneofIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlways.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysWithDefault.java deleted file mode 100644 index 5862b535..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysWithDefault.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault} - */ -public final class EditionsOneofIgnoreAlwaysWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault) - EditionsOneofIgnoreAlwaysWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsOneofIgnoreAlwaysWithDefault.class.getName()); - } - // Use EditionsOneofIgnoreAlwaysWithDefault.newBuilder() to construct. - private EditionsOneofIgnoreAlwaysWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsOneofIgnoreAlwaysWithDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.EditionsOneofIgnoreAlwaysWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault other = (build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault 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.EditionsOneofIgnoreAlwaysWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault 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.EditionsOneofIgnoreAlwaysWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault 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.EditionsOneofIgnoreAlwaysWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault 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.EditionsOneofIgnoreAlwaysWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault 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.EditionsOneofIgnoreAlwaysWithDefault 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.EditionsOneofIgnoreAlwaysWithDefault 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.EditionsOneofIgnoreAlwaysWithDefault 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.EditionsOneofIgnoreAlwaysWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault) - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault build() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault result = new build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault) - private static final build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsOneofIgnoreAlwaysWithDefault 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.EditionsOneofIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysWithDefaultOrBuilder.java deleted file mode 100644 index a8664e7c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreAlwaysWithDefaultOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsOneofIgnoreAlwaysWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.EditionsOneofIgnoreAlwaysWithDefault.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefault.java deleted file mode 100644 index 57a8b42c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefault.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsOneofIgnoreDefault} - */ -public final class EditionsOneofIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsOneofIgnoreDefault) - EditionsOneofIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsOneofIgnoreDefault.class.getName()); - } - // Use EditionsOneofIgnoreDefault.newBuilder() to construct. - private EditionsOneofIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsOneofIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.EditionsOneofIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault 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.EditionsOneofIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault 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.EditionsOneofIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault 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.EditionsOneofIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault 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.EditionsOneofIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault 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.EditionsOneofIgnoreDefault 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.EditionsOneofIgnoreDefault 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.EditionsOneofIgnoreDefault 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.EditionsOneofIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsOneofIgnoreDefault) - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsOneofIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsOneofIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsOneofIgnoreDefault 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.EditionsOneofIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultOrBuilder.java deleted file mode 100644 index 967baba8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsOneofIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsOneofIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefault.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultWithDefault.java deleted file mode 100644 index cb3d5a63..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultWithDefault.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault} - */ -public final class EditionsOneofIgnoreDefaultWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault) - EditionsOneofIgnoreDefaultWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsOneofIgnoreDefaultWithDefault.class.getName()); - } - // Use EditionsOneofIgnoreDefaultWithDefault.newBuilder() to construct. - private EditionsOneofIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsOneofIgnoreDefaultWithDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.EditionsOneofIgnoreDefaultWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault other = (build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault 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.EditionsOneofIgnoreDefaultWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault 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.EditionsOneofIgnoreDefaultWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault 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.EditionsOneofIgnoreDefaultWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault 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.EditionsOneofIgnoreDefaultWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault 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.EditionsOneofIgnoreDefaultWithDefault 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.EditionsOneofIgnoreDefaultWithDefault 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.EditionsOneofIgnoreDefaultWithDefault 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.EditionsOneofIgnoreDefaultWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault) - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault build() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault result = new build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault) - private static final build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsOneofIgnoreDefaultWithDefault 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.EditionsOneofIgnoreDefaultWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultWithDefaultOrBuilder.java deleted file mode 100644 index ef40becb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreDefaultWithDefaultOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsOneofIgnoreDefaultWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.EditionsOneofIgnoreDefaultWithDefault.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmpty.java deleted file mode 100644 index 08224134..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmpty.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsOneofIgnoreEmpty} - */ -public final class EditionsOneofIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsOneofIgnoreEmpty) - EditionsOneofIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsOneofIgnoreEmpty.class.getName()); - } - // Use EditionsOneofIgnoreEmpty.newBuilder() to construct. - private EditionsOneofIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsOneofIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.EditionsOneofIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty 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.EditionsOneofIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty 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.EditionsOneofIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty 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.EditionsOneofIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty 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.EditionsOneofIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty 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.EditionsOneofIgnoreEmpty 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.EditionsOneofIgnoreEmpty 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.EditionsOneofIgnoreEmpty 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.EditionsOneofIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsOneofIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsOneofIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsOneofIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsOneofIgnoreEmpty 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.EditionsOneofIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyOrBuilder.java deleted file mode 100644 index c46692dc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsOneofIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsOneofIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmpty.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyWithDefault.java deleted file mode 100644 index 2e45e4a4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyWithDefault.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault} - */ -public final class EditionsOneofIgnoreEmptyWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault) - EditionsOneofIgnoreEmptyWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsOneofIgnoreEmptyWithDefault.class.getName()); - } - // Use EditionsOneofIgnoreEmptyWithDefault.newBuilder() to construct. - private EditionsOneofIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsOneofIgnoreEmptyWithDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.EditionsOneofIgnoreEmptyWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault other = (build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault 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.EditionsOneofIgnoreEmptyWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault 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.EditionsOneofIgnoreEmptyWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault 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.EditionsOneofIgnoreEmptyWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault 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.EditionsOneofIgnoreEmptyWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault 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.EditionsOneofIgnoreEmptyWithDefault 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.EditionsOneofIgnoreEmptyWithDefault 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.EditionsOneofIgnoreEmptyWithDefault 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.EditionsOneofIgnoreEmptyWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault) - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault build() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault result = new build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault) - private static final build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsOneofIgnoreEmptyWithDefault 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.EditionsOneofIgnoreEmptyWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyWithDefaultOrBuilder.java deleted file mode 100644 index 1abc4a44..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreEmptyWithDefaultOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsOneofIgnoreEmptyWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.EditionsOneofIgnoreEmptyWithDefault.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecified.java deleted file mode 100644 index cd110b16..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecified.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified} - */ -public final class EditionsOneofIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified) - EditionsOneofIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsOneofIgnoreUnspecified.class.getName()); - } - // Use EditionsOneofIgnoreUnspecified.newBuilder() to construct. - private EditionsOneofIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsOneofIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.EditionsOneofIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified 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.EditionsOneofIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified 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.EditionsOneofIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified 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.EditionsOneofIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified 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.EditionsOneofIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified 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.EditionsOneofIgnoreUnspecified 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.EditionsOneofIgnoreUnspecified 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.EditionsOneofIgnoreUnspecified 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.EditionsOneofIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsOneofIgnoreUnspecified 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.EditionsOneofIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index cab21fc3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsOneofIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecified.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedWithDefault.java deleted file mode 100644 index 802d4187..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedWithDefault.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault} - */ -public final class EditionsOneofIgnoreUnspecifiedWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault) - EditionsOneofIgnoreUnspecifiedWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsOneofIgnoreUnspecifiedWithDefault.class.getName()); - } - // Use EditionsOneofIgnoreUnspecifiedWithDefault.newBuilder() to construct. - private EditionsOneofIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsOneofIgnoreUnspecifiedWithDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.EditionsOneofIgnoreUnspecifiedWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault other = (build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault 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.EditionsOneofIgnoreUnspecifiedWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault 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.EditionsOneofIgnoreUnspecifiedWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault 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.EditionsOneofIgnoreUnspecifiedWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault 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.EditionsOneofIgnoreUnspecifiedWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault 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.EditionsOneofIgnoreUnspecifiedWithDefault 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.EditionsOneofIgnoreUnspecifiedWithDefault 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.EditionsOneofIgnoreUnspecifiedWithDefault 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.EditionsOneofIgnoreUnspecifiedWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault) - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault build() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault result = new build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault) - private static final build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsOneofIgnoreUnspecifiedWithDefault 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.EditionsOneofIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedWithDefaultOrBuilder.java deleted file mode 100644 index bbb81647..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsOneofIgnoreUnspecifiedWithDefaultOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsOneofIgnoreUnspecifiedWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.EditionsOneofIgnoreUnspecifiedWithDefault.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreAlways.java deleted file mode 100644 index dc7c0661..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreAlways.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways} - */ -public final class EditionsRepeatedExpandedIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways) - EditionsRepeatedExpandedIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedExpandedIgnoreAlways.class.getName()); - } - // Use EditionsRepeatedExpandedIgnoreAlways.newBuilder() to construct. - private EditionsRepeatedExpandedIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedExpandedIgnoreAlways() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.EditionsRepeatedExpandedIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways) 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.EditionsRepeatedExpandedIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways 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.EditionsRepeatedExpandedIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways 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.EditionsRepeatedExpandedIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways 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.EditionsRepeatedExpandedIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways 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.EditionsRepeatedExpandedIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways 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.EditionsRepeatedExpandedIgnoreAlways 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.EditionsRepeatedExpandedIgnoreAlways 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.EditionsRepeatedExpandedIgnoreAlways 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.EditionsRepeatedExpandedIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways) - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedExpandedIgnoreAlways 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.EditionsRepeatedExpandedIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 276bd019..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedExpandedIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreDefault.java deleted file mode 100644 index c45396ee..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreDefault.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault} - */ -public final class EditionsRepeatedExpandedIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault) - EditionsRepeatedExpandedIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedExpandedIgnoreDefault.class.getName()); - } - // Use EditionsRepeatedExpandedIgnoreDefault.newBuilder() to construct. - private EditionsRepeatedExpandedIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedExpandedIgnoreDefault() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.EditionsRepeatedExpandedIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault) 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.EditionsRepeatedExpandedIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault 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.EditionsRepeatedExpandedIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault 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.EditionsRepeatedExpandedIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault 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.EditionsRepeatedExpandedIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault 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.EditionsRepeatedExpandedIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault 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.EditionsRepeatedExpandedIgnoreDefault 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.EditionsRepeatedExpandedIgnoreDefault 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.EditionsRepeatedExpandedIgnoreDefault 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.EditionsRepeatedExpandedIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault) - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedExpandedIgnoreDefault 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.EditionsRepeatedExpandedIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreDefaultOrBuilder.java deleted file mode 100644 index 8efa2a7e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedExpandedIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreEmpty.java deleted file mode 100644 index f82eb09a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreEmpty.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty} - */ -public final class EditionsRepeatedExpandedIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty) - EditionsRepeatedExpandedIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedExpandedIgnoreEmpty.class.getName()); - } - // Use EditionsRepeatedExpandedIgnoreEmpty.newBuilder() to construct. - private EditionsRepeatedExpandedIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedExpandedIgnoreEmpty() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.EditionsRepeatedExpandedIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty) 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.EditionsRepeatedExpandedIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty 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.EditionsRepeatedExpandedIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty 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.EditionsRepeatedExpandedIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty 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.EditionsRepeatedExpandedIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty 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.EditionsRepeatedExpandedIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty 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.EditionsRepeatedExpandedIgnoreEmpty 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.EditionsRepeatedExpandedIgnoreEmpty 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.EditionsRepeatedExpandedIgnoreEmpty 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.EditionsRepeatedExpandedIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedExpandedIgnoreEmpty 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.EditionsRepeatedExpandedIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreEmptyOrBuilder.java deleted file mode 100644 index f392d231..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedExpandedIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreUnspecified.java deleted file mode 100644 index 48c82f71..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreUnspecified.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified} - */ -public final class EditionsRepeatedExpandedIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified) - EditionsRepeatedExpandedIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedExpandedIgnoreUnspecified.class.getName()); - } - // Use EditionsRepeatedExpandedIgnoreUnspecified.newBuilder() to construct. - private EditionsRepeatedExpandedIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedExpandedIgnoreUnspecified() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.EditionsRepeatedExpandedIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified) 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.EditionsRepeatedExpandedIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified 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.EditionsRepeatedExpandedIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified 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.EditionsRepeatedExpandedIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified 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.EditionsRepeatedExpandedIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified 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.EditionsRepeatedExpandedIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified 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.EditionsRepeatedExpandedIgnoreUnspecified 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.EditionsRepeatedExpandedIgnoreUnspecified 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.EditionsRepeatedExpandedIgnoreUnspecified 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.EditionsRepeatedExpandedIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedExpandedIgnoreUnspecified 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.EditionsRepeatedExpandedIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 8bfc7e17..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedExpandedIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedExpandedIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreAlways.java deleted file mode 100644 index 55994b29..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreAlways.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways} - */ -public final class EditionsRepeatedExpandedItemIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways) - EditionsRepeatedExpandedItemIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedExpandedItemIgnoreAlways.class.getName()); - } - // Use EditionsRepeatedExpandedItemIgnoreAlways.newBuilder() to construct. - private EditionsRepeatedExpandedItemIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedExpandedItemIgnoreAlways() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.EditionsRepeatedExpandedItemIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways) 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.EditionsRepeatedExpandedItemIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways 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.EditionsRepeatedExpandedItemIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways 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.EditionsRepeatedExpandedItemIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways 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.EditionsRepeatedExpandedItemIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways 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.EditionsRepeatedExpandedItemIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways 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.EditionsRepeatedExpandedItemIgnoreAlways 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.EditionsRepeatedExpandedItemIgnoreAlways 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.EditionsRepeatedExpandedItemIgnoreAlways 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.EditionsRepeatedExpandedItemIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways) - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedExpandedItemIgnoreAlways 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.EditionsRepeatedExpandedItemIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreAlwaysOrBuilder.java deleted file mode 100644 index c40130c9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedExpandedItemIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreDefault.java deleted file mode 100644 index d20a610a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreDefault.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault} - */ -public final class EditionsRepeatedExpandedItemIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault) - EditionsRepeatedExpandedItemIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedExpandedItemIgnoreDefault.class.getName()); - } - // Use EditionsRepeatedExpandedItemIgnoreDefault.newBuilder() to construct. - private EditionsRepeatedExpandedItemIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedExpandedItemIgnoreDefault() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.EditionsRepeatedExpandedItemIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault) 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.EditionsRepeatedExpandedItemIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault 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.EditionsRepeatedExpandedItemIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault 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.EditionsRepeatedExpandedItemIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault 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.EditionsRepeatedExpandedItemIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault 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.EditionsRepeatedExpandedItemIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault 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.EditionsRepeatedExpandedItemIgnoreDefault 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.EditionsRepeatedExpandedItemIgnoreDefault 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.EditionsRepeatedExpandedItemIgnoreDefault 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.EditionsRepeatedExpandedItemIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault) - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedExpandedItemIgnoreDefault 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.EditionsRepeatedExpandedItemIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreDefaultOrBuilder.java deleted file mode 100644 index 0e53c8b0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedExpandedItemIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreEmpty.java deleted file mode 100644 index fc3920f0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreEmpty.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty} - */ -public final class EditionsRepeatedExpandedItemIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty) - EditionsRepeatedExpandedItemIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedExpandedItemIgnoreEmpty.class.getName()); - } - // Use EditionsRepeatedExpandedItemIgnoreEmpty.newBuilder() to construct. - private EditionsRepeatedExpandedItemIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedExpandedItemIgnoreEmpty() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.EditionsRepeatedExpandedItemIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty) 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.EditionsRepeatedExpandedItemIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty 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.EditionsRepeatedExpandedItemIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty 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.EditionsRepeatedExpandedItemIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty 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.EditionsRepeatedExpandedItemIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty 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.EditionsRepeatedExpandedItemIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty 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.EditionsRepeatedExpandedItemIgnoreEmpty 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.EditionsRepeatedExpandedItemIgnoreEmpty 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.EditionsRepeatedExpandedItemIgnoreEmpty 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.EditionsRepeatedExpandedItemIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedExpandedItemIgnoreEmpty 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.EditionsRepeatedExpandedItemIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreEmptyOrBuilder.java deleted file mode 100644 index cef58d5f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedExpandedItemIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreUnspecified.java deleted file mode 100644 index 464060ed..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreUnspecified.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified} - */ -public final class EditionsRepeatedExpandedItemIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified) - EditionsRepeatedExpandedItemIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedExpandedItemIgnoreUnspecified.class.getName()); - } - // Use EditionsRepeatedExpandedItemIgnoreUnspecified.newBuilder() to construct. - private EditionsRepeatedExpandedItemIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedExpandedItemIgnoreUnspecified() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.EditionsRepeatedExpandedItemIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified) 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.EditionsRepeatedExpandedItemIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified 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.EditionsRepeatedExpandedItemIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified 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.EditionsRepeatedExpandedItemIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified 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.EditionsRepeatedExpandedItemIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified 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.EditionsRepeatedExpandedItemIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified 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.EditionsRepeatedExpandedItemIgnoreUnspecified 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.EditionsRepeatedExpandedItemIgnoreUnspecified 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.EditionsRepeatedExpandedItemIgnoreUnspecified 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.EditionsRepeatedExpandedItemIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedExpandedItemIgnoreUnspecified 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.EditionsRepeatedExpandedItemIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index d586987d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedExpandedItemIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedExpandedItemIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedExpandedItemIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreAlways.java deleted file mode 100644 index 995f7348..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreAlways.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways} - */ -public final class EditionsRepeatedIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways) - EditionsRepeatedIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedIgnoreAlways.class.getName()); - } - // Use EditionsRepeatedIgnoreAlways.newBuilder() to construct. - private EditionsRepeatedIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedIgnoreAlways() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.EditionsRepeatedIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways) 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.EditionsRepeatedIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways 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.EditionsRepeatedIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways 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.EditionsRepeatedIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways 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.EditionsRepeatedIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways 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.EditionsRepeatedIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways 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.EditionsRepeatedIgnoreAlways 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.EditionsRepeatedIgnoreAlways 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.EditionsRepeatedIgnoreAlways 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.EditionsRepeatedIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways) - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedIgnoreAlways 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.EditionsRepeatedIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 912529ae..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreDefault.java deleted file mode 100644 index c9d8a89b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreDefault.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault} - */ -public final class EditionsRepeatedIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault) - EditionsRepeatedIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedIgnoreDefault.class.getName()); - } - // Use EditionsRepeatedIgnoreDefault.newBuilder() to construct. - private EditionsRepeatedIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedIgnoreDefault() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.EditionsRepeatedIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault) 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.EditionsRepeatedIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault 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.EditionsRepeatedIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault 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.EditionsRepeatedIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault 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.EditionsRepeatedIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault 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.EditionsRepeatedIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault 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.EditionsRepeatedIgnoreDefault 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.EditionsRepeatedIgnoreDefault 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.EditionsRepeatedIgnoreDefault 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.EditionsRepeatedIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault) - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedIgnoreDefault 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.EditionsRepeatedIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreDefaultOrBuilder.java deleted file mode 100644 index 0e810504..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreEmpty.java deleted file mode 100644 index c1aad043..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreEmpty.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty} - */ -public final class EditionsRepeatedIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty) - EditionsRepeatedIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedIgnoreEmpty.class.getName()); - } - // Use EditionsRepeatedIgnoreEmpty.newBuilder() to construct. - private EditionsRepeatedIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedIgnoreEmpty() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.EditionsRepeatedIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty) 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.EditionsRepeatedIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty 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.EditionsRepeatedIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty 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.EditionsRepeatedIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty 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.EditionsRepeatedIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty 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.EditionsRepeatedIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty 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.EditionsRepeatedIgnoreEmpty 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.EditionsRepeatedIgnoreEmpty 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.EditionsRepeatedIgnoreEmpty 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.EditionsRepeatedIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedIgnoreEmpty 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.EditionsRepeatedIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreEmptyOrBuilder.java deleted file mode 100644 index 02facf1a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreUnspecified.java deleted file mode 100644 index 4df4af3d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreUnspecified.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified} - */ -public final class EditionsRepeatedIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified) - EditionsRepeatedIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedIgnoreUnspecified.class.getName()); - } - // Use EditionsRepeatedIgnoreUnspecified.newBuilder() to construct. - private EditionsRepeatedIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedIgnoreUnspecified() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.EditionsRepeatedIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified) 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.EditionsRepeatedIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified 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.EditionsRepeatedIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified 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.EditionsRepeatedIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified 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.EditionsRepeatedIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified 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.EditionsRepeatedIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified 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.EditionsRepeatedIgnoreUnspecified 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.EditionsRepeatedIgnoreUnspecified 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.EditionsRepeatedIgnoreUnspecified 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.EditionsRepeatedIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedIgnoreUnspecified 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.EditionsRepeatedIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 054e26f0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreAlways.java deleted file mode 100644 index b306e94a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreAlways.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways} - */ -public final class EditionsRepeatedItemIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways) - EditionsRepeatedItemIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedItemIgnoreAlways.class.getName()); - } - // Use EditionsRepeatedItemIgnoreAlways.newBuilder() to construct. - private EditionsRepeatedItemIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedItemIgnoreAlways() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.EditionsRepeatedItemIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways) 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.EditionsRepeatedItemIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways 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.EditionsRepeatedItemIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways 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.EditionsRepeatedItemIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways 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.EditionsRepeatedItemIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways 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.EditionsRepeatedItemIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways 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.EditionsRepeatedItemIgnoreAlways 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.EditionsRepeatedItemIgnoreAlways 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.EditionsRepeatedItemIgnoreAlways 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.EditionsRepeatedItemIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways) - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedItemIgnoreAlways 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.EditionsRepeatedItemIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 22ab23b8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedItemIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreDefault.java deleted file mode 100644 index 6b673b01..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreDefault.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault} - */ -public final class EditionsRepeatedItemIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault) - EditionsRepeatedItemIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedItemIgnoreDefault.class.getName()); - } - // Use EditionsRepeatedItemIgnoreDefault.newBuilder() to construct. - private EditionsRepeatedItemIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedItemIgnoreDefault() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.EditionsRepeatedItemIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault) 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.EditionsRepeatedItemIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault 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.EditionsRepeatedItemIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault 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.EditionsRepeatedItemIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault 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.EditionsRepeatedItemIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault 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.EditionsRepeatedItemIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault 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.EditionsRepeatedItemIgnoreDefault 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.EditionsRepeatedItemIgnoreDefault 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.EditionsRepeatedItemIgnoreDefault 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.EditionsRepeatedItemIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault) - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedItemIgnoreDefault 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.EditionsRepeatedItemIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreDefaultOrBuilder.java deleted file mode 100644 index e735d495..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedItemIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreEmpty.java deleted file mode 100644 index 0420921e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreEmpty.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty} - */ -public final class EditionsRepeatedItemIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty) - EditionsRepeatedItemIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedItemIgnoreEmpty.class.getName()); - } - // Use EditionsRepeatedItemIgnoreEmpty.newBuilder() to construct. - private EditionsRepeatedItemIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedItemIgnoreEmpty() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.EditionsRepeatedItemIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty) 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.EditionsRepeatedItemIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty 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.EditionsRepeatedItemIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty 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.EditionsRepeatedItemIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty 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.EditionsRepeatedItemIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty 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.EditionsRepeatedItemIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty 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.EditionsRepeatedItemIgnoreEmpty 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.EditionsRepeatedItemIgnoreEmpty 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.EditionsRepeatedItemIgnoreEmpty 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.EditionsRepeatedItemIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedItemIgnoreEmpty 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.EditionsRepeatedItemIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreEmptyOrBuilder.java deleted file mode 100644 index 059baadc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedItemIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreUnspecified.java deleted file mode 100644 index e3486e2e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreUnspecified.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified} - */ -public final class EditionsRepeatedItemIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified) - EditionsRepeatedItemIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsRepeatedItemIgnoreUnspecified.class.getName()); - } - // Use EditionsRepeatedItemIgnoreUnspecified.newBuilder() to construct. - private EditionsRepeatedItemIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsRepeatedItemIgnoreUnspecified() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.EditionsRepeatedItemIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified) 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.EditionsRepeatedItemIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified 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.EditionsRepeatedItemIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified 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.EditionsRepeatedItemIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified 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.EditionsRepeatedItemIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified 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.EditionsRepeatedItemIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified 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.EditionsRepeatedItemIgnoreUnspecified 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.EditionsRepeatedItemIgnoreUnspecified 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.EditionsRepeatedItemIgnoreUnspecified 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.EditionsRepeatedItemIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsRepeatedItemIgnoreUnspecified 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.EditionsRepeatedItemIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 0dbf24a0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsRepeatedItemIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsRepeatedItemIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsRepeatedItemIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlways.java deleted file mode 100644 index d2bc52bb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlways.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways} - */ -public final class EditionsScalarExplicitPresenceIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways) - EditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarExplicitPresenceIgnoreAlways.class.getName()); - } - // Use EditionsScalarExplicitPresenceIgnoreAlways.newBuilder() to construct. - private EditionsScalarExplicitPresenceIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarExplicitPresenceIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarExplicitPresenceIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways 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.EditionsScalarExplicitPresenceIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways 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.EditionsScalarExplicitPresenceIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways 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.EditionsScalarExplicitPresenceIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways 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.EditionsScalarExplicitPresenceIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways 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.EditionsScalarExplicitPresenceIgnoreAlways 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.EditionsScalarExplicitPresenceIgnoreAlways 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.EditionsScalarExplicitPresenceIgnoreAlways 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.EditionsScalarExplicitPresenceIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways) - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarExplicitPresenceIgnoreAlways 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.EditionsScalarExplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder.java deleted file mode 100644 index ec87bcd4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.java deleted file mode 100644 index e1652a1e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault} - */ -public final class EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault) - EditionsScalarExplicitPresenceIgnoreAlwaysWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.class.getName()); - } - // Use EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.newBuilder() to construct. - private EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault other = (build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault 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.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault 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.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault 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.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault 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.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault 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.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault 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.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault 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.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault 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.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault) - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault build() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault result = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault) - private static final build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault 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.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysWithDefaultOrBuilder.java deleted file mode 100644 index 883f17d8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreAlwaysWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarExplicitPresenceIgnoreAlwaysWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefault.java deleted file mode 100644 index 1a246c9d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefault.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault} - */ -public final class EditionsScalarExplicitPresenceIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault) - EditionsScalarExplicitPresenceIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarExplicitPresenceIgnoreDefault.class.getName()); - } - // Use EditionsScalarExplicitPresenceIgnoreDefault.newBuilder() to construct. - private EditionsScalarExplicitPresenceIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarExplicitPresenceIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarExplicitPresenceIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault 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.EditionsScalarExplicitPresenceIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault 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.EditionsScalarExplicitPresenceIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault 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.EditionsScalarExplicitPresenceIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault 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.EditionsScalarExplicitPresenceIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault 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.EditionsScalarExplicitPresenceIgnoreDefault 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.EditionsScalarExplicitPresenceIgnoreDefault 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.EditionsScalarExplicitPresenceIgnoreDefault 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.EditionsScalarExplicitPresenceIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault) - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarExplicitPresenceIgnoreDefault 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.EditionsScalarExplicitPresenceIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultOrBuilder.java deleted file mode 100644 index 7fb9eb28..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarExplicitPresenceIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.java deleted file mode 100644 index e3dfd162..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault} - */ -public final class EditionsScalarExplicitPresenceIgnoreDefaultWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault) - EditionsScalarExplicitPresenceIgnoreDefaultWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.class.getName()); - } - // Use EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.newBuilder() to construct. - private EditionsScalarExplicitPresenceIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarExplicitPresenceIgnoreDefaultWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault other = (build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault 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.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault 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.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault 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.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault 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.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault 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.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault 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.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault 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.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault 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.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault) - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault build() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault result = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault) - private static final build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarExplicitPresenceIgnoreDefaultWithDefault 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.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultWithDefaultOrBuilder.java deleted file mode 100644 index b174079f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreDefaultWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarExplicitPresenceIgnoreDefaultWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreDefaultWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmpty.java deleted file mode 100644 index 4493d946..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmpty.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty} - */ -public final class EditionsScalarExplicitPresenceIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty) - EditionsScalarExplicitPresenceIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarExplicitPresenceIgnoreEmpty.class.getName()); - } - // Use EditionsScalarExplicitPresenceIgnoreEmpty.newBuilder() to construct. - private EditionsScalarExplicitPresenceIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarExplicitPresenceIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarExplicitPresenceIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty 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.EditionsScalarExplicitPresenceIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty 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.EditionsScalarExplicitPresenceIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty 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.EditionsScalarExplicitPresenceIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty 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.EditionsScalarExplicitPresenceIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty 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.EditionsScalarExplicitPresenceIgnoreEmpty 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.EditionsScalarExplicitPresenceIgnoreEmpty 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.EditionsScalarExplicitPresenceIgnoreEmpty 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.EditionsScalarExplicitPresenceIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarExplicitPresenceIgnoreEmpty 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.EditionsScalarExplicitPresenceIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyOrBuilder.java deleted file mode 100644 index af8f4567..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarExplicitPresenceIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.java deleted file mode 100644 index dd129d88..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault} - */ -public final class EditionsScalarExplicitPresenceIgnoreEmptyWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault) - EditionsScalarExplicitPresenceIgnoreEmptyWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.class.getName()); - } - // Use EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.newBuilder() to construct. - private EditionsScalarExplicitPresenceIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarExplicitPresenceIgnoreEmptyWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault other = (build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault 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.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault 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.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault 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.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault 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.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault 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.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault 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.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault 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.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault 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.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault) - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault build() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault result = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault) - private static final build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarExplicitPresenceIgnoreEmptyWithDefault 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.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyWithDefaultOrBuilder.java deleted file mode 100644 index 417a053b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreEmptyWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarExplicitPresenceIgnoreEmptyWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreEmptyWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecified.java deleted file mode 100644 index 3c2772ef..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecified.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified} - */ -public final class EditionsScalarExplicitPresenceIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified) - EditionsScalarExplicitPresenceIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarExplicitPresenceIgnoreUnspecified.class.getName()); - } - // Use EditionsScalarExplicitPresenceIgnoreUnspecified.newBuilder() to construct. - private EditionsScalarExplicitPresenceIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarExplicitPresenceIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarExplicitPresenceIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified 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.EditionsScalarExplicitPresenceIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified 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.EditionsScalarExplicitPresenceIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified 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.EditionsScalarExplicitPresenceIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified 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.EditionsScalarExplicitPresenceIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified 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.EditionsScalarExplicitPresenceIgnoreUnspecified 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.EditionsScalarExplicitPresenceIgnoreUnspecified 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.EditionsScalarExplicitPresenceIgnoreUnspecified 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.EditionsScalarExplicitPresenceIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarExplicitPresenceIgnoreUnspecified 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.EditionsScalarExplicitPresenceIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 5ad52120..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarExplicitPresenceIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.java deleted file mode 100644 index e69b8c0f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault} - */ -public final class EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault) - EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.class.getName()); - } - // Use EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.newBuilder() to construct. - private EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault other = (build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault 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.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault 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.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault 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.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault 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.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault 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.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault 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.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault 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.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault 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.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault) - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault build() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault result = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault) - private static final build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault 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.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefaultOrBuilder.java deleted file mode 100644 index 9e4eedc5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreAlways.java deleted file mode 100644 index cbf73751..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreAlways.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways} - */ -public final class EditionsScalarImplicitPresenceIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways) - EditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarImplicitPresenceIgnoreAlways.class.getName()); - } - // Use EditionsScalarImplicitPresenceIgnoreAlways.newBuilder() to construct. - private EditionsScalarImplicitPresenceIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarImplicitPresenceIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarImplicitPresenceIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways 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.EditionsScalarImplicitPresenceIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways 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.EditionsScalarImplicitPresenceIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways 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.EditionsScalarImplicitPresenceIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways 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.EditionsScalarImplicitPresenceIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways 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.EditionsScalarImplicitPresenceIgnoreAlways 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.EditionsScalarImplicitPresenceIgnoreAlways 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.EditionsScalarImplicitPresenceIgnoreAlways 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.EditionsScalarImplicitPresenceIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways) - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarImplicitPresenceIgnoreAlways 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.EditionsScalarImplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder.java deleted file mode 100644 index c4a340b4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreDefault.java deleted file mode 100644 index 67065aed..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreDefault.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault} - */ -public final class EditionsScalarImplicitPresenceIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault) - EditionsScalarImplicitPresenceIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarImplicitPresenceIgnoreDefault.class.getName()); - } - // Use EditionsScalarImplicitPresenceIgnoreDefault.newBuilder() to construct. - private EditionsScalarImplicitPresenceIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarImplicitPresenceIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarImplicitPresenceIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault 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.EditionsScalarImplicitPresenceIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault 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.EditionsScalarImplicitPresenceIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault 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.EditionsScalarImplicitPresenceIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault 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.EditionsScalarImplicitPresenceIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault 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.EditionsScalarImplicitPresenceIgnoreDefault 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.EditionsScalarImplicitPresenceIgnoreDefault 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.EditionsScalarImplicitPresenceIgnoreDefault 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.EditionsScalarImplicitPresenceIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault) - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarImplicitPresenceIgnoreDefault 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.EditionsScalarImplicitPresenceIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreDefaultOrBuilder.java deleted file mode 100644 index bd737431..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarImplicitPresenceIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreEmpty.java deleted file mode 100644 index 5d2a1966..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreEmpty.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty} - */ -public final class EditionsScalarImplicitPresenceIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty) - EditionsScalarImplicitPresenceIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarImplicitPresenceIgnoreEmpty.class.getName()); - } - // Use EditionsScalarImplicitPresenceIgnoreEmpty.newBuilder() to construct. - private EditionsScalarImplicitPresenceIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarImplicitPresenceIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarImplicitPresenceIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty 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.EditionsScalarImplicitPresenceIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty 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.EditionsScalarImplicitPresenceIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty 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.EditionsScalarImplicitPresenceIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty 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.EditionsScalarImplicitPresenceIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty 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.EditionsScalarImplicitPresenceIgnoreEmpty 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.EditionsScalarImplicitPresenceIgnoreEmpty 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.EditionsScalarImplicitPresenceIgnoreEmpty 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.EditionsScalarImplicitPresenceIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarImplicitPresenceIgnoreEmpty 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.EditionsScalarImplicitPresenceIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreEmptyOrBuilder.java deleted file mode 100644 index 765e1dcf..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarImplicitPresenceIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreUnspecified.java deleted file mode 100644 index 10e28116..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreUnspecified.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified} - */ -public final class EditionsScalarImplicitPresenceIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified) - EditionsScalarImplicitPresenceIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarImplicitPresenceIgnoreUnspecified.class.getName()); - } - // Use EditionsScalarImplicitPresenceIgnoreUnspecified.newBuilder() to construct. - private EditionsScalarImplicitPresenceIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarImplicitPresenceIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarImplicitPresenceIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified 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.EditionsScalarImplicitPresenceIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified 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.EditionsScalarImplicitPresenceIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified 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.EditionsScalarImplicitPresenceIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified 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.EditionsScalarImplicitPresenceIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified 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.EditionsScalarImplicitPresenceIgnoreUnspecified 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.EditionsScalarImplicitPresenceIgnoreUnspecified 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.EditionsScalarImplicitPresenceIgnoreUnspecified 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.EditionsScalarImplicitPresenceIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarImplicitPresenceIgnoreUnspecified 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.EditionsScalarImplicitPresenceIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index b7de2162..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarImplicitPresenceIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarImplicitPresenceIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarImplicitPresenceIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlways.java deleted file mode 100644 index f261f582..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlways.java +++ /dev/null @@ -1,463 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways} - */ -public final class EditionsScalarLegacyRequiredIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways) - EditionsScalarLegacyRequiredIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarLegacyRequiredIgnoreAlways.class.getName()); - } - // Use EditionsScalarLegacyRequiredIgnoreAlways.newBuilder() to construct. - private EditionsScalarLegacyRequiredIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarLegacyRequiredIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarLegacyRequiredIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways other = (build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways 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.EditionsScalarLegacyRequiredIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways 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.EditionsScalarLegacyRequiredIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways 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.EditionsScalarLegacyRequiredIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways 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.EditionsScalarLegacyRequiredIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways 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.EditionsScalarLegacyRequiredIgnoreAlways 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.EditionsScalarLegacyRequiredIgnoreAlways 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.EditionsScalarLegacyRequiredIgnoreAlways 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.EditionsScalarLegacyRequiredIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways) - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways build() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways result = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways) - private static final build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarLegacyRequiredIgnoreAlways 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.EditionsScalarLegacyRequiredIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 247c793b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarLegacyRequiredIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.java deleted file mode 100644 index 41845634..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.java +++ /dev/null @@ -1,464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault} - */ -public final class EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault) - EditionsScalarLegacyRequiredIgnoreAlwaysWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.class.getName()); - } - // Use EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.newBuilder() to construct. - private EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault other = (build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault 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.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault 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.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault 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.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault 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.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault 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.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault 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.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault 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.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault 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.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault) - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault build() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault result = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault) - private static final build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault 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.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysWithDefaultOrBuilder.java deleted file mode 100644 index fe5418f8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreAlwaysWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarLegacyRequiredIgnoreAlwaysWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefault.java deleted file mode 100644 index ce4e4b26..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefault.java +++ /dev/null @@ -1,463 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault} - */ -public final class EditionsScalarLegacyRequiredIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault) - EditionsScalarLegacyRequiredIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarLegacyRequiredIgnoreDefault.class.getName()); - } - // Use EditionsScalarLegacyRequiredIgnoreDefault.newBuilder() to construct. - private EditionsScalarLegacyRequiredIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarLegacyRequiredIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarLegacyRequiredIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault other = (build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault 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.EditionsScalarLegacyRequiredIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault 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.EditionsScalarLegacyRequiredIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault 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.EditionsScalarLegacyRequiredIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault 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.EditionsScalarLegacyRequiredIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault 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.EditionsScalarLegacyRequiredIgnoreDefault 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.EditionsScalarLegacyRequiredIgnoreDefault 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.EditionsScalarLegacyRequiredIgnoreDefault 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.EditionsScalarLegacyRequiredIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault) - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault build() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault result = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault) - private static final build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarLegacyRequiredIgnoreDefault 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.EditionsScalarLegacyRequiredIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultOrBuilder.java deleted file mode 100644 index c551ff20..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarLegacyRequiredIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.java deleted file mode 100644 index 0eb8626f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.java +++ /dev/null @@ -1,464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault} - */ -public final class EditionsScalarLegacyRequiredIgnoreDefaultWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault) - EditionsScalarLegacyRequiredIgnoreDefaultWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.class.getName()); - } - // Use EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.newBuilder() to construct. - private EditionsScalarLegacyRequiredIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarLegacyRequiredIgnoreDefaultWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault other = (build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault 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.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault 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.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault 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.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault 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.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault 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.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault 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.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault 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.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault 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.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault) - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault build() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault result = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault) - private static final build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarLegacyRequiredIgnoreDefaultWithDefault 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.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultWithDefaultOrBuilder.java deleted file mode 100644 index 422076d8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreDefaultWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarLegacyRequiredIgnoreDefaultWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreDefaultWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmpty.java deleted file mode 100644 index 6e315468..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmpty.java +++ /dev/null @@ -1,463 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty} - */ -public final class EditionsScalarLegacyRequiredIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty) - EditionsScalarLegacyRequiredIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarLegacyRequiredIgnoreEmpty.class.getName()); - } - // Use EditionsScalarLegacyRequiredIgnoreEmpty.newBuilder() to construct. - private EditionsScalarLegacyRequiredIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarLegacyRequiredIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarLegacyRequiredIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty other = (build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty 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.EditionsScalarLegacyRequiredIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty 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.EditionsScalarLegacyRequiredIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty 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.EditionsScalarLegacyRequiredIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty 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.EditionsScalarLegacyRequiredIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty 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.EditionsScalarLegacyRequiredIgnoreEmpty 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.EditionsScalarLegacyRequiredIgnoreEmpty 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.EditionsScalarLegacyRequiredIgnoreEmpty 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.EditionsScalarLegacyRequiredIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty) - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty build() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty result = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty) - private static final build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarLegacyRequiredIgnoreEmpty 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.EditionsScalarLegacyRequiredIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyOrBuilder.java deleted file mode 100644 index 0a0b719a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarLegacyRequiredIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.java deleted file mode 100644 index d8c7d3dd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.java +++ /dev/null @@ -1,464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault} - */ -public final class EditionsScalarLegacyRequiredIgnoreEmptyWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault) - EditionsScalarLegacyRequiredIgnoreEmptyWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.class.getName()); - } - // Use EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.newBuilder() to construct. - private EditionsScalarLegacyRequiredIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarLegacyRequiredIgnoreEmptyWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault other = (build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault 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.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault 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.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault 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.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault 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.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault 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.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault 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.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault 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.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault 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.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault) - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault build() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault result = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault) - private static final build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarLegacyRequiredIgnoreEmptyWithDefault 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.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyWithDefaultOrBuilder.java deleted file mode 100644 index ccfab34b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreEmptyWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarLegacyRequiredIgnoreEmptyWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreEmptyWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecified.java deleted file mode 100644 index b96247e6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecified.java +++ /dev/null @@ -1,463 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified} - */ -public final class EditionsScalarLegacyRequiredIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified) - EditionsScalarLegacyRequiredIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarLegacyRequiredIgnoreUnspecified.class.getName()); - } - // Use EditionsScalarLegacyRequiredIgnoreUnspecified.newBuilder() to construct. - private EditionsScalarLegacyRequiredIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarLegacyRequiredIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarLegacyRequiredIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified other = (build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified 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.EditionsScalarLegacyRequiredIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified 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.EditionsScalarLegacyRequiredIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified 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.EditionsScalarLegacyRequiredIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified 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.EditionsScalarLegacyRequiredIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified 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.EditionsScalarLegacyRequiredIgnoreUnspecified 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.EditionsScalarLegacyRequiredIgnoreUnspecified 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.EditionsScalarLegacyRequiredIgnoreUnspecified 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.EditionsScalarLegacyRequiredIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified) - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified build() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified result = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarLegacyRequiredIgnoreUnspecified 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.EditionsScalarLegacyRequiredIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 72f05d50..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarLegacyRequiredIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.java deleted file mode 100644 index d6573e43..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.java +++ /dev/null @@ -1,464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault} - */ -public final class EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault) - EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.class.getName()); - } - // Use EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.newBuilder() to construct. - private EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault other = (build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault 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.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault 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.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault 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.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault 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.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault 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.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault 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.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault 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.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault 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.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault) - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProtoEditionsProto.internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault build() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault buildPartial() { - build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault result = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault other) { - if (other == build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault) - private static final build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault(); - } - - public static build.buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault 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.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefaultOrBuilder.java deleted file mode 100644 index 21ddce5c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Embed.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Embed.java deleted file mode 100644 index becd82c5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Embed.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Embed} - */ -public final class Embed extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Embed) - EmbedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Embed.class.getName()); - } - // Use Embed.newBuilder() to construct. - private Embed(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Embed() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_Embed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_Embed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Embed.class, build.buf.validate.conformance.cases.Embed.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Embed)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Embed other = (build.buf.validate.conformance.cases.Embed) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Embed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Embed 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.Embed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Embed 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.Embed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Embed 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.Embed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Embed 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.Embed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Embed 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.Embed 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.Embed 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.Embed 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.Embed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Embed) - build.buf.validate.conformance.cases.EmbedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_Embed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_Embed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Embed.class, build.buf.validate.conformance.cases.Embed.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Embed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_Embed_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Embed getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Embed.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Embed build() { - build.buf.validate.conformance.cases.Embed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Embed buildPartial() { - build.buf.validate.conformance.cases.Embed result = new build.buf.validate.conformance.cases.Embed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Embed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Embed) { - return mergeFrom((build.buf.validate.conformance.cases.Embed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Embed other) { - if (other == build.buf.validate.conformance.cases.Embed.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Embed) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Embed) - private static final build.buf.validate.conformance.cases.Embed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Embed(); - } - - public static build.buf.validate.conformance.cases.Embed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Embed 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.Embed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EmbedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EmbedOrBuilder.java deleted file mode 100644 index b5fe248b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EmbedOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EmbedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Embed) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConst.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConst.java deleted file mode 100644 index 98c5ba7e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConst.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumAliasConst} - */ -public final class EnumAliasConst extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumAliasConst) - EnumAliasConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumAliasConst.class.getName()); - } - // Use EnumAliasConst.newBuilder() to construct. - private EnumAliasConst(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumAliasConst() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumAliasConst.class, build.buf.validate.conformance.cases.EnumAliasConst.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.TestEnumAlias getVal() { - build.buf.validate.conformance.cases.TestEnumAlias result = build.buf.validate.conformance.cases.TestEnumAlias.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnumAlias.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.TestEnumAlias.TEST_ENUM_ALIAS_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.TestEnumAlias.TEST_ENUM_ALIAS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumAliasConst)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumAliasConst other = (build.buf.validate.conformance.cases.EnumAliasConst) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumAliasConst parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasConst 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.EnumAliasConst parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasConst 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.EnumAliasConst parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasConst 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.EnumAliasConst parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumAliasConst 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.EnumAliasConst parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumAliasConst 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.EnumAliasConst 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.EnumAliasConst 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.EnumAliasConst 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.EnumAliasConst} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumAliasConst) - build.buf.validate.conformance.cases.EnumAliasConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumAliasConst.class, build.buf.validate.conformance.cases.EnumAliasConst.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumAliasConst.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasConst_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasConst getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumAliasConst.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasConst build() { - build.buf.validate.conformance.cases.EnumAliasConst result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasConst buildPartial() { - build.buf.validate.conformance.cases.EnumAliasConst result = new build.buf.validate.conformance.cases.EnumAliasConst(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumAliasConst result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumAliasConst) { - return mergeFrom((build.buf.validate.conformance.cases.EnumAliasConst)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumAliasConst other) { - if (other == build.buf.validate.conformance.cases.EnumAliasConst.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnumAlias getVal() { - build.buf.validate.conformance.cases.TestEnumAlias result = build.buf.validate.conformance.cases.TestEnumAlias.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnumAlias.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.TestEnumAlias value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumAliasConst) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumAliasConst) - private static final build.buf.validate.conformance.cases.EnumAliasConst DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumAliasConst(); - } - - public static build.buf.validate.conformance.cases.EnumAliasConst getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumAliasConst 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.EnumAliasConst getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConstOrBuilder.java deleted file mode 100644 index fd9ff864..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasConstOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumAliasConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumAliasConst) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestEnumAlias getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefined.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefined.java deleted file mode 100644 index ad75529a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefined.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumAliasDefined} - */ -public final class EnumAliasDefined extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumAliasDefined) - EnumAliasDefinedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumAliasDefined.class.getName()); - } - // Use EnumAliasDefined.newBuilder() to construct. - private EnumAliasDefined(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumAliasDefined() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasDefined_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumAliasDefined.class, build.buf.validate.conformance.cases.EnumAliasDefined.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.TestEnumAlias getVal() { - build.buf.validate.conformance.cases.TestEnumAlias result = build.buf.validate.conformance.cases.TestEnumAlias.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnumAlias.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.TestEnumAlias.TEST_ENUM_ALIAS_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.TestEnumAlias.TEST_ENUM_ALIAS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumAliasDefined)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumAliasDefined other = (build.buf.validate.conformance.cases.EnumAliasDefined) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumAliasDefined parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasDefined 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.EnumAliasDefined parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasDefined 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.EnumAliasDefined parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasDefined 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.EnumAliasDefined parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumAliasDefined 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.EnumAliasDefined parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumAliasDefined 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.EnumAliasDefined 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.EnumAliasDefined 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.EnumAliasDefined 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.EnumAliasDefined} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumAliasDefined) - build.buf.validate.conformance.cases.EnumAliasDefinedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasDefined_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumAliasDefined.class, build.buf.validate.conformance.cases.EnumAliasDefined.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumAliasDefined.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasDefined_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasDefined getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumAliasDefined.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasDefined build() { - build.buf.validate.conformance.cases.EnumAliasDefined result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasDefined buildPartial() { - build.buf.validate.conformance.cases.EnumAliasDefined result = new build.buf.validate.conformance.cases.EnumAliasDefined(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumAliasDefined result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumAliasDefined) { - return mergeFrom((build.buf.validate.conformance.cases.EnumAliasDefined)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumAliasDefined other) { - if (other == build.buf.validate.conformance.cases.EnumAliasDefined.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnumAlias getVal() { - build.buf.validate.conformance.cases.TestEnumAlias result = build.buf.validate.conformance.cases.TestEnumAlias.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnumAlias.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.TestEnumAlias value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumAliasDefined) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumAliasDefined) - private static final build.buf.validate.conformance.cases.EnumAliasDefined DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumAliasDefined(); - } - - public static build.buf.validate.conformance.cases.EnumAliasDefined getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumAliasDefined 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.EnumAliasDefined getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefinedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefinedOrBuilder.java deleted file mode 100644 index 45ba2a63..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasDefinedOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumAliasDefinedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumAliasDefined) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestEnumAlias getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasIn.java deleted file mode 100644 index 6f925b2f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasIn.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumAliasIn} - */ -public final class EnumAliasIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumAliasIn) - EnumAliasInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumAliasIn.class.getName()); - } - // Use EnumAliasIn.newBuilder() to construct. - private EnumAliasIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumAliasIn() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumAliasIn.class, build.buf.validate.conformance.cases.EnumAliasIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.TestEnumAlias getVal() { - build.buf.validate.conformance.cases.TestEnumAlias result = build.buf.validate.conformance.cases.TestEnumAlias.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnumAlias.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.TestEnumAlias.TEST_ENUM_ALIAS_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.TestEnumAlias.TEST_ENUM_ALIAS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumAliasIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumAliasIn other = (build.buf.validate.conformance.cases.EnumAliasIn) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumAliasIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasIn 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.EnumAliasIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasIn 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.EnumAliasIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasIn 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.EnumAliasIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumAliasIn 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.EnumAliasIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumAliasIn 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.EnumAliasIn 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.EnumAliasIn 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.EnumAliasIn 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.EnumAliasIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumAliasIn) - build.buf.validate.conformance.cases.EnumAliasInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumAliasIn.class, build.buf.validate.conformance.cases.EnumAliasIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumAliasIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumAliasIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasIn build() { - build.buf.validate.conformance.cases.EnumAliasIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasIn buildPartial() { - build.buf.validate.conformance.cases.EnumAliasIn result = new build.buf.validate.conformance.cases.EnumAliasIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumAliasIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumAliasIn) { - return mergeFrom((build.buf.validate.conformance.cases.EnumAliasIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumAliasIn other) { - if (other == build.buf.validate.conformance.cases.EnumAliasIn.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnumAlias getVal() { - build.buf.validate.conformance.cases.TestEnumAlias result = build.buf.validate.conformance.cases.TestEnumAlias.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnumAlias.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.TestEnumAlias value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumAliasIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumAliasIn) - private static final build.buf.validate.conformance.cases.EnumAliasIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumAliasIn(); - } - - public static build.buf.validate.conformance.cases.EnumAliasIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumAliasIn 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.EnumAliasIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasInOrBuilder.java deleted file mode 100644 index 385fe73e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasInOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumAliasInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumAliasIn) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestEnumAlias getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotIn.java deleted file mode 100644 index 5ebb5ad7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotIn.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumAliasNotIn} - */ -public final class EnumAliasNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumAliasNotIn) - EnumAliasNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumAliasNotIn.class.getName()); - } - // Use EnumAliasNotIn.newBuilder() to construct. - private EnumAliasNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumAliasNotIn() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumAliasNotIn.class, build.buf.validate.conformance.cases.EnumAliasNotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.TestEnumAlias getVal() { - build.buf.validate.conformance.cases.TestEnumAlias result = build.buf.validate.conformance.cases.TestEnumAlias.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnumAlias.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.TestEnumAlias.TEST_ENUM_ALIAS_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.TestEnumAlias.TEST_ENUM_ALIAS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumAliasNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumAliasNotIn other = (build.buf.validate.conformance.cases.EnumAliasNotIn) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumAliasNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasNotIn 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.EnumAliasNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasNotIn 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.EnumAliasNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumAliasNotIn 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.EnumAliasNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumAliasNotIn 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.EnumAliasNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumAliasNotIn 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.EnumAliasNotIn 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.EnumAliasNotIn 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.EnumAliasNotIn 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.EnumAliasNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumAliasNotIn) - build.buf.validate.conformance.cases.EnumAliasNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumAliasNotIn.class, build.buf.validate.conformance.cases.EnumAliasNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumAliasNotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumAliasNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumAliasNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasNotIn build() { - build.buf.validate.conformance.cases.EnumAliasNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumAliasNotIn buildPartial() { - build.buf.validate.conformance.cases.EnumAliasNotIn result = new build.buf.validate.conformance.cases.EnumAliasNotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumAliasNotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumAliasNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.EnumAliasNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumAliasNotIn other) { - if (other == build.buf.validate.conformance.cases.EnumAliasNotIn.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnumAlias getVal() { - build.buf.validate.conformance.cases.TestEnumAlias result = build.buf.validate.conformance.cases.TestEnumAlias.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnumAlias.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.TestEnumAlias value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumAliasNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumAliasNotIn) - private static final build.buf.validate.conformance.cases.EnumAliasNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumAliasNotIn(); - } - - public static build.buf.validate.conformance.cases.EnumAliasNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumAliasNotIn 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.EnumAliasNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotInOrBuilder.java deleted file mode 100644 index b0907344..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumAliasNotInOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumAliasNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumAliasNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.TestEnumAlias val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestEnumAlias getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumConst.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumConst.java deleted file mode 100644 index 63d0913f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumConst.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumConst} - */ -public final class EnumConst extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumConst) - EnumConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumConst.class.getName()); - } - // Use EnumConst.newBuilder() to construct. - private EnumConst(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumConst() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumConst.class, build.buf.validate.conformance.cases.EnumConst.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumConst)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumConst other = (build.buf.validate.conformance.cases.EnumConst) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumConst parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumConst 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.EnumConst parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumConst 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.EnumConst parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumConst 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.EnumConst parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumConst 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.EnumConst parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumConst 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.EnumConst 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.EnumConst 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.EnumConst 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.EnumConst} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumConst) - build.buf.validate.conformance.cases.EnumConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumConst.class, build.buf.validate.conformance.cases.EnumConst.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumConst.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumConst_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumConst getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumConst.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumConst build() { - build.buf.validate.conformance.cases.EnumConst result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumConst buildPartial() { - build.buf.validate.conformance.cases.EnumConst result = new build.buf.validate.conformance.cases.EnumConst(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumConst result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumConst) { - return mergeFrom((build.buf.validate.conformance.cases.EnumConst)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumConst other) { - if (other == build.buf.validate.conformance.cases.EnumConst.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.TestEnum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumConst) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumConst) - private static final build.buf.validate.conformance.cases.EnumConst DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumConst(); - } - - public static build.buf.validate.conformance.cases.EnumConst getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumConst 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.EnumConst getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumConstOrBuilder.java deleted file mode 100644 index ae45a19f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumConstOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumConst) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestEnum getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefined.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefined.java deleted file mode 100644 index 6274a735..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefined.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumDefined} - */ -public final class EnumDefined extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumDefined) - EnumDefinedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumDefined.class.getName()); - } - // Use EnumDefined.newBuilder() to construct. - private EnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumDefined() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumDefined_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumDefined.class, build.buf.validate.conformance.cases.EnumDefined.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumDefined)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumDefined other = (build.buf.validate.conformance.cases.EnumDefined) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumDefined parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumDefined 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.EnumDefined parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumDefined 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.EnumDefined parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumDefined 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.EnumDefined parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumDefined 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.EnumDefined parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumDefined 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.EnumDefined 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.EnumDefined 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.EnumDefined 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.EnumDefined} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumDefined) - build.buf.validate.conformance.cases.EnumDefinedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumDefined_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumDefined.class, build.buf.validate.conformance.cases.EnumDefined.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumDefined.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumDefined_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumDefined getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumDefined.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumDefined build() { - build.buf.validate.conformance.cases.EnumDefined result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumDefined buildPartial() { - build.buf.validate.conformance.cases.EnumDefined result = new build.buf.validate.conformance.cases.EnumDefined(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumDefined result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumDefined) { - return mergeFrom((build.buf.validate.conformance.cases.EnumDefined)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumDefined other) { - if (other == build.buf.validate.conformance.cases.EnumDefined.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.TestEnum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumDefined) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumDefined) - private static final build.buf.validate.conformance.cases.EnumDefined DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumDefined(); - } - - public static build.buf.validate.conformance.cases.EnumDefined getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumDefined 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.EnumDefined getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefinedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefinedOrBuilder.java deleted file mode 100644 index 9ce7df2c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumDefinedOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumDefinedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumDefined) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestEnum getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExample.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExample.java deleted file mode 100644 index 211937eb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExample.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumExample} - */ -public final class EnumExample extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumExample) - EnumExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumExample.class.getName()); - } - // Use EnumExample.newBuilder() to construct. - private EnumExample(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumExample() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumExample.class, build.buf.validate.conformance.cases.EnumExample.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumExample)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumExample other = (build.buf.validate.conformance.cases.EnumExample) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumExample parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumExample 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.EnumExample parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumExample 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.EnumExample parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumExample 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.EnumExample parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumExample 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.EnumExample parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumExample 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.EnumExample 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.EnumExample 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.EnumExample 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.EnumExample} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumExample) - build.buf.validate.conformance.cases.EnumExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumExample.class, build.buf.validate.conformance.cases.EnumExample.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumExample.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExample_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumExample getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumExample.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumExample build() { - build.buf.validate.conformance.cases.EnumExample result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumExample buildPartial() { - build.buf.validate.conformance.cases.EnumExample result = new build.buf.validate.conformance.cases.EnumExample(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumExample result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumExample) { - return mergeFrom((build.buf.validate.conformance.cases.EnumExample)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumExample other) { - if (other == build.buf.validate.conformance.cases.EnumExample.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.TestEnum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumExample) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumExample) - private static final build.buf.validate.conformance.cases.EnumExample DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumExample(); - } - - public static build.buf.validate.conformance.cases.EnumExample getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumExample 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.EnumExample getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExampleOrBuilder.java deleted file mode 100644 index d5340c61..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExampleOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumExample) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestEnum getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal.java deleted file mode 100644 index d7cf2d10..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumExternal} - */ -public final class EnumExternal extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumExternal) - EnumExternalOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumExternal.class.getName()); - } - // Use EnumExternal.newBuilder() to construct. - private EnumExternal(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumExternal() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumExternal.class, build.buf.validate.conformance.cases.EnumExternal.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.other_package.Embed.Enumerated getVal() { - build.buf.validate.conformance.cases.other_package.Embed.Enumerated result = build.buf.validate.conformance.cases.other_package.Embed.Enumerated.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.other_package.Embed.Enumerated.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.other_package.Embed.Enumerated.ENUMERATED_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.other_package.Embed.Enumerated.ENUMERATED_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumExternal)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumExternal other = (build.buf.validate.conformance.cases.EnumExternal) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumExternal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumExternal 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.EnumExternal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumExternal 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.EnumExternal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumExternal 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.EnumExternal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumExternal 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.EnumExternal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumExternal 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.EnumExternal 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.EnumExternal 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.EnumExternal 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.EnumExternal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumExternal) - build.buf.validate.conformance.cases.EnumExternalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumExternal.class, build.buf.validate.conformance.cases.EnumExternal.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumExternal.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumExternal getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumExternal.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumExternal build() { - build.buf.validate.conformance.cases.EnumExternal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumExternal buildPartial() { - build.buf.validate.conformance.cases.EnumExternal result = new build.buf.validate.conformance.cases.EnumExternal(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumExternal result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumExternal) { - return mergeFrom((build.buf.validate.conformance.cases.EnumExternal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumExternal other) { - if (other == build.buf.validate.conformance.cases.EnumExternal.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed.Enumerated getVal() { - build.buf.validate.conformance.cases.other_package.Embed.Enumerated result = build.buf.validate.conformance.cases.other_package.Embed.Enumerated.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.other_package.Embed.Enumerated.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.other_package.Embed.Enumerated value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumExternal) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumExternal) - private static final build.buf.validate.conformance.cases.EnumExternal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumExternal(); - } - - public static build.buf.validate.conformance.cases.EnumExternal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumExternal 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.EnumExternal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2.java deleted file mode 100644 index 45c35e21..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumExternal2} - */ -public final class EnumExternal2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumExternal2) - EnumExternal2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumExternal2.class.getName()); - } - // Use EnumExternal2.newBuilder() to construct. - private EnumExternal2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumExternal2() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumExternal2.class, build.buf.validate.conformance.cases.EnumExternal2.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated getVal() { - build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated result = build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated.DOUBLE_ENUMERATED_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated.DOUBLE_ENUMERATED_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumExternal2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumExternal2 other = (build.buf.validate.conformance.cases.EnumExternal2) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumExternal2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumExternal2 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.EnumExternal2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumExternal2 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.EnumExternal2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumExternal2 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.EnumExternal2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumExternal2 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.EnumExternal2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumExternal2 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.EnumExternal2 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.EnumExternal2 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.EnumExternal2 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.EnumExternal2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumExternal2) - build.buf.validate.conformance.cases.EnumExternal2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumExternal2.class, build.buf.validate.conformance.cases.EnumExternal2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumExternal2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumExternal2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumExternal2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumExternal2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumExternal2 build() { - build.buf.validate.conformance.cases.EnumExternal2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumExternal2 buildPartial() { - build.buf.validate.conformance.cases.EnumExternal2 result = new build.buf.validate.conformance.cases.EnumExternal2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumExternal2 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumExternal2) { - return mergeFrom((build.buf.validate.conformance.cases.EnumExternal2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumExternal2 other) { - if (other == build.buf.validate.conformance.cases.EnumExternal2.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated getVal() { - build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated result = build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumExternal2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumExternal2) - private static final build.buf.validate.conformance.cases.EnumExternal2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumExternal2(); - } - - public static build.buf.validate.conformance.cases.EnumExternal2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumExternal2 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.EnumExternal2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2OrBuilder.java deleted file mode 100644 index 7524c682..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternal2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumExternal2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumExternal2) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternalOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternalOrBuilder.java deleted file mode 100644 index ddea0d2e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumExternalOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumExternalOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumExternal) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.other_package.Embed.Enumerated getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumIn.java deleted file mode 100644 index 8345b471..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumIn.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumIn} - */ -public final class EnumIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumIn) - EnumInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumIn.class.getName()); - } - // Use EnumIn.newBuilder() to construct. - private EnumIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumIn() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumIn.class, build.buf.validate.conformance.cases.EnumIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumIn other = (build.buf.validate.conformance.cases.EnumIn) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumIn 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.EnumIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumIn 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.EnumIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumIn 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.EnumIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumIn 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.EnumIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumIn 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.EnumIn 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.EnumIn 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.EnumIn 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.EnumIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumIn) - build.buf.validate.conformance.cases.EnumInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumIn.class, build.buf.validate.conformance.cases.EnumIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumIn build() { - build.buf.validate.conformance.cases.EnumIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumIn buildPartial() { - build.buf.validate.conformance.cases.EnumIn result = new build.buf.validate.conformance.cases.EnumIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumIn) { - return mergeFrom((build.buf.validate.conformance.cases.EnumIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumIn other) { - if (other == build.buf.validate.conformance.cases.EnumIn.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.TestEnum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumIn) - private static final build.buf.validate.conformance.cases.EnumIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumIn(); - } - - public static build.buf.validate.conformance.cases.EnumIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumIn 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.EnumIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInOrBuilder.java deleted file mode 100644 index f32882b1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumIn) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestEnum getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneof.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneof.java deleted file mode 100644 index 51f4436c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneof.java +++ /dev/null @@ -1,767 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumInsideOneof} - */ -public final class EnumInsideOneof extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumInsideOneof) - EnumInsideOneofOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumInsideOneof.class.getName()); - } - // Use EnumInsideOneof.newBuilder() to construct. - private EnumInsideOneof(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumInsideOneof() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumInsideOneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumInsideOneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumInsideOneof.class, build.buf.validate.conformance.cases.EnumInsideOneof.Builder.class); - } - - private int fooCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object foo_; - public enum FooCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - FOO_NOT_SET(0); - private final int value; - private FooCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FooCase valueOf(int value) { - return forNumber(value); - } - - public static FooCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return FOO_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public FooCase - getFooCase() { - return FooCase.forNumber( - fooCase_); - } - - private int barCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object bar_; - public enum BarCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL2(2), - BAR_NOT_SET(0); - private final int value; - private BarCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static BarCase valueOf(int value) { - return forNumber(value); - } - - public static BarCase forNumber(int value) { - switch (value) { - case 2: return VAL2; - case 0: return BAR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public BarCase - getBarCase() { - return BarCase.forNumber( - barCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return fooCase_ == 1; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - public int getValValue() { - if (fooCase_ == 1) { - return (java.lang.Integer) foo_; - } - return 0; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.TestEnum getVal() { - if (fooCase_ == 1) { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber( - (java.lang.Integer) foo_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - return build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED; - } - - public static final int VAL2_FIELD_NUMBER = 2; - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @return Whether the val2 field is set. - */ - public boolean hasVal2() { - return barCase_ == 2; - } - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val2. - */ - public int getVal2Value() { - if (barCase_ == 2) { - return (java.lang.Integer) bar_; - } - return 0; - } - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @return The val2. - */ - public build.buf.validate.conformance.cases.TestEnum getVal2() { - if (barCase_ == 2) { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber( - (java.lang.Integer) bar_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - return build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED; - } - - 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 { - if (fooCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) foo_)); - } - if (barCase_ == 2) { - output.writeEnum(2, ((java.lang.Integer) bar_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fooCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, ((java.lang.Integer) foo_)); - } - if (barCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, ((java.lang.Integer) bar_)); - } - 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.EnumInsideOneof)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumInsideOneof other = (build.buf.validate.conformance.cases.EnumInsideOneof) obj; - - if (!getFooCase().equals(other.getFooCase())) return false; - switch (fooCase_) { - case 1: - if (getValValue() - != other.getValValue()) return false; - break; - case 0: - default: - } - if (!getBarCase().equals(other.getBarCase())) return false; - switch (barCase_) { - case 2: - if (getVal2Value() - != other.getVal2Value()) return false; - break; - case 0: - default: - } - 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(); - switch (fooCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getValValue(); - break; - case 0: - default: - } - switch (barCase_) { - case 2: - hash = (37 * hash) + VAL2_FIELD_NUMBER; - hash = (53 * hash) + getVal2Value(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumInsideOneof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumInsideOneof 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.EnumInsideOneof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumInsideOneof 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.EnumInsideOneof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumInsideOneof 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.EnumInsideOneof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumInsideOneof 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.EnumInsideOneof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumInsideOneof 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.EnumInsideOneof 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.EnumInsideOneof 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.EnumInsideOneof 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.EnumInsideOneof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumInsideOneof) - build.buf.validate.conformance.cases.EnumInsideOneofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumInsideOneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumInsideOneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumInsideOneof.class, build.buf.validate.conformance.cases.EnumInsideOneof.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumInsideOneof.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fooCase_ = 0; - foo_ = null; - barCase_ = 0; - bar_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumInsideOneof_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumInsideOneof getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumInsideOneof.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumInsideOneof build() { - build.buf.validate.conformance.cases.EnumInsideOneof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumInsideOneof buildPartial() { - build.buf.validate.conformance.cases.EnumInsideOneof result = new build.buf.validate.conformance.cases.EnumInsideOneof(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumInsideOneof result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.EnumInsideOneof result) { - result.fooCase_ = fooCase_; - result.foo_ = this.foo_; - result.barCase_ = barCase_; - result.bar_ = this.bar_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumInsideOneof) { - return mergeFrom((build.buf.validate.conformance.cases.EnumInsideOneof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumInsideOneof other) { - if (other == build.buf.validate.conformance.cases.EnumInsideOneof.getDefaultInstance()) return this; - switch (other.getFooCase()) { - case VAL: { - setValValue(other.getValValue()); - break; - } - case FOO_NOT_SET: { - break; - } - } - switch (other.getBarCase()) { - case VAL2: { - setVal2Value(other.getVal2Value()); - break; - } - case BAR_NOT_SET: { - break; - } - } - 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 8: { - int rawValue = input.readEnum(); - fooCase_ = 1; - foo_ = rawValue; - break; - } // case 8 - case 16: { - int rawValue = input.readEnum(); - barCase_ = 2; - bar_ = rawValue; - break; - } // case 16 - 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 fooCase_ = 0; - private java.lang.Object foo_; - public FooCase - getFooCase() { - return FooCase.forNumber( - fooCase_); - } - - public Builder clearFoo() { - fooCase_ = 0; - foo_ = null; - onChanged(); - return this; - } - - private int barCase_ = 0; - private java.lang.Object bar_; - public BarCase - getBarCase() { - return BarCase.forNumber( - barCase_); - } - - public Builder clearBar() { - barCase_ = 0; - bar_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return fooCase_ == 1; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override - public int getValValue() { - if (fooCase_ == 1) { - return ((java.lang.Integer) foo_).intValue(); - } - return 0; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - fooCase_ = 1; - foo_ = value; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnum getVal() { - if (fooCase_ == 1) { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber( - (java.lang.Integer) foo_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - return build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.TestEnum value) { - if (value == null) { - throw new NullPointerException(); - } - fooCase_ = 1; - foo_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (fooCase_ == 1) { - fooCase_ = 0; - foo_ = null; - onChanged(); - } - return this; - } - - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @return Whether the val2 field is set. - */ - @java.lang.Override - public boolean hasVal2() { - return barCase_ == 2; - } - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val2. - */ - @java.lang.Override - public int getVal2Value() { - if (barCase_ == 2) { - return ((java.lang.Integer) bar_).intValue(); - } - return 0; - } - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val2 to set. - * @return This builder for chaining. - */ - public Builder setVal2Value(int value) { - barCase_ = 2; - bar_ = value; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @return The val2. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnum getVal2() { - if (barCase_ == 2) { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber( - (java.lang.Integer) bar_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - return build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED; - } - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @param value The val2 to set. - * @return This builder for chaining. - */ - public Builder setVal2(build.buf.validate.conformance.cases.TestEnum value) { - if (value == null) { - throw new NullPointerException(); - } - barCase_ = 2; - bar_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal2() { - if (barCase_ == 2) { - barCase_ = 0; - bar_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumInsideOneof) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumInsideOneof) - private static final build.buf.validate.conformance.cases.EnumInsideOneof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumInsideOneof(); - } - - public static build.buf.validate.conformance.cases.EnumInsideOneof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumInsideOneof 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.EnumInsideOneof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneofOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneofOrBuilder.java deleted file mode 100644 index 0b1c77b4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumInsideOneofOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumInsideOneofOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumInsideOneof) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestEnum getVal(); - - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @return Whether the val2 field is set. - */ - boolean hasVal2(); - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val2. - */ - int getVal2Value(); - /** - * .buf.validate.conformance.cases.TestEnum val2 = 2 [json_name = "val2", (.buf.validate.field) = { ... } - * @return The val2. - */ - build.buf.validate.conformance.cases.TestEnum getVal2(); - - build.buf.validate.conformance.cases.EnumInsideOneof.FooCase getFooCase(); - - build.buf.validate.conformance.cases.EnumInsideOneof.BarCase getBarCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNone.java deleted file mode 100644 index d105cbdc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNone.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumNone} - */ -public final class EnumNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumNone) - EnumNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumNone.class.getName()); - } - // Use EnumNone.newBuilder() to construct. - private EnumNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumNone() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumNone.class, build.buf.validate.conformance.cases.EnumNone.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val"]; - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumNone other = (build.buf.validate.conformance.cases.EnumNone) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumNone 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.EnumNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumNone 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.EnumNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumNone 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.EnumNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumNone 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.EnumNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumNone 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.EnumNone 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.EnumNone 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.EnumNone 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.EnumNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumNone) - build.buf.validate.conformance.cases.EnumNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumNone.class, build.buf.validate.conformance.cases.EnumNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumNone.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumNone build() { - build.buf.validate.conformance.cases.EnumNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumNone buildPartial() { - build.buf.validate.conformance.cases.EnumNone result = new build.buf.validate.conformance.cases.EnumNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumNone result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumNone) { - return mergeFrom((build.buf.validate.conformance.cases.EnumNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumNone other) { - if (other == build.buf.validate.conformance.cases.EnumNone.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val"]; - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val"]; - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.TestEnum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumNone) - private static final build.buf.validate.conformance.cases.EnumNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumNone(); - } - - public static build.buf.validate.conformance.cases.EnumNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumNone 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.EnumNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNoneOrBuilder.java deleted file mode 100644 index bb5bb623..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNoneOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumNone) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val"]; - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val"]; - * @return The val. - */ - build.buf.validate.conformance.cases.TestEnum getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotIn.java deleted file mode 100644 index 6d097671..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotIn.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.EnumNotIn} - */ -public final class EnumNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.EnumNotIn) - EnumNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumNotIn.class.getName()); - } - // Use EnumNotIn.newBuilder() to construct. - private EnumNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private EnumNotIn() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumNotIn.class, build.buf.validate.conformance.cases.EnumNotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.EnumNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.EnumNotIn other = (build.buf.validate.conformance.cases.EnumNotIn) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.EnumNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumNotIn 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.EnumNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumNotIn 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.EnumNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.EnumNotIn 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.EnumNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.EnumNotIn 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.EnumNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.EnumNotIn 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.EnumNotIn 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.EnumNotIn 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.EnumNotIn 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.EnumNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.EnumNotIn) - build.buf.validate.conformance.cases.EnumNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.EnumNotIn.class, build.buf.validate.conformance.cases.EnumNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.EnumNotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_EnumNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.EnumNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumNotIn build() { - build.buf.validate.conformance.cases.EnumNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.EnumNotIn buildPartial() { - build.buf.validate.conformance.cases.EnumNotIn result = new build.buf.validate.conformance.cases.EnumNotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.EnumNotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.EnumNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.EnumNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.EnumNotIn other) { - if (other == build.buf.validate.conformance.cases.EnumNotIn.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnum getVal() { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.TestEnum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.EnumNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.EnumNotIn) - private static final build.buf.validate.conformance.cases.EnumNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.EnumNotIn(); - } - - public static build.buf.validate.conformance.cases.EnumNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumNotIn 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.EnumNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotInOrBuilder.java deleted file mode 100644 index eb281846..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumNotInOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface EnumNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.EnumNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestEnum getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumsProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/EnumsProto.java deleted file mode 100644 index ac2f97a1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/EnumsProto.java +++ /dev/null @@ -1,348 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class EnumsProto { - private EnumsProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumsProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumConst_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumConst_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumAliasConst_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumAliasConst_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumDefined_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumDefined_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumAliasDefined_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumAliasDefined_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumAliasIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumAliasIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumNotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumAliasNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumAliasNotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumExternal_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumExternal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumExternal2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumExternal2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapEnumDefined_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapEnumDefined_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapEnumDefined_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapEnumDefined_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumInsideOneof_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumInsideOneof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EnumExample_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EnumExample_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*buf/validate/conformance/cases/enums.p" + - "roto\022\036buf.validate.conformance.cases\0328bu" + - "f/validate/conformance/cases/other_packa" + - "ge/embed.proto\032?buf/validate/conformance" + - "/cases/yet_another_package/embed2.proto\032" + - "\033buf/validate/validate.proto\"F\n\010EnumNone" + - "\022:\n\003val\030\001 \001(\0162(.buf.validate.conformance" + - ".cases.TestEnumR\003val\"Q\n\tEnumConst\022D\n\003val" + - "\030\001 \001(\0162(.buf.validate.conformance.cases." + - "TestEnumB\010\272H\005\202\001\002\010\002R\003val\"[\n\016EnumAliasCons" + - "t\022I\n\003val\030\001 \001(\0162-.buf.validate.conformanc" + - "e.cases.TestEnumAliasB\010\272H\005\202\001\002\010\002R\003val\"S\n\013" + - "EnumDefined\022D\n\003val\030\001 \001(\0162(.buf.validate." + - "conformance.cases.TestEnumB\010\272H\005\202\001\002\020\001R\003va" + - "l\"]\n\020EnumAliasDefined\022I\n\003val\030\001 \001(\0162-.buf" + - ".validate.conformance.cases.TestEnumAlia" + - "sB\010\272H\005\202\001\002\020\001R\003val\"P\n\006EnumIn\022F\n\003val\030\001 \001(\0162" + - "(.buf.validate.conformance.cases.TestEnu" + - "mB\n\272H\007\202\001\004\030\000\030\002R\003val\"Z\n\013EnumAliasIn\022K\n\003val" + - "\030\001 \001(\0162-.buf.validate.conformance.cases." + - "TestEnumAliasB\n\272H\007\202\001\004\030\000\030\002R\003val\"Q\n\tEnumNo" + - "tIn\022D\n\003val\030\001 \001(\0162(.buf.validate.conforma" + - "nce.cases.TestEnumB\010\272H\005\202\001\002 \001R\003val\"[\n\016Enu" + - "mAliasNotIn\022I\n\003val\030\001 \001(\0162-.buf.validate." + - "conformance.cases.TestEnumAliasB\010\272H\005\202\001\002 " + - "\001R\003val\"j\n\014EnumExternal\022Z\n\003val\030\001 \001(\0162>.bu" + - "f.validate.conformance.cases.other_packa" + - "ge.Embed.EnumeratedB\010\272H\005\202\001\002\020\001R\003val\"}\n\rEn" + - "umExternal2\022l\n\003val\030\001 \001(\0162P.buf.validate." + - "conformance.cases.other_package.Embed.Do" + - "ubleEmbed.DoubleEnumeratedB\010\272H\005\202\001\002\020\001R\003va" + - "l\"`\n\023RepeatedEnumDefined\022I\n\003val\030\001 \003(\0162(." + - "buf.validate.conformance.cases.TestEnumB" + - "\r\272H\n\222\001\007\"\005\202\001\002\020\001R\003val\"~\n\033RepeatedExternalE" + - "numDefined\022_\n\003val\030\001 \003(\0162>.buf.validate.c" + - "onformance.cases.other_package.Embed.Enu" + - "meratedB\r\272H\n\222\001\007\"\005\202\001\002\020\001R\003val\"\216\001\n%Repeated" + - "YetAnotherExternalEnumDefined\022e\n\003val\030\001 \003" + - "(\0162D.buf.validate.conformance.cases.yet_" + - "another_package.Embed.EnumeratedB\r\272H\n\222\001\007" + - "\"\005\202\001\002\020\001R\003val\"\314\001\n\016MapEnumDefined\022X\n\003val\030\001" + - " \003(\01327.buf.validate.conformance.cases.Ma" + - "pEnumDefined.ValEntryB\r\272H\n\232\001\007*\005\202\001\002\020\001R\003va" + - "l\032`\n\010ValEntry\022\020\n\003key\030\001 \001(\tR\003key\022>\n\005value" + - "\030\002 \001(\0162(.buf.validate.conformance.cases." + - "TestEnumR\005value:\0028\001\"\362\001\n\026MapExternalEnumD" + - "efined\022`\n\003val\030\001 \003(\0132?.buf.validate.confo" + - "rmance.cases.MapExternalEnumDefined.ValE" + - "ntryB\r\272H\n\232\001\007*\005\202\001\002\020\001R\003val\032v\n\010ValEntry\022\020\n\003" + - "key\030\001 \001(\tR\003key\022T\n\005value\030\002 \001(\0162>.buf.vali" + - "date.conformance.cases.other_package.Emb" + - "ed.EnumeratedR\005value:\0028\001\"\263\001\n\017EnumInsideO" + - "neof\022F\n\003val\030\001 \001(\0162(.buf.validate.conform" + - "ance.cases.TestEnumB\010\272H\005\202\001\002\020\001H\000R\003val\022J\n\004" + - "val2\030\002 \001(\0162(.buf.validate.conformance.ca" + - "ses.TestEnumB\n\272H\007\202\001\004\020\001 \000H\001R\004val2B\005\n\003fooB" + - "\005\n\003bar\"S\n\013EnumExample\022D\n\003val\030\001 \001(\0162(.buf" + - ".validate.conformance.cases.TestEnumB\010\272H" + - "\005\202\001\002(\002R\003val*K\n\010TestEnum\022\031\n\025TEST_ENUM_UNS" + - "PECIFIED\020\000\022\021\n\rTEST_ENUM_ONE\020\001\022\021\n\rTEST_EN" + - "UM_TWO\020\002*\311\001\n\rTestEnumAlias\022\037\n\033TEST_ENUM_" + - "ALIAS_UNSPECIFIED\020\000\022\025\n\021TEST_ENUM_ALIAS_A" + - "\020\001\022\025\n\021TEST_ENUM_ALIAS_B\020\002\022\025\n\021TEST_ENUM_A" + - "LIAS_C\020\003\022\031\n\025TEST_ENUM_ALIAS_ALPHA\020\001\022\030\n\024T" + - "EST_ENUM_ALIAS_BETA\020\002\022\031\n\025TEST_ENUM_ALIAS" + - "_GAMMA\020\003\032\002\020\001B\316\001\n$build.buf.validate.conf" + - "ormance.casesB\nEnumsProtoP\001\242\002\004BVCC\252\002\036Buf" + - ".Validate.Conformance.Cases\312\002\036Buf\\Valida" + - "te\\Conformance\\Cases\342\002*Buf\\Validate\\Conf" + - "ormance\\Cases\\GPBMetadata\352\002!Buf::Validat" + - "e::Conformance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.conformance.cases.other_package.EmbedProto.getDescriptor(), - build.buf.validate.conformance.cases.yet_another_package.Embed2Proto.getDescriptor(), - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_EnumNone_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_EnumNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EnumConst_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_EnumConst_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumConst_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EnumAliasConst_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_EnumAliasConst_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumAliasConst_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EnumDefined_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_EnumDefined_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumDefined_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EnumAliasDefined_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_EnumAliasDefined_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumAliasDefined_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EnumIn_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_EnumIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EnumAliasIn_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_EnumAliasIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumAliasIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EnumNotIn_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_EnumNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumNotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EnumAliasNotIn_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_EnumAliasNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumAliasNotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EnumExternal_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_EnumExternal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumExternal_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EnumExternal2_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_EnumExternal2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumExternal2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapEnumDefined_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_conformance_cases_MapEnumDefined_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapEnumDefined_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapEnumDefined_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapEnumDefined_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapEnumDefined_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapEnumDefined_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EnumInsideOneof_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_conformance_cases_EnumInsideOneof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumInsideOneof_descriptor, - new java.lang.String[] { "Val", "Val2", "Foo", "Bar", }); - internal_static_buf_validate_conformance_cases_EnumExample_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_conformance_cases_EnumExample_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EnumExample_descriptor, - new java.lang.String[] { "Val", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.conformance.cases.other_package.EmbedProto.getDescriptor(); - build.buf.validate.conformance.cases.yet_another_package.Embed2Proto.getDescriptor(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FilenameWithDashProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FilenameWithDashProto.java deleted file mode 100644 index 1e88b5a4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FilenameWithDashProto.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/filename-with-dash.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class FilenameWithDashProto { - private FilenameWithDashProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FilenameWithDashProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n7buf/validate/conformance/cases/filenam" + - "e-with-dash.proto\022\036buf.validate.conforma" + - "nce.cases\032\033buf/validate/validate.protoB\331" + - "\001\n$build.buf.validate.conformance.casesB" + - "\025FilenameWithDashProtoP\001\242\002\004BVCC\252\002\036Buf.Va" + - "lidate.Conformance.Cases\312\002\036Buf\\Validate\\" + - "Conformance\\Cases\342\002*Buf\\Validate\\Conform" + - "ance\\Cases\\GPBMetadata\352\002!Buf::Validate::" + - "Conformance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Const.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Const.java deleted file mode 100644 index b6e44e9a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Const.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32Const} - */ -public final class Fixed32Const extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32Const) - Fixed32ConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32Const.class.getName()); - } - // Use Fixed32Const.newBuilder() to construct. - private Fixed32Const(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32Const() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32Const.class, build.buf.validate.conformance.cases.Fixed32Const.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32Const)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32Const other = (build.buf.validate.conformance.cases.Fixed32Const) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32Const parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32Const 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.Fixed32Const parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32Const 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.Fixed32Const parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32Const 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.Fixed32Const parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32Const 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.Fixed32Const parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32Const 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.Fixed32Const 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.Fixed32Const 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.Fixed32Const 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.Fixed32Const} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32Const) - build.buf.validate.conformance.cases.Fixed32ConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32Const.class, build.buf.validate.conformance.cases.Fixed32Const.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32Const.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Const_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32Const getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32Const.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32Const build() { - build.buf.validate.conformance.cases.Fixed32Const result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32Const buildPartial() { - build.buf.validate.conformance.cases.Fixed32Const result = new build.buf.validate.conformance.cases.Fixed32Const(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32Const result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32Const) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32Const)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32Const other) { - if (other == build.buf.validate.conformance.cases.Fixed32Const.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32Const) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32Const) - private static final build.buf.validate.conformance.cases.Fixed32Const DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32Const(); - } - - public static build.buf.validate.conformance.cases.Fixed32Const getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32Const 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.Fixed32Const getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ConstOrBuilder.java deleted file mode 100644 index 1adbc848..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32ConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32Const) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTE.java deleted file mode 100644 index 02e36204..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32ExGTELTE} - */ -public final class Fixed32ExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32ExGTELTE) - Fixed32ExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32ExGTELTE.class.getName()); - } - // Use Fixed32ExGTELTE.newBuilder() to construct. - private Fixed32ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32ExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32ExGTELTE.class, build.buf.validate.conformance.cases.Fixed32ExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32ExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32ExGTELTE other = (build.buf.validate.conformance.cases.Fixed32ExGTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32ExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32ExGTELTE 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.Fixed32ExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32ExGTELTE 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.Fixed32ExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32ExGTELTE 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.Fixed32ExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32ExGTELTE 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.Fixed32ExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32ExGTELTE 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.Fixed32ExGTELTE 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.Fixed32ExGTELTE 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.Fixed32ExGTELTE 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.Fixed32ExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32ExGTELTE) - build.buf.validate.conformance.cases.Fixed32ExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32ExGTELTE.class, build.buf.validate.conformance.cases.Fixed32ExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32ExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32ExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32ExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32ExGTELTE build() { - build.buf.validate.conformance.cases.Fixed32ExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32ExGTELTE buildPartial() { - build.buf.validate.conformance.cases.Fixed32ExGTELTE result = new build.buf.validate.conformance.cases.Fixed32ExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32ExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32ExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32ExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32ExGTELTE other) { - if (other == build.buf.validate.conformance.cases.Fixed32ExGTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32ExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32ExGTELTE) - private static final build.buf.validate.conformance.cases.Fixed32ExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32ExGTELTE(); - } - - public static build.buf.validate.conformance.cases.Fixed32ExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32ExGTELTE 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.Fixed32ExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTEOrBuilder.java deleted file mode 100644 index 3282f5bb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32ExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32ExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGT.java deleted file mode 100644 index 9413e5c8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32ExLTGT} - */ -public final class Fixed32ExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32ExLTGT) - Fixed32ExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32ExLTGT.class.getName()); - } - // Use Fixed32ExLTGT.newBuilder() to construct. - private Fixed32ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32ExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32ExLTGT.class, build.buf.validate.conformance.cases.Fixed32ExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32ExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32ExLTGT other = (build.buf.validate.conformance.cases.Fixed32ExLTGT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32ExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32ExLTGT 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.Fixed32ExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32ExLTGT 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.Fixed32ExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32ExLTGT 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.Fixed32ExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32ExLTGT 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.Fixed32ExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32ExLTGT 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.Fixed32ExLTGT 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.Fixed32ExLTGT 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.Fixed32ExLTGT 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.Fixed32ExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32ExLTGT) - build.buf.validate.conformance.cases.Fixed32ExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32ExLTGT.class, build.buf.validate.conformance.cases.Fixed32ExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32ExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32ExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32ExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32ExLTGT build() { - build.buf.validate.conformance.cases.Fixed32ExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32ExLTGT buildPartial() { - build.buf.validate.conformance.cases.Fixed32ExLTGT result = new build.buf.validate.conformance.cases.Fixed32ExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32ExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32ExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32ExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32ExLTGT other) { - if (other == build.buf.validate.conformance.cases.Fixed32ExLTGT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32ExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32ExLTGT) - private static final build.buf.validate.conformance.cases.Fixed32ExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32ExLTGT(); - } - - public static build.buf.validate.conformance.cases.Fixed32ExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32ExLTGT 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.Fixed32ExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGTOrBuilder.java deleted file mode 100644 index 7409b5a8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32ExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32ExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Example.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Example.java deleted file mode 100644 index acb3b9fe..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Example.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32Example} - */ -public final class Fixed32Example extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32Example) - Fixed32ExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32Example.class.getName()); - } - // Use Fixed32Example.newBuilder() to construct. - private Fixed32Example(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32Example() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32Example.class, build.buf.validate.conformance.cases.Fixed32Example.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32Example)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32Example other = (build.buf.validate.conformance.cases.Fixed32Example) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32Example parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32Example 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.Fixed32Example parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32Example 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.Fixed32Example parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32Example 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.Fixed32Example parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32Example 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.Fixed32Example parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32Example 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.Fixed32Example 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.Fixed32Example 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.Fixed32Example 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.Fixed32Example} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32Example) - build.buf.validate.conformance.cases.Fixed32ExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32Example.class, build.buf.validate.conformance.cases.Fixed32Example.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32Example.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Example_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32Example getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32Example.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32Example build() { - build.buf.validate.conformance.cases.Fixed32Example result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32Example buildPartial() { - build.buf.validate.conformance.cases.Fixed32Example result = new build.buf.validate.conformance.cases.Fixed32Example(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32Example result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32Example) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32Example)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32Example other) { - if (other == build.buf.validate.conformance.cases.Fixed32Example.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32Example) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32Example) - private static final build.buf.validate.conformance.cases.Fixed32Example DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32Example(); - } - - public static build.buf.validate.conformance.cases.Fixed32Example getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32Example 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.Fixed32Example getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExampleOrBuilder.java deleted file mode 100644 index 8dd9ba8b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32ExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32ExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32Example) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GT.java deleted file mode 100644 index 5ce9a935..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32GT} - */ -public final class Fixed32GT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32GT) - Fixed32GTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32GT.class.getName()); - } - // Use Fixed32GT.newBuilder() to construct. - private Fixed32GT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32GT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32GT.class, build.buf.validate.conformance.cases.Fixed32GT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32GT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32GT other = (build.buf.validate.conformance.cases.Fixed32GT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32GT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GT 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.Fixed32GT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GT 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.Fixed32GT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GT 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.Fixed32GT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32GT 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.Fixed32GT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32GT 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.Fixed32GT 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.Fixed32GT 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.Fixed32GT 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.Fixed32GT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32GT) - build.buf.validate.conformance.cases.Fixed32GTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32GT.class, build.buf.validate.conformance.cases.Fixed32GT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32GT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32GT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GT build() { - build.buf.validate.conformance.cases.Fixed32GT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GT buildPartial() { - build.buf.validate.conformance.cases.Fixed32GT result = new build.buf.validate.conformance.cases.Fixed32GT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32GT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32GT) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32GT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32GT other) { - if (other == build.buf.validate.conformance.cases.Fixed32GT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32GT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32GT) - private static final build.buf.validate.conformance.cases.Fixed32GT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32GT(); - } - - public static build.buf.validate.conformance.cases.Fixed32GT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32GT 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.Fixed32GT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTE.java deleted file mode 100644 index 26972869..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32GTE} - */ -public final class Fixed32GTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32GTE) - Fixed32GTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32GTE.class.getName()); - } - // Use Fixed32GTE.newBuilder() to construct. - private Fixed32GTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32GTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32GTE.class, build.buf.validate.conformance.cases.Fixed32GTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32GTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32GTE other = (build.buf.validate.conformance.cases.Fixed32GTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32GTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GTE 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.Fixed32GTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GTE 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.Fixed32GTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GTE 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.Fixed32GTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32GTE 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.Fixed32GTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32GTE 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.Fixed32GTE 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.Fixed32GTE 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.Fixed32GTE 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.Fixed32GTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32GTE) - build.buf.validate.conformance.cases.Fixed32GTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32GTE.class, build.buf.validate.conformance.cases.Fixed32GTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32GTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32GTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GTE build() { - build.buf.validate.conformance.cases.Fixed32GTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GTE buildPartial() { - build.buf.validate.conformance.cases.Fixed32GTE result = new build.buf.validate.conformance.cases.Fixed32GTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32GTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32GTE) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32GTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32GTE other) { - if (other == build.buf.validate.conformance.cases.Fixed32GTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32GTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32GTE) - private static final build.buf.validate.conformance.cases.Fixed32GTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32GTE(); - } - - public static build.buf.validate.conformance.cases.Fixed32GTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32GTE 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.Fixed32GTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTE.java deleted file mode 100644 index 6759e360..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32GTELTE} - */ -public final class Fixed32GTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32GTELTE) - Fixed32GTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32GTELTE.class.getName()); - } - // Use Fixed32GTELTE.newBuilder() to construct. - private Fixed32GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32GTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32GTELTE.class, build.buf.validate.conformance.cases.Fixed32GTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32GTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32GTELTE other = (build.buf.validate.conformance.cases.Fixed32GTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32GTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GTELTE 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.Fixed32GTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GTELTE 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.Fixed32GTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GTELTE 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.Fixed32GTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32GTELTE 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.Fixed32GTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32GTELTE 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.Fixed32GTELTE 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.Fixed32GTELTE 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.Fixed32GTELTE 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.Fixed32GTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32GTELTE) - build.buf.validate.conformance.cases.Fixed32GTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32GTELTE.class, build.buf.validate.conformance.cases.Fixed32GTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32GTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32GTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GTELTE build() { - build.buf.validate.conformance.cases.Fixed32GTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GTELTE buildPartial() { - build.buf.validate.conformance.cases.Fixed32GTELTE result = new build.buf.validate.conformance.cases.Fixed32GTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32GTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32GTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32GTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32GTELTE other) { - if (other == build.buf.validate.conformance.cases.Fixed32GTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32GTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32GTELTE) - private static final build.buf.validate.conformance.cases.Fixed32GTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32GTELTE(); - } - - public static build.buf.validate.conformance.cases.Fixed32GTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32GTELTE 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.Fixed32GTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTEOrBuilder.java deleted file mode 100644 index a4e2728a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32GTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32GTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTEOrBuilder.java deleted file mode 100644 index 3b41e3f8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32GTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32GTE) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLT.java deleted file mode 100644 index 3df70f51..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32GTLT} - */ -public final class Fixed32GTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32GTLT) - Fixed32GTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32GTLT.class.getName()); - } - // Use Fixed32GTLT.newBuilder() to construct. - private Fixed32GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32GTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32GTLT.class, build.buf.validate.conformance.cases.Fixed32GTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32GTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32GTLT other = (build.buf.validate.conformance.cases.Fixed32GTLT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32GTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GTLT 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.Fixed32GTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GTLT 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.Fixed32GTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32GTLT 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.Fixed32GTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32GTLT 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.Fixed32GTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32GTLT 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.Fixed32GTLT 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.Fixed32GTLT 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.Fixed32GTLT 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.Fixed32GTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32GTLT) - build.buf.validate.conformance.cases.Fixed32GTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32GTLT.class, build.buf.validate.conformance.cases.Fixed32GTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32GTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32GTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32GTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GTLT build() { - build.buf.validate.conformance.cases.Fixed32GTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32GTLT buildPartial() { - build.buf.validate.conformance.cases.Fixed32GTLT result = new build.buf.validate.conformance.cases.Fixed32GTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32GTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32GTLT) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32GTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32GTLT other) { - if (other == build.buf.validate.conformance.cases.Fixed32GTLT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32GTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32GTLT) - private static final build.buf.validate.conformance.cases.Fixed32GTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32GTLT(); - } - - public static build.buf.validate.conformance.cases.Fixed32GTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32GTLT 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.Fixed32GTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLTOrBuilder.java deleted file mode 100644 index b754c7bc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32GTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32GTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTOrBuilder.java deleted file mode 100644 index 1bcb5169..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32GTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32GTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32GT) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Ignore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Ignore.java deleted file mode 100644 index ac228363..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32Ignore.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32Ignore} - */ -public final class Fixed32Ignore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32Ignore) - Fixed32IgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32Ignore.class.getName()); - } - // Use Fixed32Ignore.newBuilder() to construct. - private Fixed32Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32Ignore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32Ignore.class, build.buf.validate.conformance.cases.Fixed32Ignore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32Ignore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32Ignore other = (build.buf.validate.conformance.cases.Fixed32Ignore) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32Ignore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32Ignore 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.Fixed32Ignore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32Ignore 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.Fixed32Ignore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32Ignore 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.Fixed32Ignore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32Ignore 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.Fixed32Ignore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32Ignore 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.Fixed32Ignore 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.Fixed32Ignore 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.Fixed32Ignore 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.Fixed32Ignore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32Ignore) - build.buf.validate.conformance.cases.Fixed32IgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32Ignore.class, build.buf.validate.conformance.cases.Fixed32Ignore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32Ignore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32Ignore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32Ignore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32Ignore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32Ignore build() { - build.buf.validate.conformance.cases.Fixed32Ignore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32Ignore buildPartial() { - build.buf.validate.conformance.cases.Fixed32Ignore result = new build.buf.validate.conformance.cases.Fixed32Ignore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32Ignore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32Ignore) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32Ignore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32Ignore other) { - if (other == build.buf.validate.conformance.cases.Fixed32Ignore.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32Ignore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32Ignore) - private static final build.buf.validate.conformance.cases.Fixed32Ignore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32Ignore(); - } - - public static build.buf.validate.conformance.cases.Fixed32Ignore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32Ignore 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.Fixed32Ignore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IgnoreOrBuilder.java deleted file mode 100644 index e4c0c667..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32IgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32Ignore) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32In.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32In.java deleted file mode 100644 index e27a15ab..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32In.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32In} - */ -public final class Fixed32In extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32In) - Fixed32InOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32In.class.getName()); - } - // Use Fixed32In.newBuilder() to construct. - private Fixed32In(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32In() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32In.class, build.buf.validate.conformance.cases.Fixed32In.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32In)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32In other = (build.buf.validate.conformance.cases.Fixed32In) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32In parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32In 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.Fixed32In parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32In 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.Fixed32In parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32In 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.Fixed32In parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32In 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.Fixed32In parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32In 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.Fixed32In 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.Fixed32In 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.Fixed32In 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.Fixed32In} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32In) - build.buf.validate.conformance.cases.Fixed32InOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32In.class, build.buf.validate.conformance.cases.Fixed32In.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32In.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32In_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32In getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32In.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32In build() { - build.buf.validate.conformance.cases.Fixed32In result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32In buildPartial() { - build.buf.validate.conformance.cases.Fixed32In result = new build.buf.validate.conformance.cases.Fixed32In(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32In result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32In) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32In)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32In other) { - if (other == build.buf.validate.conformance.cases.Fixed32In.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32In) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32In) - private static final build.buf.validate.conformance.cases.Fixed32In DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32In(); - } - - public static build.buf.validate.conformance.cases.Fixed32In getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32In 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.Fixed32In getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32InOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32InOrBuilder.java deleted file mode 100644 index 864ca680..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32InOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32InOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32In) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectType.java deleted file mode 100644 index 72d1b2ad..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectType.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32IncorrectType} - */ -public final class Fixed32IncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32IncorrectType) - Fixed32IncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32IncorrectType.class.getName()); - } - // Use Fixed32IncorrectType.newBuilder() to construct. - private Fixed32IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32IncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32IncorrectType.class, build.buf.validate.conformance.cases.Fixed32IncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32IncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32IncorrectType other = (build.buf.validate.conformance.cases.Fixed32IncorrectType) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32IncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32IncorrectType 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.Fixed32IncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32IncorrectType 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.Fixed32IncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32IncorrectType 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.Fixed32IncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32IncorrectType 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.Fixed32IncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32IncorrectType 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.Fixed32IncorrectType 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.Fixed32IncorrectType 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.Fixed32IncorrectType 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.Fixed32IncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32IncorrectType) - build.buf.validate.conformance.cases.Fixed32IncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32IncorrectType.class, build.buf.validate.conformance.cases.Fixed32IncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32IncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32IncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32IncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32IncorrectType build() { - build.buf.validate.conformance.cases.Fixed32IncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32IncorrectType buildPartial() { - build.buf.validate.conformance.cases.Fixed32IncorrectType result = new build.buf.validate.conformance.cases.Fixed32IncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32IncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32IncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32IncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32IncorrectType other) { - if (other == build.buf.validate.conformance.cases.Fixed32IncorrectType.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32IncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32IncorrectType) - private static final build.buf.validate.conformance.cases.Fixed32IncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32IncorrectType(); - } - - public static build.buf.validate.conformance.cases.Fixed32IncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32IncorrectType 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.Fixed32IncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectTypeOrBuilder.java deleted file mode 100644 index b4fe962d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32IncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32IncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32IncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LT.java deleted file mode 100644 index dce159fc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32LT} - */ -public final class Fixed32LT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32LT) - Fixed32LTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32LT.class.getName()); - } - // Use Fixed32LT.newBuilder() to construct. - private Fixed32LT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32LT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32LT.class, build.buf.validate.conformance.cases.Fixed32LT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32LT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32LT other = (build.buf.validate.conformance.cases.Fixed32LT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32LT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32LT 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.Fixed32LT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32LT 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.Fixed32LT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32LT 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.Fixed32LT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32LT 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.Fixed32LT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32LT 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.Fixed32LT 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.Fixed32LT 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.Fixed32LT 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.Fixed32LT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32LT) - build.buf.validate.conformance.cases.Fixed32LTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32LT.class, build.buf.validate.conformance.cases.Fixed32LT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32LT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32LT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32LT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32LT build() { - build.buf.validate.conformance.cases.Fixed32LT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32LT buildPartial() { - build.buf.validate.conformance.cases.Fixed32LT result = new build.buf.validate.conformance.cases.Fixed32LT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32LT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32LT) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32LT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32LT other) { - if (other == build.buf.validate.conformance.cases.Fixed32LT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32LT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32LT) - private static final build.buf.validate.conformance.cases.Fixed32LT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32LT(); - } - - public static build.buf.validate.conformance.cases.Fixed32LT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32LT 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.Fixed32LT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTE.java deleted file mode 100644 index 5b68a8f8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32LTE} - */ -public final class Fixed32LTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32LTE) - Fixed32LTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32LTE.class.getName()); - } - // Use Fixed32LTE.newBuilder() to construct. - private Fixed32LTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32LTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32LTE.class, build.buf.validate.conformance.cases.Fixed32LTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32LTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32LTE other = (build.buf.validate.conformance.cases.Fixed32LTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32LTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32LTE 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.Fixed32LTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32LTE 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.Fixed32LTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32LTE 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.Fixed32LTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32LTE 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.Fixed32LTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32LTE 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.Fixed32LTE 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.Fixed32LTE 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.Fixed32LTE 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.Fixed32LTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32LTE) - build.buf.validate.conformance.cases.Fixed32LTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32LTE.class, build.buf.validate.conformance.cases.Fixed32LTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32LTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32LTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32LTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32LTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32LTE build() { - build.buf.validate.conformance.cases.Fixed32LTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32LTE buildPartial() { - build.buf.validate.conformance.cases.Fixed32LTE result = new build.buf.validate.conformance.cases.Fixed32LTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32LTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32LTE) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32LTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32LTE other) { - if (other == build.buf.validate.conformance.cases.Fixed32LTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32LTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32LTE) - private static final build.buf.validate.conformance.cases.Fixed32LTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32LTE(); - } - - public static build.buf.validate.conformance.cases.Fixed32LTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32LTE 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.Fixed32LTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTEOrBuilder.java deleted file mode 100644 index bf3a7d9d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32LTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32LTE) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTOrBuilder.java deleted file mode 100644 index 2f09c288..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32LTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32LTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32LT) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32None.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32None.java deleted file mode 100644 index b3f43d19..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32None.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32None} - */ -public final class Fixed32None extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32None) - Fixed32NoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32None.class.getName()); - } - // Use Fixed32None.newBuilder() to construct. - private Fixed32None(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32None() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32None.class, build.buf.validate.conformance.cases.Fixed32None.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32None)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32None other = (build.buf.validate.conformance.cases.Fixed32None) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32None parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32None 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.Fixed32None parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32None 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.Fixed32None parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32None 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.Fixed32None parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32None 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.Fixed32None parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32None 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.Fixed32None 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.Fixed32None 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.Fixed32None 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.Fixed32None} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32None) - build.buf.validate.conformance.cases.Fixed32NoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32None.class, build.buf.validate.conformance.cases.Fixed32None.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32None.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32None_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32None getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32None.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32None build() { - build.buf.validate.conformance.cases.Fixed32None result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32None buildPartial() { - build.buf.validate.conformance.cases.Fixed32None result = new build.buf.validate.conformance.cases.Fixed32None(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32None result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32None) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32None)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32None other) { - if (other == build.buf.validate.conformance.cases.Fixed32None.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32None) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32None) - private static final build.buf.validate.conformance.cases.Fixed32None DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32None(); - } - - public static build.buf.validate.conformance.cases.Fixed32None getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32None 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.Fixed32None getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NoneOrBuilder.java deleted file mode 100644 index 9a8598bc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32NoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32None) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val"]; - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotIn.java deleted file mode 100644 index 760eb289..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotIn.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed32NotIn} - */ -public final class Fixed32NotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed32NotIn) - Fixed32NotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32NotIn.class.getName()); - } - // Use Fixed32NotIn.newBuilder() to construct. - private Fixed32NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed32NotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32NotIn.class, build.buf.validate.conformance.cases.Fixed32NotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.Fixed32NotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed32NotIn other = (build.buf.validate.conformance.cases.Fixed32NotIn) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed32NotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32NotIn 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.Fixed32NotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32NotIn 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.Fixed32NotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed32NotIn 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.Fixed32NotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed32NotIn 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.Fixed32NotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed32NotIn 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.Fixed32NotIn 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.Fixed32NotIn 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.Fixed32NotIn 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.Fixed32NotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed32NotIn) - build.buf.validate.conformance.cases.Fixed32NotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed32NotIn.class, build.buf.validate.conformance.cases.Fixed32NotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed32NotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed32NotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32NotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed32NotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32NotIn build() { - build.buf.validate.conformance.cases.Fixed32NotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed32NotIn buildPartial() { - build.buf.validate.conformance.cases.Fixed32NotIn result = new build.buf.validate.conformance.cases.Fixed32NotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed32NotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed32NotIn) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed32NotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed32NotIn other) { - if (other == build.buf.validate.conformance.cases.Fixed32NotIn.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed32NotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed32NotIn) - private static final build.buf.validate.conformance.cases.Fixed32NotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed32NotIn(); - } - - public static build.buf.validate.conformance.cases.Fixed32NotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32NotIn 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.Fixed32NotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotInOrBuilder.java deleted file mode 100644 index f30b4e31..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed32NotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed32NotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed32NotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Const.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Const.java deleted file mode 100644 index 61e964e4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Const.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64Const} - */ -public final class Fixed64Const extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64Const) - Fixed64ConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64Const.class.getName()); - } - // Use Fixed64Const.newBuilder() to construct. - private Fixed64Const(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64Const() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64Const.class, build.buf.validate.conformance.cases.Fixed64Const.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64Const)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64Const other = (build.buf.validate.conformance.cases.Fixed64Const) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64Const parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64Const 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.Fixed64Const parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64Const 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.Fixed64Const parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64Const 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.Fixed64Const parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64Const 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.Fixed64Const parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64Const 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.Fixed64Const 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.Fixed64Const 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.Fixed64Const 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.Fixed64Const} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64Const) - build.buf.validate.conformance.cases.Fixed64ConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64Const.class, build.buf.validate.conformance.cases.Fixed64Const.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64Const.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Const_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64Const getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64Const.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64Const build() { - build.buf.validate.conformance.cases.Fixed64Const result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64Const buildPartial() { - build.buf.validate.conformance.cases.Fixed64Const result = new build.buf.validate.conformance.cases.Fixed64Const(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64Const result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64Const) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64Const)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64Const other) { - if (other == build.buf.validate.conformance.cases.Fixed64Const.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64Const) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64Const) - private static final build.buf.validate.conformance.cases.Fixed64Const DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64Const(); - } - - public static build.buf.validate.conformance.cases.Fixed64Const getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64Const 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.Fixed64Const getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ConstOrBuilder.java deleted file mode 100644 index 936fb380..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64ConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64Const) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTE.java deleted file mode 100644 index e8778883..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64ExGTELTE} - */ -public final class Fixed64ExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64ExGTELTE) - Fixed64ExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64ExGTELTE.class.getName()); - } - // Use Fixed64ExGTELTE.newBuilder() to construct. - private Fixed64ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64ExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64ExGTELTE.class, build.buf.validate.conformance.cases.Fixed64ExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64ExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64ExGTELTE other = (build.buf.validate.conformance.cases.Fixed64ExGTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64ExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64ExGTELTE 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.Fixed64ExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64ExGTELTE 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.Fixed64ExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64ExGTELTE 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.Fixed64ExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64ExGTELTE 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.Fixed64ExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64ExGTELTE 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.Fixed64ExGTELTE 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.Fixed64ExGTELTE 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.Fixed64ExGTELTE 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.Fixed64ExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64ExGTELTE) - build.buf.validate.conformance.cases.Fixed64ExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64ExGTELTE.class, build.buf.validate.conformance.cases.Fixed64ExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64ExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64ExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64ExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64ExGTELTE build() { - build.buf.validate.conformance.cases.Fixed64ExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64ExGTELTE buildPartial() { - build.buf.validate.conformance.cases.Fixed64ExGTELTE result = new build.buf.validate.conformance.cases.Fixed64ExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64ExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64ExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64ExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64ExGTELTE other) { - if (other == build.buf.validate.conformance.cases.Fixed64ExGTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64ExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64ExGTELTE) - private static final build.buf.validate.conformance.cases.Fixed64ExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64ExGTELTE(); - } - - public static build.buf.validate.conformance.cases.Fixed64ExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64ExGTELTE 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.Fixed64ExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTEOrBuilder.java deleted file mode 100644 index 35998289..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64ExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64ExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGT.java deleted file mode 100644 index 85b0742e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64ExLTGT} - */ -public final class Fixed64ExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64ExLTGT) - Fixed64ExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64ExLTGT.class.getName()); - } - // Use Fixed64ExLTGT.newBuilder() to construct. - private Fixed64ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64ExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64ExLTGT.class, build.buf.validate.conformance.cases.Fixed64ExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64ExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64ExLTGT other = (build.buf.validate.conformance.cases.Fixed64ExLTGT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64ExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64ExLTGT 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.Fixed64ExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64ExLTGT 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.Fixed64ExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64ExLTGT 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.Fixed64ExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64ExLTGT 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.Fixed64ExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64ExLTGT 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.Fixed64ExLTGT 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.Fixed64ExLTGT 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.Fixed64ExLTGT 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.Fixed64ExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64ExLTGT) - build.buf.validate.conformance.cases.Fixed64ExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64ExLTGT.class, build.buf.validate.conformance.cases.Fixed64ExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64ExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64ExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64ExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64ExLTGT build() { - build.buf.validate.conformance.cases.Fixed64ExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64ExLTGT buildPartial() { - build.buf.validate.conformance.cases.Fixed64ExLTGT result = new build.buf.validate.conformance.cases.Fixed64ExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64ExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64ExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64ExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64ExLTGT other) { - if (other == build.buf.validate.conformance.cases.Fixed64ExLTGT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64ExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64ExLTGT) - private static final build.buf.validate.conformance.cases.Fixed64ExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64ExLTGT(); - } - - public static build.buf.validate.conformance.cases.Fixed64ExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64ExLTGT 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.Fixed64ExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGTOrBuilder.java deleted file mode 100644 index bf44ca0b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64ExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64ExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Example.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Example.java deleted file mode 100644 index 0f32f774..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Example.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64Example} - */ -public final class Fixed64Example extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64Example) - Fixed64ExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64Example.class.getName()); - } - // Use Fixed64Example.newBuilder() to construct. - private Fixed64Example(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64Example() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64Example.class, build.buf.validate.conformance.cases.Fixed64Example.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64Example)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64Example other = (build.buf.validate.conformance.cases.Fixed64Example) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64Example parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64Example 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.Fixed64Example parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64Example 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.Fixed64Example parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64Example 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.Fixed64Example parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64Example 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.Fixed64Example parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64Example 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.Fixed64Example 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.Fixed64Example 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.Fixed64Example 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.Fixed64Example} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64Example) - build.buf.validate.conformance.cases.Fixed64ExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64Example.class, build.buf.validate.conformance.cases.Fixed64Example.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64Example.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Example_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64Example getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64Example.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64Example build() { - build.buf.validate.conformance.cases.Fixed64Example result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64Example buildPartial() { - build.buf.validate.conformance.cases.Fixed64Example result = new build.buf.validate.conformance.cases.Fixed64Example(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64Example result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64Example) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64Example)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64Example other) { - if (other == build.buf.validate.conformance.cases.Fixed64Example.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64Example) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64Example) - private static final build.buf.validate.conformance.cases.Fixed64Example DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64Example(); - } - - public static build.buf.validate.conformance.cases.Fixed64Example getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64Example 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.Fixed64Example getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExampleOrBuilder.java deleted file mode 100644 index 8e35f77c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64ExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64ExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64Example) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GT.java deleted file mode 100644 index 4ffebaf1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64GT} - */ -public final class Fixed64GT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64GT) - Fixed64GTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64GT.class.getName()); - } - // Use Fixed64GT.newBuilder() to construct. - private Fixed64GT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64GT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64GT.class, build.buf.validate.conformance.cases.Fixed64GT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64GT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64GT other = (build.buf.validate.conformance.cases.Fixed64GT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64GT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GT 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.Fixed64GT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GT 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.Fixed64GT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GT 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.Fixed64GT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64GT 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.Fixed64GT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64GT 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.Fixed64GT 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.Fixed64GT 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.Fixed64GT 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.Fixed64GT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64GT) - build.buf.validate.conformance.cases.Fixed64GTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64GT.class, build.buf.validate.conformance.cases.Fixed64GT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64GT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64GT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GT build() { - build.buf.validate.conformance.cases.Fixed64GT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GT buildPartial() { - build.buf.validate.conformance.cases.Fixed64GT result = new build.buf.validate.conformance.cases.Fixed64GT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64GT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64GT) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64GT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64GT other) { - if (other == build.buf.validate.conformance.cases.Fixed64GT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64GT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64GT) - private static final build.buf.validate.conformance.cases.Fixed64GT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64GT(); - } - - public static build.buf.validate.conformance.cases.Fixed64GT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64GT 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.Fixed64GT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTE.java deleted file mode 100644 index 2923b86e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64GTE} - */ -public final class Fixed64GTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64GTE) - Fixed64GTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64GTE.class.getName()); - } - // Use Fixed64GTE.newBuilder() to construct. - private Fixed64GTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64GTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64GTE.class, build.buf.validate.conformance.cases.Fixed64GTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64GTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64GTE other = (build.buf.validate.conformance.cases.Fixed64GTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64GTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GTE 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.Fixed64GTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GTE 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.Fixed64GTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GTE 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.Fixed64GTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64GTE 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.Fixed64GTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64GTE 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.Fixed64GTE 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.Fixed64GTE 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.Fixed64GTE 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.Fixed64GTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64GTE) - build.buf.validate.conformance.cases.Fixed64GTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64GTE.class, build.buf.validate.conformance.cases.Fixed64GTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64GTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64GTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GTE build() { - build.buf.validate.conformance.cases.Fixed64GTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GTE buildPartial() { - build.buf.validate.conformance.cases.Fixed64GTE result = new build.buf.validate.conformance.cases.Fixed64GTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64GTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64GTE) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64GTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64GTE other) { - if (other == build.buf.validate.conformance.cases.Fixed64GTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64GTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64GTE) - private static final build.buf.validate.conformance.cases.Fixed64GTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64GTE(); - } - - public static build.buf.validate.conformance.cases.Fixed64GTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64GTE 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.Fixed64GTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTE.java deleted file mode 100644 index 1245159d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64GTELTE} - */ -public final class Fixed64GTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64GTELTE) - Fixed64GTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64GTELTE.class.getName()); - } - // Use Fixed64GTELTE.newBuilder() to construct. - private Fixed64GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64GTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64GTELTE.class, build.buf.validate.conformance.cases.Fixed64GTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64GTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64GTELTE other = (build.buf.validate.conformance.cases.Fixed64GTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64GTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GTELTE 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.Fixed64GTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GTELTE 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.Fixed64GTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GTELTE 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.Fixed64GTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64GTELTE 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.Fixed64GTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64GTELTE 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.Fixed64GTELTE 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.Fixed64GTELTE 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.Fixed64GTELTE 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.Fixed64GTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64GTELTE) - build.buf.validate.conformance.cases.Fixed64GTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64GTELTE.class, build.buf.validate.conformance.cases.Fixed64GTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64GTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64GTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GTELTE build() { - build.buf.validate.conformance.cases.Fixed64GTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GTELTE buildPartial() { - build.buf.validate.conformance.cases.Fixed64GTELTE result = new build.buf.validate.conformance.cases.Fixed64GTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64GTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64GTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64GTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64GTELTE other) { - if (other == build.buf.validate.conformance.cases.Fixed64GTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64GTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64GTELTE) - private static final build.buf.validate.conformance.cases.Fixed64GTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64GTELTE(); - } - - public static build.buf.validate.conformance.cases.Fixed64GTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64GTELTE 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.Fixed64GTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTEOrBuilder.java deleted file mode 100644 index 095c29bb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64GTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64GTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTEOrBuilder.java deleted file mode 100644 index 36e0802b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64GTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64GTE) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLT.java deleted file mode 100644 index 35b6e97a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64GTLT} - */ -public final class Fixed64GTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64GTLT) - Fixed64GTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64GTLT.class.getName()); - } - // Use Fixed64GTLT.newBuilder() to construct. - private Fixed64GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64GTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64GTLT.class, build.buf.validate.conformance.cases.Fixed64GTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64GTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64GTLT other = (build.buf.validate.conformance.cases.Fixed64GTLT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64GTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GTLT 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.Fixed64GTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GTLT 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.Fixed64GTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64GTLT 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.Fixed64GTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64GTLT 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.Fixed64GTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64GTLT 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.Fixed64GTLT 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.Fixed64GTLT 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.Fixed64GTLT 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.Fixed64GTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64GTLT) - build.buf.validate.conformance.cases.Fixed64GTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64GTLT.class, build.buf.validate.conformance.cases.Fixed64GTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64GTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64GTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64GTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GTLT build() { - build.buf.validate.conformance.cases.Fixed64GTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64GTLT buildPartial() { - build.buf.validate.conformance.cases.Fixed64GTLT result = new build.buf.validate.conformance.cases.Fixed64GTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64GTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64GTLT) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64GTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64GTLT other) { - if (other == build.buf.validate.conformance.cases.Fixed64GTLT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64GTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64GTLT) - private static final build.buf.validate.conformance.cases.Fixed64GTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64GTLT(); - } - - public static build.buf.validate.conformance.cases.Fixed64GTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64GTLT 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.Fixed64GTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLTOrBuilder.java deleted file mode 100644 index fd6f7bda..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64GTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64GTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTOrBuilder.java deleted file mode 100644 index a6d79058..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64GTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64GTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64GT) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Ignore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Ignore.java deleted file mode 100644 index aa332f8b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64Ignore.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64Ignore} - */ -public final class Fixed64Ignore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64Ignore) - Fixed64IgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64Ignore.class.getName()); - } - // Use Fixed64Ignore.newBuilder() to construct. - private Fixed64Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64Ignore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64Ignore.class, build.buf.validate.conformance.cases.Fixed64Ignore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64Ignore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64Ignore other = (build.buf.validate.conformance.cases.Fixed64Ignore) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64Ignore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64Ignore 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.Fixed64Ignore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64Ignore 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.Fixed64Ignore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64Ignore 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.Fixed64Ignore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64Ignore 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.Fixed64Ignore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64Ignore 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.Fixed64Ignore 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.Fixed64Ignore 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.Fixed64Ignore 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.Fixed64Ignore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64Ignore) - build.buf.validate.conformance.cases.Fixed64IgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64Ignore.class, build.buf.validate.conformance.cases.Fixed64Ignore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64Ignore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64Ignore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64Ignore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64Ignore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64Ignore build() { - build.buf.validate.conformance.cases.Fixed64Ignore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64Ignore buildPartial() { - build.buf.validate.conformance.cases.Fixed64Ignore result = new build.buf.validate.conformance.cases.Fixed64Ignore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64Ignore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64Ignore) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64Ignore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64Ignore other) { - if (other == build.buf.validate.conformance.cases.Fixed64Ignore.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64Ignore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64Ignore) - private static final build.buf.validate.conformance.cases.Fixed64Ignore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64Ignore(); - } - - public static build.buf.validate.conformance.cases.Fixed64Ignore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64Ignore 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.Fixed64Ignore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IgnoreOrBuilder.java deleted file mode 100644 index 4c17d663..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64IgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64Ignore) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64In.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64In.java deleted file mode 100644 index 3cb05f19..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64In.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64In} - */ -public final class Fixed64In extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64In) - Fixed64InOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64In.class.getName()); - } - // Use Fixed64In.newBuilder() to construct. - private Fixed64In(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64In() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64In.class, build.buf.validate.conformance.cases.Fixed64In.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64In)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64In other = (build.buf.validate.conformance.cases.Fixed64In) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64In parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64In 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.Fixed64In parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64In 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.Fixed64In parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64In 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.Fixed64In parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64In 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.Fixed64In parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64In 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.Fixed64In 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.Fixed64In 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.Fixed64In 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.Fixed64In} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64In) - build.buf.validate.conformance.cases.Fixed64InOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64In.class, build.buf.validate.conformance.cases.Fixed64In.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64In.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64In_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64In getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64In.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64In build() { - build.buf.validate.conformance.cases.Fixed64In result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64In buildPartial() { - build.buf.validate.conformance.cases.Fixed64In result = new build.buf.validate.conformance.cases.Fixed64In(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64In result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64In) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64In)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64In other) { - if (other == build.buf.validate.conformance.cases.Fixed64In.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64In) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64In) - private static final build.buf.validate.conformance.cases.Fixed64In DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64In(); - } - - public static build.buf.validate.conformance.cases.Fixed64In getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64In 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.Fixed64In getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64InOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64InOrBuilder.java deleted file mode 100644 index 953f9075..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64InOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64InOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64In) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectType.java deleted file mode 100644 index 634b9b20..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectType.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64IncorrectType} - */ -public final class Fixed64IncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64IncorrectType) - Fixed64IncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64IncorrectType.class.getName()); - } - // Use Fixed64IncorrectType.newBuilder() to construct. - private Fixed64IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64IncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64IncorrectType.class, build.buf.validate.conformance.cases.Fixed64IncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64IncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64IncorrectType other = (build.buf.validate.conformance.cases.Fixed64IncorrectType) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64IncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64IncorrectType 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.Fixed64IncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64IncorrectType 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.Fixed64IncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64IncorrectType 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.Fixed64IncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64IncorrectType 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.Fixed64IncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64IncorrectType 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.Fixed64IncorrectType 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.Fixed64IncorrectType 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.Fixed64IncorrectType 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.Fixed64IncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64IncorrectType) - build.buf.validate.conformance.cases.Fixed64IncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64IncorrectType.class, build.buf.validate.conformance.cases.Fixed64IncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64IncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64IncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64IncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64IncorrectType build() { - build.buf.validate.conformance.cases.Fixed64IncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64IncorrectType buildPartial() { - build.buf.validate.conformance.cases.Fixed64IncorrectType result = new build.buf.validate.conformance.cases.Fixed64IncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64IncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64IncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64IncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64IncorrectType other) { - if (other == build.buf.validate.conformance.cases.Fixed64IncorrectType.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64IncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64IncorrectType) - private static final build.buf.validate.conformance.cases.Fixed64IncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64IncorrectType(); - } - - public static build.buf.validate.conformance.cases.Fixed64IncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64IncorrectType 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.Fixed64IncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectTypeOrBuilder.java deleted file mode 100644 index e1121180..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64IncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64IncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64IncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LT.java deleted file mode 100644 index dbd95c6c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64LT} - */ -public final class Fixed64LT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64LT) - Fixed64LTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64LT.class.getName()); - } - // Use Fixed64LT.newBuilder() to construct. - private Fixed64LT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64LT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64LT.class, build.buf.validate.conformance.cases.Fixed64LT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64LT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64LT other = (build.buf.validate.conformance.cases.Fixed64LT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64LT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64LT 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.Fixed64LT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64LT 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.Fixed64LT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64LT 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.Fixed64LT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64LT 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.Fixed64LT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64LT 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.Fixed64LT 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.Fixed64LT 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.Fixed64LT 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.Fixed64LT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64LT) - build.buf.validate.conformance.cases.Fixed64LTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64LT.class, build.buf.validate.conformance.cases.Fixed64LT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64LT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64LT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64LT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64LT build() { - build.buf.validate.conformance.cases.Fixed64LT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64LT buildPartial() { - build.buf.validate.conformance.cases.Fixed64LT result = new build.buf.validate.conformance.cases.Fixed64LT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64LT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64LT) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64LT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64LT other) { - if (other == build.buf.validate.conformance.cases.Fixed64LT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64LT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64LT) - private static final build.buf.validate.conformance.cases.Fixed64LT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64LT(); - } - - public static build.buf.validate.conformance.cases.Fixed64LT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64LT 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.Fixed64LT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTE.java deleted file mode 100644 index 30494bc9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64LTE} - */ -public final class Fixed64LTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64LTE) - Fixed64LTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64LTE.class.getName()); - } - // Use Fixed64LTE.newBuilder() to construct. - private Fixed64LTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64LTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64LTE.class, build.buf.validate.conformance.cases.Fixed64LTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64LTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64LTE other = (build.buf.validate.conformance.cases.Fixed64LTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64LTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64LTE 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.Fixed64LTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64LTE 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.Fixed64LTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64LTE 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.Fixed64LTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64LTE 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.Fixed64LTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64LTE 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.Fixed64LTE 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.Fixed64LTE 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.Fixed64LTE 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.Fixed64LTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64LTE) - build.buf.validate.conformance.cases.Fixed64LTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64LTE.class, build.buf.validate.conformance.cases.Fixed64LTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64LTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64LTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64LTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64LTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64LTE build() { - build.buf.validate.conformance.cases.Fixed64LTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64LTE buildPartial() { - build.buf.validate.conformance.cases.Fixed64LTE result = new build.buf.validate.conformance.cases.Fixed64LTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64LTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64LTE) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64LTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64LTE other) { - if (other == build.buf.validate.conformance.cases.Fixed64LTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64LTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64LTE) - private static final build.buf.validate.conformance.cases.Fixed64LTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64LTE(); - } - - public static build.buf.validate.conformance.cases.Fixed64LTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64LTE 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.Fixed64LTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTEOrBuilder.java deleted file mode 100644 index 4acd1076..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64LTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64LTE) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTOrBuilder.java deleted file mode 100644 index bf42b02d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64LTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64LTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64LT) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64None.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64None.java deleted file mode 100644 index 884b5521..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64None.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64None} - */ -public final class Fixed64None extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64None) - Fixed64NoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64None.class.getName()); - } - // Use Fixed64None.newBuilder() to construct. - private Fixed64None(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64None() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64None.class, build.buf.validate.conformance.cases.Fixed64None.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64None)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64None other = (build.buf.validate.conformance.cases.Fixed64None) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64None parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64None 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.Fixed64None parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64None 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.Fixed64None parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64None 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.Fixed64None parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64None 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.Fixed64None parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64None 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.Fixed64None 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.Fixed64None 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.Fixed64None 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.Fixed64None} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64None) - build.buf.validate.conformance.cases.Fixed64NoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64None.class, build.buf.validate.conformance.cases.Fixed64None.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64None.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64None_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64None getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64None.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64None build() { - build.buf.validate.conformance.cases.Fixed64None result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64None buildPartial() { - build.buf.validate.conformance.cases.Fixed64None result = new build.buf.validate.conformance.cases.Fixed64None(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64None result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64None) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64None)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64None other) { - if (other == build.buf.validate.conformance.cases.Fixed64None.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64None) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64None) - private static final build.buf.validate.conformance.cases.Fixed64None DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64None(); - } - - public static build.buf.validate.conformance.cases.Fixed64None getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64None 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.Fixed64None getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NoneOrBuilder.java deleted file mode 100644 index 77572356..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64NoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64None) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val"]; - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotIn.java deleted file mode 100644 index eab12a65..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotIn.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Fixed64NotIn} - */ -public final class Fixed64NotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Fixed64NotIn) - Fixed64NotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64NotIn.class.getName()); - } - // Use Fixed64NotIn.newBuilder() to construct. - private Fixed64NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fixed64NotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64NotIn.class, build.buf.validate.conformance.cases.Fixed64NotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.Fixed64NotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Fixed64NotIn other = (build.buf.validate.conformance.cases.Fixed64NotIn) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Fixed64NotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64NotIn 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.Fixed64NotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64NotIn 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.Fixed64NotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Fixed64NotIn 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.Fixed64NotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Fixed64NotIn 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.Fixed64NotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Fixed64NotIn 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.Fixed64NotIn 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.Fixed64NotIn 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.Fixed64NotIn 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.Fixed64NotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Fixed64NotIn) - build.buf.validate.conformance.cases.Fixed64NotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Fixed64NotIn.class, build.buf.validate.conformance.cases.Fixed64NotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Fixed64NotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Fixed64NotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64NotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Fixed64NotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64NotIn build() { - build.buf.validate.conformance.cases.Fixed64NotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Fixed64NotIn buildPartial() { - build.buf.validate.conformance.cases.Fixed64NotIn result = new build.buf.validate.conformance.cases.Fixed64NotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Fixed64NotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Fixed64NotIn) { - return mergeFrom((build.buf.validate.conformance.cases.Fixed64NotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Fixed64NotIn other) { - if (other == build.buf.validate.conformance.cases.Fixed64NotIn.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Fixed64NotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Fixed64NotIn) - private static final build.buf.validate.conformance.cases.Fixed64NotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Fixed64NotIn(); - } - - public static build.buf.validate.conformance.cases.Fixed64NotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64NotIn 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.Fixed64NotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotInOrBuilder.java deleted file mode 100644 index 29201b0c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Fixed64NotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Fixed64NotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Fixed64NotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatConst.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatConst.java deleted file mode 100644 index 76ca9f02..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatConst.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatConst} - */ -public final class FloatConst extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatConst) - FloatConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatConst.class.getName()); - } - // Use FloatConst.newBuilder() to construct. - private FloatConst(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatConst() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatConst.class, build.buf.validate.conformance.cases.FloatConst.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatConst)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatConst other = (build.buf.validate.conformance.cases.FloatConst) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatConst parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatConst 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.FloatConst parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatConst 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.FloatConst parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatConst 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.FloatConst parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatConst 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.FloatConst parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatConst 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.FloatConst 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.FloatConst 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.FloatConst 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.FloatConst} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatConst) - build.buf.validate.conformance.cases.FloatConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatConst.class, build.buf.validate.conformance.cases.FloatConst.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatConst.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatConst_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatConst getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatConst.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatConst build() { - build.buf.validate.conformance.cases.FloatConst result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatConst buildPartial() { - build.buf.validate.conformance.cases.FloatConst result = new build.buf.validate.conformance.cases.FloatConst(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatConst result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatConst) { - return mergeFrom((build.buf.validate.conformance.cases.FloatConst)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatConst other) { - if (other == build.buf.validate.conformance.cases.FloatConst.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatConst) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatConst) - private static final build.buf.validate.conformance.cases.FloatConst DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatConst(); - } - - public static build.buf.validate.conformance.cases.FloatConst getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatConst 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.FloatConst getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatConstOrBuilder.java deleted file mode 100644 index cb6341fa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatConst) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTE.java deleted file mode 100644 index 227f7287..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTE.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatExGTELTE} - */ -public final class FloatExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatExGTELTE) - FloatExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatExGTELTE.class.getName()); - } - // Use FloatExGTELTE.newBuilder() to construct. - private FloatExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatExGTELTE.class, build.buf.validate.conformance.cases.FloatExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatExGTELTE other = (build.buf.validate.conformance.cases.FloatExGTELTE) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatExGTELTE 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.FloatExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatExGTELTE 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.FloatExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatExGTELTE 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.FloatExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatExGTELTE 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.FloatExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatExGTELTE 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.FloatExGTELTE 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.FloatExGTELTE 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.FloatExGTELTE 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.FloatExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatExGTELTE) - build.buf.validate.conformance.cases.FloatExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatExGTELTE.class, build.buf.validate.conformance.cases.FloatExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatExGTELTE build() { - build.buf.validate.conformance.cases.FloatExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatExGTELTE buildPartial() { - build.buf.validate.conformance.cases.FloatExGTELTE result = new build.buf.validate.conformance.cases.FloatExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.FloatExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatExGTELTE other) { - if (other == build.buf.validate.conformance.cases.FloatExGTELTE.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatExGTELTE) - private static final build.buf.validate.conformance.cases.FloatExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatExGTELTE(); - } - - public static build.buf.validate.conformance.cases.FloatExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatExGTELTE 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.FloatExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTEOrBuilder.java deleted file mode 100644 index 50488fd0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGT.java deleted file mode 100644 index 55898f62..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGT.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatExLTGT} - */ -public final class FloatExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatExLTGT) - FloatExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatExLTGT.class.getName()); - } - // Use FloatExLTGT.newBuilder() to construct. - private FloatExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatExLTGT.class, build.buf.validate.conformance.cases.FloatExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatExLTGT other = (build.buf.validate.conformance.cases.FloatExLTGT) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatExLTGT 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.FloatExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatExLTGT 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.FloatExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatExLTGT 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.FloatExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatExLTGT 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.FloatExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatExLTGT 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.FloatExLTGT 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.FloatExLTGT 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.FloatExLTGT 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.FloatExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatExLTGT) - build.buf.validate.conformance.cases.FloatExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatExLTGT.class, build.buf.validate.conformance.cases.FloatExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatExLTGT build() { - build.buf.validate.conformance.cases.FloatExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatExLTGT buildPartial() { - build.buf.validate.conformance.cases.FloatExLTGT result = new build.buf.validate.conformance.cases.FloatExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.FloatExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatExLTGT other) { - if (other == build.buf.validate.conformance.cases.FloatExLTGT.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatExLTGT) - private static final build.buf.validate.conformance.cases.FloatExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatExLTGT(); - } - - public static build.buf.validate.conformance.cases.FloatExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatExLTGT 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.FloatExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGTOrBuilder.java deleted file mode 100644 index 04f70444..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExample.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExample.java deleted file mode 100644 index f3a9405e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExample.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatExample} - */ -public final class FloatExample extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatExample) - FloatExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatExample.class.getName()); - } - // Use FloatExample.newBuilder() to construct. - private FloatExample(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatExample() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatExample.class, build.buf.validate.conformance.cases.FloatExample.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatExample)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatExample other = (build.buf.validate.conformance.cases.FloatExample) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatExample parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatExample 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.FloatExample parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatExample 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.FloatExample parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatExample 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.FloatExample parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatExample 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.FloatExample parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatExample 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.FloatExample 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.FloatExample 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.FloatExample 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.FloatExample} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatExample) - build.buf.validate.conformance.cases.FloatExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatExample.class, build.buf.validate.conformance.cases.FloatExample.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatExample.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatExample_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatExample getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatExample.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatExample build() { - build.buf.validate.conformance.cases.FloatExample result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatExample buildPartial() { - build.buf.validate.conformance.cases.FloatExample result = new build.buf.validate.conformance.cases.FloatExample(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatExample result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatExample) { - return mergeFrom((build.buf.validate.conformance.cases.FloatExample)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatExample other) { - if (other == build.buf.validate.conformance.cases.FloatExample.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatExample) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatExample) - private static final build.buf.validate.conformance.cases.FloatExample DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatExample(); - } - - public static build.buf.validate.conformance.cases.FloatExample getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatExample 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.FloatExample getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExampleOrBuilder.java deleted file mode 100644 index fe4e0939..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatExample) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatFinite.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatFinite.java deleted file mode 100644 index fb01d970..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatFinite.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatFinite} - */ -public final class FloatFinite extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatFinite) - FloatFiniteOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatFinite.class.getName()); - } - // Use FloatFinite.newBuilder() to construct. - private FloatFinite(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatFinite() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatFinite_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatFinite_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatFinite.class, build.buf.validate.conformance.cases.FloatFinite.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatFinite)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatFinite other = (build.buf.validate.conformance.cases.FloatFinite) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatFinite parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatFinite 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.FloatFinite parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatFinite 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.FloatFinite parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatFinite 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.FloatFinite parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatFinite 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.FloatFinite parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatFinite 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.FloatFinite 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.FloatFinite 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.FloatFinite 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.FloatFinite} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatFinite) - build.buf.validate.conformance.cases.FloatFiniteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatFinite_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatFinite_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatFinite.class, build.buf.validate.conformance.cases.FloatFinite.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatFinite.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatFinite_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatFinite getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatFinite.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatFinite build() { - build.buf.validate.conformance.cases.FloatFinite result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatFinite buildPartial() { - build.buf.validate.conformance.cases.FloatFinite result = new build.buf.validate.conformance.cases.FloatFinite(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatFinite result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatFinite) { - return mergeFrom((build.buf.validate.conformance.cases.FloatFinite)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatFinite other) { - if (other == build.buf.validate.conformance.cases.FloatFinite.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatFinite) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatFinite) - private static final build.buf.validate.conformance.cases.FloatFinite DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatFinite(); - } - - public static build.buf.validate.conformance.cases.FloatFinite getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatFinite 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.FloatFinite getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatFiniteOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatFiniteOrBuilder.java deleted file mode 100644 index bf79da32..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatFiniteOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatFiniteOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatFinite) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGT.java deleted file mode 100644 index 995fc3b2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGT.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatGT} - */ -public final class FloatGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatGT) - FloatGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatGT.class.getName()); - } - // Use FloatGT.newBuilder() to construct. - private FloatGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatGT.class, build.buf.validate.conformance.cases.FloatGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatGT other = (build.buf.validate.conformance.cases.FloatGT) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGT 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.FloatGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGT 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.FloatGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGT 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.FloatGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatGT 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.FloatGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatGT 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.FloatGT 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.FloatGT 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.FloatGT 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.FloatGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatGT) - build.buf.validate.conformance.cases.FloatGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatGT.class, build.buf.validate.conformance.cases.FloatGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGT build() { - build.buf.validate.conformance.cases.FloatGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGT buildPartial() { - build.buf.validate.conformance.cases.FloatGT result = new build.buf.validate.conformance.cases.FloatGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatGT) { - return mergeFrom((build.buf.validate.conformance.cases.FloatGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatGT other) { - if (other == build.buf.validate.conformance.cases.FloatGT.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatGT) - private static final build.buf.validate.conformance.cases.FloatGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatGT(); - } - - public static build.buf.validate.conformance.cases.FloatGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatGT 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.FloatGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTE.java deleted file mode 100644 index b2781524..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTE.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatGTE} - */ -public final class FloatGTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatGTE) - FloatGTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatGTE.class.getName()); - } - // Use FloatGTE.newBuilder() to construct. - private FloatGTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatGTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatGTE.class, build.buf.validate.conformance.cases.FloatGTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatGTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatGTE other = (build.buf.validate.conformance.cases.FloatGTE) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatGTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGTE 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.FloatGTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGTE 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.FloatGTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGTE 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.FloatGTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatGTE 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.FloatGTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatGTE 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.FloatGTE 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.FloatGTE 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.FloatGTE 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.FloatGTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatGTE) - build.buf.validate.conformance.cases.FloatGTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatGTE.class, build.buf.validate.conformance.cases.FloatGTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatGTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatGTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGTE build() { - build.buf.validate.conformance.cases.FloatGTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGTE buildPartial() { - build.buf.validate.conformance.cases.FloatGTE result = new build.buf.validate.conformance.cases.FloatGTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatGTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatGTE) { - return mergeFrom((build.buf.validate.conformance.cases.FloatGTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatGTE other) { - if (other == build.buf.validate.conformance.cases.FloatGTE.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatGTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatGTE) - private static final build.buf.validate.conformance.cases.FloatGTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatGTE(); - } - - public static build.buf.validate.conformance.cases.FloatGTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatGTE 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.FloatGTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTE.java deleted file mode 100644 index 45967411..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTE.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatGTELTE} - */ -public final class FloatGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatGTELTE) - FloatGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatGTELTE.class.getName()); - } - // Use FloatGTELTE.newBuilder() to construct. - private FloatGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatGTELTE.class, build.buf.validate.conformance.cases.FloatGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatGTELTE other = (build.buf.validate.conformance.cases.FloatGTELTE) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGTELTE 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.FloatGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGTELTE 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.FloatGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGTELTE 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.FloatGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatGTELTE 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.FloatGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatGTELTE 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.FloatGTELTE 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.FloatGTELTE 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.FloatGTELTE 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.FloatGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatGTELTE) - build.buf.validate.conformance.cases.FloatGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatGTELTE.class, build.buf.validate.conformance.cases.FloatGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGTELTE build() { - build.buf.validate.conformance.cases.FloatGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGTELTE buildPartial() { - build.buf.validate.conformance.cases.FloatGTELTE result = new build.buf.validate.conformance.cases.FloatGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.FloatGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatGTELTE other) { - if (other == build.buf.validate.conformance.cases.FloatGTELTE.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatGTELTE) - private static final build.buf.validate.conformance.cases.FloatGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatGTELTE(); - } - - public static build.buf.validate.conformance.cases.FloatGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatGTELTE 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.FloatGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTEOrBuilder.java deleted file mode 100644 index 66b23544..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTEOrBuilder.java deleted file mode 100644 index fa46465d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatGTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatGTE) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLT.java deleted file mode 100644 index 8e939481..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLT.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatGTLT} - */ -public final class FloatGTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatGTLT) - FloatGTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatGTLT.class.getName()); - } - // Use FloatGTLT.newBuilder() to construct. - private FloatGTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatGTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatGTLT.class, build.buf.validate.conformance.cases.FloatGTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatGTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatGTLT other = (build.buf.validate.conformance.cases.FloatGTLT) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatGTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGTLT 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.FloatGTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGTLT 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.FloatGTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatGTLT 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.FloatGTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatGTLT 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.FloatGTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatGTLT 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.FloatGTLT 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.FloatGTLT 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.FloatGTLT 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.FloatGTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatGTLT) - build.buf.validate.conformance.cases.FloatGTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatGTLT.class, build.buf.validate.conformance.cases.FloatGTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatGTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatGTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatGTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGTLT build() { - build.buf.validate.conformance.cases.FloatGTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatGTLT buildPartial() { - build.buf.validate.conformance.cases.FloatGTLT result = new build.buf.validate.conformance.cases.FloatGTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatGTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatGTLT) { - return mergeFrom((build.buf.validate.conformance.cases.FloatGTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatGTLT other) { - if (other == build.buf.validate.conformance.cases.FloatGTLT.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatGTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatGTLT) - private static final build.buf.validate.conformance.cases.FloatGTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatGTLT(); - } - - public static build.buf.validate.conformance.cases.FloatGTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatGTLT 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.FloatGTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLTOrBuilder.java deleted file mode 100644 index 850b0dad..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatGTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatGTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTOrBuilder.java deleted file mode 100644 index 6e578d78..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatGT) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnore.java deleted file mode 100644 index b752ea55..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnore.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatIgnore} - */ -public final class FloatIgnore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatIgnore) - FloatIgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatIgnore.class.getName()); - } - // Use FloatIgnore.newBuilder() to construct. - private FloatIgnore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatIgnore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIgnore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIgnore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatIgnore.class, build.buf.validate.conformance.cases.FloatIgnore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatIgnore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatIgnore other = (build.buf.validate.conformance.cases.FloatIgnore) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatIgnore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatIgnore 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.FloatIgnore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatIgnore 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.FloatIgnore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatIgnore 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.FloatIgnore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatIgnore 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.FloatIgnore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatIgnore 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.FloatIgnore 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.FloatIgnore 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.FloatIgnore 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.FloatIgnore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatIgnore) - build.buf.validate.conformance.cases.FloatIgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIgnore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIgnore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatIgnore.class, build.buf.validate.conformance.cases.FloatIgnore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatIgnore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIgnore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatIgnore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatIgnore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatIgnore build() { - build.buf.validate.conformance.cases.FloatIgnore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatIgnore buildPartial() { - build.buf.validate.conformance.cases.FloatIgnore result = new build.buf.validate.conformance.cases.FloatIgnore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatIgnore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatIgnore) { - return mergeFrom((build.buf.validate.conformance.cases.FloatIgnore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatIgnore other) { - if (other == build.buf.validate.conformance.cases.FloatIgnore.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatIgnore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatIgnore) - private static final build.buf.validate.conformance.cases.FloatIgnore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatIgnore(); - } - - public static build.buf.validate.conformance.cases.FloatIgnore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatIgnore 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.FloatIgnore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnoreOrBuilder.java deleted file mode 100644 index 25ff67ed..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatIgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatIgnore) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIn.java deleted file mode 100644 index de9c6954..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIn.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatIn} - */ -public final class FloatIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatIn) - FloatInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatIn.class.getName()); - } - // Use FloatIn.newBuilder() to construct. - private FloatIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatIn.class, build.buf.validate.conformance.cases.FloatIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatIn other = (build.buf.validate.conformance.cases.FloatIn) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatIn 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.FloatIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatIn 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.FloatIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatIn 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.FloatIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatIn 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.FloatIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatIn 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.FloatIn 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.FloatIn 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.FloatIn 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.FloatIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatIn) - build.buf.validate.conformance.cases.FloatInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatIn.class, build.buf.validate.conformance.cases.FloatIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatIn build() { - build.buf.validate.conformance.cases.FloatIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatIn buildPartial() { - build.buf.validate.conformance.cases.FloatIn result = new build.buf.validate.conformance.cases.FloatIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatIn) { - return mergeFrom((build.buf.validate.conformance.cases.FloatIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatIn other) { - if (other == build.buf.validate.conformance.cases.FloatIn.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatIn) - private static final build.buf.validate.conformance.cases.FloatIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatIn(); - } - - public static build.buf.validate.conformance.cases.FloatIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatIn 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.FloatIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatInOrBuilder.java deleted file mode 100644 index adfd2daa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatIn) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectType.java deleted file mode 100644 index c58d52fd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectType.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatIncorrectType} - */ -public final class FloatIncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatIncorrectType) - FloatIncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatIncorrectType.class.getName()); - } - // Use FloatIncorrectType.newBuilder() to construct. - private FloatIncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatIncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatIncorrectType.class, build.buf.validate.conformance.cases.FloatIncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatIncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatIncorrectType other = (build.buf.validate.conformance.cases.FloatIncorrectType) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatIncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatIncorrectType 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.FloatIncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatIncorrectType 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.FloatIncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatIncorrectType 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.FloatIncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatIncorrectType 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.FloatIncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatIncorrectType 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.FloatIncorrectType 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.FloatIncorrectType 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.FloatIncorrectType 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.FloatIncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatIncorrectType) - build.buf.validate.conformance.cases.FloatIncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatIncorrectType.class, build.buf.validate.conformance.cases.FloatIncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatIncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatIncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatIncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatIncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatIncorrectType build() { - build.buf.validate.conformance.cases.FloatIncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatIncorrectType buildPartial() { - build.buf.validate.conformance.cases.FloatIncorrectType result = new build.buf.validate.conformance.cases.FloatIncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatIncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatIncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.FloatIncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatIncorrectType other) { - if (other == build.buf.validate.conformance.cases.FloatIncorrectType.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatIncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatIncorrectType) - private static final build.buf.validate.conformance.cases.FloatIncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatIncorrectType(); - } - - public static build.buf.validate.conformance.cases.FloatIncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatIncorrectType 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.FloatIncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectTypeOrBuilder.java deleted file mode 100644 index f1046c62..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatIncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatIncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatIncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLT.java deleted file mode 100644 index 88d960fd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLT.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatLT} - */ -public final class FloatLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatLT) - FloatLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatLT.class.getName()); - } - // Use FloatLT.newBuilder() to construct. - private FloatLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatLT.class, build.buf.validate.conformance.cases.FloatLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatLT other = (build.buf.validate.conformance.cases.FloatLT) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatLT 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.FloatLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatLT 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.FloatLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatLT 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.FloatLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatLT 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.FloatLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatLT 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.FloatLT 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.FloatLT 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.FloatLT 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.FloatLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatLT) - build.buf.validate.conformance.cases.FloatLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatLT.class, build.buf.validate.conformance.cases.FloatLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatLT build() { - build.buf.validate.conformance.cases.FloatLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatLT buildPartial() { - build.buf.validate.conformance.cases.FloatLT result = new build.buf.validate.conformance.cases.FloatLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatLT) { - return mergeFrom((build.buf.validate.conformance.cases.FloatLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatLT other) { - if (other == build.buf.validate.conformance.cases.FloatLT.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatLT) - private static final build.buf.validate.conformance.cases.FloatLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatLT(); - } - - public static build.buf.validate.conformance.cases.FloatLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatLT 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.FloatLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTE.java deleted file mode 100644 index 60e7f2fb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTE.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatLTE} - */ -public final class FloatLTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatLTE) - FloatLTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatLTE.class.getName()); - } - // Use FloatLTE.newBuilder() to construct. - private FloatLTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatLTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatLTE.class, build.buf.validate.conformance.cases.FloatLTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatLTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatLTE other = (build.buf.validate.conformance.cases.FloatLTE) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatLTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatLTE 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.FloatLTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatLTE 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.FloatLTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatLTE 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.FloatLTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatLTE 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.FloatLTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatLTE 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.FloatLTE 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.FloatLTE 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.FloatLTE 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.FloatLTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatLTE) - build.buf.validate.conformance.cases.FloatLTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatLTE.class, build.buf.validate.conformance.cases.FloatLTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatLTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatLTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatLTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatLTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatLTE build() { - build.buf.validate.conformance.cases.FloatLTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatLTE buildPartial() { - build.buf.validate.conformance.cases.FloatLTE result = new build.buf.validate.conformance.cases.FloatLTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatLTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatLTE) { - return mergeFrom((build.buf.validate.conformance.cases.FloatLTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatLTE other) { - if (other == build.buf.validate.conformance.cases.FloatLTE.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatLTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatLTE) - private static final build.buf.validate.conformance.cases.FloatLTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatLTE(); - } - - public static build.buf.validate.conformance.cases.FloatLTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatLTE 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.FloatLTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTEOrBuilder.java deleted file mode 100644 index 12019496..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatLTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatLTE) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTOrBuilder.java deleted file mode 100644 index e8061d44..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatLT) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNone.java deleted file mode 100644 index 6b364b3c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNone.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatNone} - */ -public final class FloatNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatNone) - FloatNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatNone.class.getName()); - } - // Use FloatNone.newBuilder() to construct. - private FloatNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatNone() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatNone.class, build.buf.validate.conformance.cases.FloatNone.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatNone other = (build.buf.validate.conformance.cases.FloatNone) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatNone 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.FloatNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatNone 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.FloatNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatNone 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.FloatNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatNone 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.FloatNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatNone 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.FloatNone 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.FloatNone 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.FloatNone 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.FloatNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatNone) - build.buf.validate.conformance.cases.FloatNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatNone.class, build.buf.validate.conformance.cases.FloatNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatNone.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatNone build() { - build.buf.validate.conformance.cases.FloatNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatNone buildPartial() { - build.buf.validate.conformance.cases.FloatNone result = new build.buf.validate.conformance.cases.FloatNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatNone result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatNone) { - return mergeFrom((build.buf.validate.conformance.cases.FloatNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatNone other) { - if (other == build.buf.validate.conformance.cases.FloatNone.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatNone) - private static final build.buf.validate.conformance.cases.FloatNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatNone(); - } - - public static build.buf.validate.conformance.cases.FloatNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatNone 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.FloatNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNoneOrBuilder.java deleted file mode 100644 index 282e2561..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatNone) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val"]; - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotFinite.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotFinite.java deleted file mode 100644 index ff967e58..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotFinite.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatNotFinite} - */ -public final class FloatNotFinite extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatNotFinite) - FloatNotFiniteOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatNotFinite.class.getName()); - } - // Use FloatNotFinite.newBuilder() to construct. - private FloatNotFinite(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatNotFinite() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotFinite_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotFinite_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatNotFinite.class, build.buf.validate.conformance.cases.FloatNotFinite.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatNotFinite)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatNotFinite other = (build.buf.validate.conformance.cases.FloatNotFinite) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatNotFinite parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatNotFinite 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.FloatNotFinite parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatNotFinite 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.FloatNotFinite parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatNotFinite 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.FloatNotFinite parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatNotFinite 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.FloatNotFinite parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatNotFinite 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.FloatNotFinite 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.FloatNotFinite 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.FloatNotFinite 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.FloatNotFinite} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatNotFinite) - build.buf.validate.conformance.cases.FloatNotFiniteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotFinite_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotFinite_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatNotFinite.class, build.buf.validate.conformance.cases.FloatNotFinite.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatNotFinite.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotFinite_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatNotFinite getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatNotFinite.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatNotFinite build() { - build.buf.validate.conformance.cases.FloatNotFinite result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatNotFinite buildPartial() { - build.buf.validate.conformance.cases.FloatNotFinite result = new build.buf.validate.conformance.cases.FloatNotFinite(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatNotFinite result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatNotFinite) { - return mergeFrom((build.buf.validate.conformance.cases.FloatNotFinite)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatNotFinite other) { - if (other == build.buf.validate.conformance.cases.FloatNotFinite.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatNotFinite) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatNotFinite) - private static final build.buf.validate.conformance.cases.FloatNotFinite DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatNotFinite(); - } - - public static build.buf.validate.conformance.cases.FloatNotFinite getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatNotFinite 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.FloatNotFinite getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotFiniteOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotFiniteOrBuilder.java deleted file mode 100644 index a311cbb9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotFiniteOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatNotFiniteOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatNotFinite) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotIn.java deleted file mode 100644 index a07b3cf7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotIn.java +++ /dev/null @@ -1,433 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.FloatNotIn} - */ -public final class FloatNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.FloatNotIn) - FloatNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatNotIn.class.getName()); - } - // Use FloatNotIn.newBuilder() to construct. - private FloatNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FloatNotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatNotIn.class, build.buf.validate.conformance.cases.FloatNotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.FloatNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.FloatNotIn other = (build.buf.validate.conformance.cases.FloatNotIn) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.FloatNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatNotIn 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.FloatNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatNotIn 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.FloatNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.FloatNotIn 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.FloatNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.FloatNotIn 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.FloatNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.FloatNotIn 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.FloatNotIn 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.FloatNotIn 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.FloatNotIn 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.FloatNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.FloatNotIn) - build.buf.validate.conformance.cases.FloatNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.FloatNotIn.class, build.buf.validate.conformance.cases.FloatNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.FloatNotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_FloatNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.FloatNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatNotIn build() { - build.buf.validate.conformance.cases.FloatNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.FloatNotIn buildPartial() { - build.buf.validate.conformance.cases.FloatNotIn result = new build.buf.validate.conformance.cases.FloatNotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.FloatNotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.FloatNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.FloatNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.FloatNotIn other) { - if (other == build.buf.validate.conformance.cases.FloatNotIn.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.FloatNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.FloatNotIn) - private static final build.buf.validate.conformance.cases.FloatNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.FloatNotIn(); - } - - public static build.buf.validate.conformance.cases.FloatNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatNotIn 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.FloatNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotInOrBuilder.java deleted file mode 100644 index 71e3e48b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/FloatNotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface FloatNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.FloatNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMap.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMap.java deleted file mode 100644 index c7992bc9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMap.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsMap} - */ -public final class IgnoreEmptyEditionsMap extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMap) - IgnoreEmptyEditionsMapOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsMap.class.getName()); - } - // Use IgnoreEmptyEditionsMap.newBuilder() to construct. - private IgnoreEmptyEditionsMap(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsMap() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.IgnoreEmptyEditionsMap)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap 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.IgnoreEmptyEditionsMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap 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.IgnoreEmptyEditionsMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap 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.IgnoreEmptyEditionsMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap 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.IgnoreEmptyEditionsMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap 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.IgnoreEmptyEditionsMap 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.IgnoreEmptyEditionsMap 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.IgnoreEmptyEditionsMap 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.IgnoreEmptyEditionsMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMap) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMap) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMap) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsMap 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.IgnoreEmptyEditionsMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMapOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMapOrBuilder.java deleted file mode 100644 index 3904e1f6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMapOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsMap) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresence.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresence.java deleted file mode 100644 index e4d93960..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresence.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence} - */ -public final class IgnoreEmptyEditionsMessageExplicitPresence extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence) - IgnoreEmptyEditionsMessageExplicitPresenceOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsMessageExplicitPresence.class.getName()); - } - // Use IgnoreEmptyEditionsMessageExplicitPresence.newBuilder() to construct. - private IgnoreEmptyEditionsMessageExplicitPresence(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsMessageExplicitPresence() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.IgnoreEmptyEditionsMessageExplicitPresence.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg 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.IgnoreEmptyEditionsMessageExplicitPresence.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg 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.IgnoreEmptyEditionsMessageExplicitPresence.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg 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.IgnoreEmptyEditionsMessageExplicitPresence.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg 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.IgnoreEmptyEditionsMessageExplicitPresence.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg 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.IgnoreEmptyEditionsMessageExplicitPresence.Msg 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.IgnoreEmptyEditionsMessageExplicitPresence.Msg 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.IgnoreEmptyEditionsMessageExplicitPresence.Msg 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.IgnoreEmptyEditionsMessageExplicitPresence.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.IgnoreEmptyEditionsMessageExplicitPresence.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val_; - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.IgnoreEmptyEditionsMessageExplicitPresence)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence 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.IgnoreEmptyEditionsMessageExplicitPresence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence 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.IgnoreEmptyEditionsMessageExplicitPresence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence 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.IgnoreEmptyEditionsMessageExplicitPresence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence 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.IgnoreEmptyEditionsMessageExplicitPresence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence 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.IgnoreEmptyEditionsMessageExplicitPresence 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.IgnoreEmptyEditionsMessageExplicitPresence 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.IgnoreEmptyEditionsMessageExplicitPresence 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.IgnoreEmptyEditionsMessageExplicitPresence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsMessageExplicitPresence 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.IgnoreEmptyEditionsMessageExplicitPresence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceDelimited.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceDelimited.java deleted file mode 100644 index ae593c46..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceDelimited.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited} - */ -public final class IgnoreEmptyEditionsMessageExplicitPresenceDelimited extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited) - IgnoreEmptyEditionsMessageExplicitPresenceDelimitedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsMessageExplicitPresenceDelimited.class.getName()); - } - // Use IgnoreEmptyEditionsMessageExplicitPresenceDelimited.newBuilder() to construct. - private IgnoreEmptyEditionsMessageExplicitPresenceDelimited(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsMessageExplicitPresenceDelimited() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val_; - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimitedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsMessageExplicitPresenceDelimited 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.IgnoreEmptyEditionsMessageExplicitPresenceDelimited getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceDelimitedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceDelimitedOrBuilder.java deleted file mode 100644 index 4ef27d68..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceDelimitedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsMessageExplicitPresenceDelimitedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg getVal(); - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresenceDelimited.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceOrBuilder.java deleted file mode 100644 index 7dd91bb7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageExplicitPresenceOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsMessageExplicitPresenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg getVal(); - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageExplicitPresence.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequired.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequired.java deleted file mode 100644 index dcdd1f7f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequired.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired} - */ -public final class IgnoreEmptyEditionsMessageLegacyRequired extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired) - IgnoreEmptyEditionsMessageLegacyRequiredOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsMessageLegacyRequired.class.getName()); - } - // Use IgnoreEmptyEditionsMessageLegacyRequired.newBuilder() to construct. - private IgnoreEmptyEditionsMessageLegacyRequired(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsMessageLegacyRequired() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.IgnoreEmptyEditionsMessageLegacyRequired.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg 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.IgnoreEmptyEditionsMessageLegacyRequired.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg 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.IgnoreEmptyEditionsMessageLegacyRequired.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg 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.IgnoreEmptyEditionsMessageLegacyRequired.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg 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.IgnoreEmptyEditionsMessageLegacyRequired.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg 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.IgnoreEmptyEditionsMessageLegacyRequired.Msg 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.IgnoreEmptyEditionsMessageLegacyRequired.Msg 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.IgnoreEmptyEditionsMessageLegacyRequired.Msg 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.IgnoreEmptyEditionsMessageLegacyRequired.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.IgnoreEmptyEditionsMessageLegacyRequired.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val_; - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.IgnoreEmptyEditionsMessageLegacyRequired)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired 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.IgnoreEmptyEditionsMessageLegacyRequired parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired 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.IgnoreEmptyEditionsMessageLegacyRequired parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired 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.IgnoreEmptyEditionsMessageLegacyRequired parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired 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.IgnoreEmptyEditionsMessageLegacyRequired parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired 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.IgnoreEmptyEditionsMessageLegacyRequired 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.IgnoreEmptyEditionsMessageLegacyRequired 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.IgnoreEmptyEditionsMessageLegacyRequired 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.IgnoreEmptyEditionsMessageLegacyRequired} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsMessageLegacyRequired 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.IgnoreEmptyEditionsMessageLegacyRequired getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredDelimited.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredDelimited.java deleted file mode 100644 index e2048486..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredDelimited.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited} - */ -public final class IgnoreEmptyEditionsMessageLegacyRequiredDelimited extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited) - IgnoreEmptyEditionsMessageLegacyRequiredDelimitedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsMessageLegacyRequiredDelimited.class.getName()); - } - // Use IgnoreEmptyEditionsMessageLegacyRequiredDelimited.newBuilder() to construct. - private IgnoreEmptyEditionsMessageLegacyRequiredDelimited(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsMessageLegacyRequiredDelimited() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val_; - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimitedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsMessageLegacyRequiredDelimited 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.IgnoreEmptyEditionsMessageLegacyRequiredDelimited getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredDelimitedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredDelimitedOrBuilder.java deleted file mode 100644 index 27e9a1af..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredDelimitedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsMessageLegacyRequiredDelimitedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg getVal(); - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequiredDelimited.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredOrBuilder.java deleted file mode 100644 index 2a18dda1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsMessageLegacyRequiredOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsMessageLegacyRequiredOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg getVal(); - /** - * .buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.IgnoreEmptyEditionsMessageLegacyRequired.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsOneof.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsOneof.java deleted file mode 100644 index 7cc38369..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsOneof.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsOneof} - */ -public final class IgnoreEmptyEditionsOneof extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsOneof) - IgnoreEmptyEditionsOneofOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsOneof.class.getName()); - } - // Use IgnoreEmptyEditionsOneof.newBuilder() to construct. - private IgnoreEmptyEditionsOneof(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsOneof() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsOneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsOneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.IgnoreEmptyEditionsOneof)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof 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.IgnoreEmptyEditionsOneof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof 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.IgnoreEmptyEditionsOneof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof 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.IgnoreEmptyEditionsOneof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof 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.IgnoreEmptyEditionsOneof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof 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.IgnoreEmptyEditionsOneof 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.IgnoreEmptyEditionsOneof 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.IgnoreEmptyEditionsOneof 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.IgnoreEmptyEditionsOneof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsOneof) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsOneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsOneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsOneof_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsOneof) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsOneof) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsOneof 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.IgnoreEmptyEditionsOneof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsOneofOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsOneofOrBuilder.java deleted file mode 100644 index e1ae7789..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsOneofOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsOneofOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsOneof) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.IgnoreEmptyEditionsOneof.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeated.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeated.java deleted file mode 100644 index 5f978429..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeated.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated} - */ -public final class IgnoreEmptyEditionsRepeated extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated) - IgnoreEmptyEditionsRepeatedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsRepeated.class.getName()); - } - // Use IgnoreEmptyEditionsRepeated.newBuilder() to construct. - private IgnoreEmptyEditionsRepeated(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsRepeated() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.IgnoreEmptyEditionsRepeated)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated) 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.IgnoreEmptyEditionsRepeated parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated 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.IgnoreEmptyEditionsRepeated parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated 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.IgnoreEmptyEditionsRepeated parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated 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.IgnoreEmptyEditionsRepeated parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated 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.IgnoreEmptyEditionsRepeated parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated 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.IgnoreEmptyEditionsRepeated 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.IgnoreEmptyEditionsRepeated 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.IgnoreEmptyEditionsRepeated 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.IgnoreEmptyEditionsRepeated} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeated_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsRepeated 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.IgnoreEmptyEditionsRepeated getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedExpanded.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedExpanded.java deleted file mode 100644 index 6f2b9a20..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedExpanded.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded} - */ -public final class IgnoreEmptyEditionsRepeatedExpanded extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded) - IgnoreEmptyEditionsRepeatedExpandedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsRepeatedExpanded.class.getName()); - } - // Use IgnoreEmptyEditionsRepeatedExpanded.newBuilder() to construct. - private IgnoreEmptyEditionsRepeatedExpanded(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsRepeatedExpanded() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeatedExpanded_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeatedExpanded_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.IgnoreEmptyEditionsRepeatedExpanded)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded) 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.IgnoreEmptyEditionsRepeatedExpanded parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded 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.IgnoreEmptyEditionsRepeatedExpanded parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded 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.IgnoreEmptyEditionsRepeatedExpanded parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded 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.IgnoreEmptyEditionsRepeatedExpanded parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded 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.IgnoreEmptyEditionsRepeatedExpanded parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded 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.IgnoreEmptyEditionsRepeatedExpanded 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.IgnoreEmptyEditionsRepeatedExpanded 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.IgnoreEmptyEditionsRepeatedExpanded 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.IgnoreEmptyEditionsRepeatedExpanded} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpandedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeatedExpanded_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeatedExpanded_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeatedExpanded_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsRepeatedExpanded 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.IgnoreEmptyEditionsRepeatedExpanded getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedExpandedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedExpandedOrBuilder.java deleted file mode 100644 index 67ec2aa4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedExpandedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsRepeatedExpandedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsRepeatedExpanded) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedOrBuilder.java deleted file mode 100644 index aba4eda3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsRepeatedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsRepeatedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsRepeated) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresence.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresence.java deleted file mode 100644 index 65815971..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresence.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence} - */ -public final class IgnoreEmptyEditionsScalarExplicitPresence extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence) - IgnoreEmptyEditionsScalarExplicitPresenceOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsScalarExplicitPresence.class.getName()); - } - // Use IgnoreEmptyEditionsScalarExplicitPresence.newBuilder() to construct. - private IgnoreEmptyEditionsScalarExplicitPresence(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsScalarExplicitPresence() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.IgnoreEmptyEditionsScalarExplicitPresence)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence 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.IgnoreEmptyEditionsScalarExplicitPresence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence 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.IgnoreEmptyEditionsScalarExplicitPresence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence 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.IgnoreEmptyEditionsScalarExplicitPresence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence 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.IgnoreEmptyEditionsScalarExplicitPresence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence 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.IgnoreEmptyEditionsScalarExplicitPresence 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.IgnoreEmptyEditionsScalarExplicitPresence 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.IgnoreEmptyEditionsScalarExplicitPresence 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.IgnoreEmptyEditionsScalarExplicitPresence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresence_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsScalarExplicitPresence 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.IgnoreEmptyEditionsScalarExplicitPresence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceOrBuilder.java deleted file mode 100644 index 369157c0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsScalarExplicitPresenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresence) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.java deleted file mode 100644 index 20394bc9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault} - */ -public final class IgnoreEmptyEditionsScalarExplicitPresenceWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault) - IgnoreEmptyEditionsScalarExplicitPresenceWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.class.getName()); - } - // Use IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.newBuilder() to construct. - private IgnoreEmptyEditionsScalarExplicitPresenceWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsScalarExplicitPresenceWithDefault() { - val_ = 42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresenceWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresenceWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 42; - /** - * int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault 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.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault 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.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault 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.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault 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.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault 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.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault 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.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault 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.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault 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.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresenceWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresenceWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresenceWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 42; - /** - * int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsScalarExplicitPresenceWithDefault 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.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceWithDefaultOrBuilder.java deleted file mode 100644 index b5952aaf..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarExplicitPresenceWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsScalarExplicitPresenceWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarExplicitPresenceWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarImplicitPresence.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarImplicitPresence.java deleted file mode 100644 index 9271caf2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarImplicitPresence.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence} - */ -public final class IgnoreEmptyEditionsScalarImplicitPresence extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence) - IgnoreEmptyEditionsScalarImplicitPresenceOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsScalarImplicitPresence.class.getName()); - } - // Use IgnoreEmptyEditionsScalarImplicitPresence.newBuilder() to construct. - private IgnoreEmptyEditionsScalarImplicitPresence(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsScalarImplicitPresence() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarImplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarImplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.IgnoreEmptyEditionsScalarImplicitPresence)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence 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.IgnoreEmptyEditionsScalarImplicitPresence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence 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.IgnoreEmptyEditionsScalarImplicitPresence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence 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.IgnoreEmptyEditionsScalarImplicitPresence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence 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.IgnoreEmptyEditionsScalarImplicitPresence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence 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.IgnoreEmptyEditionsScalarImplicitPresence 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.IgnoreEmptyEditionsScalarImplicitPresence 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.IgnoreEmptyEditionsScalarImplicitPresence 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.IgnoreEmptyEditionsScalarImplicitPresence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarImplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarImplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarImplicitPresence_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsScalarImplicitPresence 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.IgnoreEmptyEditionsScalarImplicitPresence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarImplicitPresenceOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarImplicitPresenceOrBuilder.java deleted file mode 100644 index 94622b94..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarImplicitPresenceOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsScalarImplicitPresenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarImplicitPresence) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequired.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequired.java deleted file mode 100644 index c6fe3c17..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequired.java +++ /dev/null @@ -1,463 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired} - */ -public final class IgnoreEmptyEditionsScalarLegacyRequired extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired) - IgnoreEmptyEditionsScalarLegacyRequiredOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsScalarLegacyRequired.class.getName()); - } - // Use IgnoreEmptyEditionsScalarLegacyRequired.newBuilder() to construct. - private IgnoreEmptyEditionsScalarLegacyRequired(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsScalarLegacyRequired() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.IgnoreEmptyEditionsScalarLegacyRequired)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired 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.IgnoreEmptyEditionsScalarLegacyRequired parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired 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.IgnoreEmptyEditionsScalarLegacyRequired parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired 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.IgnoreEmptyEditionsScalarLegacyRequired parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired 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.IgnoreEmptyEditionsScalarLegacyRequired parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired 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.IgnoreEmptyEditionsScalarLegacyRequired 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.IgnoreEmptyEditionsScalarLegacyRequired 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.IgnoreEmptyEditionsScalarLegacyRequired 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.IgnoreEmptyEditionsScalarLegacyRequired} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequired_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsScalarLegacyRequired 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.IgnoreEmptyEditionsScalarLegacyRequired getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredOrBuilder.java deleted file mode 100644 index 1e625f66..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsScalarLegacyRequiredOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequired) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.java deleted file mode 100644 index 328a1732..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.java +++ /dev/null @@ -1,464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault} - */ -public final class IgnoreEmptyEditionsScalarLegacyRequiredWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault) - IgnoreEmptyEditionsScalarLegacyRequiredWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.class.getName()); - } - // Use IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.newBuilder() to construct. - private IgnoreEmptyEditionsScalarLegacyRequiredWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyEditionsScalarLegacyRequiredWithDefault() { - val_ = 42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequiredWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequiredWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 42; - /** - * int32 val = 1 [default = 42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = 42, json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault other = (build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault 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.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault 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.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault 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.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault 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.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault 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.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault 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.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault 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.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault 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.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault) - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequiredWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequiredWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.class, build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProtoEditionsProto.internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequiredWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault build() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault result = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 42; - /** - * int32 val = 1 [default = 42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [default = 42, json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [default = 42, json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = 42, json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault) - private static final build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyEditionsScalarLegacyRequiredWithDefault 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.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredWithDefaultOrBuilder.java deleted file mode 100644 index 5b535005..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyEditionsScalarLegacyRequiredWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyEditionsScalarLegacyRequiredWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyEditionsScalarLegacyRequiredWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = 42, json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = 42, json_name = "val", features = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairs.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairs.java deleted file mode 100644 index fd4961ed..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairs.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyMapPairs} - */ -public final class IgnoreEmptyMapPairs extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyMapPairs) - IgnoreEmptyMapPairsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyMapPairs.class.getName()); - } - // Use IgnoreEmptyMapPairs.newBuilder() to construct. - private IgnoreEmptyMapPairs(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyMapPairs() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyMapPairs.class, build.buf.validate.conformance.cases.IgnoreEmptyMapPairs.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.IgnoreEmptyMapPairs)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyMapPairs other = (build.buf.validate.conformance.cases.IgnoreEmptyMapPairs) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyMapPairs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyMapPairs 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.IgnoreEmptyMapPairs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyMapPairs 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.IgnoreEmptyMapPairs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyMapPairs 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.IgnoreEmptyMapPairs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyMapPairs 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.IgnoreEmptyMapPairs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyMapPairs 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.IgnoreEmptyMapPairs 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.IgnoreEmptyMapPairs 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.IgnoreEmptyMapPairs 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.IgnoreEmptyMapPairs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyMapPairs) - build.buf.validate.conformance.cases.IgnoreEmptyMapPairsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyMapPairs.class, build.buf.validate.conformance.cases.IgnoreEmptyMapPairs.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyMapPairs.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyMapPairs getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyMapPairs.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyMapPairs build() { - build.buf.validate.conformance.cases.IgnoreEmptyMapPairs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyMapPairs buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyMapPairs result = new build.buf.validate.conformance.cases.IgnoreEmptyMapPairs(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyMapPairs result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyMapPairs) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyMapPairs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyMapPairs other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyMapPairs.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyMapPairs) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyMapPairs) - private static final build.buf.validate.conformance.cases.IgnoreEmptyMapPairs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyMapPairs(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyMapPairs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyMapPairs 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.IgnoreEmptyMapPairs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairsOrBuilder.java deleted file mode 100644 index 726f7cb3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyMapPairsOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyMapPairsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyMapPairs) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - java.lang.String key, - int defaultValue); - /** - * map<string, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Map.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Map.java deleted file mode 100644 index 4328a24d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Map.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Map} - */ -public final class IgnoreEmptyProto2Map extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto2Map) - IgnoreEmptyProto2MapOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto2Map.class.getName()); - } - // Use IgnoreEmptyProto2Map.newBuilder() to construct. - private IgnoreEmptyProto2Map(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto2Map() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Map.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2Map.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.IgnoreEmptyProto2Map)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto2Map other = (build.buf.validate.conformance.cases.IgnoreEmptyProto2Map) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Map parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Map 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.IgnoreEmptyProto2Map parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Map 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.IgnoreEmptyProto2Map parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Map 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.IgnoreEmptyProto2Map parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Map 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.IgnoreEmptyProto2Map parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Map 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.IgnoreEmptyProto2Map 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.IgnoreEmptyProto2Map 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.IgnoreEmptyProto2Map 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.IgnoreEmptyProto2Map} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto2Map) - build.buf.validate.conformance.cases.IgnoreEmptyProto2MapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Map.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2Map.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto2Map.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Map getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Map.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Map build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2Map result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Map buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2Map result = new build.buf.validate.conformance.cases.IgnoreEmptyProto2Map(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto2Map result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2Map) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto2Map)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto2Map other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto2Map.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Map) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Map) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto2Map DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto2Map(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Map getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto2Map 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.IgnoreEmptyProto2Map getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MapOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MapOrBuilder.java deleted file mode 100644 index a3589008..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MapOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto2MapOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto2Map) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Message.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Message.java deleted file mode 100644 index 17fe0bf9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Message.java +++ /dev/null @@ -1,1100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Message} - */ -public final class IgnoreEmptyProto2Message extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto2Message) - IgnoreEmptyProto2MessageOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto2Message.class.getName()); - } - // Use IgnoreEmptyProto2Message.newBuilder() to construct. - private IgnoreEmptyProto2Message(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto2Message() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.IgnoreEmptyProto2Message.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg other = (build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg 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.IgnoreEmptyProto2Message.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg 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.IgnoreEmptyProto2Message.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg 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.IgnoreEmptyProto2Message.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg 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.IgnoreEmptyProto2Message.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg 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.IgnoreEmptyProto2Message.Msg 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.IgnoreEmptyProto2Message.Msg 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.IgnoreEmptyProto2Message.Msg 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.IgnoreEmptyProto2Message.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg) - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg result = new build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.IgnoreEmptyProto2Message.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val_; - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.IgnoreEmptyProto2Message)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message other = (build.buf.validate.conformance.cases.IgnoreEmptyProto2Message) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message 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.IgnoreEmptyProto2Message parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message 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.IgnoreEmptyProto2Message parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message 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.IgnoreEmptyProto2Message parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message 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.IgnoreEmptyProto2Message parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message 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.IgnoreEmptyProto2Message 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.IgnoreEmptyProto2Message 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.IgnoreEmptyProto2Message 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.IgnoreEmptyProto2Message} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto2Message) - build.buf.validate.conformance.cases.IgnoreEmptyProto2MessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message result = new build.buf.validate.conformance.cases.IgnoreEmptyProto2Message(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto2Message result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2Message) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto2Message)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto2Message other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg, build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg, build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg, build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Message) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Message) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto2Message DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto2Message(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Message getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto2Message 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.IgnoreEmptyProto2Message getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MessageOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MessageOrBuilder.java deleted file mode 100644 index 75047293..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2MessageOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto2MessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto2Message) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.IgnoreEmptyProto2Message.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Oneof.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Oneof.java deleted file mode 100644 index 516f45ce..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Oneof.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Oneof} - */ -public final class IgnoreEmptyProto2Oneof extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto2Oneof) - IgnoreEmptyProto2OneofOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto2Oneof.class.getName()); - } - // Use IgnoreEmptyProto2Oneof.newBuilder() to construct. - private IgnoreEmptyProto2Oneof(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto2Oneof() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.IgnoreEmptyProto2Oneof)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof other = (build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof 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.IgnoreEmptyProto2Oneof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof 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.IgnoreEmptyProto2Oneof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof 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.IgnoreEmptyProto2Oneof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof 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.IgnoreEmptyProto2Oneof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof 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.IgnoreEmptyProto2Oneof 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.IgnoreEmptyProto2Oneof 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.IgnoreEmptyProto2Oneof 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.IgnoreEmptyProto2Oneof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto2Oneof) - build.buf.validate.conformance.cases.IgnoreEmptyProto2OneofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof result = new build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Oneof) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Oneof) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto2Oneof 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.IgnoreEmptyProto2Oneof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2OneofOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2OneofOrBuilder.java deleted file mode 100644 index 18c8a136..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2OneofOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto2OneofOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto2Oneof) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.IgnoreEmptyProto2Oneof.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Proto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Proto.java deleted file mode 100644 index e8cfc18e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Proto.java +++ /dev/null @@ -1,179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class IgnoreEmptyProto2Proto { - private IgnoreEmptyProto2Proto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto2Proto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_ValEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8buf/validate/conformance/cases/ignore_" + - "empty_proto2.proto\022\036buf.validate.conform" + - "ance.cases\032\033buf/validate/validate.proto\"" + - "?\n\037IgnoreEmptyProto2ScalarOptional\022\034\n\003va" + - "l\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\001R\003val\"N\n*IgnoreEmptyP" + - "roto2ScalarOptionalWithDefault\022 \n\003val\030\001 " + - "\001(\005:\00242B\n\272H\007\032\002 \000\330\001\001R\003val\"?\n\037IgnoreEmptyP" + - "roto2ScalarRequired\022\034\n\003val\030\001 \002(\005B\n\272H\007\032\002 " + - "\000\330\001\001R\003val\"\307\001\n\030IgnoreEmptyProto2Message\022\221" + - "\001\n\003val\030\001 \001(\0132<.buf.validate.conformance." + - "cases.IgnoreEmptyProto2Message.MsgBA\272H>\272" + - "\0018\n\033ignore_empty.proto2.message\022\006foobar\032" + - "\021this.val == \'foo\'\330\001\001R\003val\032\027\n\003Msg\022\020\n\003val" + - "\030\001 \001(\tR\003val\"=\n\026IgnoreEmptyProto2Oneof\022\036\n" + - "\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\001H\000R\003valB\003\n\001o\":\n\031Ig" + - "noreEmptyProto2Repeated\022\035\n\003val\030\001 \003(\005B\013\272H" + - "\010\222\001\002\010\003\330\001\001R\003val\"\254\001\n\024IgnoreEmptyProto2Map\022" + - "\\\n\003val\030\001 \003(\0132=.buf.validate.conformance." + - "cases.IgnoreEmptyProto2Map.ValEntryB\013\272H\010" + - "\232\001\002\010\003\330\001\001R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003" + - "key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001B\332\001\n$build." + - "buf.validate.conformance.casesB\026IgnoreEm" + - "ptyProto2ProtoP\001\242\002\004BVCC\252\002\036Buf.Validate.C" + - "onformance.Cases\312\002\036Buf\\Validate\\Conforma" + - "nce\\Cases\342\002*Buf\\Validate\\Conformance\\Cas" + - "es\\GPBMetadata\352\002!Buf::Validate::Conforma" + - "nce::Cases" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_descriptor = - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Message_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Oneof_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Map_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Repeated.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Repeated.java deleted file mode 100644 index 8432f6e5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2Repeated.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2Repeated} - */ -public final class IgnoreEmptyProto2Repeated extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto2Repeated) - IgnoreEmptyProto2RepeatedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto2Repeated.class.getName()); - } - // Use IgnoreEmptyProto2Repeated.newBuilder() to construct. - private IgnoreEmptyProto2Repeated(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto2Repeated() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.IgnoreEmptyProto2Repeated)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated other = (build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated) 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.IgnoreEmptyProto2Repeated parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated 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.IgnoreEmptyProto2Repeated parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated 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.IgnoreEmptyProto2Repeated parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated 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.IgnoreEmptyProto2Repeated parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated 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.IgnoreEmptyProto2Repeated parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated 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.IgnoreEmptyProto2Repeated 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.IgnoreEmptyProto2Repeated 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.IgnoreEmptyProto2Repeated 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.IgnoreEmptyProto2Repeated} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto2Repeated) - build.buf.validate.conformance.cases.IgnoreEmptyProto2RepeatedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2Repeated_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated result = new build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Repeated) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto2Repeated) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2Repeated getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto2Repeated 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.IgnoreEmptyProto2Repeated getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2RepeatedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2RepeatedOrBuilder.java deleted file mode 100644 index a8f56740..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2RepeatedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto2RepeatedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto2Repeated) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptional.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptional.java deleted file mode 100644 index 9ffdf505..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptional.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional} - */ -public final class IgnoreEmptyProto2ScalarOptional extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional) - IgnoreEmptyProto2ScalarOptionalOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto2ScalarOptional.class.getName()); - } - // Use IgnoreEmptyProto2ScalarOptional.newBuilder() to construct. - private IgnoreEmptyProto2ScalarOptional(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto2ScalarOptional() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.IgnoreEmptyProto2ScalarOptional)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional other = (build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional 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.IgnoreEmptyProto2ScalarOptional parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional 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.IgnoreEmptyProto2ScalarOptional parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional 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.IgnoreEmptyProto2ScalarOptional parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional 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.IgnoreEmptyProto2ScalarOptional parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional 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.IgnoreEmptyProto2ScalarOptional 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.IgnoreEmptyProto2ScalarOptional 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.IgnoreEmptyProto2ScalarOptional 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.IgnoreEmptyProto2ScalarOptional} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional) - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptional_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional result = new build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto2ScalarOptional 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.IgnoreEmptyProto2ScalarOptional getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalOrBuilder.java deleted file mode 100644 index d57d46db..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto2ScalarOptionalOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptional) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefault.java deleted file mode 100644 index 85f72924..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefault.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault} - */ -public final class IgnoreEmptyProto2ScalarOptionalWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault) - IgnoreEmptyProto2ScalarOptionalWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto2ScalarOptionalWithDefault.class.getName()); - } - // Use IgnoreEmptyProto2ScalarOptionalWithDefault.newBuilder() to construct. - private IgnoreEmptyProto2ScalarOptionalWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto2ScalarOptionalWithDefault() { - val_ = 42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 42; - /** - * optional int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.IgnoreEmptyProto2ScalarOptionalWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault other = (build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault 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.IgnoreEmptyProto2ScalarOptionalWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault 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.IgnoreEmptyProto2ScalarOptionalWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault 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.IgnoreEmptyProto2ScalarOptionalWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault 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.IgnoreEmptyProto2ScalarOptionalWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault 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.IgnoreEmptyProto2ScalarOptionalWithDefault 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.IgnoreEmptyProto2ScalarOptionalWithDefault 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.IgnoreEmptyProto2ScalarOptionalWithDefault 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.IgnoreEmptyProto2ScalarOptionalWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault) - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarOptionalWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault result = new build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 42; - /** - * optional int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto2ScalarOptionalWithDefault 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.IgnoreEmptyProto2ScalarOptionalWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefaultOrBuilder.java deleted file mode 100644 index 6c3b8608..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarOptionalWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto2ScalarOptionalWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarOptionalWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [default = 42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequired.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequired.java deleted file mode 100644 index 9102ff60..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequired.java +++ /dev/null @@ -1,463 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired} - */ -public final class IgnoreEmptyProto2ScalarRequired extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired) - IgnoreEmptyProto2ScalarRequiredOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto2ScalarRequired.class.getName()); - } - // Use IgnoreEmptyProto2ScalarRequired.newBuilder() to construct. - private IgnoreEmptyProto2ScalarRequired(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto2ScalarRequired() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.IgnoreEmptyProto2ScalarRequired)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired other = (build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired 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.IgnoreEmptyProto2ScalarRequired parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired 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.IgnoreEmptyProto2ScalarRequired parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired 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.IgnoreEmptyProto2ScalarRequired parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired 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.IgnoreEmptyProto2ScalarRequired parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired 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.IgnoreEmptyProto2ScalarRequired 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.IgnoreEmptyProto2ScalarRequired 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.IgnoreEmptyProto2ScalarRequired 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.IgnoreEmptyProto2ScalarRequired} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired) - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequiredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired.class, build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto2ScalarRequired_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired result = new build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto2ScalarRequired 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.IgnoreEmptyProto2ScalarRequired getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequiredOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequiredOrBuilder.java deleted file mode 100644 index 723880a6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto2ScalarRequiredOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto2ScalarRequiredOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto2ScalarRequired) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Map.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Map.java deleted file mode 100644 index f16fb507..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Map.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Map} - */ -public final class IgnoreEmptyProto3Map extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Map) - IgnoreEmptyProto3MapOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto3Map.class.getName()); - } - // Use IgnoreEmptyProto3Map.newBuilder() to construct. - private IgnoreEmptyProto3Map(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto3Map() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Map.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Map.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.IgnoreEmptyProto3Map)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto3Map other = (build.buf.validate.conformance.cases.IgnoreEmptyProto3Map) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Map parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Map 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.IgnoreEmptyProto3Map parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Map 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.IgnoreEmptyProto3Map parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Map 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.IgnoreEmptyProto3Map parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Map 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.IgnoreEmptyProto3Map parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Map 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.IgnoreEmptyProto3Map 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.IgnoreEmptyProto3Map 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.IgnoreEmptyProto3Map 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.IgnoreEmptyProto3Map} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Map) - build.buf.validate.conformance.cases.IgnoreEmptyProto3MapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Map.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Map.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto3Map.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Map getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Map.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Map build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Map result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Map buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Map result = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Map(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto3Map result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Map) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto3Map)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto3Map other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto3Map.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Map) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Map) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto3Map DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Map(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Map getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto3Map 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.IgnoreEmptyProto3Map getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MapOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MapOrBuilder.java deleted file mode 100644 index f9088fc2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MapOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto3MapOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto3Map) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Message.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Message.java deleted file mode 100644 index 259565dd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Message.java +++ /dev/null @@ -1,1068 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Message} - */ -public final class IgnoreEmptyProto3Message extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Message) - IgnoreEmptyProto3MessageOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto3Message.class.getName()); - } - // Use IgnoreEmptyProto3Message.newBuilder() to construct. - private IgnoreEmptyProto3Message(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto3Message() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.IgnoreEmptyProto3Message.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg other = (build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg 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.IgnoreEmptyProto3Message.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg 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.IgnoreEmptyProto3Message.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg 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.IgnoreEmptyProto3Message.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg 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.IgnoreEmptyProto3Message.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg 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.IgnoreEmptyProto3Message.Msg 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.IgnoreEmptyProto3Message.Msg 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.IgnoreEmptyProto3Message.Msg 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.IgnoreEmptyProto3Message.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg) - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg result = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.IgnoreEmptyProto3Message.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val_; - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.IgnoreEmptyProto3Message)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message other = (build.buf.validate.conformance.cases.IgnoreEmptyProto3Message) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message 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.IgnoreEmptyProto3Message parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message 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.IgnoreEmptyProto3Message parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message 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.IgnoreEmptyProto3Message parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message 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.IgnoreEmptyProto3Message parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message 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.IgnoreEmptyProto3Message 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.IgnoreEmptyProto3Message 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.IgnoreEmptyProto3Message 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.IgnoreEmptyProto3Message} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Message) - build.buf.validate.conformance.cases.IgnoreEmptyProto3MessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message result = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Message(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto3Message result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Message) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto3Message)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto3Message other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg, build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg, build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg, build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg.Builder, build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Message) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Message) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto3Message DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Message(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Message getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto3Message 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.IgnoreEmptyProto3Message getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MessageOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MessageOrBuilder.java deleted file mode 100644 index 83b75de3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3MessageOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto3MessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto3Message) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.IgnoreEmptyProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.IgnoreEmptyProto3Message.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Oneof.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Oneof.java deleted file mode 100644 index cb9c6e8f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Oneof.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Oneof} - */ -public final class IgnoreEmptyProto3Oneof extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Oneof) - IgnoreEmptyProto3OneofOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto3Oneof.class.getName()); - } - // Use IgnoreEmptyProto3Oneof.newBuilder() to construct. - private IgnoreEmptyProto3Oneof(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto3Oneof() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.IgnoreEmptyProto3Oneof)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof other = (build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof 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.IgnoreEmptyProto3Oneof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof 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.IgnoreEmptyProto3Oneof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof 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.IgnoreEmptyProto3Oneof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof 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.IgnoreEmptyProto3Oneof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof 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.IgnoreEmptyProto3Oneof 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.IgnoreEmptyProto3Oneof 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.IgnoreEmptyProto3Oneof 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.IgnoreEmptyProto3Oneof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Oneof) - build.buf.validate.conformance.cases.IgnoreEmptyProto3OneofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof result = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Oneof) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Oneof) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto3Oneof 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.IgnoreEmptyProto3Oneof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OneofOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OneofOrBuilder.java deleted file mode 100644 index 55ffef71..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OneofOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto3OneofOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto3Oneof) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.IgnoreEmptyProto3Oneof.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalar.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalar.java deleted file mode 100644 index edd12da7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalar.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar} - */ -public final class IgnoreEmptyProto3OptionalScalar extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar) - IgnoreEmptyProto3OptionalScalarOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto3OptionalScalar.class.getName()); - } - // Use IgnoreEmptyProto3OptionalScalar.newBuilder() to construct. - private IgnoreEmptyProto3OptionalScalar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto3OptionalScalar() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.IgnoreEmptyProto3OptionalScalar)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar other = (build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar 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.IgnoreEmptyProto3OptionalScalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar 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.IgnoreEmptyProto3OptionalScalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar 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.IgnoreEmptyProto3OptionalScalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar 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.IgnoreEmptyProto3OptionalScalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar 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.IgnoreEmptyProto3OptionalScalar 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.IgnoreEmptyProto3OptionalScalar 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.IgnoreEmptyProto3OptionalScalar 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.IgnoreEmptyProto3OptionalScalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar) - build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar result = new build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto3OptionalScalar 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.IgnoreEmptyProto3OptionalScalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalarOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalarOrBuilder.java deleted file mode 100644 index 403ad11a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3OptionalScalarOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto3OptionalScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto3OptionalScalar) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Proto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Proto.java deleted file mode 100644 index 19f3c034..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Proto.java +++ /dev/null @@ -1,206 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class IgnoreEmptyProto3Proto { - private IgnoreEmptyProto3Proto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto3Proto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_ValEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8buf/validate/conformance/cases/ignore_" + - "empty_proto3.proto\022\036buf.validate.conform" + - "ance.cases\032\033buf/validate/validate.proto\"" + - "7\n\027IgnoreEmptyProto3Scalar\022\034\n\003val\030\001 \001(\005B" + - "\n\272H\007\032\002 \000\330\001\001R\003val\"L\n\037IgnoreEmptyProto3Opt" + - "ionalScalar\022!\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\001H\000R\003" + - "val\210\001\001B\006\n\004_val\"\324\001\n\030IgnoreEmptyProto3Mess" + - "age\022\226\001\n\003val\030\001 \001(\0132<.buf.validate.conform" + - "ance.cases.IgnoreEmptyProto3Message.MsgB" + - "A\272H>\272\0018\n\033ignore_empty.proto3.message\022\006fo" + - "obar\032\021this.val == \'foo\'\330\001\001H\000R\003val\210\001\001\032\027\n\003" + - "Msg\022\020\n\003val\030\001 \001(\tR\003valB\006\n\004_val\"=\n\026IgnoreE" + - "mptyProto3Oneof\022\036\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\001" + - "H\000R\003valB\003\n\001o\":\n\031IgnoreEmptyProto3Repeate" + - "d\022\035\n\003val\030\001 \003(\005B\013\272H\010\222\001\002\010\003\330\001\001R\003val\"\254\001\n\024Ign" + - "oreEmptyProto3Map\022\\\n\003val\030\001 \003(\0132=.buf.val" + - "idate.conformance.cases.IgnoreEmptyProto" + - "3Map.ValEntryB\013\272H\010\232\001\002\010\003\330\001\001R\003val\0326\n\010ValEn" + - "try\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005va" + - "lue:\0028\001\"=\n\030IgnoreEmptyRepeatedItems\022!\n\003v" + - "al\030\001 \003(\005B\017\272H\014\222\001\t\"\007\032\002 \000\330\001\001R\003val\"\267\001\n\023Ignor" + - "eEmptyMapPairs\022h\n\003val\030\001 \003(\0132<.buf.valida" + - "te.conformance.cases.IgnoreEmptyMapPairs" + - ".ValEntryB\030\272H\025\232\001\022\"\007r\002\020\003\330\001\001*\007\032\002 \000\330\001\001R\003val" + - "\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030" + - "\002 \001(\005R\005value:\0028\001B\332\001\n$build.buf.validate." + - "conformance.casesB\026IgnoreEmptyProto3Prot" + - "oP\001\242\002\004BVCC\252\002\036Buf.Validate.Conformance.Ca" + - "ses\312\002\036Buf\\Validate\\Conformance\\Cases\342\002*B" + - "uf\\Validate\\Conformance\\Cases\\GPBMetadat" + - "a\352\002!Buf::Validate::Conformance::Casesb\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3OptionalScalar_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_descriptor = - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Message_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Oneof_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Map_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyMapPairs_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Repeated.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Repeated.java deleted file mode 100644 index 365cd552..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Repeated.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Repeated} - */ -public final class IgnoreEmptyProto3Repeated extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Repeated) - IgnoreEmptyProto3RepeatedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto3Repeated.class.getName()); - } - // Use IgnoreEmptyProto3Repeated.newBuilder() to construct. - private IgnoreEmptyProto3Repeated(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto3Repeated() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.IgnoreEmptyProto3Repeated)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated other = (build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated) 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.IgnoreEmptyProto3Repeated parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated 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.IgnoreEmptyProto3Repeated parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated 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.IgnoreEmptyProto3Repeated parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated 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.IgnoreEmptyProto3Repeated parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated 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.IgnoreEmptyProto3Repeated parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated 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.IgnoreEmptyProto3Repeated 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.IgnoreEmptyProto3Repeated 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.IgnoreEmptyProto3Repeated 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.IgnoreEmptyProto3Repeated} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Repeated) - build.buf.validate.conformance.cases.IgnoreEmptyProto3RepeatedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Repeated_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated result = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Repeated) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Repeated) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Repeated getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto3Repeated 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.IgnoreEmptyProto3Repeated getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3RepeatedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3RepeatedOrBuilder.java deleted file mode 100644 index ae98e5e8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3RepeatedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto3RepeatedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto3Repeated) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Scalar.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Scalar.java deleted file mode 100644 index 418093fb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3Scalar.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyProto3Scalar} - */ -public final class IgnoreEmptyProto3Scalar extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Scalar) - IgnoreEmptyProto3ScalarOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProto3Scalar.class.getName()); - } - // Use IgnoreEmptyProto3Scalar.newBuilder() to construct. - private IgnoreEmptyProto3Scalar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyProto3Scalar() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.IgnoreEmptyProto3Scalar)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar other = (build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar 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.IgnoreEmptyProto3Scalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar 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.IgnoreEmptyProto3Scalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar 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.IgnoreEmptyProto3Scalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar 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.IgnoreEmptyProto3Scalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar 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.IgnoreEmptyProto3Scalar 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.IgnoreEmptyProto3Scalar 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.IgnoreEmptyProto3Scalar 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.IgnoreEmptyProto3Scalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyProto3Scalar) - build.buf.validate.conformance.cases.IgnoreEmptyProto3ScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar.class, build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyProto3Scalar_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar build() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar result = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Scalar) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyProto3Scalar) - private static final build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyProto3Scalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyProto3Scalar 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.IgnoreEmptyProto3Scalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3ScalarOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3ScalarOrBuilder.java deleted file mode 100644 index 7a432e13..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProto3ScalarOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyProto3ScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyProto3Scalar) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProtoEditionsProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProtoEditionsProto.java deleted file mode 100644 index 93a5fe99..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyProtoEditionsProto.java +++ /dev/null @@ -1,306 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class IgnoreEmptyProtoEditionsProto { - private IgnoreEmptyProtoEditionsProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyProtoEditionsProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresence_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresenceWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresenceWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarImplicitPresence_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarImplicitPresence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequired_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequired_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequiredWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequiredWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsOneof_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsOneof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeated_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeated_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeatedExpanded_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeatedExpanded_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_ValEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n@buf/validate/conformance/cases/ignore_" + - "empty_proto_editions.proto\022\036buf.validate" + - ".conformance.cases\032\033buf/validate/validat" + - "e.proto\"I\n)IgnoreEmptyEditionsScalarExpl" + - "icitPresence\022\034\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\001R\003v" + - "al\"X\n4IgnoreEmptyEditionsScalarExplicitP" + - "resenceWithDefault\022 \n\003val\030\001 \001(\005:\00242B\n\272H\007" + - "\032\002 \000\330\001\001R\003val\"N\n)IgnoreEmptyEditionsScala" + - "rImplicitPresence\022!\n\003val\030\001 \001(\005B\017\252\001\002\010\002\272H\007" + - "\032\002 \000\330\001\001R\003val\"L\n\'IgnoreEmptyEditionsScala" + - "rLegacyRequired\022!\n\003val\030\001 \001(\005B\017\252\001\002\010\003\272H\007\032\002" + - " \000\330\001\001R\003val\"[\n2IgnoreEmptyEditionsScalarL" + - "egacyRequiredWithDefault\022%\n\003val\030\001 \001(\005:\0024" + - "2B\017\252\001\002\010\003\272H\007\032\002 \000\330\001\001R\003val\"\355\001\n*IgnoreEmptyE" + - "ditionsMessageExplicitPresence\022\245\001\n\003val\030\001" + - " \001(\0132N.buf.validate.conformance.cases.Ig" + - "noreEmptyEditionsMessageExplicitPresence" + - ".MsgBC\272H@\272\001:\n\035ignore_empty.editions.mess" + - "age\022\006foobar\032\021this.val == \'foo\'\330\001\001R\003val\032\027" + - "\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\204\002\n3IgnoreEmptyE" + - "ditionsMessageExplicitPresenceDelimited\022" + - "\263\001\n\003val\030\001 \001(\0132W.buf.validate.conformance" + - ".cases.IgnoreEmptyEditionsMessageExplici" + - "tPresenceDelimited.MsgBH\252\001\002(\002\272H@\272\001:\n\035ign" + - "ore_empty.editions.message\022\006foobar\032\021this" + - ".val == \'foo\'\330\001\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(" + - "\tR\003val\"\356\001\n(IgnoreEmptyEditionsMessageLeg" + - "acyRequired\022\250\001\n\003val\030\001 \001(\0132L.buf.validate" + - ".conformance.cases.IgnoreEmptyEditionsMe" + - "ssageLegacyRequired.MsgBH\252\001\002\010\003\272H@\272\001:\n\035ig" + - "nore_empty.editions.message\022\006foobar\032\021thi" + - "s.val == \'foo\'\330\001\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001" + - "(\tR\003val\"\202\002\n1IgnoreEmptyEditionsMessageLe" + - "gacyRequiredDelimited\022\263\001\n\003val\030\001 \001(\0132U.bu" + - "f.validate.conformance.cases.IgnoreEmpty" + - "EditionsMessageLegacyRequiredDelimited.M" + - "sgBJ\252\001\004\010\003(\002\272H@\272\001:\n\035ignore_empty.editions" + - ".message\022\006foobar\032\021this.val == \'foo\'\330\001\001R\003" + - "val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"?\n\030IgnoreEm" + - "ptyEditionsOneof\022\036\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001" + - "\001H\000R\003valB\003\n\001o\"<\n\033IgnoreEmptyEditionsRepe" + - "ated\022\035\n\003val\030\001 \003(\005B\013\272H\010\222\001\002\010\003\330\001\001R\003val\"I\n#I" + - "gnoreEmptyEditionsRepeatedExpanded\022\"\n\003va" + - "l\030\001 \003(\005B\020\252\001\002\030\002\272H\010\222\001\002\010\003\330\001\001R\003val\"\260\001\n\026Ignor" + - "eEmptyEditionsMap\022^\n\003val\030\001 \003(\0132?.buf.val" + - "idate.conformance.cases.IgnoreEmptyEditi" + - "onsMap.ValEntryB\013\272H\010\232\001\002\010\003\330\001\001R\003val\0326\n\010Val" + - "Entry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005" + - "value:\0028\001B\341\001\n$build.buf.validate.conform" + - "ance.casesB\035IgnoreEmptyProtoEditionsProt" + - "oP\001\242\002\004BVCC\252\002\036Buf.Validate.Conformance.Ca" + - "ses\312\002\036Buf\\Validate\\Conformance\\Cases\342\002*B" + - "uf\\Validate\\Conformance\\Cases\\GPBMetadat" + - "a\352\002!Buf::Validate::Conformance::Casesb\010e" + - "ditionsp\350\007" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresence_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresence_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresence_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresenceWithDefault_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresenceWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarExplicitPresenceWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarImplicitPresence_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarImplicitPresence_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarImplicitPresence_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequired_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequired_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequired_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequiredWithDefault_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequiredWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsScalarLegacyRequiredWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_Msg_descriptor = - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresence_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_Msg_descriptor = - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageExplicitPresenceDelimited_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_Msg_descriptor = - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequired_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_Msg_descriptor = - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMessageLegacyRequiredDelimited_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsOneof_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsOneof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsOneof_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeated_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeated_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeated_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeatedExpanded_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeatedExpanded_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsRepeatedExpanded_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IgnoreEmptyEditionsMap_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItems.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItems.java deleted file mode 100644 index 116b79c4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItems.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IgnoreEmptyRepeatedItems} - */ -public final class IgnoreEmptyRepeatedItems extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IgnoreEmptyRepeatedItems) - IgnoreEmptyRepeatedItemsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreEmptyRepeatedItems.class.getName()); - } - // Use IgnoreEmptyRepeatedItems.newBuilder() to construct. - private IgnoreEmptyRepeatedItems(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IgnoreEmptyRepeatedItems() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems.class, build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.IgnoreEmptyRepeatedItems)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems other = (build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems) 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.IgnoreEmptyRepeatedItems parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems 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.IgnoreEmptyRepeatedItems parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems 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.IgnoreEmptyRepeatedItems parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems 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.IgnoreEmptyRepeatedItems parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems 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.IgnoreEmptyRepeatedItems parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems 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.IgnoreEmptyRepeatedItems 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.IgnoreEmptyRepeatedItems 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.IgnoreEmptyRepeatedItems 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.IgnoreEmptyRepeatedItems} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IgnoreEmptyRepeatedItems) - build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItemsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems.class, build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyProto3Proto.internal_static_buf_validate_conformance_cases_IgnoreEmptyRepeatedItems_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems build() { - build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems buildPartial() { - build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems result = new build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems) { - return mergeFrom((build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems other) { - if (other == build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IgnoreEmptyRepeatedItems) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IgnoreEmptyRepeatedItems) - private static final build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems(); - } - - public static build.buf.validate.conformance.cases.IgnoreEmptyRepeatedItems getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IgnoreEmptyRepeatedItems 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.IgnoreEmptyRepeatedItems getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItemsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItemsOrBuilder.java deleted file mode 100644 index b407dbae..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreEmptyRepeatedItemsOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_empty_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IgnoreEmptyRepeatedItemsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IgnoreEmptyRepeatedItems) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto2Proto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto2Proto.java deleted file mode 100644 index 3f364848..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto2Proto.java +++ /dev/null @@ -1,1012 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class IgnoreProto2Proto { - private IgnoreProto2Proto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreProto2Proto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlwaysWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlwaysWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlwaysWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlwaysWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlwaysWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlwaysWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_ValEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2buf/validate/conformance/cases/ignore_" + - "proto2.proto\022\036buf.validate.conformance.c" + - "ases\032\033buf/validate/validate.proto\"B\n%Pro" + - "to2ScalarOptionalIgnoreUnspecified\022\031\n\003va" + - "l\030\001 \001(\005B\007\272H\004\032\002 \000R\003val\"R\n0Proto2ScalarOpt" + - "ionalIgnoreUnspecifiedWithDefault\022\036\n\003val" + - "\030\001 \001(\005:\003-42B\007\272H\004\032\002 \000R\003val\"?\n\037Proto2Scala" + - "rOptionalIgnoreEmpty\022\034\n\003val\030\001 \001(\005B\n\272H\007\032\002" + - " \000\330\001\001R\003val\"O\n*Proto2ScalarOptionalIgnore" + - "EmptyWithDefault\022!\n\003val\030\001 \001(\005:\003-42B\n\272H\007\032" + - "\002 \000\330\001\001R\003val\"A\n!Proto2ScalarOptionalIgnor" + - "eDefault\022\034\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\002R\003val\"Q" + - "\n,Proto2ScalarOptionalIgnoreDefaultWithD" + - "efault\022!\n\003val\030\001 \001(\005:\003-42B\n\272H\007\032\002 \000\330\001\002R\003va" + - "l\"@\n Proto2ScalarOptionalIgnoreAlways\022\034\n" + - "\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\003R\003val\"P\n+Proto2Sca" + - "larOptionalIgnoreAlwaysWithDefault\022!\n\003va" + - "l\030\001 \001(\005:\003-42B\n\272H\007\032\002 \000\330\001\003R\003val\"B\n%Proto2S" + - "calarRequiredIgnoreUnspecified\022\031\n\003val\030\001 " + - "\002(\005B\007\272H\004\032\002 \000R\003val\"R\n0Proto2ScalarRequire" + - "dIgnoreUnspecifiedWithDefault\022\036\n\003val\030\001 \002" + - "(\005:\003-42B\007\272H\004\032\002 \000R\003val\"?\n\037Proto2ScalarReq" + - "uiredIgnoreEmpty\022\034\n\003val\030\001 \002(\005B\n\272H\007\032\002 \000\330\001" + - "\001R\003val\"O\n*Proto2ScalarRequiredIgnoreEmpt" + - "yWithDefault\022!\n\003val\030\001 \002(\005:\003-42B\n\272H\007\032\002 \000\330" + - "\001\001R\003val\"A\n!Proto2ScalarRequiredIgnoreDef" + - "ault\022\034\n\003val\030\001 \002(\005B\n\272H\007\032\002 \000\330\001\002R\003val\"Q\n,Pr" + - "oto2ScalarRequiredIgnoreDefaultWithDefau" + - "lt\022!\n\003val\030\001 \002(\005:\003-42B\n\272H\007\032\002 \000\330\001\002R\003val\"@\n" + - " Proto2ScalarRequiredIgnoreAlways\022\034\n\003val" + - "\030\001 \002(\005B\n\272H\007\032\002 \000\330\001\003R\003val\"P\n+Proto2ScalarR" + - "equiredIgnoreAlwaysWithDefault\022!\n\003val\030\001 " + - "\002(\005:\003-42B\n\272H\007\032\002 \000\330\001\003R\003val\"\340\001\n&Proto2Mess" + - "ageOptionalIgnoreUnspecified\022\234\001\n\003val\030\001 \001" + - "(\0132J.buf.validate.conformance.cases.Prot" + - "o2MessageOptionalIgnoreUnspecified.MsgB>" + - "\272H;\272\0018\n\033proto2.message.ignore.empty\022\006foo" + - "bar\032\021this.val == \'foo\'R\003val\032\027\n\003Msg\022\020\n\003va" + - "l\030\001 \001(\tR\003val\"\327\001\n Proto2MessageOptionalIg" + - "noreEmpty\022\231\001\n\003val\030\001 \001(\0132D.buf.validate.c" + - "onformance.cases.Proto2MessageOptionalIg" + - "noreEmpty.MsgBA\272H>\272\0018\n\033proto2.message.ig" + - "nore.empty\022\006foobar\032\021this.val == \'foo\'\330\001\001" + - "R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\333\001\n\"Proto" + - "2MessageOptionalIgnoreDefault\022\233\001\n\003val\030\001 " + - "\001(\0132F.buf.validate.conformance.cases.Pro" + - "to2MessageOptionalIgnoreDefault.MsgBA\272H>" + - "\272\0018\n\033proto2.message.ignore.empty\022\006foobar" + - "\032\021this.val == \'foo\'\330\001\002R\003val\032\027\n\003Msg\022\020\n\003va" + - "l\030\001 \001(\tR\003val\"\332\001\n!Proto2MessageOptionalIg" + - "noreAlways\022\233\001\n\003val\030\001 \001(\0132E.buf.validate." + - "conformance.cases.Proto2MessageOptionalI" + - "gnoreAlways.MsgBB\272H?\272\0019\n\034proto2.message." + - "ignore.always\022\006foobar\032\021this.val == \'foo\'" + - "\330\001\003R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\340\001\n&Pr" + - "oto2MessageRequiredIgnoreUnspecified\022\234\001\n" + - "\003val\030\001 \002(\0132J.buf.validate.conformance.ca" + - "ses.Proto2MessageRequiredIgnoreUnspecifi" + - "ed.MsgB>\272H;\272\0018\n\033proto2.message.ignore.em" + - "pty\022\006foobar\032\021this.val == \'foo\'R\003val\032\027\n\003M" + - "sg\022\020\n\003val\030\001 \001(\tR\003val\"\327\001\n Proto2MessageRe" + - "quiredIgnoreEmpty\022\231\001\n\003val\030\001 \002(\0132D.buf.va" + - "lidate.conformance.cases.Proto2MessageRe" + - "quiredIgnoreEmpty.MsgBA\272H>\272\0018\n\033proto2.me" + - "ssage.ignore.empty\022\006foobar\032\021this.val == " + - "\'foo\'\330\001\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\333" + - "\001\n\"Proto2MessageRequiredIgnoreDefault\022\233\001" + - "\n\003val\030\001 \002(\0132F.buf.validate.conformance.c" + - "ases.Proto2MessageRequiredIgnoreDefault." + - "MsgBA\272H>\272\0018\n\033proto2.message.ignore.empty" + - "\022\006foobar\032\021this.val == \'foo\'\330\001\002R\003val\032\027\n\003M" + - "sg\022\020\n\003val\030\001 \001(\tR\003val\"\332\001\n!Proto2MessageRe" + - "quiredIgnoreAlways\022\233\001\n\003val\030\001 \002(\0132E.buf.v" + - "alidate.conformance.cases.Proto2MessageR" + - "equiredIgnoreAlways.MsgBB\272H?\272\0019\n\034proto2." + - "message.ignore.always\022\006foobar\032\021this.val " + - "== \'foo\'\330\001\003R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003va" + - "l\"@\n\034Proto2OneofIgnoreUnspecified\022\033\n\003val" + - "\030\001 \001(\005B\007\272H\004\032\002 \000H\000R\003valB\003\n\001o\"P\n\'Proto2One" + - "ofIgnoreUnspecifiedWithDefault\022 \n\003val\030\001 " + - "\001(\005:\003-42B\007\272H\004\032\002 \000H\000R\003valB\003\n\001o\"=\n\026Proto2O" + - "neofIgnoreEmpty\022\036\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\001" + - "H\000R\003valB\003\n\001o\"M\n!Proto2OneofIgnoreEmptyWi" + - "thDefault\022#\n\003val\030\001 \001(\005:\003-42B\n\272H\007\032\002 \000\330\001\001H" + - "\000R\003valB\003\n\001o\"?\n\030Proto2OneofIgnoreDefault\022" + - "\036\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\002H\000R\003valB\003\n\001o\"O\n#" + - "Proto2OneofIgnoreDefaultWithDefault\022#\n\003v" + - "al\030\001 \001(\005:\003-42B\n\272H\007\032\002 \000\330\001\002H\000R\003valB\003\n\001o\">\n" + - "\027Proto2OneofIgnoreAlways\022\036\n\003val\030\001 \001(\005B\n\272" + - "H\007\032\002 \000\330\001\003H\000R\003valB\003\n\001o\"N\n\"Proto2OneofIgno" + - "reAlwaysWithDefault\022#\n\003val\030\001 \001(\005:\003-42B\n\272" + - "H\007\032\002 \000\330\001\003H\000R\003valB\003\n\001o\"=\n\037Proto2RepeatedI" + - "gnoreUnspecified\022\032\n\003val\030\001 \003(\005B\010\272H\005\222\001\002\010\003R" + - "\003val\":\n\031Proto2RepeatedIgnoreEmpty\022\035\n\003val" + - "\030\001 \003(\005B\013\272H\010\222\001\002\010\003\330\001\001R\003val\"<\n\033Proto2Repeat" + - "edIgnoreDefault\022\035\n\003val\030\001 \003(\005B\013\272H\010\222\001\002\010\003\330\001" + - "\002R\003val\";\n\032Proto2RepeatedIgnoreAlways\022\035\n\003" + - "val\030\001 \003(\005B\013\272H\010\222\001\002\010\003\330\001\003R\003val\"\265\001\n\032Proto2Ma" + - "pIgnoreUnspecified\022_\n\003val\030\001 \003(\0132C.buf.va" + - "lidate.conformance.cases.Proto2MapIgnore" + - "Unspecified.ValEntryB\010\272H\005\232\001\002\010\003R\003val\0326\n\010V" + - "alEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005" + - "R\005value:\0028\001\"\254\001\n\024Proto2MapIgnoreEmpty\022\\\n\003" + - "val\030\001 \003(\0132=.buf.validate.conformance.cas" + - "es.Proto2MapIgnoreEmpty.ValEntryB\013\272H\010\232\001\002" + - "\010\003\330\001\001R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key" + - "\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\260\001\n\026Proto2Map" + - "IgnoreDefault\022^\n\003val\030\001 \003(\0132?.buf.validat" + - "e.conformance.cases.Proto2MapIgnoreDefau" + - "lt.ValEntryB\013\272H\010\232\001\002\010\003\330\001\002R\003val\0326\n\010ValEntr" + - "y\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005valu" + - "e:\0028\001\"\256\001\n\025Proto2MapIgnoreAlways\022]\n\003val\030\001" + - " \003(\0132>.buf.validate.conformance.cases.Pr" + - "oto2MapIgnoreAlways.ValEntryB\013\272H\010\232\001\002\010\003\330\001" + - "\003R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005" + - "value\030\002 \001(\005R\005value:\0028\001\"E\n#Proto2Repeated" + - "ItemIgnoreUnspecified\022\036\n\003val\030\001 \003(\005B\014\272H\t\222" + - "\001\006\"\004\032\002 \000R\003val\"B\n\035Proto2RepeatedItemIgnor" + - "eEmpty\022!\n\003val\030\001 \003(\005B\017\272H\014\222\001\t\"\007\032\002 \000\330\001\001R\003va" + - "l\"D\n\037Proto2RepeatedItemIgnoreDefault\022!\n\003" + - "val\030\001 \003(\005B\017\272H\014\222\001\t\"\007\032\002 \000\330\001\002R\003val\"C\n\036Proto" + - "2RepeatedItemIgnoreAlways\022!\n\003val\030\001 \003(\005B\017" + - "\272H\014\222\001\t\"\007\032\002 \000\330\001\003R\003val\"\277\001\n\035Proto2MapKeyIgn" + - "oreUnspecified\022f\n\003val\030\001 \003(\0132F.buf.valida" + - "te.conformance.cases.Proto2MapKeyIgnoreU" + - "nspecified.ValEntryB\014\272H\t\232\001\006\"\004\032\002 \000R\003val\0326" + - "\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 " + - "\001(\005R\005value:\0028\001\"\266\001\n\027Proto2MapKeyIgnoreEmp" + - "ty\022c\n\003val\030\001 \003(\0132@.buf.validate.conforman" + - "ce.cases.Proto2MapKeyIgnoreEmpty.ValEntr" + - "yB\017\272H\014\232\001\t\"\007\032\002 \000\330\001\001R\003val\0326\n\010ValEntry\022\020\n\003k" + - "ey\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"" + - "\272\001\n\031Proto2MapKeyIgnoreDefault\022e\n\003val\030\001 \003" + - "(\0132B.buf.validate.conformance.cases.Prot" + - "o2MapKeyIgnoreDefault.ValEntryB\017\272H\014\232\001\t\"\007" + - "\032\002 \000\330\001\002R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003k" + - "ey\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\270\001\n\030Proto2M" + - "apKeyIgnoreAlways\022d\n\003val\030\001 \003(\0132A.buf.val" + - "idate.conformance.cases.Proto2MapKeyIgno" + - "reAlways.ValEntryB\017\272H\014\232\001\t\"\007\032\002 \000\330\001\003R\003val\032" + - "6\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002" + - " \001(\005R\005value:\0028\001\"\303\001\n\037Proto2MapValueIgnore" + - "Unspecified\022h\n\003val\030\001 \003(\0132H.buf.validate." + - "conformance.cases.Proto2MapValueIgnoreUn" + - "specified.ValEntryB\014\272H\t\232\001\006*\004\032\002 \000R\003val\0326\n" + - "\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001" + - "(\005R\005value:\0028\001\"\272\001\n\031Proto2MapValueIgnoreEm" + - "pty\022e\n\003val\030\001 \003(\0132B.buf.validate.conforma" + - "nce.cases.Proto2MapValueIgnoreEmpty.ValE" + - "ntryB\017\272H\014\232\001\t*\007\032\002 \000\330\001\001R\003val\0326\n\010ValEntry\022\020" + - "\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\002" + - "8\001\"\276\001\n\033Proto2MapValueIgnoreDefault\022g\n\003va" + - "l\030\001 \003(\0132D.buf.validate.conformance.cases" + - ".Proto2MapValueIgnoreDefault.ValEntryB\017\272" + - "H\014\232\001\t*\007\032\002 \000\330\001\002R\003val\0326\n\010ValEntry\022\020\n\003key\030\001" + - " \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\274\001\n\032" + - "Proto2MapValueIgnoreAlways\022f\n\003val\030\001 \003(\0132" + - "C.buf.validate.conformance.cases.Proto2M" + - "apValueIgnoreAlways.ValEntryB\017\272H\014\232\001\t*\007\032\002" + - " \000\330\001\003R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key" + - "\022\024\n\005value\030\002 \001(\005R\005value:\0028\001B\325\001\n$build.buf" + - ".validate.conformance.casesB\021IgnoreProto" + - "2ProtoP\001\242\002\004BVCC\252\002\036Buf.Validate.Conforman" + - "ce.Cases\312\002\036Buf\\Validate\\Conformance\\Case" + - "s\342\002*Buf\\Validate\\Conformance\\Cases\\GPBMe" + - "tadata\352\002!Buf::Validate::Conformance::Cas" + - "es" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlwaysWithDefault_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlwaysWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlwaysWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlwaysWithDefault_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlwaysWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlwaysWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlways_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlwaysWithDefault_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlwaysWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlwaysWithDefault_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto3Proto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto3Proto.java deleted file mode 100644 index 6d57644b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProto3Proto.java +++ /dev/null @@ -1,858 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class IgnoreProto3Proto { - private IgnoreProto3Proto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreProto3Proto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_ValEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2buf/validate/conformance/cases/ignore_" + - "proto3.proto\022\036buf.validate.conformance.c" + - "ases\032\033buf/validate/validate.proto\"O\n%Pro" + - "to3ScalarOptionalIgnoreUnspecified\022\036\n\003va" + - "l\030\001 \001(\005B\007\272H\004\032\002 \000H\000R\003val\210\001\001B\006\n\004_val\"L\n\037Pr" + - "oto3ScalarOptionalIgnoreEmpty\022!\n\003val\030\001 \001" + - "(\005B\n\272H\007\032\002 \000\330\001\001H\000R\003val\210\001\001B\006\n\004_val\"N\n!Prot" + - "o3ScalarOptionalIgnoreDefault\022!\n\003val\030\001 \001" + - "(\005B\n\272H\007\032\002 \000\330\001\002H\000R\003val\210\001\001B\006\n\004_val\"M\n Prot" + - "o3ScalarOptionalIgnoreAlways\022!\n\003val\030\001 \001(" + - "\005B\n\272H\007\032\002 \000\330\001\003H\000R\003val\210\001\001B\006\n\004_val\":\n\035Proto" + - "3ScalarIgnoreUnspecified\022\031\n\003val\030\001 \001(\005B\007\272" + - "H\004\032\002 \000R\003val\"7\n\027Proto3ScalarIgnoreEmpty\022\034" + - "\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\001R\003val\"9\n\031Proto3Sc" + - "alarIgnoreDefault\022\034\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330" + - "\001\002R\003val\"8\n\030Proto3ScalarIgnoreAlways\022\034\n\003v" + - "al\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\003R\003val\"\372\001\n&Proto3Mess" + - "ageOptionalIgnoreUnspecified\022\241\001\n\003val\030\001 \001" + - "(\0132J.buf.validate.conformance.cases.Prot" + - "o3MessageOptionalIgnoreUnspecified.MsgB>" + - "\272H;\272\0018\n\033proto3.message.ignore.empty\022\006foo" + - "bar\032\021this.val == \'foo\'H\000R\003val\210\001\001\032$\n\003Msg\022" + - "\025\n\003val\030\001 \001(\tH\000R\003val\210\001\001B\006\n\004_valB\006\n\004_val\"\361" + - "\001\n Proto3MessageOptionalIgnoreEmpty\022\236\001\n\003" + - "val\030\001 \001(\0132D.buf.validate.conformance.cas" + - "es.Proto3MessageOptionalIgnoreEmpty.MsgB" + - "A\272H>\272\0018\n\033proto3.message.ignore.empty\022\006fo" + - "obar\032\021this.val == \'foo\'\330\001\001H\000R\003val\210\001\001\032$\n\003" + - "Msg\022\025\n\003val\030\001 \001(\tH\000R\003val\210\001\001B\006\n\004_valB\006\n\004_v" + - "al\"\365\001\n\"Proto3MessageOptionalIgnoreDefaul" + - "t\022\240\001\n\003val\030\001 \001(\0132F.buf.validate.conforman" + - "ce.cases.Proto3MessageOptionalIgnoreDefa" + - "ult.MsgBA\272H>\272\0018\n\033proto3.message.ignore.e" + - "mpty\022\006foobar\032\021this.val == \'foo\'\330\001\002H\000R\003va" + - "l\210\001\001\032$\n\003Msg\022\025\n\003val\030\001 \001(\tH\000R\003val\210\001\001B\006\n\004_v" + - "alB\006\n\004_val\"\364\001\n!Proto3MessageOptionalIgno" + - "reAlways\022\240\001\n\003val\030\001 \001(\0132E.buf.validate.co" + - "nformance.cases.Proto3MessageOptionalIgn" + - "oreAlways.MsgBB\272H?\272\0019\n\034proto3.message.ig" + - "nore.always\022\006foobar\032\021this.val == \'foo\'\330\001" + - "\003H\000R\003val\210\001\001\032$\n\003Msg\022\025\n\003val\030\001 \001(\tH\000R\003val\210\001" + - "\001B\006\n\004_valB\006\n\004_val\"\335\001\n\036Proto3MessageIgnor" + - "eUnspecified\022\224\001\n\003val\030\001 \001(\0132B.buf.validat" + - "e.conformance.cases.Proto3MessageIgnoreU" + - "nspecified.MsgB>\272H;\272\0018\n\033proto3.message.i" + - "gnore.empty\022\006foobar\032\021this.val == \'foo\'R\003" + - "val\032$\n\003Msg\022\025\n\003val\030\001 \001(\tH\000R\003val\210\001\001B\006\n\004_va" + - "l\"\324\001\n\030Proto3MessageIgnoreEmpty\022\221\001\n\003val\030\001" + - " \001(\0132<.buf.validate.conformance.cases.Pr" + - "oto3MessageIgnoreEmpty.MsgBA\272H>\272\0018\n\033prot" + - "o3.message.ignore.empty\022\006foobar\032\021this.va" + - "l == \'foo\'\330\001\001R\003val\032$\n\003Msg\022\025\n\003val\030\001 \001(\tH\000" + - "R\003val\210\001\001B\006\n\004_val\"\330\001\n\032Proto3MessageIgnore" + - "Default\022\223\001\n\003val\030\001 \001(\0132>.buf.validate.con" + - "formance.cases.Proto3MessageIgnoreDefaul" + - "t.MsgBA\272H>\272\0018\n\033proto3.message.ignore.emp" + - "ty\022\006foobar\032\021this.val == \'foo\'\330\001\002R\003val\032$\n" + - "\003Msg\022\025\n\003val\030\001 \001(\tH\000R\003val\210\001\001B\006\n\004_val\"\326\001\n\031" + - "Proto3MessageIgnoreAlways\022\222\001\n\003val\030\001 \001(\0132" + - "=.buf.validate.conformance.cases.Proto3M" + - "essageIgnoreAlways.MsgBA\272H>\272\0018\n\033proto3.m" + - "essage.ignore.empty\022\006foobar\032\021this.val ==" + - " \'foo\'\330\001\002R\003val\032$\n\003Msg\022\025\n\003val\030\001 \001(\tH\000R\003va" + - "l\210\001\001B\006\n\004_val\"@\n\034Proto3OneofIgnoreUnspeci" + - "fied\022\033\n\003val\030\001 \001(\005B\007\272H\004\032\002 \000H\000R\003valB\003\n\001o\"=" + - "\n\026Proto3OneofIgnoreEmpty\022\036\n\003val\030\001 \001(\005B\n\272" + - "H\007\032\002 \000\330\001\001H\000R\003valB\003\n\001o\"?\n\030Proto3OneofIgno" + - "reDefault\022\036\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\002H\000R\003va" + - "lB\003\n\001o\">\n\027Proto3OneofIgnoreAlways\022\036\n\003val" + - "\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\003H\000R\003valB\003\n\001o\"=\n\037Proto3" + - "RepeatedIgnoreUnspecified\022\032\n\003val\030\001 \003(\005B\010" + - "\272H\005\222\001\002\010\003R\003val\":\n\031Proto3RepeatedIgnoreEmp" + - "ty\022\035\n\003val\030\001 \003(\005B\013\272H\010\222\001\002\010\003\330\001\001R\003val\"<\n\033Pro" + - "to3RepeatedIgnoreDefault\022\035\n\003val\030\001 \003(\005B\013\272" + - "H\010\222\001\002\010\003\330\001\002R\003val\";\n\032Proto3RepeatedIgnoreA" + - "lways\022\035\n\003val\030\001 \003(\005B\013\272H\010\222\001\002\010\003\330\001\003R\003val\"\265\001\n" + - "\032Proto3MapIgnoreUnspecified\022_\n\003val\030\001 \003(\013" + - "2C.buf.validate.conformance.cases.Proto3" + - "MapIgnoreUnspecified.ValEntryB\010\272H\005\232\001\002\010\003R" + - "\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005va" + - "lue\030\002 \001(\005R\005value:\0028\001\"\254\001\n\024Proto3MapIgnore" + - "Empty\022\\\n\003val\030\001 \003(\0132=.buf.validate.confor" + - "mance.cases.Proto3MapIgnoreEmpty.ValEntr" + - "yB\013\272H\010\232\001\002\010\003\330\001\001R\003val\0326\n\010ValEntry\022\020\n\003key\030\001" + - " \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\260\001\n\026" + - "Proto3MapIgnoreDefault\022^\n\003val\030\001 \003(\0132?.bu" + - "f.validate.conformance.cases.Proto3MapIg" + - "noreDefault.ValEntryB\013\272H\010\232\001\002\010\003\330\001\002R\003val\0326" + - "\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 " + - "\001(\005R\005value:\0028\001\"\256\001\n\025Proto3MapIgnoreAlways" + - "\022]\n\003val\030\001 \003(\0132>.buf.validate.conformance" + - ".cases.Proto3MapIgnoreAlways.ValEntryB\013\272" + - "H\010\232\001\002\010\003\330\001\003R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005" + - "R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"E\n#Proto" + - "3RepeatedItemIgnoreUnspecified\022\036\n\003val\030\001 " + - "\003(\005B\014\272H\t\222\001\006\"\004\032\002 \000R\003val\"B\n\035Proto3Repeated" + - "ItemIgnoreEmpty\022!\n\003val\030\001 \003(\005B\017\272H\014\222\001\t\"\007\032\002" + - " \000\330\001\001R\003val\"D\n\037Proto3RepeatedItemIgnoreDe" + - "fault\022!\n\003val\030\001 \003(\005B\017\272H\014\222\001\t\"\007\032\002 \000\330\001\002R\003val" + - "\"C\n\036Proto3RepeatedItemIgnoreAlways\022!\n\003va" + - "l\030\001 \003(\005B\017\272H\014\222\001\t\"\007\032\002 \000\330\001\003R\003val\"\277\001\n\035Proto3" + - "MapKeyIgnoreUnspecified\022f\n\003val\030\001 \003(\0132F.b" + - "uf.validate.conformance.cases.Proto3MapK" + - "eyIgnoreUnspecified.ValEntryB\014\272H\t\232\001\006\"\004\032\002" + - " \000R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n" + - "\005value\030\002 \001(\005R\005value:\0028\001\"\266\001\n\027Proto3MapKey" + - "IgnoreEmpty\022c\n\003val\030\001 \003(\0132@.buf.validate." + - "conformance.cases.Proto3MapKeyIgnoreEmpt" + - "y.ValEntryB\017\272H\014\232\001\t\"\007\032\002 \000\330\001\001R\003val\0326\n\010ValE" + - "ntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005v" + - "alue:\0028\001\"\272\001\n\031Proto3MapKeyIgnoreDefault\022e" + - "\n\003val\030\001 \003(\0132B.buf.validate.conformance.c" + - "ases.Proto3MapKeyIgnoreDefault.ValEntryB" + - "\017\272H\014\232\001\t\"\007\032\002 \000\330\001\002R\003val\0326\n\010ValEntry\022\020\n\003key" + - "\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\270\001" + - "\n\030Proto3MapKeyIgnoreAlways\022d\n\003val\030\001 \003(\0132" + - "A.buf.validate.conformance.cases.Proto3M" + - "apKeyIgnoreAlways.ValEntryB\017\272H\014\232\001\t\"\007\032\002 \000" + - "\330\001\003R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024" + - "\n\005value\030\002 \001(\005R\005value:\0028\001\"\303\001\n\037Proto3MapVa" + - "lueIgnoreUnspecified\022h\n\003val\030\001 \003(\0132H.buf." + - "validate.conformance.cases.Proto3MapValu" + - "eIgnoreUnspecified.ValEntryB\014\272H\t\232\001\006*\004\032\002 " + - "\000R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005" + - "value\030\002 \001(\005R\005value:\0028\001\"\272\001\n\031Proto3MapValu" + - "eIgnoreEmpty\022e\n\003val\030\001 \003(\0132B.buf.validate" + - ".conformance.cases.Proto3MapValueIgnoreE" + - "mpty.ValEntryB\017\272H\014\232\001\t*\007\032\002 \000\330\001\001R\003val\0326\n\010V" + - "alEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005" + - "R\005value:\0028\001\"\276\001\n\033Proto3MapValueIgnoreDefa" + - "ult\022g\n\003val\030\001 \003(\0132D.buf.validate.conforma" + - "nce.cases.Proto3MapValueIgnoreDefault.Va" + - "lEntryB\017\272H\014\232\001\t*\007\032\002 \000\330\001\002R\003val\0326\n\010ValEntry" + - "\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value" + - ":\0028\001\"\274\001\n\032Proto3MapValueIgnoreAlways\022f\n\003v" + - "al\030\001 \003(\0132C.buf.validate.conformance.case" + - "s.Proto3MapValueIgnoreAlways.ValEntryB\017\272" + - "H\014\232\001\t*\007\032\002 \000\330\001\003R\003val\0326\n\010ValEntry\022\020\n\003key\030\001" + - " \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001B\325\001\n$" + - "build.buf.validate.conformance.casesB\021Ig" + - "noreProto3ProtoP\001\242\002\004BVCC\252\002\036Buf.Validate." + - "Conformance.Cases\312\002\036Buf\\Validate\\Conform" + - "ance\\Cases\342\002*Buf\\Validate\\Conformance\\Ca" + - "ses\\GPBMetadata\352\002!Buf::Validate::Conform" + - "ance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_Msg_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreAlways_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProtoEditionsProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProtoEditionsProto.java deleted file mode 100644 index a8007543..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IgnoreProtoEditionsProto.java +++ /dev/null @@ -1,1411 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class IgnoreProtoEditionsProto { - private IgnoreProtoEditionsProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IgnoreProtoEditionsProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmptyWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmptyWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefaultWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefaultWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmptyWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmptyWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefaultWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefaultWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecifiedWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecifiedWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmptyWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmptyWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefaultWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefaultWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlwaysWithDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlwaysWithDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_ValEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:buf/validate/conformance/cases/ignore_" + - "proto_editions.proto\022\036buf.validate.confo" + - "rmance.cases\032\033buf/validate/validate.prot" + - "o\"L\n/EditionsScalarExplicitPresenceIgnor" + - "eUnspecified\022\031\n\003val\030\001 \001(\005B\007\272H\004\032\002 \000R\003val\"" + - "\\\n:EditionsScalarExplicitPresenceIgnoreU" + - "nspecifiedWithDefault\022\036\n\003val\030\001 \001(\005:\003-42B" + - "\007\272H\004\032\002 \000R\003val\"I\n)EditionsScalarExplicitP" + - "resenceIgnoreEmpty\022\034\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000" + - "\330\001\001R\003val\"Y\n4EditionsScalarExplicitPresen" + - "ceIgnoreEmptyWithDefault\022!\n\003val\030\001 \001(\005:\003-" + - "42B\n\272H\007\032\002 \000\330\001\001R\003val\"K\n+EditionsScalarExp" + - "licitPresenceIgnoreDefault\022\034\n\003val\030\001 \001(\005B" + - "\n\272H\007\032\002 \000\330\001\002R\003val\"[\n6EditionsScalarExplic" + - "itPresenceIgnoreDefaultWithDefault\022!\n\003va" + - "l\030\001 \001(\005:\003-42B\n\272H\007\032\002 \000\330\001\002R\003val\"J\n*Edition" + - "sScalarExplicitPresenceIgnoreAlways\022\034\n\003v" + - "al\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\003R\003val\"Z\n5EditionsSca" + - "larExplicitPresenceIgnoreAlwaysWithDefau" + - "lt\022!\n\003val\030\001 \001(\005:\003-42B\n\272H\007\032\002 \000\330\001\003R\003val\"Q\n" + - "/EditionsScalarImplicitPresenceIgnoreUns" + - "pecified\022\036\n\003val\030\001 \001(\005B\014\252\001\002\010\002\272H\004\032\002 \000R\003val" + - "\"N\n)EditionsScalarImplicitPresenceIgnore" + - "Empty\022!\n\003val\030\001 \001(\005B\017\252\001\002\010\002\272H\007\032\002 \000\330\001\001R\003val" + - "\"P\n+EditionsScalarImplicitPresenceIgnore" + - "Default\022!\n\003val\030\001 \001(\005B\017\252\001\002\010\002\272H\007\032\002 \000\330\001\002R\003v" + - "al\"O\n*EditionsScalarImplicitPresenceIgno" + - "reAlways\022!\n\003val\030\001 \001(\005B\017\252\001\002\010\002\272H\007\032\002 \000\330\001\003R\003" + - "val\"O\n-EditionsScalarLegacyRequiredIgnor" + - "eUnspecified\022\036\n\003val\030\001 \001(\005B\014\252\001\002\010\003\272H\004\032\002 \000R" + - "\003val\"_\n8EditionsScalarLegacyRequiredIgno" + - "reUnspecifiedWithDefault\022#\n\003val\030\001 \001(\005:\003-" + - "42B\014\252\001\002\010\003\272H\004\032\002 \000R\003val\"L\n\'EditionsScalarL" + - "egacyRequiredIgnoreEmpty\022!\n\003val\030\001 \001(\005B\017\252" + - "\001\002\010\003\272H\007\032\002 \000\330\001\001R\003val\"\\\n2EditionsScalarLeg" + - "acyRequiredIgnoreEmptyWithDefault\022&\n\003val" + - "\030\001 \001(\005:\003-42B\017\252\001\002\010\003\272H\007\032\002 \000\330\001\001R\003val\"N\n)Edi" + - "tionsScalarLegacyRequiredIgnoreDefault\022!" + - "\n\003val\030\001 \001(\005B\017\252\001\002\010\003\272H\007\032\002 \000\330\001\002R\003val\"^\n4Edi" + - "tionsScalarLegacyRequiredIgnoreDefaultWi" + - "thDefault\022&\n\003val\030\001 \001(\005:\003-42B\017\252\001\002\010\003\272H\007\032\002 " + - "\000\330\001\002R\003val\"M\n(EditionsScalarLegacyRequire" + - "dIgnoreAlways\022!\n\003val\030\001 \001(\005B\017\252\001\002\010\003\272H\007\032\002 \000" + - "\330\001\003R\003val\"]\n3EditionsScalarLegacyRequired" + - "IgnoreAlwaysWithDefault\022&\n\003val\030\001 \001(\005:\003-4" + - "2B\017\252\001\002\010\003\272H\007\032\002 \000\330\001\003R\003val\"\374\001\n0EditionsMess" + - "ageExplicitPresenceIgnoreUnspecified\022\256\001\n" + - "\003val\030\001 \001(\0132T.buf.validate.conformance.ca" + - "ses.EditionsMessageExplicitPresenceIgnor" + - "eUnspecified.MsgBF\272HC\272\001@\n#proto.editions" + - ".message.ignore.empty\022\006foobar\032\021this.val " + - "== \'foo\'R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\223" + - "\002\n9EditionsMessageExplicitPresenceDelimi" + - "tedIgnoreUnspecified\022\274\001\n\003val\030\001 \001(\0132].buf" + - ".validate.conformance.cases.EditionsMess" + - "ageExplicitPresenceDelimitedIgnoreUnspec" + - "ified.MsgBK\252\001\002(\002\272HC\272\001@\n#proto.editions.m" + - "essage.ignore.empty\022\006foobar\032\021this.val ==" + - " \'foo\'R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\363\001\n" + - "*EditionsMessageExplicitPresenceIgnoreEm" + - "pty\022\253\001\n\003val\030\001 \001(\0132N.buf.validate.conform" + - "ance.cases.EditionsMessageExplicitPresen" + - "ceIgnoreEmpty.MsgBI\272HF\272\001@\n#proto.edition" + - "s.message.ignore.empty\022\006foobar\032\021this.val" + - " == \'foo\'\330\001\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003v" + - "al\"\212\002\n3EditionsMessageExplicitPresenceDe" + - "limitedIgnoreEmpty\022\271\001\n\003val\030\001 \001(\0132W.buf.v" + - "alidate.conformance.cases.EditionsMessag" + - "eExplicitPresenceDelimitedIgnoreEmpty.Ms" + - "gBN\252\001\002(\002\272HF\272\001@\n#proto.editions.message.i" + - "gnore.empty\022\006foobar\032\021this.val == \'foo\'\330\001" + - "\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\367\001\n,Edit" + - "ionsMessageExplicitPresenceIgnoreDefault" + - "\022\255\001\n\003val\030\001 \001(\0132P.buf.validate.conformanc" + - "e.cases.EditionsMessageExplicitPresenceI" + - "gnoreDefault.MsgBI\272HF\272\001@\n#proto.editions" + - ".message.ignore.empty\022\006foobar\032\021this.val " + - "== \'foo\'\330\001\002R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003va" + - "l\"\216\002\n5EditionsMessageExplicitPresenceDel" + - "imitedIgnoreDefault\022\273\001\n\003val\030\001 \001(\0132Y.buf." + - "validate.conformance.cases.EditionsMessa" + - "geExplicitPresenceDelimitedIgnoreDefault" + - ".MsgBN\252\001\002(\002\272HF\272\001@\n#proto.editions.messag" + - "e.ignore.empty\022\006foobar\032\021this.val == \'foo" + - "\'\330\001\002R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\366\001\n+E" + - "ditionsMessageExplicitPresenceIgnoreAlwa" + - "ys\022\255\001\n\003val\030\001 \001(\0132O.buf.validate.conforma" + - "nce.cases.EditionsMessageExplicitPresenc" + - "eIgnoreAlways.MsgBJ\272HG\272\001A\n$proto.edition" + - "s.message.ignore.always\022\006foobar\032\021this.va" + - "l == \'foo\'\330\001\003R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003" + - "val\"\215\002\n4EditionsMessageExplicitPresenceD" + - "elimitedIgnoreAlways\022\273\001\n\003val\030\001 \001(\0132X.buf" + - ".validate.conformance.cases.EditionsMess" + - "ageExplicitPresenceDelimitedIgnoreAlways" + - ".MsgBO\252\001\002(\002\272HG\272\001A\n$proto.editions.messag" + - "e.ignore.always\022\006foobar\032\021this.val == \'fo" + - "o\'\330\001\003R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003val\"\375\001\n." + - "EditionsMessageLegacyRequiredIgnoreUnspe" + - "cified\022\261\001\n\003val\030\001 \001(\0132R.buf.validate.conf" + - "ormance.cases.EditionsMessageLegacyRequi" + - "redIgnoreUnspecified.MsgBK\252\001\002\010\003\272HC\272\001@\n#p" + - "roto.editions.message.ignore.empty\022\006foob" + - "ar\032\021this.val == \'foo\'R\003val\032\027\n\003Msg\022\020\n\003val" + - "\030\001 \001(\tR\003val\"\221\002\n7EditionsMessageLegacyReq" + - "uiredDelimitedIgnoreUnspecified\022\274\001\n\003val\030" + - "\001 \001(\0132[.buf.validate.conformance.cases.E" + - "ditionsMessageLegacyRequiredDelimitedIgn" + - "oreUnspecified.MsgBM\252\001\004\010\003(\002\272HC\272\001@\n#proto" + - ".editions.message.ignore.empty\022\006foobar\032\021" + - "this.val == \'foo\'R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001" + - "(\tR\003val\"\364\001\n(EditionsMessageLegacyRequire" + - "dIgnoreEmpty\022\256\001\n\003val\030\001 \001(\0132L.buf.validat" + - "e.conformance.cases.EditionsMessageLegac" + - "yRequiredIgnoreEmpty.MsgBN\252\001\002\010\003\272HF\272\001@\n#p" + - "roto.editions.message.ignore.empty\022\006foob" + - "ar\032\021this.val == \'foo\'\330\001\001R\003val\032\027\n\003Msg\022\020\n\003" + - "val\030\001 \001(\tR\003val\"\210\002\n1EditionsMessageLegacy" + - "RequiredDelimitedIgnoreEmpty\022\271\001\n\003val\030\001 \001" + - "(\0132U.buf.validate.conformance.cases.Edit" + - "ionsMessageLegacyRequiredDelimitedIgnore" + - "Empty.MsgBP\252\001\004\010\003(\002\272HF\272\001@\n#proto.editions" + - ".message.ignore.empty\022\006foobar\032\021this.val " + - "== \'foo\'\330\001\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003va" + - "l\"\370\001\n*EditionsMessageLegacyRequiredIgnor" + - "eDefault\022\260\001\n\003val\030\001 \001(\0132N.buf.validate.co" + - "nformance.cases.EditionsMessageLegacyReq" + - "uiredIgnoreDefault.MsgBN\252\001\002\010\003\272HF\272\001@\n#pro" + - "to.editions.message.ignore.empty\022\006foobar" + - "\032\021this.val == \'foo\'\330\001\002R\003val\032\027\n\003Msg\022\020\n\003va" + - "l\030\001 \001(\tR\003val\"\214\002\n3EditionsMessageLegacyRe" + - "quiredDelimitedIgnoreDefault\022\273\001\n\003val\030\001 \001" + - "(\0132W.buf.validate.conformance.cases.Edit" + - "ionsMessageLegacyRequiredDelimitedIgnore" + - "Default.MsgBP\252\001\004\010\003(\002\272HF\272\001@\n#proto.editio" + - "ns.message.ignore.empty\022\006foobar\032\021this.va" + - "l == \'foo\'\330\001\002R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003" + - "val\"\366\001\n)EditionsMessageLegacyRequiredIgn" + - "oreAlways\022\257\001\n\003val\030\001 \001(\0132M.buf.validate.c" + - "onformance.cases.EditionsMessageLegacyRe" + - "quiredIgnoreAlways.MsgBN\252\001\002\010\003\272HF\272\001@\n#pro" + - "to.editions.message.ignore.empty\022\006foobar" + - "\032\021this.val == \'foo\'\330\001\003R\003val\032\027\n\003Msg\022\020\n\003va" + - "l\030\001 \001(\tR\003val\"\212\002\n2EditionsMessageLegacyRe" + - "quiredDelimitedIgnoreAlways\022\272\001\n\003val\030\001 \001(" + - "\0132V.buf.validate.conformance.cases.Editi" + - "onsMessageLegacyRequiredDelimitedIgnoreA" + - "lways.MsgBP\252\001\004\010\003(\002\272HF\272\001@\n#proto.editions" + - ".message.ignore.empty\022\006foobar\032\021this.val " + - "== \'foo\'\330\001\003R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003va" + - "l\"B\n\036EditionsOneofIgnoreUnspecified\022\033\n\003v" + - "al\030\001 \001(\005B\007\272H\004\032\002 \000H\000R\003valB\003\n\001o\"R\n)Edition" + - "sOneofIgnoreUnspecifiedWithDefault\022 \n\003va" + - "l\030\001 \001(\005:\003-42B\007\272H\004\032\002 \000H\000R\003valB\003\n\001o\"?\n\030Edi" + - "tionsOneofIgnoreEmpty\022\036\n\003val\030\001 \001(\005B\n\272H\007\032" + - "\002 \000\330\001\001H\000R\003valB\003\n\001o\"O\n#EditionsOneofIgnor" + - "eEmptyWithDefault\022#\n\003val\030\001 \001(\005:\003-42B\n\272H\007" + - "\032\002 \000\330\001\001H\000R\003valB\003\n\001o\"A\n\032EditionsOneofIgno" + - "reDefault\022\036\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\002H\000R\003va" + - "lB\003\n\001o\"Q\n%EditionsOneofIgnoreDefaultWith" + - "Default\022#\n\003val\030\001 \001(\005:\003-42B\n\272H\007\032\002 \000\330\001\002H\000R" + - "\003valB\003\n\001o\"@\n\031EditionsOneofIgnoreAlways\022\036" + - "\n\003val\030\001 \001(\005B\n\272H\007\032\002 \000\330\001\003H\000R\003valB\003\n\001o\"P\n$E" + - "ditionsOneofIgnoreAlwaysWithDefault\022#\n\003v" + - "al\030\001 \001(\005:\003-42B\n\272H\007\032\002 \000\330\001\003H\000R\003valB\003\n\001o\"?\n" + - "!EditionsRepeatedIgnoreUnspecified\022\032\n\003va" + - "l\030\001 \003(\005B\010\272H\005\222\001\002\010\003R\003val\"L\n)EditionsRepeat" + - "edExpandedIgnoreUnspecified\022\037\n\003val\030\001 \003(\005" + - "B\r\252\001\002\030\002\272H\005\222\001\002\010\003R\003val\"<\n\033EditionsRepeated" + - "IgnoreEmpty\022\035\n\003val\030\001 \003(\005B\013\272H\010\222\001\002\010\003\330\001\001R\003v" + - "al\"I\n#EditionsRepeatedExpandedIgnoreEmpt" + - "y\022\"\n\003val\030\001 \003(\005B\020\252\001\002\030\002\272H\010\222\001\002\010\003\330\001\001R\003val\">\n" + - "\035EditionsRepeatedIgnoreDefault\022\035\n\003val\030\001 " + - "\003(\005B\013\272H\010\222\001\002\010\003\330\001\002R\003val\"K\n%EditionsRepeate" + - "dExpandedIgnoreDefault\022\"\n\003val\030\001 \003(\005B\020\252\001\002" + - "\030\002\272H\010\222\001\002\010\003\330\001\002R\003val\"=\n\034EditionsRepeatedIg" + - "noreAlways\022\035\n\003val\030\001 \003(\005B\013\272H\010\222\001\002\010\003\330\001\003R\003va" + - "l\"J\n$EditionsRepeatedExpandedIgnoreAlway" + - "s\022\"\n\003val\030\001 \003(\005B\020\252\001\002\030\002\272H\010\222\001\002\010\003\330\001\003R\003val\"\271\001" + - "\n\034EditionsMapIgnoreUnspecified\022a\n\003val\030\001 " + - "\003(\0132E.buf.validate.conformance.cases.Edi" + - "tionsMapIgnoreUnspecified.ValEntryB\010\272H\005\232" + - "\001\002\010\003R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022" + - "\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\260\001\n\026EditionsMa" + - "pIgnoreEmpty\022^\n\003val\030\001 \003(\0132?.buf.validate" + - ".conformance.cases.EditionsMapIgnoreEmpt" + - "y.ValEntryB\013\272H\010\232\001\002\010\003\330\001\001R\003val\0326\n\010ValEntry" + - "\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value" + - ":\0028\001\"\264\001\n\030EditionsMapIgnoreDefault\022`\n\003val" + - "\030\001 \003(\0132A.buf.validate.conformance.cases." + - "EditionsMapIgnoreDefault.ValEntryB\013\272H\010\232\001" + - "\002\010\003\330\001\002R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003ke" + - "y\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\262\001\n\027Editions" + - "MapIgnoreAlways\022_\n\003val\030\001 \003(\0132@.buf.valid" + - "ate.conformance.cases.EditionsMapIgnoreA" + - "lways.ValEntryB\013\272H\010\232\001\002\010\003\330\001\003R\003val\0326\n\010ValE" + - "ntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005v" + - "alue:\0028\001\"G\n%EditionsRepeatedItemIgnoreUn" + - "specified\022\036\n\003val\030\001 \003(\005B\014\272H\t\222\001\006\"\004\032\002 \000R\003va" + - "l\"T\n-EditionsRepeatedExpandedItemIgnoreU" + - "nspecified\022#\n\003val\030\001 \003(\005B\021\252\001\002\030\002\272H\t\222\001\006\"\004\032\002" + - " \000R\003val\"D\n\037EditionsRepeatedItemIgnoreEmp" + - "ty\022!\n\003val\030\001 \003(\005B\017\272H\014\222\001\t\"\007\032\002 \000\330\001\001R\003val\"Q\n" + - "\'EditionsRepeatedExpandedItemIgnoreEmpty" + - "\022&\n\003val\030\001 \003(\005B\024\252\001\002\030\002\272H\014\222\001\t\"\007\032\002 \000\330\001\001R\003val" + - "\"F\n!EditionsRepeatedItemIgnoreDefault\022!\n" + - "\003val\030\001 \003(\005B\017\272H\014\222\001\t\"\007\032\002 \000\330\001\002R\003val\"S\n)Edit" + - "ionsRepeatedExpandedItemIgnoreDefault\022&\n" + - "\003val\030\001 \003(\005B\024\252\001\002\030\002\272H\014\222\001\t\"\007\032\002 \000\330\001\002R\003val\"E\n" + - " EditionsRepeatedItemIgnoreAlways\022!\n\003val" + - "\030\001 \003(\005B\017\272H\014\222\001\t\"\007\032\002 \000\330\001\003R\003val\"R\n(Editions" + - "RepeatedExpandedItemIgnoreAlways\022&\n\003val\030" + - "\001 \003(\005B\024\252\001\002\030\002\272H\014\222\001\t\"\007\032\002 \000\330\001\003R\003val\"\303\001\n\037Edi" + - "tionsMapKeyIgnoreUnspecified\022h\n\003val\030\001 \003(" + - "\0132H.buf.validate.conformance.cases.Editi" + - "onsMapKeyIgnoreUnspecified.ValEntryB\014\272H\t" + - "\232\001\006\"\004\032\002 \000R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R" + - "\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\272\001\n\031Editi" + - "onsMapKeyIgnoreEmpty\022e\n\003val\030\001 \003(\0132B.buf." + - "validate.conformance.cases.EditionsMapKe" + - "yIgnoreEmpty.ValEntryB\017\272H\014\232\001\t\"\007\032\002 \000\330\001\001R\003" + - "val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005val" + - "ue\030\002 \001(\005R\005value:\0028\001\"\276\001\n\033EditionsMapKeyIg" + - "noreDefault\022g\n\003val\030\001 \003(\0132D.buf.validate." + - "conformance.cases.EditionsMapKeyIgnoreDe" + - "fault.ValEntryB\017\272H\014\232\001\t\"\007\032\002 \000\330\001\002R\003val\0326\n\010" + - "ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(" + - "\005R\005value:\0028\001\"\274\001\n\032EditionsMapKeyIgnoreAlw" + - "ays\022f\n\003val\030\001 \003(\0132C.buf.validate.conforma" + - "nce.cases.EditionsMapKeyIgnoreAlways.Val" + - "EntryB\017\272H\014\232\001\t\"\007\032\002 \000\330\001\003R\003val\0326\n\010ValEntry\022" + - "\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:" + - "\0028\001\"\307\001\n!EditionsMapValueIgnoreUnspecifie" + - "d\022j\n\003val\030\001 \003(\0132J.buf.validate.conformanc" + - "e.cases.EditionsMapValueIgnoreUnspecifie" + - "d.ValEntryB\014\272H\t\232\001\006*\004\032\002 \000R\003val\0326\n\010ValEntr" + - "y\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005valu" + - "e:\0028\001\"\276\001\n\033EditionsMapValueIgnoreEmpty\022g\n" + - "\003val\030\001 \003(\0132D.buf.validate.conformance.ca" + - "ses.EditionsMapValueIgnoreEmpty.ValEntry" + - "B\017\272H\014\232\001\t*\007\032\002 \000\330\001\001R\003val\0326\n\010ValEntry\022\020\n\003ke" + - "y\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\302" + - "\001\n\035EditionsMapValueIgnoreDefault\022i\n\003val\030" + - "\001 \003(\0132F.buf.validate.conformance.cases.E" + - "ditionsMapValueIgnoreDefault.ValEntryB\017\272" + - "H\014\232\001\t*\007\032\002 \000\330\001\002R\003val\0326\n\010ValEntry\022\020\n\003key\030\001" + - " \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\300\001\n\034" + - "EditionsMapValueIgnoreAlways\022h\n\003val\030\001 \003(" + - "\0132E.buf.validate.conformance.cases.Editi" + - "onsMapValueIgnoreAlways.ValEntryB\017\272H\014\232\001\t" + - "*\007\032\002 \000\330\001\003R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R" + - "\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001B\334\001\n$build" + - ".buf.validate.conformance.casesB\030IgnoreP" + - "rotoEditionsProtoP\001\242\002\004BVCC\252\002\036Buf.Validat" + - "e.Conformance.Cases\312\002\036Buf\\Validate\\Confo" + - "rmance\\Cases\342\002*Buf\\Validate\\Conformance\\" + - "Cases\\GPBMetadata\352\002!Buf::Validate::Confo" + - "rmance::Casesb\010editionsp\350\007" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreUnspecifiedWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmptyWithDefault_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmptyWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreEmptyWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefaultWithDefault_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefaultWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreDefaultWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarExplicitPresenceIgnoreAlwaysWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarImplicitPresenceIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreUnspecifiedWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmptyWithDefault_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmptyWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreEmptyWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefaultWithDefault_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefaultWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreDefaultWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsScalarLegacyRequiredIgnoreAlwaysWithDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreUnspecified_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreUnspecified_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreEmpty_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreEmpty_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreDefault_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreDefault_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceIgnoreAlways_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreUnspecified_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreUnspecified_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreEmpty_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreEmpty_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreDefault_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreDefault_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredIgnoreAlways_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_Msg_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMessageLegacyRequiredDelimitedIgnoreAlways_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecifiedWithDefault_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecifiedWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreUnspecifiedWithDefault_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmptyWithDefault_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmptyWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreEmptyWithDefault_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefault_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefaultWithDefault_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefaultWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreDefaultWithDefault_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlways_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlwaysWithDefault_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlwaysWithDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsOneofIgnoreAlwaysWithDefault_descriptor, - new java.lang.String[] { "Val", "O", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreUnspecified_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreEmpty_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreDefault_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapIgnoreAlways_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(61); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(62); - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedItemIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(63); - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsRepeatedExpandedItemIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(64); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreUnspecified_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(65); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreEmpty_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(66); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreDefault_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(67); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapKeyIgnoreAlways_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_descriptor = - getDescriptor().getMessageTypes().get(68); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreUnspecified_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_descriptor = - getDescriptor().getMessageTypes().get(69); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreEmpty_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_descriptor = - getDescriptor().getMessageTypes().get(70); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreDefault_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(71); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_EditionsMapValueIgnoreAlways_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Const.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Const.java deleted file mode 100644 index 901a6af0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Const.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32Const} - */ -public final class Int32Const extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32Const) - Int32ConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32Const.class.getName()); - } - // Use Int32Const.newBuilder() to construct. - private Int32Const(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32Const() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32Const.class, build.buf.validate.conformance.cases.Int32Const.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32Const)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32Const other = (build.buf.validate.conformance.cases.Int32Const) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32Const parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32Const 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.Int32Const parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32Const 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.Int32Const parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32Const 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.Int32Const parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32Const 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.Int32Const parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32Const 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.Int32Const 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.Int32Const 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.Int32Const 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.Int32Const} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32Const) - build.buf.validate.conformance.cases.Int32ConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32Const.class, build.buf.validate.conformance.cases.Int32Const.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32Const.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Const_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32Const getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32Const.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32Const build() { - build.buf.validate.conformance.cases.Int32Const result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32Const buildPartial() { - build.buf.validate.conformance.cases.Int32Const result = new build.buf.validate.conformance.cases.Int32Const(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32Const result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32Const) { - return mergeFrom((build.buf.validate.conformance.cases.Int32Const)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32Const other) { - if (other == build.buf.validate.conformance.cases.Int32Const.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32Const) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32Const) - private static final build.buf.validate.conformance.cases.Int32Const DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32Const(); - } - - public static build.buf.validate.conformance.cases.Int32Const getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32Const 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.Int32Const getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ConstOrBuilder.java deleted file mode 100644 index 1fc6f53d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32ConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32Const) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTE.java deleted file mode 100644 index b92ee1a6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32ExGTELTE} - */ -public final class Int32ExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32ExGTELTE) - Int32ExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32ExGTELTE.class.getName()); - } - // Use Int32ExGTELTE.newBuilder() to construct. - private Int32ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32ExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32ExGTELTE.class, build.buf.validate.conformance.cases.Int32ExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32ExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32ExGTELTE other = (build.buf.validate.conformance.cases.Int32ExGTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32ExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32ExGTELTE 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.Int32ExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32ExGTELTE 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.Int32ExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32ExGTELTE 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.Int32ExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32ExGTELTE 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.Int32ExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32ExGTELTE 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.Int32ExGTELTE 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.Int32ExGTELTE 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.Int32ExGTELTE 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.Int32ExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32ExGTELTE) - build.buf.validate.conformance.cases.Int32ExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32ExGTELTE.class, build.buf.validate.conformance.cases.Int32ExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32ExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32ExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32ExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32ExGTELTE build() { - build.buf.validate.conformance.cases.Int32ExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32ExGTELTE buildPartial() { - build.buf.validate.conformance.cases.Int32ExGTELTE result = new build.buf.validate.conformance.cases.Int32ExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32ExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32ExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.Int32ExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32ExGTELTE other) { - if (other == build.buf.validate.conformance.cases.Int32ExGTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32ExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32ExGTELTE) - private static final build.buf.validate.conformance.cases.Int32ExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32ExGTELTE(); - } - - public static build.buf.validate.conformance.cases.Int32ExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32ExGTELTE 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.Int32ExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTEOrBuilder.java deleted file mode 100644 index 7c3aac24..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32ExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32ExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGT.java deleted file mode 100644 index 42f09975..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32ExLTGT} - */ -public final class Int32ExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32ExLTGT) - Int32ExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32ExLTGT.class.getName()); - } - // Use Int32ExLTGT.newBuilder() to construct. - private Int32ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32ExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32ExLTGT.class, build.buf.validate.conformance.cases.Int32ExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32ExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32ExLTGT other = (build.buf.validate.conformance.cases.Int32ExLTGT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32ExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32ExLTGT 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.Int32ExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32ExLTGT 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.Int32ExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32ExLTGT 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.Int32ExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32ExLTGT 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.Int32ExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32ExLTGT 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.Int32ExLTGT 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.Int32ExLTGT 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.Int32ExLTGT 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.Int32ExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32ExLTGT) - build.buf.validate.conformance.cases.Int32ExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32ExLTGT.class, build.buf.validate.conformance.cases.Int32ExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32ExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32ExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32ExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32ExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32ExLTGT build() { - build.buf.validate.conformance.cases.Int32ExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32ExLTGT buildPartial() { - build.buf.validate.conformance.cases.Int32ExLTGT result = new build.buf.validate.conformance.cases.Int32ExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32ExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32ExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.Int32ExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32ExLTGT other) { - if (other == build.buf.validate.conformance.cases.Int32ExLTGT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32ExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32ExLTGT) - private static final build.buf.validate.conformance.cases.Int32ExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32ExLTGT(); - } - - public static build.buf.validate.conformance.cases.Int32ExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32ExLTGT 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.Int32ExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGTOrBuilder.java deleted file mode 100644 index 9f6202c1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32ExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32ExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Example.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Example.java deleted file mode 100644 index 45f5a413..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Example.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32Example} - */ -public final class Int32Example extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32Example) - Int32ExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32Example.class.getName()); - } - // Use Int32Example.newBuilder() to construct. - private Int32Example(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32Example() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32Example.class, build.buf.validate.conformance.cases.Int32Example.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32Example)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32Example other = (build.buf.validate.conformance.cases.Int32Example) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32Example parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32Example 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.Int32Example parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32Example 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.Int32Example parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32Example 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.Int32Example parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32Example 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.Int32Example parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32Example 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.Int32Example 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.Int32Example 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.Int32Example 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.Int32Example} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32Example) - build.buf.validate.conformance.cases.Int32ExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32Example.class, build.buf.validate.conformance.cases.Int32Example.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32Example.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Example_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32Example getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32Example.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32Example build() { - build.buf.validate.conformance.cases.Int32Example result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32Example buildPartial() { - build.buf.validate.conformance.cases.Int32Example result = new build.buf.validate.conformance.cases.Int32Example(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32Example result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32Example) { - return mergeFrom((build.buf.validate.conformance.cases.Int32Example)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32Example other) { - if (other == build.buf.validate.conformance.cases.Int32Example.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32Example) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32Example) - private static final build.buf.validate.conformance.cases.Int32Example DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32Example(); - } - - public static build.buf.validate.conformance.cases.Int32Example getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32Example 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.Int32Example getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExampleOrBuilder.java deleted file mode 100644 index 1c68e374..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32ExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32ExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32Example) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GT.java deleted file mode 100644 index 13e20558..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32GT} - */ -public final class Int32GT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32GT) - Int32GTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32GT.class.getName()); - } - // Use Int32GT.newBuilder() to construct. - private Int32GT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32GT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32GT.class, build.buf.validate.conformance.cases.Int32GT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32GT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32GT other = (build.buf.validate.conformance.cases.Int32GT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32GT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GT 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.Int32GT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GT 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.Int32GT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GT 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.Int32GT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32GT 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.Int32GT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32GT 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.Int32GT 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.Int32GT 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.Int32GT 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.Int32GT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32GT) - build.buf.validate.conformance.cases.Int32GTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32GT.class, build.buf.validate.conformance.cases.Int32GT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32GT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32GT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GT build() { - build.buf.validate.conformance.cases.Int32GT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GT buildPartial() { - build.buf.validate.conformance.cases.Int32GT result = new build.buf.validate.conformance.cases.Int32GT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32GT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32GT) { - return mergeFrom((build.buf.validate.conformance.cases.Int32GT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32GT other) { - if (other == build.buf.validate.conformance.cases.Int32GT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32GT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32GT) - private static final build.buf.validate.conformance.cases.Int32GT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32GT(); - } - - public static build.buf.validate.conformance.cases.Int32GT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32GT 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.Int32GT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTE.java deleted file mode 100644 index 94d0cc2e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32GTE} - */ -public final class Int32GTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32GTE) - Int32GTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32GTE.class.getName()); - } - // Use Int32GTE.newBuilder() to construct. - private Int32GTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32GTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32GTE.class, build.buf.validate.conformance.cases.Int32GTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32GTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32GTE other = (build.buf.validate.conformance.cases.Int32GTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32GTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GTE 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.Int32GTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GTE 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.Int32GTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GTE 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.Int32GTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32GTE 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.Int32GTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32GTE 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.Int32GTE 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.Int32GTE 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.Int32GTE 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.Int32GTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32GTE) - build.buf.validate.conformance.cases.Int32GTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32GTE.class, build.buf.validate.conformance.cases.Int32GTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32GTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32GTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GTE build() { - build.buf.validate.conformance.cases.Int32GTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GTE buildPartial() { - build.buf.validate.conformance.cases.Int32GTE result = new build.buf.validate.conformance.cases.Int32GTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32GTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32GTE) { - return mergeFrom((build.buf.validate.conformance.cases.Int32GTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32GTE other) { - if (other == build.buf.validate.conformance.cases.Int32GTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32GTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32GTE) - private static final build.buf.validate.conformance.cases.Int32GTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32GTE(); - } - - public static build.buf.validate.conformance.cases.Int32GTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32GTE 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.Int32GTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTE.java deleted file mode 100644 index 3201fc11..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32GTELTE} - */ -public final class Int32GTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32GTELTE) - Int32GTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32GTELTE.class.getName()); - } - // Use Int32GTELTE.newBuilder() to construct. - private Int32GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32GTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32GTELTE.class, build.buf.validate.conformance.cases.Int32GTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32GTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32GTELTE other = (build.buf.validate.conformance.cases.Int32GTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32GTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GTELTE 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.Int32GTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GTELTE 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.Int32GTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GTELTE 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.Int32GTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32GTELTE 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.Int32GTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32GTELTE 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.Int32GTELTE 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.Int32GTELTE 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.Int32GTELTE 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.Int32GTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32GTELTE) - build.buf.validate.conformance.cases.Int32GTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32GTELTE.class, build.buf.validate.conformance.cases.Int32GTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32GTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32GTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GTELTE build() { - build.buf.validate.conformance.cases.Int32GTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GTELTE buildPartial() { - build.buf.validate.conformance.cases.Int32GTELTE result = new build.buf.validate.conformance.cases.Int32GTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32GTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32GTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.Int32GTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32GTELTE other) { - if (other == build.buf.validate.conformance.cases.Int32GTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32GTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32GTELTE) - private static final build.buf.validate.conformance.cases.Int32GTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32GTELTE(); - } - - public static build.buf.validate.conformance.cases.Int32GTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32GTELTE 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.Int32GTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTEOrBuilder.java deleted file mode 100644 index b729758c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32GTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32GTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTEOrBuilder.java deleted file mode 100644 index 8f114289..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32GTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32GTE) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLT.java deleted file mode 100644 index e85de08c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32GTLT} - */ -public final class Int32GTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32GTLT) - Int32GTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32GTLT.class.getName()); - } - // Use Int32GTLT.newBuilder() to construct. - private Int32GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32GTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32GTLT.class, build.buf.validate.conformance.cases.Int32GTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32GTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32GTLT other = (build.buf.validate.conformance.cases.Int32GTLT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32GTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GTLT 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.Int32GTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GTLT 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.Int32GTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32GTLT 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.Int32GTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32GTLT 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.Int32GTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32GTLT 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.Int32GTLT 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.Int32GTLT 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.Int32GTLT 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.Int32GTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32GTLT) - build.buf.validate.conformance.cases.Int32GTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32GTLT.class, build.buf.validate.conformance.cases.Int32GTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32GTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32GTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32GTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GTLT build() { - build.buf.validate.conformance.cases.Int32GTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32GTLT buildPartial() { - build.buf.validate.conformance.cases.Int32GTLT result = new build.buf.validate.conformance.cases.Int32GTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32GTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32GTLT) { - return mergeFrom((build.buf.validate.conformance.cases.Int32GTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32GTLT other) { - if (other == build.buf.validate.conformance.cases.Int32GTLT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32GTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32GTLT) - private static final build.buf.validate.conformance.cases.Int32GTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32GTLT(); - } - - public static build.buf.validate.conformance.cases.Int32GTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32GTLT 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.Int32GTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLTOrBuilder.java deleted file mode 100644 index dd014254..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32GTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32GTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTOrBuilder.java deleted file mode 100644 index 5a5a469f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32GTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32GTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32GT) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Ignore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Ignore.java deleted file mode 100644 index b3a408f8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32Ignore.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32Ignore} - */ -public final class Int32Ignore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32Ignore) - Int32IgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32Ignore.class.getName()); - } - // Use Int32Ignore.newBuilder() to construct. - private Int32Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32Ignore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32Ignore.class, build.buf.validate.conformance.cases.Int32Ignore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32Ignore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32Ignore other = (build.buf.validate.conformance.cases.Int32Ignore) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32Ignore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32Ignore 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.Int32Ignore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32Ignore 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.Int32Ignore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32Ignore 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.Int32Ignore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32Ignore 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.Int32Ignore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32Ignore 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.Int32Ignore 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.Int32Ignore 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.Int32Ignore 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.Int32Ignore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32Ignore) - build.buf.validate.conformance.cases.Int32IgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32Ignore.class, build.buf.validate.conformance.cases.Int32Ignore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32Ignore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32Ignore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32Ignore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32Ignore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32Ignore build() { - build.buf.validate.conformance.cases.Int32Ignore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32Ignore buildPartial() { - build.buf.validate.conformance.cases.Int32Ignore result = new build.buf.validate.conformance.cases.Int32Ignore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32Ignore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32Ignore) { - return mergeFrom((build.buf.validate.conformance.cases.Int32Ignore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32Ignore other) { - if (other == build.buf.validate.conformance.cases.Int32Ignore.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32Ignore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32Ignore) - private static final build.buf.validate.conformance.cases.Int32Ignore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32Ignore(); - } - - public static build.buf.validate.conformance.cases.Int32Ignore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32Ignore 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.Int32Ignore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IgnoreOrBuilder.java deleted file mode 100644 index 9f8ecb73..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32IgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32Ignore) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32In.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32In.java deleted file mode 100644 index 21c20d5f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32In.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32In} - */ -public final class Int32In extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32In) - Int32InOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32In.class.getName()); - } - // Use Int32In.newBuilder() to construct. - private Int32In(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32In() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32In.class, build.buf.validate.conformance.cases.Int32In.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32In)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32In other = (build.buf.validate.conformance.cases.Int32In) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32In parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32In 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.Int32In parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32In 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.Int32In parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32In 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.Int32In parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32In 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.Int32In parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32In 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.Int32In 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.Int32In 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.Int32In 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.Int32In} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32In) - build.buf.validate.conformance.cases.Int32InOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32In.class, build.buf.validate.conformance.cases.Int32In.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32In.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32In_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32In getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32In.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32In build() { - build.buf.validate.conformance.cases.Int32In result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32In buildPartial() { - build.buf.validate.conformance.cases.Int32In result = new build.buf.validate.conformance.cases.Int32In(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32In result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32In) { - return mergeFrom((build.buf.validate.conformance.cases.Int32In)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32In other) { - if (other == build.buf.validate.conformance.cases.Int32In.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32In) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32In) - private static final build.buf.validate.conformance.cases.Int32In DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32In(); - } - - public static build.buf.validate.conformance.cases.Int32In getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32In 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.Int32In getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32InOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32InOrBuilder.java deleted file mode 100644 index 7b5d51b3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32InOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32InOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32In) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectType.java deleted file mode 100644 index e6a6a5fb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectType.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32IncorrectType} - */ -public final class Int32IncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32IncorrectType) - Int32IncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32IncorrectType.class.getName()); - } - // Use Int32IncorrectType.newBuilder() to construct. - private Int32IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32IncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32IncorrectType.class, build.buf.validate.conformance.cases.Int32IncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32IncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32IncorrectType other = (build.buf.validate.conformance.cases.Int32IncorrectType) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32IncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32IncorrectType 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.Int32IncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32IncorrectType 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.Int32IncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32IncorrectType 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.Int32IncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32IncorrectType 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.Int32IncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32IncorrectType 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.Int32IncorrectType 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.Int32IncorrectType 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.Int32IncorrectType 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.Int32IncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32IncorrectType) - build.buf.validate.conformance.cases.Int32IncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32IncorrectType.class, build.buf.validate.conformance.cases.Int32IncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32IncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32IncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32IncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32IncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32IncorrectType build() { - build.buf.validate.conformance.cases.Int32IncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32IncorrectType buildPartial() { - build.buf.validate.conformance.cases.Int32IncorrectType result = new build.buf.validate.conformance.cases.Int32IncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32IncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32IncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.Int32IncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32IncorrectType other) { - if (other == build.buf.validate.conformance.cases.Int32IncorrectType.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32IncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32IncorrectType) - private static final build.buf.validate.conformance.cases.Int32IncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32IncorrectType(); - } - - public static build.buf.validate.conformance.cases.Int32IncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32IncorrectType 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.Int32IncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectTypeOrBuilder.java deleted file mode 100644 index 08fdd842..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32IncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32IncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32IncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LT.java deleted file mode 100644 index 91ac7e45..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32LT} - */ -public final class Int32LT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32LT) - Int32LTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32LT.class.getName()); - } - // Use Int32LT.newBuilder() to construct. - private Int32LT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32LT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32LT.class, build.buf.validate.conformance.cases.Int32LT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32LT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32LT other = (build.buf.validate.conformance.cases.Int32LT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32LT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32LT 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.Int32LT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32LT 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.Int32LT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32LT 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.Int32LT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32LT 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.Int32LT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32LT 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.Int32LT 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.Int32LT 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.Int32LT 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.Int32LT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32LT) - build.buf.validate.conformance.cases.Int32LTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32LT.class, build.buf.validate.conformance.cases.Int32LT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32LT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32LT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32LT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32LT build() { - build.buf.validate.conformance.cases.Int32LT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32LT buildPartial() { - build.buf.validate.conformance.cases.Int32LT result = new build.buf.validate.conformance.cases.Int32LT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32LT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32LT) { - return mergeFrom((build.buf.validate.conformance.cases.Int32LT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32LT other) { - if (other == build.buf.validate.conformance.cases.Int32LT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32LT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32LT) - private static final build.buf.validate.conformance.cases.Int32LT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32LT(); - } - - public static build.buf.validate.conformance.cases.Int32LT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32LT 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.Int32LT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTE.java deleted file mode 100644 index 6fc60d94..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32LTE} - */ -public final class Int32LTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32LTE) - Int32LTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32LTE.class.getName()); - } - // Use Int32LTE.newBuilder() to construct. - private Int32LTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32LTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32LTE.class, build.buf.validate.conformance.cases.Int32LTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32LTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32LTE other = (build.buf.validate.conformance.cases.Int32LTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32LTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32LTE 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.Int32LTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32LTE 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.Int32LTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32LTE 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.Int32LTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32LTE 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.Int32LTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32LTE 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.Int32LTE 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.Int32LTE 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.Int32LTE 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.Int32LTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32LTE) - build.buf.validate.conformance.cases.Int32LTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32LTE.class, build.buf.validate.conformance.cases.Int32LTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32LTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32LTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32LTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32LTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32LTE build() { - build.buf.validate.conformance.cases.Int32LTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32LTE buildPartial() { - build.buf.validate.conformance.cases.Int32LTE result = new build.buf.validate.conformance.cases.Int32LTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32LTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32LTE) { - return mergeFrom((build.buf.validate.conformance.cases.Int32LTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32LTE other) { - if (other == build.buf.validate.conformance.cases.Int32LTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32LTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32LTE) - private static final build.buf.validate.conformance.cases.Int32LTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32LTE(); - } - - public static build.buf.validate.conformance.cases.Int32LTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32LTE 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.Int32LTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTEOrBuilder.java deleted file mode 100644 index 1e0aaa20..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32LTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32LTE) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTOrBuilder.java deleted file mode 100644 index 71ff3498..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32LTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32LTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32LT) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32None.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32None.java deleted file mode 100644 index 976f2bad..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32None.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32None} - */ -public final class Int32None extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32None) - Int32NoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32None.class.getName()); - } - // Use Int32None.newBuilder() to construct. - private Int32None(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32None() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32None.class, build.buf.validate.conformance.cases.Int32None.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32None)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32None other = (build.buf.validate.conformance.cases.Int32None) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32None parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32None 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.Int32None parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32None 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.Int32None parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32None 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.Int32None parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32None 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.Int32None parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32None 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.Int32None 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.Int32None 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.Int32None 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.Int32None} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32None) - build.buf.validate.conformance.cases.Int32NoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32None.class, build.buf.validate.conformance.cases.Int32None.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32None.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32None_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32None getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32None.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32None build() { - build.buf.validate.conformance.cases.Int32None result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32None buildPartial() { - build.buf.validate.conformance.cases.Int32None result = new build.buf.validate.conformance.cases.Int32None(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32None result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32None) { - return mergeFrom((build.buf.validate.conformance.cases.Int32None)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32None other) { - if (other == build.buf.validate.conformance.cases.Int32None.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32None) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32None) - private static final build.buf.validate.conformance.cases.Int32None DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32None(); - } - - public static build.buf.validate.conformance.cases.Int32None getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32None 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.Int32None getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NoneOrBuilder.java deleted file mode 100644 index 7cd0ca65..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32NoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32None) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val"]; - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotIn.java deleted file mode 100644 index 5d6e665f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotIn.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int32NotIn} - */ -public final class Int32NotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int32NotIn) - Int32NotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32NotIn.class.getName()); - } - // Use Int32NotIn.newBuilder() to construct. - private Int32NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int32NotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32NotIn.class, build.buf.validate.conformance.cases.Int32NotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Int32NotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int32NotIn other = (build.buf.validate.conformance.cases.Int32NotIn) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int32NotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32NotIn 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.Int32NotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32NotIn 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.Int32NotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int32NotIn 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.Int32NotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int32NotIn 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.Int32NotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int32NotIn 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.Int32NotIn 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.Int32NotIn 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.Int32NotIn 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.Int32NotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int32NotIn) - build.buf.validate.conformance.cases.Int32NotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int32NotIn.class, build.buf.validate.conformance.cases.Int32NotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int32NotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int32NotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32NotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int32NotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32NotIn build() { - build.buf.validate.conformance.cases.Int32NotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int32NotIn buildPartial() { - build.buf.validate.conformance.cases.Int32NotIn result = new build.buf.validate.conformance.cases.Int32NotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int32NotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int32NotIn) { - return mergeFrom((build.buf.validate.conformance.cases.Int32NotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int32NotIn other) { - if (other == build.buf.validate.conformance.cases.Int32NotIn.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int32NotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int32NotIn) - private static final build.buf.validate.conformance.cases.Int32NotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int32NotIn(); - } - - public static build.buf.validate.conformance.cases.Int32NotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32NotIn 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.Int32NotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotInOrBuilder.java deleted file mode 100644 index ec5108cf..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int32NotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int32NotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int32NotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraints.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraints.java deleted file mode 100644 index 68bff3af..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraints.java +++ /dev/null @@ -1,1185 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64BigConstraints} - */ -public final class Int64BigConstraints extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64BigConstraints) - Int64BigConstraintsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64BigConstraints.class.getName()); - } - // Use Int64BigConstraints.newBuilder() to construct. - private Int64BigConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64BigConstraints() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64BigConstraints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64BigConstraints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64BigConstraints.class, build.buf.validate.conformance.cases.Int64BigConstraints.Builder.class); - } - - public static final int LT_POS_FIELD_NUMBER = 1; - private long ltPos_ = 0L; - /** - *
-   * Intentionally choose limits that are outside the range of both signed and unsigned 32-bit integers.
-   * 
- * - * int64 lt_pos = 1 [json_name = "ltPos", (.buf.validate.field) = { ... } - * @return The ltPos. - */ - @java.lang.Override - public long getLtPos() { - return ltPos_; - } - - public static final int LT_NEG_FIELD_NUMBER = 2; - private long ltNeg_ = 0L; - /** - * int64 lt_neg = 2 [json_name = "ltNeg", (.buf.validate.field) = { ... } - * @return The ltNeg. - */ - @java.lang.Override - public long getLtNeg() { - return ltNeg_; - } - - public static final int GT_POS_FIELD_NUMBER = 3; - private long gtPos_ = 0L; - /** - * int64 gt_pos = 3 [json_name = "gtPos", (.buf.validate.field) = { ... } - * @return The gtPos. - */ - @java.lang.Override - public long getGtPos() { - return gtPos_; - } - - public static final int GT_NEG_FIELD_NUMBER = 4; - private long gtNeg_ = 0L; - /** - * int64 gt_neg = 4 [json_name = "gtNeg", (.buf.validate.field) = { ... } - * @return The gtNeg. - */ - @java.lang.Override - public long getGtNeg() { - return gtNeg_; - } - - public static final int LTE_POS_FIELD_NUMBER = 5; - private long ltePos_ = 0L; - /** - * int64 lte_pos = 5 [json_name = "ltePos", (.buf.validate.field) = { ... } - * @return The ltePos. - */ - @java.lang.Override - public long getLtePos() { - return ltePos_; - } - - public static final int LTE_NEG_FIELD_NUMBER = 6; - private long lteNeg_ = 0L; - /** - * int64 lte_neg = 6 [json_name = "lteNeg", (.buf.validate.field) = { ... } - * @return The lteNeg. - */ - @java.lang.Override - public long getLteNeg() { - return lteNeg_; - } - - public static final int GTE_POS_FIELD_NUMBER = 7; - private long gtePos_ = 0L; - /** - * int64 gte_pos = 7 [json_name = "gtePos", (.buf.validate.field) = { ... } - * @return The gtePos. - */ - @java.lang.Override - public long getGtePos() { - return gtePos_; - } - - public static final int GTE_NEG_FIELD_NUMBER = 8; - private long gteNeg_ = 0L; - /** - * int64 gte_neg = 8 [json_name = "gteNeg", (.buf.validate.field) = { ... } - * @return The gteNeg. - */ - @java.lang.Override - public long getGteNeg() { - return gteNeg_; - } - - public static final int CONSTANT_POS_FIELD_NUMBER = 9; - private long constantPos_ = 0L; - /** - * int64 constant_pos = 9 [json_name = "constantPos", (.buf.validate.field) = { ... } - * @return The constantPos. - */ - @java.lang.Override - public long getConstantPos() { - return constantPos_; - } - - public static final int CONSTANT_NEG_FIELD_NUMBER = 10; - private long constantNeg_ = 0L; - /** - * int64 constant_neg = 10 [json_name = "constantNeg", (.buf.validate.field) = { ... } - * @return The constantNeg. - */ - @java.lang.Override - public long getConstantNeg() { - return constantNeg_; - } - - public static final int IN_FIELD_NUMBER = 11; - private long in_ = 0L; - /** - * int64 in = 11 [json_name = "in", (.buf.validate.field) = { ... } - * @return The in. - */ - @java.lang.Override - public long getIn() { - return in_; - } - - public static final int NOTIN_FIELD_NUMBER = 12; - private long notin_ = 0L; - /** - * int64 notin = 12 [json_name = "notin", (.buf.validate.field) = { ... } - * @return The notin. - */ - @java.lang.Override - public long getNotin() { - return notin_; - } - - 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 { - if (ltPos_ != 0L) { - output.writeInt64(1, ltPos_); - } - if (ltNeg_ != 0L) { - output.writeInt64(2, ltNeg_); - } - if (gtPos_ != 0L) { - output.writeInt64(3, gtPos_); - } - if (gtNeg_ != 0L) { - output.writeInt64(4, gtNeg_); - } - if (ltePos_ != 0L) { - output.writeInt64(5, ltePos_); - } - if (lteNeg_ != 0L) { - output.writeInt64(6, lteNeg_); - } - if (gtePos_ != 0L) { - output.writeInt64(7, gtePos_); - } - if (gteNeg_ != 0L) { - output.writeInt64(8, gteNeg_); - } - if (constantPos_ != 0L) { - output.writeInt64(9, constantPos_); - } - if (constantNeg_ != 0L) { - output.writeInt64(10, constantNeg_); - } - if (in_ != 0L) { - output.writeInt64(11, in_); - } - if (notin_ != 0L) { - output.writeInt64(12, notin_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (ltPos_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, ltPos_); - } - if (ltNeg_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, ltNeg_); - } - if (gtPos_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, gtPos_); - } - if (gtNeg_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, gtNeg_); - } - if (ltePos_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, ltePos_); - } - if (lteNeg_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, lteNeg_); - } - if (gtePos_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, gtePos_); - } - if (gteNeg_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, gteNeg_); - } - if (constantPos_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, constantPos_); - } - if (constantNeg_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, constantNeg_); - } - if (in_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, in_); - } - if (notin_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, notin_); - } - 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.Int64BigConstraints)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64BigConstraints other = (build.buf.validate.conformance.cases.Int64BigConstraints) obj; - - if (getLtPos() - != other.getLtPos()) return false; - if (getLtNeg() - != other.getLtNeg()) return false; - if (getGtPos() - != other.getGtPos()) return false; - if (getGtNeg() - != other.getGtNeg()) return false; - if (getLtePos() - != other.getLtePos()) return false; - if (getLteNeg() - != other.getLteNeg()) return false; - if (getGtePos() - != other.getGtePos()) return false; - if (getGteNeg() - != other.getGteNeg()) return false; - if (getConstantPos() - != other.getConstantPos()) return false; - if (getConstantNeg() - != other.getConstantNeg()) return false; - if (getIn() - != other.getIn()) return false; - if (getNotin() - != other.getNotin()) 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(); - hash = (37 * hash) + LT_POS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLtPos()); - hash = (37 * hash) + LT_NEG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLtNeg()); - hash = (37 * hash) + GT_POS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGtPos()); - hash = (37 * hash) + GT_NEG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGtNeg()); - hash = (37 * hash) + LTE_POS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLtePos()); - hash = (37 * hash) + LTE_NEG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLteNeg()); - hash = (37 * hash) + GTE_POS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGtePos()); - hash = (37 * hash) + GTE_NEG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGteNeg()); - hash = (37 * hash) + CONSTANT_POS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConstantPos()); - hash = (37 * hash) + CONSTANT_NEG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConstantNeg()); - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIn()); - hash = (37 * hash) + NOTIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNotin()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64BigConstraints parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64BigConstraints 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.Int64BigConstraints parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64BigConstraints 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.Int64BigConstraints parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64BigConstraints 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.Int64BigConstraints parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64BigConstraints 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.Int64BigConstraints parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64BigConstraints 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.Int64BigConstraints 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.Int64BigConstraints 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.Int64BigConstraints 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.Int64BigConstraints} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64BigConstraints) - build.buf.validate.conformance.cases.Int64BigConstraintsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64BigConstraints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64BigConstraints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64BigConstraints.class, build.buf.validate.conformance.cases.Int64BigConstraints.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64BigConstraints.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - ltPos_ = 0L; - ltNeg_ = 0L; - gtPos_ = 0L; - gtNeg_ = 0L; - ltePos_ = 0L; - lteNeg_ = 0L; - gtePos_ = 0L; - gteNeg_ = 0L; - constantPos_ = 0L; - constantNeg_ = 0L; - in_ = 0L; - notin_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64BigConstraints_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64BigConstraints getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64BigConstraints.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64BigConstraints build() { - build.buf.validate.conformance.cases.Int64BigConstraints result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64BigConstraints buildPartial() { - build.buf.validate.conformance.cases.Int64BigConstraints result = new build.buf.validate.conformance.cases.Int64BigConstraints(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64BigConstraints result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.ltPos_ = ltPos_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.ltNeg_ = ltNeg_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.gtPos_ = gtPos_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.gtNeg_ = gtNeg_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.ltePos_ = ltePos_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.lteNeg_ = lteNeg_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.gtePos_ = gtePos_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.gteNeg_ = gteNeg_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.constantPos_ = constantPos_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.constantNeg_ = constantNeg_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.notin_ = notin_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64BigConstraints) { - return mergeFrom((build.buf.validate.conformance.cases.Int64BigConstraints)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64BigConstraints other) { - if (other == build.buf.validate.conformance.cases.Int64BigConstraints.getDefaultInstance()) return this; - if (other.getLtPos() != 0L) { - setLtPos(other.getLtPos()); - } - if (other.getLtNeg() != 0L) { - setLtNeg(other.getLtNeg()); - } - if (other.getGtPos() != 0L) { - setGtPos(other.getGtPos()); - } - if (other.getGtNeg() != 0L) { - setGtNeg(other.getGtNeg()); - } - if (other.getLtePos() != 0L) { - setLtePos(other.getLtePos()); - } - if (other.getLteNeg() != 0L) { - setLteNeg(other.getLteNeg()); - } - if (other.getGtePos() != 0L) { - setGtePos(other.getGtePos()); - } - if (other.getGteNeg() != 0L) { - setGteNeg(other.getGteNeg()); - } - if (other.getConstantPos() != 0L) { - setConstantPos(other.getConstantPos()); - } - if (other.getConstantNeg() != 0L) { - setConstantNeg(other.getConstantNeg()); - } - if (other.getIn() != 0L) { - setIn(other.getIn()); - } - if (other.getNotin() != 0L) { - setNotin(other.getNotin()); - } - 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 8: { - ltPos_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - ltNeg_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - gtPos_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - gtNeg_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - ltePos_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - lteNeg_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - gtePos_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - gteNeg_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - constantPos_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - constantNeg_ = input.readInt64(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 88: { - in_ = input.readInt64(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 96: { - notin_ = input.readInt64(); - bitField0_ |= 0x00000800; - break; - } // case 96 - 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 long ltPos_ ; - /** - *
-     * Intentionally choose limits that are outside the range of both signed and unsigned 32-bit integers.
-     * 
- * - * int64 lt_pos = 1 [json_name = "ltPos", (.buf.validate.field) = { ... } - * @return The ltPos. - */ - @java.lang.Override - public long getLtPos() { - return ltPos_; - } - /** - *
-     * Intentionally choose limits that are outside the range of both signed and unsigned 32-bit integers.
-     * 
- * - * int64 lt_pos = 1 [json_name = "ltPos", (.buf.validate.field) = { ... } - * @param value The ltPos to set. - * @return This builder for chaining. - */ - public Builder setLtPos(long value) { - - ltPos_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Intentionally choose limits that are outside the range of both signed and unsigned 32-bit integers.
-     * 
- * - * int64 lt_pos = 1 [json_name = "ltPos", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearLtPos() { - bitField0_ = (bitField0_ & ~0x00000001); - ltPos_ = 0L; - onChanged(); - return this; - } - - private long ltNeg_ ; - /** - * int64 lt_neg = 2 [json_name = "ltNeg", (.buf.validate.field) = { ... } - * @return The ltNeg. - */ - @java.lang.Override - public long getLtNeg() { - return ltNeg_; - } - /** - * int64 lt_neg = 2 [json_name = "ltNeg", (.buf.validate.field) = { ... } - * @param value The ltNeg to set. - * @return This builder for chaining. - */ - public Builder setLtNeg(long value) { - - ltNeg_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int64 lt_neg = 2 [json_name = "ltNeg", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearLtNeg() { - bitField0_ = (bitField0_ & ~0x00000002); - ltNeg_ = 0L; - onChanged(); - return this; - } - - private long gtPos_ ; - /** - * int64 gt_pos = 3 [json_name = "gtPos", (.buf.validate.field) = { ... } - * @return The gtPos. - */ - @java.lang.Override - public long getGtPos() { - return gtPos_; - } - /** - * int64 gt_pos = 3 [json_name = "gtPos", (.buf.validate.field) = { ... } - * @param value The gtPos to set. - * @return This builder for chaining. - */ - public Builder setGtPos(long value) { - - gtPos_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 gt_pos = 3 [json_name = "gtPos", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearGtPos() { - bitField0_ = (bitField0_ & ~0x00000004); - gtPos_ = 0L; - onChanged(); - return this; - } - - private long gtNeg_ ; - /** - * int64 gt_neg = 4 [json_name = "gtNeg", (.buf.validate.field) = { ... } - * @return The gtNeg. - */ - @java.lang.Override - public long getGtNeg() { - return gtNeg_; - } - /** - * int64 gt_neg = 4 [json_name = "gtNeg", (.buf.validate.field) = { ... } - * @param value The gtNeg to set. - * @return This builder for chaining. - */ - public Builder setGtNeg(long value) { - - gtNeg_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * int64 gt_neg = 4 [json_name = "gtNeg", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearGtNeg() { - bitField0_ = (bitField0_ & ~0x00000008); - gtNeg_ = 0L; - onChanged(); - return this; - } - - private long ltePos_ ; - /** - * int64 lte_pos = 5 [json_name = "ltePos", (.buf.validate.field) = { ... } - * @return The ltePos. - */ - @java.lang.Override - public long getLtePos() { - return ltePos_; - } - /** - * int64 lte_pos = 5 [json_name = "ltePos", (.buf.validate.field) = { ... } - * @param value The ltePos to set. - * @return This builder for chaining. - */ - public Builder setLtePos(long value) { - - ltePos_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * int64 lte_pos = 5 [json_name = "ltePos", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearLtePos() { - bitField0_ = (bitField0_ & ~0x00000010); - ltePos_ = 0L; - onChanged(); - return this; - } - - private long lteNeg_ ; - /** - * int64 lte_neg = 6 [json_name = "lteNeg", (.buf.validate.field) = { ... } - * @return The lteNeg. - */ - @java.lang.Override - public long getLteNeg() { - return lteNeg_; - } - /** - * int64 lte_neg = 6 [json_name = "lteNeg", (.buf.validate.field) = { ... } - * @param value The lteNeg to set. - * @return This builder for chaining. - */ - public Builder setLteNeg(long value) { - - lteNeg_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * int64 lte_neg = 6 [json_name = "lteNeg", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearLteNeg() { - bitField0_ = (bitField0_ & ~0x00000020); - lteNeg_ = 0L; - onChanged(); - return this; - } - - private long gtePos_ ; - /** - * int64 gte_pos = 7 [json_name = "gtePos", (.buf.validate.field) = { ... } - * @return The gtePos. - */ - @java.lang.Override - public long getGtePos() { - return gtePos_; - } - /** - * int64 gte_pos = 7 [json_name = "gtePos", (.buf.validate.field) = { ... } - * @param value The gtePos to set. - * @return This builder for chaining. - */ - public Builder setGtePos(long value) { - - gtePos_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * int64 gte_pos = 7 [json_name = "gtePos", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearGtePos() { - bitField0_ = (bitField0_ & ~0x00000040); - gtePos_ = 0L; - onChanged(); - return this; - } - - private long gteNeg_ ; - /** - * int64 gte_neg = 8 [json_name = "gteNeg", (.buf.validate.field) = { ... } - * @return The gteNeg. - */ - @java.lang.Override - public long getGteNeg() { - return gteNeg_; - } - /** - * int64 gte_neg = 8 [json_name = "gteNeg", (.buf.validate.field) = { ... } - * @param value The gteNeg to set. - * @return This builder for chaining. - */ - public Builder setGteNeg(long value) { - - gteNeg_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * int64 gte_neg = 8 [json_name = "gteNeg", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearGteNeg() { - bitField0_ = (bitField0_ & ~0x00000080); - gteNeg_ = 0L; - onChanged(); - return this; - } - - private long constantPos_ ; - /** - * int64 constant_pos = 9 [json_name = "constantPos", (.buf.validate.field) = { ... } - * @return The constantPos. - */ - @java.lang.Override - public long getConstantPos() { - return constantPos_; - } - /** - * int64 constant_pos = 9 [json_name = "constantPos", (.buf.validate.field) = { ... } - * @param value The constantPos to set. - * @return This builder for chaining. - */ - public Builder setConstantPos(long value) { - - constantPos_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * int64 constant_pos = 9 [json_name = "constantPos", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearConstantPos() { - bitField0_ = (bitField0_ & ~0x00000100); - constantPos_ = 0L; - onChanged(); - return this; - } - - private long constantNeg_ ; - /** - * int64 constant_neg = 10 [json_name = "constantNeg", (.buf.validate.field) = { ... } - * @return The constantNeg. - */ - @java.lang.Override - public long getConstantNeg() { - return constantNeg_; - } - /** - * int64 constant_neg = 10 [json_name = "constantNeg", (.buf.validate.field) = { ... } - * @param value The constantNeg to set. - * @return This builder for chaining. - */ - public Builder setConstantNeg(long value) { - - constantNeg_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * int64 constant_neg = 10 [json_name = "constantNeg", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearConstantNeg() { - bitField0_ = (bitField0_ & ~0x00000200); - constantNeg_ = 0L; - onChanged(); - return this; - } - - private long in_ ; - /** - * int64 in = 11 [json_name = "in", (.buf.validate.field) = { ... } - * @return The in. - */ - @java.lang.Override - public long getIn() { - return in_; - } - /** - * int64 in = 11 [json_name = "in", (.buf.validate.field) = { ... } - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn(long value) { - - in_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * int64 in = 11 [json_name = "in", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - bitField0_ = (bitField0_ & ~0x00000400); - in_ = 0L; - onChanged(); - return this; - } - - private long notin_ ; - /** - * int64 notin = 12 [json_name = "notin", (.buf.validate.field) = { ... } - * @return The notin. - */ - @java.lang.Override - public long getNotin() { - return notin_; - } - /** - * int64 notin = 12 [json_name = "notin", (.buf.validate.field) = { ... } - * @param value The notin to set. - * @return This builder for chaining. - */ - public Builder setNotin(long value) { - - notin_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * int64 notin = 12 [json_name = "notin", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotin() { - bitField0_ = (bitField0_ & ~0x00000800); - notin_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64BigConstraints) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64BigConstraints) - private static final build.buf.validate.conformance.cases.Int64BigConstraints DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64BigConstraints(); - } - - public static build.buf.validate.conformance.cases.Int64BigConstraints getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64BigConstraints 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.Int64BigConstraints getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraintsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraintsOrBuilder.java deleted file mode 100644 index c2ff2b1c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64BigConstraintsOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64BigConstraintsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64BigConstraints) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Intentionally choose limits that are outside the range of both signed and unsigned 32-bit integers.
-   * 
- * - * int64 lt_pos = 1 [json_name = "ltPos", (.buf.validate.field) = { ... } - * @return The ltPos. - */ - long getLtPos(); - - /** - * int64 lt_neg = 2 [json_name = "ltNeg", (.buf.validate.field) = { ... } - * @return The ltNeg. - */ - long getLtNeg(); - - /** - * int64 gt_pos = 3 [json_name = "gtPos", (.buf.validate.field) = { ... } - * @return The gtPos. - */ - long getGtPos(); - - /** - * int64 gt_neg = 4 [json_name = "gtNeg", (.buf.validate.field) = { ... } - * @return The gtNeg. - */ - long getGtNeg(); - - /** - * int64 lte_pos = 5 [json_name = "ltePos", (.buf.validate.field) = { ... } - * @return The ltePos. - */ - long getLtePos(); - - /** - * int64 lte_neg = 6 [json_name = "lteNeg", (.buf.validate.field) = { ... } - * @return The lteNeg. - */ - long getLteNeg(); - - /** - * int64 gte_pos = 7 [json_name = "gtePos", (.buf.validate.field) = { ... } - * @return The gtePos. - */ - long getGtePos(); - - /** - * int64 gte_neg = 8 [json_name = "gteNeg", (.buf.validate.field) = { ... } - * @return The gteNeg. - */ - long getGteNeg(); - - /** - * int64 constant_pos = 9 [json_name = "constantPos", (.buf.validate.field) = { ... } - * @return The constantPos. - */ - long getConstantPos(); - - /** - * int64 constant_neg = 10 [json_name = "constantNeg", (.buf.validate.field) = { ... } - * @return The constantNeg. - */ - long getConstantNeg(); - - /** - * int64 in = 11 [json_name = "in", (.buf.validate.field) = { ... } - * @return The in. - */ - long getIn(); - - /** - * int64 notin = 12 [json_name = "notin", (.buf.validate.field) = { ... } - * @return The notin. - */ - long getNotin(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Const.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Const.java deleted file mode 100644 index 87ccbbae..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Const.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64Const} - */ -public final class Int64Const extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64Const) - Int64ConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64Const.class.getName()); - } - // Use Int64Const.newBuilder() to construct. - private Int64Const(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64Const() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64Const.class, build.buf.validate.conformance.cases.Int64Const.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64Const)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64Const other = (build.buf.validate.conformance.cases.Int64Const) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64Const parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64Const 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.Int64Const parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64Const 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.Int64Const parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64Const 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.Int64Const parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64Const 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.Int64Const parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64Const 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.Int64Const 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.Int64Const 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.Int64Const 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.Int64Const} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64Const) - build.buf.validate.conformance.cases.Int64ConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64Const.class, build.buf.validate.conformance.cases.Int64Const.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64Const.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Const_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64Const getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64Const.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64Const build() { - build.buf.validate.conformance.cases.Int64Const result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64Const buildPartial() { - build.buf.validate.conformance.cases.Int64Const result = new build.buf.validate.conformance.cases.Int64Const(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64Const result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64Const) { - return mergeFrom((build.buf.validate.conformance.cases.Int64Const)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64Const other) { - if (other == build.buf.validate.conformance.cases.Int64Const.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64Const) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64Const) - private static final build.buf.validate.conformance.cases.Int64Const DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64Const(); - } - - public static build.buf.validate.conformance.cases.Int64Const getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64Const 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.Int64Const getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ConstOrBuilder.java deleted file mode 100644 index 207da11a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64ConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64Const) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTE.java deleted file mode 100644 index 4ce3a3d6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64ExGTELTE} - */ -public final class Int64ExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64ExGTELTE) - Int64ExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64ExGTELTE.class.getName()); - } - // Use Int64ExGTELTE.newBuilder() to construct. - private Int64ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64ExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64ExGTELTE.class, build.buf.validate.conformance.cases.Int64ExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64ExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64ExGTELTE other = (build.buf.validate.conformance.cases.Int64ExGTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64ExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64ExGTELTE 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.Int64ExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64ExGTELTE 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.Int64ExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64ExGTELTE 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.Int64ExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64ExGTELTE 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.Int64ExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64ExGTELTE 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.Int64ExGTELTE 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.Int64ExGTELTE 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.Int64ExGTELTE 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.Int64ExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64ExGTELTE) - build.buf.validate.conformance.cases.Int64ExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64ExGTELTE.class, build.buf.validate.conformance.cases.Int64ExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64ExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64ExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64ExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64ExGTELTE build() { - build.buf.validate.conformance.cases.Int64ExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64ExGTELTE buildPartial() { - build.buf.validate.conformance.cases.Int64ExGTELTE result = new build.buf.validate.conformance.cases.Int64ExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64ExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64ExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.Int64ExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64ExGTELTE other) { - if (other == build.buf.validate.conformance.cases.Int64ExGTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64ExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64ExGTELTE) - private static final build.buf.validate.conformance.cases.Int64ExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64ExGTELTE(); - } - - public static build.buf.validate.conformance.cases.Int64ExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64ExGTELTE 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.Int64ExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTEOrBuilder.java deleted file mode 100644 index f2dddde8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64ExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64ExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGT.java deleted file mode 100644 index d45466f7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64ExLTGT} - */ -public final class Int64ExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64ExLTGT) - Int64ExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64ExLTGT.class.getName()); - } - // Use Int64ExLTGT.newBuilder() to construct. - private Int64ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64ExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64ExLTGT.class, build.buf.validate.conformance.cases.Int64ExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64ExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64ExLTGT other = (build.buf.validate.conformance.cases.Int64ExLTGT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64ExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64ExLTGT 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.Int64ExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64ExLTGT 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.Int64ExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64ExLTGT 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.Int64ExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64ExLTGT 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.Int64ExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64ExLTGT 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.Int64ExLTGT 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.Int64ExLTGT 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.Int64ExLTGT 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.Int64ExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64ExLTGT) - build.buf.validate.conformance.cases.Int64ExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64ExLTGT.class, build.buf.validate.conformance.cases.Int64ExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64ExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64ExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64ExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64ExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64ExLTGT build() { - build.buf.validate.conformance.cases.Int64ExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64ExLTGT buildPartial() { - build.buf.validate.conformance.cases.Int64ExLTGT result = new build.buf.validate.conformance.cases.Int64ExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64ExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64ExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.Int64ExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64ExLTGT other) { - if (other == build.buf.validate.conformance.cases.Int64ExLTGT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64ExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64ExLTGT) - private static final build.buf.validate.conformance.cases.Int64ExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64ExLTGT(); - } - - public static build.buf.validate.conformance.cases.Int64ExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64ExLTGT 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.Int64ExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGTOrBuilder.java deleted file mode 100644 index 06e6858d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64ExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64ExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Example.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Example.java deleted file mode 100644 index dc551acb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Example.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64Example} - */ -public final class Int64Example extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64Example) - Int64ExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64Example.class.getName()); - } - // Use Int64Example.newBuilder() to construct. - private Int64Example(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64Example() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64Example.class, build.buf.validate.conformance.cases.Int64Example.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64Example)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64Example other = (build.buf.validate.conformance.cases.Int64Example) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64Example parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64Example 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.Int64Example parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64Example 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.Int64Example parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64Example 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.Int64Example parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64Example 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.Int64Example parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64Example 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.Int64Example 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.Int64Example 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.Int64Example 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.Int64Example} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64Example) - build.buf.validate.conformance.cases.Int64ExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64Example.class, build.buf.validate.conformance.cases.Int64Example.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64Example.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Example_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64Example getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64Example.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64Example build() { - build.buf.validate.conformance.cases.Int64Example result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64Example buildPartial() { - build.buf.validate.conformance.cases.Int64Example result = new build.buf.validate.conformance.cases.Int64Example(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64Example result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64Example) { - return mergeFrom((build.buf.validate.conformance.cases.Int64Example)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64Example other) { - if (other == build.buf.validate.conformance.cases.Int64Example.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64Example) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64Example) - private static final build.buf.validate.conformance.cases.Int64Example DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64Example(); - } - - public static build.buf.validate.conformance.cases.Int64Example getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64Example 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.Int64Example getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExampleOrBuilder.java deleted file mode 100644 index 44deda41..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64ExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64ExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64Example) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GT.java deleted file mode 100644 index 053be054..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64GT} - */ -public final class Int64GT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64GT) - Int64GTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64GT.class.getName()); - } - // Use Int64GT.newBuilder() to construct. - private Int64GT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64GT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64GT.class, build.buf.validate.conformance.cases.Int64GT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64GT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64GT other = (build.buf.validate.conformance.cases.Int64GT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64GT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GT 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.Int64GT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GT 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.Int64GT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GT 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.Int64GT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64GT 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.Int64GT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64GT 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.Int64GT 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.Int64GT 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.Int64GT 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.Int64GT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64GT) - build.buf.validate.conformance.cases.Int64GTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64GT.class, build.buf.validate.conformance.cases.Int64GT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64GT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64GT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GT build() { - build.buf.validate.conformance.cases.Int64GT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GT buildPartial() { - build.buf.validate.conformance.cases.Int64GT result = new build.buf.validate.conformance.cases.Int64GT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64GT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64GT) { - return mergeFrom((build.buf.validate.conformance.cases.Int64GT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64GT other) { - if (other == build.buf.validate.conformance.cases.Int64GT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64GT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64GT) - private static final build.buf.validate.conformance.cases.Int64GT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64GT(); - } - - public static build.buf.validate.conformance.cases.Int64GT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64GT 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.Int64GT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTE.java deleted file mode 100644 index ac00de1f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64GTE} - */ -public final class Int64GTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64GTE) - Int64GTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64GTE.class.getName()); - } - // Use Int64GTE.newBuilder() to construct. - private Int64GTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64GTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64GTE.class, build.buf.validate.conformance.cases.Int64GTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64GTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64GTE other = (build.buf.validate.conformance.cases.Int64GTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64GTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GTE 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.Int64GTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GTE 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.Int64GTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GTE 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.Int64GTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64GTE 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.Int64GTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64GTE 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.Int64GTE 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.Int64GTE 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.Int64GTE 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.Int64GTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64GTE) - build.buf.validate.conformance.cases.Int64GTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64GTE.class, build.buf.validate.conformance.cases.Int64GTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64GTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64GTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GTE build() { - build.buf.validate.conformance.cases.Int64GTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GTE buildPartial() { - build.buf.validate.conformance.cases.Int64GTE result = new build.buf.validate.conformance.cases.Int64GTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64GTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64GTE) { - return mergeFrom((build.buf.validate.conformance.cases.Int64GTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64GTE other) { - if (other == build.buf.validate.conformance.cases.Int64GTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64GTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64GTE) - private static final build.buf.validate.conformance.cases.Int64GTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64GTE(); - } - - public static build.buf.validate.conformance.cases.Int64GTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64GTE 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.Int64GTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTE.java deleted file mode 100644 index d8dfed7f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64GTELTE} - */ -public final class Int64GTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64GTELTE) - Int64GTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64GTELTE.class.getName()); - } - // Use Int64GTELTE.newBuilder() to construct. - private Int64GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64GTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64GTELTE.class, build.buf.validate.conformance.cases.Int64GTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64GTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64GTELTE other = (build.buf.validate.conformance.cases.Int64GTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64GTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GTELTE 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.Int64GTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GTELTE 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.Int64GTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GTELTE 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.Int64GTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64GTELTE 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.Int64GTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64GTELTE 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.Int64GTELTE 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.Int64GTELTE 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.Int64GTELTE 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.Int64GTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64GTELTE) - build.buf.validate.conformance.cases.Int64GTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64GTELTE.class, build.buf.validate.conformance.cases.Int64GTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64GTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64GTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GTELTE build() { - build.buf.validate.conformance.cases.Int64GTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GTELTE buildPartial() { - build.buf.validate.conformance.cases.Int64GTELTE result = new build.buf.validate.conformance.cases.Int64GTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64GTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64GTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.Int64GTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64GTELTE other) { - if (other == build.buf.validate.conformance.cases.Int64GTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64GTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64GTELTE) - private static final build.buf.validate.conformance.cases.Int64GTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64GTELTE(); - } - - public static build.buf.validate.conformance.cases.Int64GTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64GTELTE 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.Int64GTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTEOrBuilder.java deleted file mode 100644 index 805a39c1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64GTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64GTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTEOrBuilder.java deleted file mode 100644 index a365f6d3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64GTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64GTE) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLT.java deleted file mode 100644 index 68972d9a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64GTLT} - */ -public final class Int64GTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64GTLT) - Int64GTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64GTLT.class.getName()); - } - // Use Int64GTLT.newBuilder() to construct. - private Int64GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64GTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64GTLT.class, build.buf.validate.conformance.cases.Int64GTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64GTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64GTLT other = (build.buf.validate.conformance.cases.Int64GTLT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64GTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GTLT 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.Int64GTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GTLT 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.Int64GTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64GTLT 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.Int64GTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64GTLT 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.Int64GTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64GTLT 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.Int64GTLT 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.Int64GTLT 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.Int64GTLT 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.Int64GTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64GTLT) - build.buf.validate.conformance.cases.Int64GTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64GTLT.class, build.buf.validate.conformance.cases.Int64GTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64GTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64GTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64GTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GTLT build() { - build.buf.validate.conformance.cases.Int64GTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64GTLT buildPartial() { - build.buf.validate.conformance.cases.Int64GTLT result = new build.buf.validate.conformance.cases.Int64GTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64GTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64GTLT) { - return mergeFrom((build.buf.validate.conformance.cases.Int64GTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64GTLT other) { - if (other == build.buf.validate.conformance.cases.Int64GTLT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64GTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64GTLT) - private static final build.buf.validate.conformance.cases.Int64GTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64GTLT(); - } - - public static build.buf.validate.conformance.cases.Int64GTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64GTLT 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.Int64GTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLTOrBuilder.java deleted file mode 100644 index d6c5f525..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64GTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64GTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTOrBuilder.java deleted file mode 100644 index f054ec04..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64GTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64GTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64GT) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Ignore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Ignore.java deleted file mode 100644 index 783f0fb1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64Ignore.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64Ignore} - */ -public final class Int64Ignore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64Ignore) - Int64IgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64Ignore.class.getName()); - } - // Use Int64Ignore.newBuilder() to construct. - private Int64Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64Ignore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64Ignore.class, build.buf.validate.conformance.cases.Int64Ignore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64Ignore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64Ignore other = (build.buf.validate.conformance.cases.Int64Ignore) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64Ignore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64Ignore 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.Int64Ignore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64Ignore 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.Int64Ignore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64Ignore 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.Int64Ignore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64Ignore 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.Int64Ignore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64Ignore 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.Int64Ignore 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.Int64Ignore 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.Int64Ignore 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.Int64Ignore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64Ignore) - build.buf.validate.conformance.cases.Int64IgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64Ignore.class, build.buf.validate.conformance.cases.Int64Ignore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64Ignore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64Ignore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64Ignore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64Ignore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64Ignore build() { - build.buf.validate.conformance.cases.Int64Ignore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64Ignore buildPartial() { - build.buf.validate.conformance.cases.Int64Ignore result = new build.buf.validate.conformance.cases.Int64Ignore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64Ignore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64Ignore) { - return mergeFrom((build.buf.validate.conformance.cases.Int64Ignore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64Ignore other) { - if (other == build.buf.validate.conformance.cases.Int64Ignore.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64Ignore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64Ignore) - private static final build.buf.validate.conformance.cases.Int64Ignore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64Ignore(); - } - - public static build.buf.validate.conformance.cases.Int64Ignore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64Ignore 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.Int64Ignore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IgnoreOrBuilder.java deleted file mode 100644 index 06db9fc0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64IgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64Ignore) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64In.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64In.java deleted file mode 100644 index 93480599..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64In.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64In} - */ -public final class Int64In extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64In) - Int64InOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64In.class.getName()); - } - // Use Int64In.newBuilder() to construct. - private Int64In(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64In() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64In.class, build.buf.validate.conformance.cases.Int64In.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64In)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64In other = (build.buf.validate.conformance.cases.Int64In) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64In parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64In 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.Int64In parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64In 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.Int64In parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64In 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.Int64In parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64In 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.Int64In parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64In 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.Int64In 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.Int64In 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.Int64In 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.Int64In} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64In) - build.buf.validate.conformance.cases.Int64InOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64In.class, build.buf.validate.conformance.cases.Int64In.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64In.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64In_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64In getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64In.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64In build() { - build.buf.validate.conformance.cases.Int64In result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64In buildPartial() { - build.buf.validate.conformance.cases.Int64In result = new build.buf.validate.conformance.cases.Int64In(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64In result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64In) { - return mergeFrom((build.buf.validate.conformance.cases.Int64In)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64In other) { - if (other == build.buf.validate.conformance.cases.Int64In.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64In) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64In) - private static final build.buf.validate.conformance.cases.Int64In DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64In(); - } - - public static build.buf.validate.conformance.cases.Int64In getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64In 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.Int64In getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64InOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64InOrBuilder.java deleted file mode 100644 index 21cea213..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64InOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64InOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64In) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectType.java deleted file mode 100644 index cfe1503d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectType.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64IncorrectType} - */ -public final class Int64IncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64IncorrectType) - Int64IncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64IncorrectType.class.getName()); - } - // Use Int64IncorrectType.newBuilder() to construct. - private Int64IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64IncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64IncorrectType.class, build.buf.validate.conformance.cases.Int64IncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64IncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64IncorrectType other = (build.buf.validate.conformance.cases.Int64IncorrectType) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64IncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64IncorrectType 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.Int64IncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64IncorrectType 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.Int64IncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64IncorrectType 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.Int64IncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64IncorrectType 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.Int64IncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64IncorrectType 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.Int64IncorrectType 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.Int64IncorrectType 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.Int64IncorrectType 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.Int64IncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64IncorrectType) - build.buf.validate.conformance.cases.Int64IncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64IncorrectType.class, build.buf.validate.conformance.cases.Int64IncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64IncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64IncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64IncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64IncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64IncorrectType build() { - build.buf.validate.conformance.cases.Int64IncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64IncorrectType buildPartial() { - build.buf.validate.conformance.cases.Int64IncorrectType result = new build.buf.validate.conformance.cases.Int64IncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64IncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64IncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.Int64IncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64IncorrectType other) { - if (other == build.buf.validate.conformance.cases.Int64IncorrectType.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64IncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64IncorrectType) - private static final build.buf.validate.conformance.cases.Int64IncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64IncorrectType(); - } - - public static build.buf.validate.conformance.cases.Int64IncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64IncorrectType 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.Int64IncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectTypeOrBuilder.java deleted file mode 100644 index 3d7db376..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64IncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64IncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64IncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LT.java deleted file mode 100644 index 0bd63605..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64LT} - */ -public final class Int64LT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64LT) - Int64LTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64LT.class.getName()); - } - // Use Int64LT.newBuilder() to construct. - private Int64LT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64LT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64LT.class, build.buf.validate.conformance.cases.Int64LT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64LT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64LT other = (build.buf.validate.conformance.cases.Int64LT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64LT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64LT 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.Int64LT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64LT 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.Int64LT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64LT 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.Int64LT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64LT 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.Int64LT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64LT 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.Int64LT 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.Int64LT 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.Int64LT 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.Int64LT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64LT) - build.buf.validate.conformance.cases.Int64LTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64LT.class, build.buf.validate.conformance.cases.Int64LT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64LT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64LT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64LT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64LT build() { - build.buf.validate.conformance.cases.Int64LT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64LT buildPartial() { - build.buf.validate.conformance.cases.Int64LT result = new build.buf.validate.conformance.cases.Int64LT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64LT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64LT) { - return mergeFrom((build.buf.validate.conformance.cases.Int64LT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64LT other) { - if (other == build.buf.validate.conformance.cases.Int64LT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64LT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64LT) - private static final build.buf.validate.conformance.cases.Int64LT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64LT(); - } - - public static build.buf.validate.conformance.cases.Int64LT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64LT 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.Int64LT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTE.java deleted file mode 100644 index 60d6f782..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64LTE} - */ -public final class Int64LTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64LTE) - Int64LTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64LTE.class.getName()); - } - // Use Int64LTE.newBuilder() to construct. - private Int64LTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64LTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64LTE.class, build.buf.validate.conformance.cases.Int64LTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64LTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64LTE other = (build.buf.validate.conformance.cases.Int64LTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64LTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64LTE 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.Int64LTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64LTE 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.Int64LTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64LTE 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.Int64LTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64LTE 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.Int64LTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64LTE 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.Int64LTE 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.Int64LTE 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.Int64LTE 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.Int64LTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64LTE) - build.buf.validate.conformance.cases.Int64LTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64LTE.class, build.buf.validate.conformance.cases.Int64LTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64LTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64LTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64LTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64LTE build() { - build.buf.validate.conformance.cases.Int64LTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64LTE buildPartial() { - build.buf.validate.conformance.cases.Int64LTE result = new build.buf.validate.conformance.cases.Int64LTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64LTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64LTE) { - return mergeFrom((build.buf.validate.conformance.cases.Int64LTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64LTE other) { - if (other == build.buf.validate.conformance.cases.Int64LTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64LTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64LTE) - private static final build.buf.validate.conformance.cases.Int64LTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64LTE(); - } - - public static build.buf.validate.conformance.cases.Int64LTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64LTE 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.Int64LTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptional.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptional.java deleted file mode 100644 index 67c4f947..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptional.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64LTEOptional} - */ -public final class Int64LTEOptional extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64LTEOptional) - Int64LTEOptionalOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64LTEOptional.class.getName()); - } - // Use Int64LTEOptional.newBuilder() to construct. - private Int64LTEOptional(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64LTEOptional() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTEOptional_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTEOptional_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64LTEOptional.class, build.buf.validate.conformance.cases.Int64LTEOptional.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64LTEOptional)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64LTEOptional other = (build.buf.validate.conformance.cases.Int64LTEOptional) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64LTEOptional parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64LTEOptional 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.Int64LTEOptional parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64LTEOptional 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.Int64LTEOptional parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64LTEOptional 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.Int64LTEOptional parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64LTEOptional 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.Int64LTEOptional parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64LTEOptional 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.Int64LTEOptional 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.Int64LTEOptional 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.Int64LTEOptional 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.Int64LTEOptional} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64LTEOptional) - build.buf.validate.conformance.cases.Int64LTEOptionalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTEOptional_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTEOptional_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64LTEOptional.class, build.buf.validate.conformance.cases.Int64LTEOptional.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64LTEOptional.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64LTEOptional_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64LTEOptional getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64LTEOptional.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64LTEOptional build() { - build.buf.validate.conformance.cases.Int64LTEOptional result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64LTEOptional buildPartial() { - build.buf.validate.conformance.cases.Int64LTEOptional result = new build.buf.validate.conformance.cases.Int64LTEOptional(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64LTEOptional result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64LTEOptional) { - return mergeFrom((build.buf.validate.conformance.cases.Int64LTEOptional)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64LTEOptional other) { - if (other == build.buf.validate.conformance.cases.Int64LTEOptional.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64LTEOptional) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64LTEOptional) - private static final build.buf.validate.conformance.cases.Int64LTEOptional DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64LTEOptional(); - } - - public static build.buf.validate.conformance.cases.Int64LTEOptional getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64LTEOptional 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.Int64LTEOptional getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptionalOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptionalOrBuilder.java deleted file mode 100644 index d036f4de..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOptionalOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64LTEOptionalOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64LTEOptional) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOrBuilder.java deleted file mode 100644 index d986f08b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64LTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64LTE) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTOrBuilder.java deleted file mode 100644 index e9719d15..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64LTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64LTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64LT) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64None.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64None.java deleted file mode 100644 index f3a8ace4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64None.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64None} - */ -public final class Int64None extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64None) - Int64NoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64None.class.getName()); - } - // Use Int64None.newBuilder() to construct. - private Int64None(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64None() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64None.class, build.buf.validate.conformance.cases.Int64None.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64None)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64None other = (build.buf.validate.conformance.cases.Int64None) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64None parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64None 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.Int64None parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64None 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.Int64None parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64None 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.Int64None parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64None 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.Int64None parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64None 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.Int64None 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.Int64None 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.Int64None 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.Int64None} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64None) - build.buf.validate.conformance.cases.Int64NoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64None.class, build.buf.validate.conformance.cases.Int64None.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64None.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64None_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64None getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64None.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64None build() { - build.buf.validate.conformance.cases.Int64None result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64None buildPartial() { - build.buf.validate.conformance.cases.Int64None result = new build.buf.validate.conformance.cases.Int64None(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64None result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64None) { - return mergeFrom((build.buf.validate.conformance.cases.Int64None)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64None other) { - if (other == build.buf.validate.conformance.cases.Int64None.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64None) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64None) - private static final build.buf.validate.conformance.cases.Int64None DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64None(); - } - - public static build.buf.validate.conformance.cases.Int64None getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64None 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.Int64None getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NoneOrBuilder.java deleted file mode 100644 index 5d5ef17b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64NoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64None) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val"]; - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotIn.java deleted file mode 100644 index 10134771..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotIn.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Int64NotIn} - */ -public final class Int64NotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Int64NotIn) - Int64NotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64NotIn.class.getName()); - } - // Use Int64NotIn.newBuilder() to construct. - private Int64NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Int64NotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64NotIn.class, build.buf.validate.conformance.cases.Int64NotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.Int64NotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Int64NotIn other = (build.buf.validate.conformance.cases.Int64NotIn) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Int64NotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64NotIn 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.Int64NotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64NotIn 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.Int64NotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Int64NotIn 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.Int64NotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Int64NotIn 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.Int64NotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Int64NotIn 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.Int64NotIn 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.Int64NotIn 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.Int64NotIn 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.Int64NotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Int64NotIn) - build.buf.validate.conformance.cases.Int64NotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Int64NotIn.class, build.buf.validate.conformance.cases.Int64NotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Int64NotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_Int64NotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64NotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Int64NotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64NotIn build() { - build.buf.validate.conformance.cases.Int64NotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Int64NotIn buildPartial() { - build.buf.validate.conformance.cases.Int64NotIn result = new build.buf.validate.conformance.cases.Int64NotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Int64NotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Int64NotIn) { - return mergeFrom((build.buf.validate.conformance.cases.Int64NotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Int64NotIn other) { - if (other == build.buf.validate.conformance.cases.Int64NotIn.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Int64NotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Int64NotIn) - private static final build.buf.validate.conformance.cases.Int64NotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Int64NotIn(); - } - - public static build.buf.validate.conformance.cases.Int64NotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64NotIn 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.Int64NotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotInOrBuilder.java deleted file mode 100644 index 4d908e13..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Int64NotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Int64NotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Int64NotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsEmail.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsEmail.java deleted file mode 100644 index 947ade4a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsEmail.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IsEmail} - */ -public final class IsEmail extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IsEmail) - IsEmailOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IsEmail.class.getName()); - } - // Use IsEmail.newBuilder() to construct. - private IsEmail(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IsEmail() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsEmail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsEmail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsEmail.class, build.buf.validate.conformance.cases.IsEmail.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.IsEmail)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IsEmail other = (build.buf.validate.conformance.cases.IsEmail) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IsEmail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsEmail 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.IsEmail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsEmail 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.IsEmail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsEmail 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.IsEmail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IsEmail 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.IsEmail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IsEmail 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.IsEmail 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.IsEmail 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.IsEmail 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.IsEmail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IsEmail) - build.buf.validate.conformance.cases.IsEmailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsEmail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsEmail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsEmail.class, build.buf.validate.conformance.cases.IsEmail.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IsEmail.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsEmail_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsEmail getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IsEmail.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsEmail build() { - build.buf.validate.conformance.cases.IsEmail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsEmail buildPartial() { - build.buf.validate.conformance.cases.IsEmail result = new build.buf.validate.conformance.cases.IsEmail(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IsEmail result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IsEmail) { - return mergeFrom((build.buf.validate.conformance.cases.IsEmail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IsEmail other) { - if (other == build.buf.validate.conformance.cases.IsEmail.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IsEmail) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IsEmail) - private static final build.buf.validate.conformance.cases.IsEmail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IsEmail(); - } - - public static build.buf.validate.conformance.cases.IsEmail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsEmail 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.IsEmail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsEmailOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsEmailOrBuilder.java deleted file mode 100644 index 5325d73d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsEmailOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IsEmailOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IsEmail) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostAndPort.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostAndPort.java deleted file mode 100644 index e4d9b7f0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostAndPort.java +++ /dev/null @@ -1,568 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IsHostAndPort} - */ -public final class IsHostAndPort extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IsHostAndPort) - IsHostAndPortOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IsHostAndPort.class.getName()); - } - // Use IsHostAndPort.newBuilder() to construct. - private IsHostAndPort(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IsHostAndPort() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsHostAndPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsHostAndPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsHostAndPort.class, build.buf.validate.conformance.cases.IsHostAndPort.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PORT_REQUIRED_FIELD_NUMBER = 2; - private boolean portRequired_ = false; - /** - * bool port_required = 2 [json_name = "portRequired"]; - * @return The portRequired. - */ - @java.lang.Override - public boolean getPortRequired() { - return portRequired_; - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - if (portRequired_ != false) { - output.writeBool(2, portRequired_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - if (portRequired_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, portRequired_); - } - 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.IsHostAndPort)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IsHostAndPort other = (build.buf.validate.conformance.cases.IsHostAndPort) obj; - - if (!getVal() - .equals(other.getVal())) return false; - if (getPortRequired() - != other.getPortRequired()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (37 * hash) + PORT_REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPortRequired()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IsHostAndPort parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsHostAndPort 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.IsHostAndPort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsHostAndPort 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.IsHostAndPort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsHostAndPort 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.IsHostAndPort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IsHostAndPort 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.IsHostAndPort parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IsHostAndPort 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.IsHostAndPort 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.IsHostAndPort 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.IsHostAndPort 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.IsHostAndPort} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IsHostAndPort) - build.buf.validate.conformance.cases.IsHostAndPortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsHostAndPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsHostAndPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsHostAndPort.class, build.buf.validate.conformance.cases.IsHostAndPort.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IsHostAndPort.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - portRequired_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsHostAndPort_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsHostAndPort getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IsHostAndPort.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsHostAndPort build() { - build.buf.validate.conformance.cases.IsHostAndPort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsHostAndPort buildPartial() { - build.buf.validate.conformance.cases.IsHostAndPort result = new build.buf.validate.conformance.cases.IsHostAndPort(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IsHostAndPort result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.portRequired_ = portRequired_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IsHostAndPort) { - return mergeFrom((build.buf.validate.conformance.cases.IsHostAndPort)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IsHostAndPort other) { - if (other == build.buf.validate.conformance.cases.IsHostAndPort.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPortRequired() != false) { - setPortRequired(other.getPortRequired()); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - portRequired_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean portRequired_ ; - /** - * bool port_required = 2 [json_name = "portRequired"]; - * @return The portRequired. - */ - @java.lang.Override - public boolean getPortRequired() { - return portRequired_; - } - /** - * bool port_required = 2 [json_name = "portRequired"]; - * @param value The portRequired to set. - * @return This builder for chaining. - */ - public Builder setPortRequired(boolean value) { - - portRequired_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bool port_required = 2 [json_name = "portRequired"]; - * @return This builder for chaining. - */ - public Builder clearPortRequired() { - bitField0_ = (bitField0_ & ~0x00000002); - portRequired_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IsHostAndPort) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IsHostAndPort) - private static final build.buf.validate.conformance.cases.IsHostAndPort DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IsHostAndPort(); - } - - public static build.buf.validate.conformance.cases.IsHostAndPort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsHostAndPort 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.IsHostAndPort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostAndPortOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostAndPortOrBuilder.java deleted file mode 100644 index accbbc21..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostAndPortOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IsHostAndPortOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IsHostAndPort) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - - /** - * bool port_required = 2 [json_name = "portRequired"]; - * @return The portRequired. - */ - boolean getPortRequired(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostname.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostname.java deleted file mode 100644 index 0cb66070..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostname.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IsHostname} - */ -public final class IsHostname extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IsHostname) - IsHostnameOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IsHostname.class.getName()); - } - // Use IsHostname.newBuilder() to construct. - private IsHostname(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IsHostname() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsHostname_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsHostname_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsHostname.class, build.buf.validate.conformance.cases.IsHostname.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.IsHostname)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IsHostname other = (build.buf.validate.conformance.cases.IsHostname) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IsHostname parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsHostname 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.IsHostname parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsHostname 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.IsHostname parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsHostname 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.IsHostname parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IsHostname 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.IsHostname parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IsHostname 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.IsHostname 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.IsHostname 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.IsHostname 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.IsHostname} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IsHostname) - build.buf.validate.conformance.cases.IsHostnameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsHostname_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsHostname_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsHostname.class, build.buf.validate.conformance.cases.IsHostname.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IsHostname.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsHostname_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsHostname getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IsHostname.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsHostname build() { - build.buf.validate.conformance.cases.IsHostname result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsHostname buildPartial() { - build.buf.validate.conformance.cases.IsHostname result = new build.buf.validate.conformance.cases.IsHostname(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IsHostname result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IsHostname) { - return mergeFrom((build.buf.validate.conformance.cases.IsHostname)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IsHostname other) { - if (other == build.buf.validate.conformance.cases.IsHostname.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IsHostname) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IsHostname) - private static final build.buf.validate.conformance.cases.IsHostname DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IsHostname(); - } - - public static build.buf.validate.conformance.cases.IsHostname getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsHostname 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.IsHostname getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostnameOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostnameOrBuilder.java deleted file mode 100644 index b7b7c0d5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsHostnameOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IsHostnameOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IsHostname) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsIp.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsIp.java deleted file mode 100644 index 1105892e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsIp.java +++ /dev/null @@ -1,592 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IsIp} - */ -public final class IsIp extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IsIp) - IsIpOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IsIp.class.getName()); - } - // Use IsIp.newBuilder() to construct. - private IsIp(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IsIp() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsIp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsIp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsIp.class, build.buf.validate.conformance.cases.IsIp.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private int version_ = 0; - /** - * optional int32 version = 2 [json_name = "version"]; - * @return Whether the version field is set. - */ - @java.lang.Override - public boolean hasVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 version = 2 [json_name = "version"]; - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(2, version_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, version_); - } - 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.IsIp)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IsIp other = (build.buf.validate.conformance.cases.IsIp) obj; - - if (!getVal() - .equals(other.getVal())) return false; - if (hasVersion() != other.hasVersion()) return false; - if (hasVersion()) { - if (getVersion() - != other.getVersion()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - if (hasVersion()) { - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IsIp parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsIp 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.IsIp parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsIp 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.IsIp parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsIp 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.IsIp parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IsIp 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.IsIp parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IsIp 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.IsIp 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.IsIp 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.IsIp 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.IsIp} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IsIp) - build.buf.validate.conformance.cases.IsIpOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsIp_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsIp_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsIp.class, build.buf.validate.conformance.cases.IsIp.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IsIp.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - version_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsIp_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsIp getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IsIp.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsIp build() { - build.buf.validate.conformance.cases.IsIp result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsIp buildPartial() { - build.buf.validate.conformance.cases.IsIp result = new build.buf.validate.conformance.cases.IsIp(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IsIp result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.version_ = version_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IsIp) { - return mergeFrom((build.buf.validate.conformance.cases.IsIp)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IsIp other) { - if (other == build.buf.validate.conformance.cases.IsIp.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasVersion()) { - setVersion(other.getVersion()); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - version_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int version_ ; - /** - * optional int32 version = 2 [json_name = "version"]; - * @return Whether the version field is set. - */ - @java.lang.Override - public boolean hasVersion() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int32 version = 2 [json_name = "version"]; - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * optional int32 version = 2 [json_name = "version"]; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional int32 version = 2 [json_name = "version"]; - * @return This builder for chaining. - */ - public Builder clearVersion() { - bitField0_ = (bitField0_ & ~0x00000002); - version_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IsIp) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IsIp) - private static final build.buf.validate.conformance.cases.IsIp DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IsIp(); - } - - public static build.buf.validate.conformance.cases.IsIp getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsIp 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.IsIp getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsIpOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsIpOrBuilder.java deleted file mode 100644 index 45b6554e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsIpOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IsIpOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IsIp) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - - /** - * optional int32 version = 2 [json_name = "version"]; - * @return Whether the version field is set. - */ - boolean hasVersion(); - /** - * optional int32 version = 2 [json_name = "version"]; - * @return The version. - */ - int getVersion(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsIpPrefix.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsIpPrefix.java deleted file mode 100644 index e7a37eec..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsIpPrefix.java +++ /dev/null @@ -1,681 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IsIpPrefix} - */ -public final class IsIpPrefix extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IsIpPrefix) - IsIpPrefixOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IsIpPrefix.class.getName()); - } - // Use IsIpPrefix.newBuilder() to construct. - private IsIpPrefix(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IsIpPrefix() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsIpPrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsIpPrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsIpPrefix.class, build.buf.validate.conformance.cases.IsIpPrefix.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private int version_ = 0; - /** - * optional int32 version = 2 [json_name = "version"]; - * @return Whether the version field is set. - */ - @java.lang.Override - public boolean hasVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 version = 2 [json_name = "version"]; - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - - public static final int STRICT_FIELD_NUMBER = 3; - private boolean strict_ = false; - /** - * optional bool strict = 3 [json_name = "strict"]; - * @return Whether the strict field is set. - */ - @java.lang.Override - public boolean hasStrict() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional bool strict = 3 [json_name = "strict"]; - * @return The strict. - */ - @java.lang.Override - public boolean getStrict() { - return strict_; - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(2, version_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeBool(3, strict_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, version_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, strict_); - } - 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.IsIpPrefix)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IsIpPrefix other = (build.buf.validate.conformance.cases.IsIpPrefix) obj; - - if (!getVal() - .equals(other.getVal())) return false; - if (hasVersion() != other.hasVersion()) return false; - if (hasVersion()) { - if (getVersion() - != other.getVersion()) return false; - } - if (hasStrict() != other.hasStrict()) return false; - if (hasStrict()) { - if (getStrict() - != other.getStrict()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - if (hasVersion()) { - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion(); - } - if (hasStrict()) { - hash = (37 * hash) + STRICT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStrict()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IsIpPrefix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsIpPrefix 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.IsIpPrefix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsIpPrefix 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.IsIpPrefix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsIpPrefix 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.IsIpPrefix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IsIpPrefix 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.IsIpPrefix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IsIpPrefix 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.IsIpPrefix 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.IsIpPrefix 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.IsIpPrefix 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.IsIpPrefix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IsIpPrefix) - build.buf.validate.conformance.cases.IsIpPrefixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsIpPrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsIpPrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsIpPrefix.class, build.buf.validate.conformance.cases.IsIpPrefix.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IsIpPrefix.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - version_ = 0; - strict_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsIpPrefix_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsIpPrefix getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IsIpPrefix.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsIpPrefix build() { - build.buf.validate.conformance.cases.IsIpPrefix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsIpPrefix buildPartial() { - build.buf.validate.conformance.cases.IsIpPrefix result = new build.buf.validate.conformance.cases.IsIpPrefix(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IsIpPrefix result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.version_ = version_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.strict_ = strict_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IsIpPrefix) { - return mergeFrom((build.buf.validate.conformance.cases.IsIpPrefix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IsIpPrefix other) { - if (other == build.buf.validate.conformance.cases.IsIpPrefix.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasVersion()) { - setVersion(other.getVersion()); - } - if (other.hasStrict()) { - setStrict(other.getStrict()); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - version_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - strict_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int version_ ; - /** - * optional int32 version = 2 [json_name = "version"]; - * @return Whether the version field is set. - */ - @java.lang.Override - public boolean hasVersion() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int32 version = 2 [json_name = "version"]; - * @return The version. - */ - @java.lang.Override - public int getVersion() { - return version_; - } - /** - * optional int32 version = 2 [json_name = "version"]; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(int value) { - - version_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional int32 version = 2 [json_name = "version"]; - * @return This builder for chaining. - */ - public Builder clearVersion() { - bitField0_ = (bitField0_ & ~0x00000002); - version_ = 0; - onChanged(); - return this; - } - - private boolean strict_ ; - /** - * optional bool strict = 3 [json_name = "strict"]; - * @return Whether the strict field is set. - */ - @java.lang.Override - public boolean hasStrict() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional bool strict = 3 [json_name = "strict"]; - * @return The strict. - */ - @java.lang.Override - public boolean getStrict() { - return strict_; - } - /** - * optional bool strict = 3 [json_name = "strict"]; - * @param value The strict to set. - * @return This builder for chaining. - */ - public Builder setStrict(boolean value) { - - strict_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * optional bool strict = 3 [json_name = "strict"]; - * @return This builder for chaining. - */ - public Builder clearStrict() { - bitField0_ = (bitField0_ & ~0x00000004); - strict_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IsIpPrefix) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IsIpPrefix) - private static final build.buf.validate.conformance.cases.IsIpPrefix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IsIpPrefix(); - } - - public static build.buf.validate.conformance.cases.IsIpPrefix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsIpPrefix 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.IsIpPrefix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsIpPrefixOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsIpPrefixOrBuilder.java deleted file mode 100644 index 9080f0cb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsIpPrefixOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IsIpPrefixOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IsIpPrefix) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - - /** - * optional int32 version = 2 [json_name = "version"]; - * @return Whether the version field is set. - */ - boolean hasVersion(); - /** - * optional int32 version = 2 [json_name = "version"]; - * @return The version. - */ - int getVersion(); - - /** - * optional bool strict = 3 [json_name = "strict"]; - * @return Whether the strict field is set. - */ - boolean hasStrict(); - /** - * optional bool strict = 3 [json_name = "strict"]; - * @return The strict. - */ - boolean getStrict(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsUri.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsUri.java deleted file mode 100644 index 76954f9b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsUri.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IsUri} - */ -public final class IsUri extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IsUri) - IsUriOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IsUri.class.getName()); - } - // Use IsUri.newBuilder() to construct. - private IsUri(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IsUri() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsUri_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsUri_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsUri.class, build.buf.validate.conformance.cases.IsUri.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.IsUri)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IsUri other = (build.buf.validate.conformance.cases.IsUri) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IsUri parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsUri 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.IsUri parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsUri 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.IsUri parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsUri 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.IsUri parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IsUri 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.IsUri parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IsUri 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.IsUri 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.IsUri 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.IsUri 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.IsUri} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IsUri) - build.buf.validate.conformance.cases.IsUriOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsUri_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsUri_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsUri.class, build.buf.validate.conformance.cases.IsUri.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IsUri.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsUri_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsUri getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IsUri.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsUri build() { - build.buf.validate.conformance.cases.IsUri result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsUri buildPartial() { - build.buf.validate.conformance.cases.IsUri result = new build.buf.validate.conformance.cases.IsUri(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IsUri result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IsUri) { - return mergeFrom((build.buf.validate.conformance.cases.IsUri)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IsUri other) { - if (other == build.buf.validate.conformance.cases.IsUri.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IsUri) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IsUri) - private static final build.buf.validate.conformance.cases.IsUri DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IsUri(); - } - - public static build.buf.validate.conformance.cases.IsUri getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsUri 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.IsUri getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsUriOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsUriOrBuilder.java deleted file mode 100644 index 0520a5c2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsUriOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IsUriOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IsUri) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsUriRef.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsUriRef.java deleted file mode 100644 index a29fa2a4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsUriRef.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.IsUriRef} - */ -public final class IsUriRef extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.IsUriRef) - IsUriRefOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IsUriRef.class.getName()); - } - // Use IsUriRef.newBuilder() to construct. - private IsUriRef(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IsUriRef() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsUriRef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsUriRef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsUriRef.class, build.buf.validate.conformance.cases.IsUriRef.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.IsUriRef)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.IsUriRef other = (build.buf.validate.conformance.cases.IsUriRef) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.IsUriRef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsUriRef 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.IsUriRef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsUriRef 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.IsUriRef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.IsUriRef 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.IsUriRef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.IsUriRef 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.IsUriRef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.IsUriRef 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.IsUriRef 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.IsUriRef 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.IsUriRef 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.IsUriRef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.IsUriRef) - build.buf.validate.conformance.cases.IsUriRefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsUriRef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsUriRef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.IsUriRef.class, build.buf.validate.conformance.cases.IsUriRef.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.IsUriRef.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.LibraryProto.internal_static_buf_validate_conformance_cases_IsUriRef_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsUriRef getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.IsUriRef.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsUriRef build() { - build.buf.validate.conformance.cases.IsUriRef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.IsUriRef buildPartial() { - build.buf.validate.conformance.cases.IsUriRef result = new build.buf.validate.conformance.cases.IsUriRef(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.IsUriRef result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.IsUriRef) { - return mergeFrom((build.buf.validate.conformance.cases.IsUriRef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.IsUriRef other) { - if (other == build.buf.validate.conformance.cases.IsUriRef.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.IsUriRef) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.IsUriRef) - private static final build.buf.validate.conformance.cases.IsUriRef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.IsUriRef(); - } - - public static build.buf.validate.conformance.cases.IsUriRef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsUriRef 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.IsUriRef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/IsUriRefOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/IsUriRefOrBuilder.java deleted file mode 100644 index 1a8a100b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/IsUriRefOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface IsUriRefOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.IsUriRef) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessage.java b/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessage.java deleted file mode 100644 index 30fb4ae6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessage.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/kitchen_sink.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.KitchenSinkMessage} - */ -public final class KitchenSinkMessage extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.KitchenSinkMessage) - KitchenSinkMessageOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - KitchenSinkMessage.class.getName()); - } - // Use KitchenSinkMessage.newBuilder() to construct. - private KitchenSinkMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private KitchenSinkMessage() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_KitchenSinkMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_KitchenSinkMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.KitchenSinkMessage.class, build.buf.validate.conformance.cases.KitchenSinkMessage.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.ComplexTestMsg val_; - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.ComplexTestMsg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.KitchenSinkMessage)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.KitchenSinkMessage other = (build.buf.validate.conformance.cases.KitchenSinkMessage) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.KitchenSinkMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.KitchenSinkMessage 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.KitchenSinkMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.KitchenSinkMessage 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.KitchenSinkMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.KitchenSinkMessage 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.KitchenSinkMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.KitchenSinkMessage 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.KitchenSinkMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.KitchenSinkMessage 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.KitchenSinkMessage 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.KitchenSinkMessage 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.KitchenSinkMessage 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.KitchenSinkMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.KitchenSinkMessage) - build.buf.validate.conformance.cases.KitchenSinkMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_KitchenSinkMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_KitchenSinkMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.KitchenSinkMessage.class, build.buf.validate.conformance.cases.KitchenSinkMessage.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.KitchenSinkMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.KitchenSinkProto.internal_static_buf_validate_conformance_cases_KitchenSinkMessage_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.KitchenSinkMessage getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.KitchenSinkMessage.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.KitchenSinkMessage build() { - build.buf.validate.conformance.cases.KitchenSinkMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.KitchenSinkMessage buildPartial() { - build.buf.validate.conformance.cases.KitchenSinkMessage result = new build.buf.validate.conformance.cases.KitchenSinkMessage(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.KitchenSinkMessage result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.KitchenSinkMessage) { - return mergeFrom((build.buf.validate.conformance.cases.KitchenSinkMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.KitchenSinkMessage other) { - if (other == build.buf.validate.conformance.cases.KitchenSinkMessage.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.ComplexTestMsg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - * @return The val. - */ - public build.buf.validate.conformance.cases.ComplexTestMsg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - */ - public Builder setVal(build.buf.validate.conformance.cases.ComplexTestMsg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - */ - public Builder setVal( - build.buf.validate.conformance.cases.ComplexTestMsg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - */ - public Builder mergeVal(build.buf.validate.conformance.cases.ComplexTestMsg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.ComplexTestMsg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.ComplexTestMsg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.ComplexTestMsg, build.buf.validate.conformance.cases.ComplexTestMsg.Builder, build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.KitchenSinkMessage) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.KitchenSinkMessage) - private static final build.buf.validate.conformance.cases.KitchenSinkMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.KitchenSinkMessage(); - } - - public static build.buf.validate.conformance.cases.KitchenSinkMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KitchenSinkMessage 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.KitchenSinkMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessageOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessageOrBuilder.java deleted file mode 100644 index c6ba0c03..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkMessageOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/kitchen_sink.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface KitchenSinkMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.KitchenSinkMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - * @return The val. - */ - build.buf.validate.conformance.cases.ComplexTestMsg getVal(); - /** - * .buf.validate.conformance.cases.ComplexTestMsg val = 1 [json_name = "val"]; - */ - build.buf.validate.conformance.cases.ComplexTestMsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkProto.java deleted file mode 100644 index 0e2e3415..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/KitchenSinkProto.java +++ /dev/null @@ -1,139 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/kitchen_sink.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class KitchenSinkProto { - private KitchenSinkProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - KitchenSinkProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_ComplexTestMsg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_ComplexTestMsg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_ComplexTestMsg_MapValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_ComplexTestMsg_MapValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_KitchenSinkMessage_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_KitchenSinkMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1buf/validate/conformance/cases/kitchen" + - "_sink.proto\022\036buf.validate.conformance.ca" + - "ses\032\033buf/validate/validate.proto\032\031google" + - "/protobuf/any.proto\032\036google/protobuf/dur" + - "ation.proto\032\037google/protobuf/timestamp.p" + - "roto\032\036google/protobuf/wrappers.proto\"\274\010\n" + - "\016ComplexTestMsg\022!\n\005const\030\001 \001(\tB\013\272H\010r\006\n\004a" + - "bcdR\005const\022F\n\006nested\030\002 \001(\0132..buf.validat" + - "e.conformance.cases.ComplexTestMsgR\006nest" + - "ed\022$\n\tint_const\030\003 \001(\005B\007\272H\004\032\002\010\005R\010intConst" + - "\022&\n\nbool_const\030\004 \001(\010B\007\272H\004j\002\010\000R\tboolConst" + - "\022D\n\tfloat_val\030\005 \001(\0132\033.google.protobuf.Fl" + - "oatValueB\n\272H\007\n\005%\000\000\000\000R\010floatVal\022A\n\007dur_va" + - "l\030\006 \001(\0132\031.google.protobuf.DurationB\r\272H\n\252" + - "\001\004\032\002\010\021\310\001\001R\006durVal\022=\n\006ts_val\030\007 \001(\0132\032.goog" + - "le.protobuf.TimestampB\n\272H\007\262\001\004*\002\010\007R\005tsVal" + - "\022H\n\007another\030\010 \001(\0132..buf.validate.conform" + - "ance.cases.ComplexTestMsgR\007another\022+\n\013fl" + - "oat_const\030\t \001(\002B\n\272H\007\n\005\025\000\000\000AR\nfloatConst\022" + - "4\n\tdouble_in\030\n \001(\001B\027\272H\024\022\0221\264\310v\276\237\214|@1\000\000\000\000\000" + - "\300^@R\010doubleIn\022X\n\nenum_const\030\013 \001(\0162/.buf." + - "validate.conformance.cases.ComplexTestEn" + - "umB\010\272H\005\202\001\002\010\002R\tenumConst\022c\n\007any_val\030\014 \001(\013" + - "2\024.google.protobuf.AnyB4\272H1\242\001.\022,type.goo" + - "gleapis.com/google.protobuf.DurationR\006an" + - "yVal\022K\n\nrep_ts_val\030\r \003(\0132\032.google.protob" + - "uf.TimestampB\021\272H\016\222\001\013\"\t\262\001\0062\004\020\300\204=R\010repTsVa" + - "l\022a\n\007map_val\030\016 \003(\0132:.buf.validate.confor" + - "mance.cases.ComplexTestMsg.MapValEntryB\014" + - "\272H\t\232\001\006\"\004:\002\020\000R\006mapVal\022&\n\tbytes_val\030\017 \001(\014B" + - "\t\272H\006z\004\n\002\000\231R\010bytesVal\022\016\n\001x\030\020 \001(\tH\000R\001x\022\016\n\001" + - "y\030\021 \001(\005H\000R\001y\0329\n\013MapValEntry\022\020\n\003key\030\001 \001(\021" + - "R\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\n\n\001o\022\005\272H" + - "\002\010\001\"V\n\022KitchenSinkMessage\022@\n\003val\030\001 \001(\0132." + - ".buf.validate.conformance.cases.ComplexT" + - "estMsgR\003val*j\n\017ComplexTestEnum\022!\n\035COMPLE" + - "X_TEST_ENUM_UNSPECIFIED\020\000\022\031\n\025COMPLEX_TES" + - "T_ENUM_ONE\020\001\022\031\n\025COMPLEX_TEST_ENUM_TWO\020\002B" + - "\324\001\n$build.buf.validate.conformance.cases" + - "B\020KitchenSinkProtoP\001\242\002\004BVCC\252\002\036Buf.Valida" + - "te.Conformance.Cases\312\002\036Buf\\Validate\\Conf" + - "ormance\\Cases\342\002*Buf\\Validate\\Conformance" + - "\\Cases\\GPBMetadata\352\002!Buf::Validate::Conf" + - "ormance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_ComplexTestMsg_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_ComplexTestMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_ComplexTestMsg_descriptor, - new java.lang.String[] { "Const", "Nested", "IntConst", "BoolConst", "FloatVal", "DurVal", "TsVal", "Another", "FloatConst", "DoubleIn", "EnumConst", "AnyVal", "RepTsVal", "MapVal", "BytesVal", "X", "Y", "O", }); - internal_static_buf_validate_conformance_cases_ComplexTestMsg_MapValEntry_descriptor = - internal_static_buf_validate_conformance_cases_ComplexTestMsg_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_ComplexTestMsg_MapValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_ComplexTestMsg_MapValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_KitchenSinkMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_KitchenSinkMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_KitchenSinkMessage_descriptor, - new java.lang.String[] { "Val", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - registry.add(build.buf.validate.ValidateProto.oneof); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/LibraryProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/LibraryProto.java deleted file mode 100644 index 21348d66..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/LibraryProto.java +++ /dev/null @@ -1,163 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/library.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class LibraryProto { - private LibraryProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - LibraryProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IsHostname_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IsHostname_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IsHostAndPort_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IsHostAndPort_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IsIpPrefix_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IsIpPrefix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IsIp_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IsIp_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IsEmail_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IsEmail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IsUri_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IsUri_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_IsUriRef_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_IsUriRef_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,buf/validate/conformance/cases/library" + - ".proto\022\036buf.validate.conformance.cases\032\033" + - "buf/validate/validate.proto\"Q\n\nIsHostnam" + - "e\022\020\n\003val\030\001 \001(\tR\003val:1\272H.\032,\n\023library.is_h" + - "ostname\032\025this.val.isHostname()\"\223\001\n\rIsHos" + - "tAndPort\022\020\n\003val\030\001 \001(\tR\003val\022#\n\rport_requi" + - "red\030\002 \001(\010R\014portRequired:K\272HH\032F\n\030library." + - "is_host_and_port\032*this.val.isHostAndPort" + - "(this.port_required)\"\360\002\n\nIsIpPrefix\022\020\n\003v" + - "al\030\001 \001(\tR\003val\022\035\n\007version\030\002 \001(\005H\000R\007versio" + - "n\210\001\001\022\033\n\006strict\030\003 \001(\010H\001R\006strict\210\001\001:\374\001\272H\370\001" + - "\032\365\001\n\024library.is_ip_prefix\032\334\001has(this.ver" + - "sion) && has(this.strict) ? this.val.isI" + - "pPrefix(this.version, this.strict) : has" + - "(this.version) ? this.val.isIpPrefix(thi" + - "s.version) : has(this.strict) ? this.val" + - ".isIpPrefix(this.strict) : this.val.isIp" + - "Prefix()B\n\n\010_versionB\t\n\007_strict\"\234\001\n\004IsIp" + - "\022\020\n\003val\030\001 \001(\tR\003val\022\035\n\007version\030\002 \001(\005H\000R\007v" + - "ersion\210\001\001:W\272HT\032R\n\rlibrary.is_ip\032Ahas(thi" + - "s.version) ? this.val.isIp(this.version)" + - " : this.val.isIp()B\n\n\010_version\"H\n\007IsEmai" + - "l\022\020\n\003val\030\001 \001(\tR\003val:+\272H(\032&\n\020library.is_e" + - "mail\032\022this.val.isEmail()\"B\n\005IsUri\022\020\n\003val" + - "\030\001 \001(\tR\003val:\'\272H$\032\"\n\016library.is_uri\032\020this" + - ".val.isUri()\"L\n\010IsUriRef\022\020\n\003val\030\001 \001(\tR\003v" + - "al:.\272H+\032)\n\022library.is_uri_ref\032\023this.val." + - "isUriRef()B\320\001\n$build.buf.validate.confor" + - "mance.casesB\014LibraryProtoP\001\242\002\004BVCC\252\002\036Buf" + - ".Validate.Conformance.Cases\312\002\036Buf\\Valida" + - "te\\Conformance\\Cases\342\002*Buf\\Validate\\Conf" + - "ormance\\Cases\\GPBMetadata\352\002!Buf::Validat" + - "e::Conformance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_IsHostname_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_IsHostname_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IsHostname_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IsHostAndPort_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_IsHostAndPort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IsHostAndPort_descriptor, - new java.lang.String[] { "Val", "PortRequired", }); - internal_static_buf_validate_conformance_cases_IsIpPrefix_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_IsIpPrefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IsIpPrefix_descriptor, - new java.lang.String[] { "Val", "Version", "Strict", }); - internal_static_buf_validate_conformance_cases_IsIp_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_IsIp_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IsIp_descriptor, - new java.lang.String[] { "Val", "Version", }); - internal_static_buf_validate_conformance_cases_IsEmail_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_IsEmail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IsEmail_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IsUri_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_IsUri_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IsUri_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_IsUriRef_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_IsUriRef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_IsUriRef_descriptor, - new java.lang.String[] { "Val", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.message); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefined.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefined.java deleted file mode 100644 index 8d64dc5f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefined.java +++ /dev/null @@ -1,785 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapEnumDefined} - */ -public final class MapEnumDefined extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapEnumDefined) - MapEnumDefinedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapEnumDefined.class.getName()); - } - // Use MapEnumDefined.newBuilder() to construct. - private MapEnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapEnumDefined() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapEnumDefined_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapEnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapEnumDefined.class, build.buf.validate.conformance.cases.MapEnumDefined.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapEnumDefined_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - build.buf.validate.conformance.cases.TestEnum.TEST_ENUM_UNSPECIFIED.getNumber()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private static final - com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, build.buf.validate.conformance.cases.TestEnum> valValueConverter = - com.google.protobuf.Internal.MapAdapter.newEnumConverter( - build.buf.validate.conformance.cases.TestEnum.internalGetValueMap(), - build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED); - private static final java.util.Map - internalGetAdaptedValMap( - java.util.Map map) { - return new com.google.protobuf.Internal.MapAdapter< - java.lang.String, build.buf.validate.conformance.cases.TestEnum, java.lang.Integer>( - map, valValueConverter); - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getVal() { - return getValMap(); - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValMap() { - return internalGetAdaptedValMap( - internalGetVal().getMap());} - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.TestEnum getValOrDefault( - java.lang.String key, - /* nullable */ -build.buf.validate.conformance.cases.TestEnum defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) - ? valValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnum getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getValValue() { - return getValValueMap(); - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValValueMap() { - return internalGetVal().getMap(); - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapEnumDefined)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapEnumDefined other = (build.buf.validate.conformance.cases.MapEnumDefined) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapEnumDefined parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapEnumDefined 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.MapEnumDefined parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapEnumDefined 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.MapEnumDefined parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapEnumDefined 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.MapEnumDefined parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapEnumDefined 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.MapEnumDefined parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapEnumDefined 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.MapEnumDefined 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.MapEnumDefined 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.MapEnumDefined 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.MapEnumDefined} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapEnumDefined) - build.buf.validate.conformance.cases.MapEnumDefinedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapEnumDefined_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapEnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapEnumDefined.class, build.buf.validate.conformance.cases.MapEnumDefined.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapEnumDefined.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapEnumDefined_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapEnumDefined getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapEnumDefined.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapEnumDefined build() { - build.buf.validate.conformance.cases.MapEnumDefined result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapEnumDefined buildPartial() { - build.buf.validate.conformance.cases.MapEnumDefined result = new build.buf.validate.conformance.cases.MapEnumDefined(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapEnumDefined result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapEnumDefined) { - return mergeFrom((build.buf.validate.conformance.cases.MapEnumDefined)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapEnumDefined other) { - if (other == build.buf.validate.conformance.cases.MapEnumDefined.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getVal() { - return getValMap(); - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValMap() { - return internalGetAdaptedValMap( - internalGetVal().getMap());} - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.TestEnum getValOrDefault( - java.lang.String key, - /* nullable */ -build.buf.validate.conformance.cases.TestEnum defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) - ? valValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnum getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getValValue() { - return getValValueMap(); - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValValueMap() { - return internalGetVal().getMap(); - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetAdaptedValMap( - internalGetMutableVal().getMutableMap()); - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - build.buf.validate.conformance.cases.TestEnum value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableVal().getMutableMap() - .put(key, valValueConverter.doBackward(value)); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetAdaptedValMap( - internalGetMutableVal().getMutableMap()) - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValValue() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putValValue( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllValValue( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapEnumDefined) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapEnumDefined) - private static final build.buf.validate.conformance.cases.MapEnumDefined DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapEnumDefined(); - } - - public static build.buf.validate.conformance.cases.MapEnumDefined getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapEnumDefined 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.MapEnumDefined getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefinedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefinedOrBuilder.java deleted file mode 100644 index d98d61b7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapEnumDefinedOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapEnumDefinedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapEnumDefined) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -build.buf.validate.conformance.cases.TestEnum getValOrDefault( - java.lang.String key, - /* nullable */ -build.buf.validate.conformance.cases.TestEnum defaultValue); - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.TestEnum getValOrThrow( - java.lang.String key); - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValValue(); - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValValueMap(); - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValValueOrDefault( - java.lang.String key, - int defaultValue); - /** - * map<string, .buf.validate.conformance.cases.TestEnum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValValueOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExact.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExact.java deleted file mode 100644 index defbc2a8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExact.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapExact} - */ -public final class MapExact extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapExact) - MapExactOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapExact.class.getName()); - } - // Use MapExact.newBuilder() to construct. - private MapExact(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapExact() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExact_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapExact.class, build.buf.validate.conformance.cases.MapExact.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Long, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExact_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT64, - 0L, - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Long, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - long key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeLongMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapExact)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapExact other = (build.buf.validate.conformance.cases.MapExact) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapExact parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapExact 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.MapExact parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapExact 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.MapExact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapExact 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.MapExact parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapExact 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.MapExact parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapExact 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.MapExact 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.MapExact 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.MapExact 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.MapExact} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapExact) - build.buf.validate.conformance.cases.MapExactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExact_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapExact.class, build.buf.validate.conformance.cases.MapExact.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapExact.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExact_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapExact getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapExact.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapExact build() { - build.buf.validate.conformance.cases.MapExact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapExact buildPartial() { - build.buf.validate.conformance.cases.MapExact result = new build.buf.validate.conformance.cases.MapExact(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapExact result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapExact) { - return mergeFrom((build.buf.validate.conformance.cases.MapExact)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapExact other) { - if (other == build.buf.validate.conformance.cases.MapExact.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Long, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - long key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - long key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - long key, - java.lang.String value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapExact) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapExact) - private static final build.buf.validate.conformance.cases.MapExact DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapExact(); - } - - public static build.buf.validate.conformance.cases.MapExact getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapExact 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.MapExact getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnore.java deleted file mode 100644 index 198ec17c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnore.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapExactIgnore} - */ -public final class MapExactIgnore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapExactIgnore) - MapExactIgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapExactIgnore.class.getName()); - } - // Use MapExactIgnore.newBuilder() to construct. - private MapExactIgnore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapExactIgnore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExactIgnore_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExactIgnore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapExactIgnore.class, build.buf.validate.conformance.cases.MapExactIgnore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Long, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExactIgnore_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT64, - 0L, - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Long, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - long key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeLongMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapExactIgnore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapExactIgnore other = (build.buf.validate.conformance.cases.MapExactIgnore) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapExactIgnore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapExactIgnore 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.MapExactIgnore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapExactIgnore 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.MapExactIgnore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapExactIgnore 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.MapExactIgnore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapExactIgnore 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.MapExactIgnore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapExactIgnore 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.MapExactIgnore 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.MapExactIgnore 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.MapExactIgnore 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.MapExactIgnore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapExactIgnore) - build.buf.validate.conformance.cases.MapExactIgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExactIgnore_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExactIgnore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapExactIgnore.class, build.buf.validate.conformance.cases.MapExactIgnore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapExactIgnore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapExactIgnore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapExactIgnore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapExactIgnore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapExactIgnore build() { - build.buf.validate.conformance.cases.MapExactIgnore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapExactIgnore buildPartial() { - build.buf.validate.conformance.cases.MapExactIgnore result = new build.buf.validate.conformance.cases.MapExactIgnore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapExactIgnore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapExactIgnore) { - return mergeFrom((build.buf.validate.conformance.cases.MapExactIgnore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapExactIgnore other) { - if (other == build.buf.validate.conformance.cases.MapExactIgnore.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Long, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - long key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - long key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - long key, - java.lang.String value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapExactIgnore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapExactIgnore) - private static final build.buf.validate.conformance.cases.MapExactIgnore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapExactIgnore(); - } - - public static build.buf.validate.conformance.cases.MapExactIgnore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapExactIgnore 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.MapExactIgnore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnoreOrBuilder.java deleted file mode 100644 index 51fa3821..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactIgnoreOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapExactIgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapExactIgnore) - com.google.protobuf.MessageOrBuilder { - - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - long key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - long key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - long key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactOrBuilder.java deleted file mode 100644 index 6111c0f5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExactOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapExactOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapExact) - com.google.protobuf.MessageOrBuilder { - - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - long key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - long key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<uint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - long key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefined.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefined.java deleted file mode 100644 index 869dad2b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefined.java +++ /dev/null @@ -1,785 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapExternalEnumDefined} - */ -public final class MapExternalEnumDefined extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapExternalEnumDefined) - MapExternalEnumDefinedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapExternalEnumDefined.class.getName()); - } - // Use MapExternalEnumDefined.newBuilder() to construct. - private MapExternalEnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapExternalEnumDefined() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapExternalEnumDefined.class, build.buf.validate.conformance.cases.MapExternalEnumDefined.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - build.buf.validate.conformance.cases.other_package.Embed.Enumerated.ENUMERATED_UNSPECIFIED.getNumber()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private static final - com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, build.buf.validate.conformance.cases.other_package.Embed.Enumerated> valValueConverter = - com.google.protobuf.Internal.MapAdapter.newEnumConverter( - build.buf.validate.conformance.cases.other_package.Embed.Enumerated.internalGetValueMap(), - build.buf.validate.conformance.cases.other_package.Embed.Enumerated.UNRECOGNIZED); - private static final java.util.Map - internalGetAdaptedValMap( - java.util.Map map) { - return new com.google.protobuf.Internal.MapAdapter< - java.lang.String, build.buf.validate.conformance.cases.other_package.Embed.Enumerated, java.lang.Integer>( - map, valValueConverter); - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getVal() { - return getValMap(); - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValMap() { - return internalGetAdaptedValMap( - internalGetVal().getMap());} - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.other_package.Embed.Enumerated getValOrDefault( - java.lang.String key, - /* nullable */ -build.buf.validate.conformance.cases.other_package.Embed.Enumerated defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) - ? valValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed.Enumerated getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getValValue() { - return getValValueMap(); - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValValueMap() { - return internalGetVal().getMap(); - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapExternalEnumDefined)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapExternalEnumDefined other = (build.buf.validate.conformance.cases.MapExternalEnumDefined) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapExternalEnumDefined parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapExternalEnumDefined 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.MapExternalEnumDefined parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapExternalEnumDefined 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.MapExternalEnumDefined parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapExternalEnumDefined 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.MapExternalEnumDefined parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapExternalEnumDefined 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.MapExternalEnumDefined parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapExternalEnumDefined 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.MapExternalEnumDefined 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.MapExternalEnumDefined 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.MapExternalEnumDefined 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.MapExternalEnumDefined} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapExternalEnumDefined) - build.buf.validate.conformance.cases.MapExternalEnumDefinedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapExternalEnumDefined.class, build.buf.validate.conformance.cases.MapExternalEnumDefined.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapExternalEnumDefined.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_MapExternalEnumDefined_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapExternalEnumDefined getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapExternalEnumDefined.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapExternalEnumDefined build() { - build.buf.validate.conformance.cases.MapExternalEnumDefined result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapExternalEnumDefined buildPartial() { - build.buf.validate.conformance.cases.MapExternalEnumDefined result = new build.buf.validate.conformance.cases.MapExternalEnumDefined(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapExternalEnumDefined result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapExternalEnumDefined) { - return mergeFrom((build.buf.validate.conformance.cases.MapExternalEnumDefined)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapExternalEnumDefined other) { - if (other == build.buf.validate.conformance.cases.MapExternalEnumDefined.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getVal() { - return getValMap(); - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValMap() { - return internalGetAdaptedValMap( - internalGetVal().getMap());} - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.other_package.Embed.Enumerated getValOrDefault( - java.lang.String key, - /* nullable */ -build.buf.validate.conformance.cases.other_package.Embed.Enumerated defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) - ? valValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed.Enumerated getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getValValue() { - return getValValueMap(); - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValValueMap() { - return internalGetVal().getMap(); - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetAdaptedValMap( - internalGetMutableVal().getMutableMap()); - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - build.buf.validate.conformance.cases.other_package.Embed.Enumerated value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableVal().getMutableMap() - .put(key, valValueConverter.doBackward(value)); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetAdaptedValMap( - internalGetMutableVal().getMutableMap()) - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValValue() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putValValue( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllValValue( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapExternalEnumDefined) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapExternalEnumDefined) - private static final build.buf.validate.conformance.cases.MapExternalEnumDefined DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapExternalEnumDefined(); - } - - public static build.buf.validate.conformance.cases.MapExternalEnumDefined getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapExternalEnumDefined 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.MapExternalEnumDefined getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefinedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefinedOrBuilder.java deleted file mode 100644 index 442dc3ec..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapExternalEnumDefinedOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapExternalEnumDefinedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapExternalEnumDefined) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -build.buf.validate.conformance.cases.other_package.Embed.Enumerated getValOrDefault( - java.lang.String key, - /* nullable */ -build.buf.validate.conformance.cases.other_package.Embed.Enumerated defaultValue); - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.other_package.Embed.Enumerated getValOrThrow( - java.lang.String key); - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValValue(); - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValValueMap(); - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValValueOrDefault( - java.lang.String key, - int defaultValue); - /** - * map<string, .buf.validate.conformance.cases.other_package.Embed.Enumerated> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValValueOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeys.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeys.java deleted file mode 100644 index aaaa5b5d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeys.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapKeys} - */ -public final class MapKeys extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapKeys) - MapKeysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapKeys.class.getName()); - } - // Use MapKeys.newBuilder() to construct. - private MapKeys(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapKeys() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeys_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeys_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapKeys.class, build.buf.validate.conformance.cases.MapKeys.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Long, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeys_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.SINT64, - 0L, - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Long, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - long key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeLongMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapKeys)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapKeys other = (build.buf.validate.conformance.cases.MapKeys) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapKeys parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapKeys 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.MapKeys parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapKeys 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.MapKeys parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapKeys 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.MapKeys parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapKeys 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.MapKeys parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapKeys 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.MapKeys 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.MapKeys 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.MapKeys 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.MapKeys} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapKeys) - build.buf.validate.conformance.cases.MapKeysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeys_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeys_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapKeys.class, build.buf.validate.conformance.cases.MapKeys.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapKeys.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeys_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapKeys getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapKeys.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapKeys build() { - build.buf.validate.conformance.cases.MapKeys result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapKeys buildPartial() { - build.buf.validate.conformance.cases.MapKeys result = new build.buf.validate.conformance.cases.MapKeys(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapKeys result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapKeys) { - return mergeFrom((build.buf.validate.conformance.cases.MapKeys)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapKeys other) { - if (other == build.buf.validate.conformance.cases.MapKeys.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Long, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - long key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - long key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - long key, - java.lang.String value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapKeys) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapKeys) - private static final build.buf.validate.conformance.cases.MapKeys DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapKeys(); - } - - public static build.buf.validate.conformance.cases.MapKeys getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapKeys 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.MapKeys getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysOrBuilder.java deleted file mode 100644 index bd2970eb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapKeysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapKeys) - com.google.protobuf.MessageOrBuilder { - - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - long key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - long key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<sint64, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - long key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPattern.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPattern.java deleted file mode 100644 index 3210d9c5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPattern.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapKeysPattern} - */ -public final class MapKeysPattern extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapKeysPattern) - MapKeysPatternOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapKeysPattern.class.getName()); - } - // Use MapKeysPattern.newBuilder() to construct. - private MapKeysPattern(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapKeysPattern() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeysPattern_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeysPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapKeysPattern.class, build.buf.validate.conformance.cases.MapKeysPattern.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeysPattern_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapKeysPattern)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapKeysPattern other = (build.buf.validate.conformance.cases.MapKeysPattern) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapKeysPattern parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapKeysPattern 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.MapKeysPattern parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapKeysPattern 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.MapKeysPattern parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapKeysPattern 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.MapKeysPattern parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapKeysPattern 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.MapKeysPattern parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapKeysPattern 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.MapKeysPattern 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.MapKeysPattern 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.MapKeysPattern 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.MapKeysPattern} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapKeysPattern) - build.buf.validate.conformance.cases.MapKeysPatternOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeysPattern_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeysPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapKeysPattern.class, build.buf.validate.conformance.cases.MapKeysPattern.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapKeysPattern.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapKeysPattern_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapKeysPattern getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapKeysPattern.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapKeysPattern build() { - build.buf.validate.conformance.cases.MapKeysPattern result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapKeysPattern buildPartial() { - build.buf.validate.conformance.cases.MapKeysPattern result = new build.buf.validate.conformance.cases.MapKeysPattern(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapKeysPattern result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapKeysPattern) { - return mergeFrom((build.buf.validate.conformance.cases.MapKeysPattern)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapKeysPattern other) { - if (other == build.buf.validate.conformance.cases.MapKeysPattern.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapKeysPattern) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapKeysPattern) - private static final build.buf.validate.conformance.cases.MapKeysPattern DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapKeysPattern(); - } - - public static build.buf.validate.conformance.cases.MapKeysPattern getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapKeysPattern 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.MapKeysPattern getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPatternOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPatternOrBuilder.java deleted file mode 100644 index 021b88d0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapKeysPatternOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapKeysPatternOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapKeysPattern) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMax.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMax.java deleted file mode 100644 index 7a669916..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMax.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapMax} - */ -public final class MapMax extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapMax) - MapMaxOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapMax.class.getName()); - } - // Use MapMax.newBuilder() to construct. - private MapMax(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapMax() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMax_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMax_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapMax.class, build.buf.validate.conformance.cases.MapMax.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Long, java.lang.Double> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMax_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT64, - 0L, - com.google.protobuf.WireFormat.FieldType.DOUBLE, - 0D); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Long, java.lang.Double> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public double getValOrDefault( - long key, - double defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public double getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeLongMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapMax)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapMax other = (build.buf.validate.conformance.cases.MapMax) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapMax parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapMax 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.MapMax parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapMax 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.MapMax parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapMax 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.MapMax parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapMax 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.MapMax parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapMax 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.MapMax 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.MapMax 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.MapMax 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.MapMax} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapMax) - build.buf.validate.conformance.cases.MapMaxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMax_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMax_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapMax.class, build.buf.validate.conformance.cases.MapMax.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapMax.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMax_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapMax getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapMax.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapMax build() { - build.buf.validate.conformance.cases.MapMax result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapMax buildPartial() { - build.buf.validate.conformance.cases.MapMax result = new build.buf.validate.conformance.cases.MapMax(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapMax result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapMax) { - return mergeFrom((build.buf.validate.conformance.cases.MapMax)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapMax other) { - if (other == build.buf.validate.conformance.cases.MapMax.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Long, java.lang.Double> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public double getValOrDefault( - long key, - double defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public double getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - long key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - long key, - double value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapMax) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapMax) - private static final build.buf.validate.conformance.cases.MapMax DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapMax(); - } - - public static build.buf.validate.conformance.cases.MapMax getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapMax 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.MapMax getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMaxOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMaxOrBuilder.java deleted file mode 100644 index 7df5a69d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMaxOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapMaxOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapMax) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - long key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - double getValOrDefault( - long key, - double defaultValue); - /** - * map<int64, double> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - double getValOrThrow( - long key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMin.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMin.java deleted file mode 100644 index 525acc81..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMin.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapMin} - */ -public final class MapMin extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapMin) - MapMinOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapMin.class.getName()); - } - // Use MapMin.newBuilder() to construct. - private MapMin(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapMin() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMin_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapMin.class, build.buf.validate.conformance.cases.MapMin.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMin_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public float getValOrDefault( - int key, - float defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public float getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapMin)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapMin other = (build.buf.validate.conformance.cases.MapMin) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapMin parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapMin 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.MapMin parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapMin 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.MapMin parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapMin 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.MapMin parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapMin 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.MapMin parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapMin 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.MapMin 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.MapMin 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.MapMin 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.MapMin} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapMin) - build.buf.validate.conformance.cases.MapMinOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMin_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapMin.class, build.buf.validate.conformance.cases.MapMin.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapMin.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMin_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapMin getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapMin.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapMin build() { - build.buf.validate.conformance.cases.MapMin result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapMin buildPartial() { - build.buf.validate.conformance.cases.MapMin result = new build.buf.validate.conformance.cases.MapMin(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapMin result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapMin) { - return mergeFrom((build.buf.validate.conformance.cases.MapMin)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapMin other) { - if (other == build.buf.validate.conformance.cases.MapMin.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Float> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public float getValOrDefault( - int key, - float defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public float getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - float value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapMin) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapMin) - private static final build.buf.validate.conformance.cases.MapMin DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapMin(); - } - - public static build.buf.validate.conformance.cases.MapMin getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapMin 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.MapMin getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMax.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMax.java deleted file mode 100644 index 9b545290..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMax.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapMinMax} - */ -public final class MapMinMax extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapMinMax) - MapMinMaxOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapMinMax.class.getName()); - } - // Use MapMinMax.newBuilder() to construct. - private MapMinMax(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapMinMax() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMinMax_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMinMax_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapMinMax.class, build.buf.validate.conformance.cases.MapMinMax.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Boolean> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMinMax_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.BOOL, - false); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Boolean> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getValOrDefault( - java.lang.String key, - boolean defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapMinMax)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapMinMax other = (build.buf.validate.conformance.cases.MapMinMax) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapMinMax parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapMinMax 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.MapMinMax parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapMinMax 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.MapMinMax parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapMinMax 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.MapMinMax parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapMinMax 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.MapMinMax parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapMinMax 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.MapMinMax 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.MapMinMax 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.MapMinMax 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.MapMinMax} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapMinMax) - build.buf.validate.conformance.cases.MapMinMaxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMinMax_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMinMax_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapMinMax.class, build.buf.validate.conformance.cases.MapMinMax.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapMinMax.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapMinMax_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapMinMax getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapMinMax.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapMinMax build() { - build.buf.validate.conformance.cases.MapMinMax result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapMinMax buildPartial() { - build.buf.validate.conformance.cases.MapMinMax result = new build.buf.validate.conformance.cases.MapMinMax(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapMinMax result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapMinMax) { - return mergeFrom((build.buf.validate.conformance.cases.MapMinMax)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapMinMax other) { - if (other == build.buf.validate.conformance.cases.MapMinMax.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.Boolean> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getValOrDefault( - java.lang.String key, - boolean defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - boolean value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapMinMax) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapMinMax) - private static final build.buf.validate.conformance.cases.MapMinMax DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapMinMax(); - } - - public static build.buf.validate.conformance.cases.MapMinMax getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapMinMax 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.MapMinMax getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMaxOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMaxOrBuilder.java deleted file mode 100644 index 5cd6a109..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinMaxOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapMinMaxOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapMinMax) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean getValOrDefault( - java.lang.String key, - boolean defaultValue); - /** - * map<string, bool> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean getValOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinOrBuilder.java deleted file mode 100644 index 4a9ee08c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapMinOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapMinOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapMin) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - float getValOrDefault( - int key, - float defaultValue); - /** - * map<int32, float> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - float getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapNone.java deleted file mode 100644 index 55d90e01..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapNone.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapNone} - */ -public final class MapNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapNone) - MapNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapNone.class.getName()); - } - // Use MapNone.newBuilder() to construct. - private MapNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapNone() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapNone_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapNone.class, build.buf.validate.conformance.cases.MapNone.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Boolean> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapNone_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.BOOL, - false); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Boolean> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public boolean getValOrDefault( - int key, - boolean defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public boolean getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapNone other = (build.buf.validate.conformance.cases.MapNone) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapNone 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.MapNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapNone 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.MapNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapNone 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.MapNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapNone 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.MapNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapNone 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.MapNone 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.MapNone 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.MapNone 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.MapNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapNone) - build.buf.validate.conformance.cases.MapNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapNone_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapNone.class, build.buf.validate.conformance.cases.MapNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapNone.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapNone build() { - build.buf.validate.conformance.cases.MapNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapNone buildPartial() { - build.buf.validate.conformance.cases.MapNone result = new build.buf.validate.conformance.cases.MapNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapNone result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapNone) { - return mergeFrom((build.buf.validate.conformance.cases.MapNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapNone other) { - if (other == build.buf.validate.conformance.cases.MapNone.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Boolean> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public boolean getValOrDefault( - int key, - boolean defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public boolean getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - public Builder putVal( - int key, - boolean value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapNone) - private static final build.buf.validate.conformance.cases.MapNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapNone(); - } - - public static build.buf.validate.conformance.cases.MapNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapNone 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.MapNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapNoneOrBuilder.java deleted file mode 100644 index ee9697a9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapNoneOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapNone) - com.google.protobuf.MessageOrBuilder { - - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - int getValCount(); - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - java.util.Map - getValMap(); - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - boolean getValOrDefault( - int key, - boolean defaultValue); - /** - * map<uint32, bool> val = 1 [json_name = "val"]; - */ - boolean getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursive.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursive.java deleted file mode 100644 index 241ffc57..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursive.java +++ /dev/null @@ -1,1181 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapRecursive} - */ -public final class MapRecursive extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapRecursive) - MapRecursiveOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapRecursive.class.getName()); - } - // Use MapRecursive.newBuilder() to construct. - private MapRecursive(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapRecursive() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapRecursive.class, build.buf.validate.conformance.cases.MapRecursive.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapRecursive.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.MapRecursive.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapRecursive.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapRecursive.Msg.class, build.buf.validate.conformance.cases.MapRecursive.Msg.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.MapRecursive.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapRecursive.Msg other = (build.buf.validate.conformance.cases.MapRecursive.Msg) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapRecursive.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapRecursive.Msg 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.MapRecursive.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapRecursive.Msg 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.MapRecursive.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapRecursive.Msg 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.MapRecursive.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapRecursive.Msg 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.MapRecursive.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapRecursive.Msg 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.MapRecursive.Msg 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.MapRecursive.Msg 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.MapRecursive.Msg 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.MapRecursive.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapRecursive.Msg) - build.buf.validate.conformance.cases.MapRecursive.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapRecursive.Msg.class, build.buf.validate.conformance.cases.MapRecursive.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapRecursive.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapRecursive.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapRecursive.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapRecursive.Msg build() { - build.buf.validate.conformance.cases.MapRecursive.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapRecursive.Msg buildPartial() { - build.buf.validate.conformance.cases.MapRecursive.Msg result = new build.buf.validate.conformance.cases.MapRecursive.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapRecursive.Msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapRecursive.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.MapRecursive.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapRecursive.Msg other) { - if (other == build.buf.validate.conformance.cases.MapRecursive.Msg.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapRecursive.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapRecursive.Msg) - private static final build.buf.validate.conformance.cases.MapRecursive.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapRecursive.Msg(); - } - - public static build.buf.validate.conformance.cases.MapRecursive.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.MapRecursive.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, build.buf.validate.conformance.cases.MapRecursive.Msg> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - build.buf.validate.conformance.cases.MapRecursive.Msg.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, build.buf.validate.conformance.cases.MapRecursive.Msg> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.MapRecursive.Msg getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.MapRecursive.Msg defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.MapRecursive.Msg getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapRecursive)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapRecursive other = (build.buf.validate.conformance.cases.MapRecursive) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapRecursive parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapRecursive 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.MapRecursive parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapRecursive 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.MapRecursive parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapRecursive 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.MapRecursive parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapRecursive 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.MapRecursive parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapRecursive 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.MapRecursive 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.MapRecursive 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.MapRecursive 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.MapRecursive} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapRecursive) - build.buf.validate.conformance.cases.MapRecursiveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapRecursive.class, build.buf.validate.conformance.cases.MapRecursive.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapRecursive.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapRecursive_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapRecursive getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapRecursive.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapRecursive build() { - build.buf.validate.conformance.cases.MapRecursive result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapRecursive buildPartial() { - build.buf.validate.conformance.cases.MapRecursive result = new build.buf.validate.conformance.cases.MapRecursive(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapRecursive result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal().build(ValDefaultEntryHolder.defaultEntry); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapRecursive) { - return mergeFrom((build.buf.validate.conformance.cases.MapRecursive)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapRecursive other) { - if (other == build.buf.validate.conformance.cases.MapRecursive.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().ensureBuilderMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 static final class ValConverter implements com.google.protobuf.MapFieldBuilder.Converter { - @java.lang.Override - public build.buf.validate.conformance.cases.MapRecursive.Msg build(build.buf.validate.conformance.cases.MapRecursive.MsgOrBuilder val) { - if (val instanceof build.buf.validate.conformance.cases.MapRecursive.Msg) { return (build.buf.validate.conformance.cases.MapRecursive.Msg) val; } - return ((build.buf.validate.conformance.cases.MapRecursive.Msg.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry defaultEntry() { - return ValDefaultEntryHolder.defaultEntry; - } - }; - private static final ValConverter valConverter = new ValConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.Integer, build.buf.validate.conformance.cases.MapRecursive.MsgOrBuilder, build.buf.validate.conformance.cases.MapRecursive.Msg, build.buf.validate.conformance.cases.MapRecursive.Msg.Builder> val_; - private com.google.protobuf.MapFieldBuilder - internalGetVal() { - if (val_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(valConverter); - } - return val_; - } - private com.google.protobuf.MapFieldBuilder - internalGetMutableVal() { - if (val_ == null) { - val_ = new com.google.protobuf.MapFieldBuilder<>(valConverter); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().ensureBuilderMap().size(); - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().ensureBuilderMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getImmutableMap(); - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.MapRecursive.Msg getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.MapRecursive.Msg defaultValue) { - - java.util.Map map = internalGetMutableVal().ensureBuilderMap(); - return map.containsKey(key) ? valConverter.build(map.get(key)) : defaultValue; - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.MapRecursive.Msg getValOrThrow( - int key) { - - java.util.Map map = internalGetMutableVal().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valConverter.build(map.get(key)); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().clear(); - return this; - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().ensureBuilderMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().ensureMessageMap(); - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - public Builder putVal( - int key, - build.buf.validate.conformance.cases.MapRecursive.Msg value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().ensureBuilderMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - public Builder putAllVal( - java.util.Map values) { - for (java.util.Map.Entry e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableVal().ensureBuilderMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.MapRecursive.Msg.Builder putValBuilderIfAbsent( - int key) { - java.util.Map builderMap = internalGetMutableVal().ensureBuilderMap(); - build.buf.validate.conformance.cases.MapRecursive.MsgOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = build.buf.validate.conformance.cases.MapRecursive.Msg.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof build.buf.validate.conformance.cases.MapRecursive.Msg) { - entry = ((build.buf.validate.conformance.cases.MapRecursive.Msg) entry).toBuilder(); - builderMap.put(key, entry); - } - return (build.buf.validate.conformance.cases.MapRecursive.Msg.Builder) entry; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapRecursive) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapRecursive) - private static final build.buf.validate.conformance.cases.MapRecursive DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapRecursive(); - } - - public static build.buf.validate.conformance.cases.MapRecursive getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapRecursive 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.MapRecursive getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursiveOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursiveOrBuilder.java deleted file mode 100644 index 9bee11f2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapRecursiveOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapRecursiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapRecursive) - com.google.protobuf.MessageOrBuilder { - - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - int getValCount(); - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - java.util.Map - getValMap(); - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - /* nullable */ -build.buf.validate.conformance.cases.MapRecursive.Msg getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.MapRecursive.Msg defaultValue); - /** - * map<uint32, .buf.validate.conformance.cases.MapRecursive.Msg> val = 1 [json_name = "val"]; - */ - build.buf.validate.conformance.cases.MapRecursive.Msg getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValues.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapValues.java deleted file mode 100644 index c52de704..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValues.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapValues} - */ -public final class MapValues extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapValues) - MapValuesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapValues.class.getName()); - } - // Use MapValues.newBuilder() to construct. - private MapValues(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapValues() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValues_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapValues.class, build.buf.validate.conformance.cases.MapValues.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValues_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapValues)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapValues other = (build.buf.validate.conformance.cases.MapValues) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapValues parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapValues 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.MapValues parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapValues 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.MapValues parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapValues 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.MapValues parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapValues 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.MapValues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapValues 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.MapValues 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.MapValues 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.MapValues 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.MapValues} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapValues) - build.buf.validate.conformance.cases.MapValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValues_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapValues.class, build.buf.validate.conformance.cases.MapValues.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapValues.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValues_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapValues getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapValues.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapValues build() { - build.buf.validate.conformance.cases.MapValues result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapValues buildPartial() { - build.buf.validate.conformance.cases.MapValues result = new build.buf.validate.conformance.cases.MapValues(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapValues result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapValues) { - return mergeFrom((build.buf.validate.conformance.cases.MapValues)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapValues other) { - if (other == build.buf.validate.conformance.cases.MapValues.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapValues) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapValues) - private static final build.buf.validate.conformance.cases.MapValues DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapValues(); - } - - public static build.buf.validate.conformance.cases.MapValues getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapValues 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.MapValues getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesOrBuilder.java deleted file mode 100644 index 9729e78e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapValuesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapValues) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPattern.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPattern.java deleted file mode 100644 index dd2ad17f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPattern.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MapValuesPattern} - */ -public final class MapValuesPattern extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MapValuesPattern) - MapValuesPatternOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapValuesPattern.class.getName()); - } - // Use MapValuesPattern.newBuilder() to construct. - private MapValuesPattern(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MapValuesPattern() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValuesPattern_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValuesPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapValuesPattern.class, build.buf.validate.conformance.cases.MapValuesPattern.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValuesPattern_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.MapValuesPattern)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MapValuesPattern other = (build.buf.validate.conformance.cases.MapValuesPattern) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MapValuesPattern parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapValuesPattern 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.MapValuesPattern parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapValuesPattern 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.MapValuesPattern parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MapValuesPattern 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.MapValuesPattern parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MapValuesPattern 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.MapValuesPattern parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MapValuesPattern 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.MapValuesPattern 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.MapValuesPattern 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.MapValuesPattern 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.MapValuesPattern} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MapValuesPattern) - build.buf.validate.conformance.cases.MapValuesPatternOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValuesPattern_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValuesPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MapValuesPattern.class, build.buf.validate.conformance.cases.MapValuesPattern.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MapValuesPattern.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MapValuesPattern_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapValuesPattern getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MapValuesPattern.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapValuesPattern build() { - build.buf.validate.conformance.cases.MapValuesPattern result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MapValuesPattern buildPartial() { - build.buf.validate.conformance.cases.MapValuesPattern result = new build.buf.validate.conformance.cases.MapValuesPattern(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MapValuesPattern result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MapValuesPattern) { - return mergeFrom((build.buf.validate.conformance.cases.MapValuesPattern)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MapValuesPattern other) { - if (other == build.buf.validate.conformance.cases.MapValuesPattern.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MapValuesPattern) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MapValuesPattern) - private static final build.buf.validate.conformance.cases.MapValuesPattern DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MapValuesPattern(); - } - - public static build.buf.validate.conformance.cases.MapValuesPattern getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapValuesPattern 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.MapValuesPattern getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPatternOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPatternOrBuilder.java deleted file mode 100644 index bb13e54d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapValuesPatternOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MapValuesPatternOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MapValuesPattern) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MapsProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MapsProto.java deleted file mode 100644 index 1a6b5e7e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MapsProto.java +++ /dev/null @@ -1,415 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class MapsProto { - private MapsProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapsProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapNone_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapNone_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapMin_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapMin_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapMin_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapMin_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapMax_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapMax_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapMax_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapMax_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapMinMax_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapMinMax_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapMinMax_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapMinMax_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapExact_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapExact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapExact_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapExact_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapKeys_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapKeys_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapKeys_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapKeys_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapValues_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapValues_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapValues_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapKeysPattern_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapKeysPattern_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapKeysPattern_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapKeysPattern_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapValuesPattern_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapValuesPattern_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapValuesPattern_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapValuesPattern_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapRecursive_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapRecursive_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapRecursive_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapRecursive_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapRecursive_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapRecursive_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapExactIgnore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapExactIgnore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MapExactIgnore_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MapExactIgnore_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MultipleMaps_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MultipleMaps_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MultipleMaps_FirstEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MultipleMaps_FirstEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MultipleMaps_SecondEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MultipleMaps_SecondEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MultipleMaps_ThirdEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MultipleMaps_ThirdEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)buf/validate/conformance/cases/maps.pr" + - "oto\022\036buf.validate.conformance.cases\032\033buf" + - "/validate/validate.proto\"\205\001\n\007MapNone\022B\n\003" + - "val\030\001 \003(\01320.buf.validate.conformance.cas" + - "es.MapNone.ValEntryR\003val\0326\n\010ValEntry\022\020\n\003" + - "key\030\001 \001(\rR\003key\022\024\n\005value\030\002 \001(\010R\005value:\0028\001" + - "\"\215\001\n\006MapMin\022K\n\003val\030\001 \003(\0132/.buf.validate." + - "conformance.cases.MapMin.ValEntryB\010\272H\005\232\001" + - "\002\010\002R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022\024" + - "\n\005value\030\002 \001(\002R\005value:\0028\001\"\215\001\n\006MapMax\022K\n\003v" + - "al\030\001 \003(\0132/.buf.validate.conformance.case" + - "s.MapMax.ValEntryB\010\272H\005\232\001\002\020\003R\003val\0326\n\010ValE" + - "ntry\022\020\n\003key\030\001 \001(\003R\003key\022\024\n\005value\030\002 \001(\001R\005v" + - "alue:\0028\001\"\225\001\n\tMapMinMax\022P\n\003val\030\001 \003(\01322.bu" + - "f.validate.conformance.cases.MapMinMax.V" + - "alEntryB\n\272H\007\232\001\004\010\002\020\004R\003val\0326\n\010ValEntry\022\020\n\003" + - "key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\010R\005value:\0028\001" + - "\"\223\001\n\010MapExact\022O\n\003val\030\001 \003(\01321.buf.validat" + - "e.conformance.cases.MapExact.ValEntryB\n\272" + - "H\007\232\001\004\010\003\020\003R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\004R" + - "\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\223\001\n\007MapKe" + - "ys\022P\n\003val\030\001 \003(\01320.buf.validate.conforman" + - "ce.cases.MapKeys.ValEntryB\014\272H\t\232\001\006\"\004B\002\020\000R" + - "\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\022R\003key\022\024\n\005va" + - "lue\030\002 \001(\tR\005value:\0028\001\"\227\001\n\tMapValues\022R\n\003va" + - "l\030\001 \003(\01322.buf.validate.conformance.cases" + - ".MapValues.ValEntryB\014\272H\t\232\001\006*\004r\002\020\003R\003val\0326" + - "\n\010ValEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 " + - "\001(\tR\005value:\0028\001\"\260\001\n\016MapKeysPattern\022f\n\003val" + - "\030\001 \003(\01327.buf.validate.conformance.cases." + - "MapKeysPattern.ValEntryB\033\272H\030\232\001\025\"\023r\0212\017(?i" + - ")^[a-z0-9]+$R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001" + - "(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\264\001\n\020Ma" + - "pValuesPattern\022h\n\003val\030\001 \003(\01329.buf.valida" + - "te.conformance.cases.MapValuesPattern.Va" + - "lEntryB\033\272H\030\232\001\025*\023r\0212\017(?i)^[a-z0-9]+$R\003val" + - "\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030" + - "\002 \001(\tR\005value:\0028\001\"\343\001\n\014MapRecursive\022G\n\003val" + - "\030\001 \003(\01325.buf.validate.conformance.cases." + - "MapRecursive.ValEntryR\003val\032h\n\010ValEntry\022\020" + - "\n\003key\030\001 \001(\rR\003key\022F\n\005value\030\002 \001(\01320.buf.va" + - "lidate.conformance.cases.MapRecursive.Ms" + - "gR\005value:\0028\001\032 \n\003Msg\022\031\n\003val\030\001 \001(\tB\007\272H\004r\002\020" + - "\003R\003val\"\242\001\n\016MapExactIgnore\022X\n\003val\030\001 \003(\01327" + - ".buf.validate.conformance.cases.MapExact" + - "Ignore.ValEntryB\r\272H\n\232\001\004\010\003\020\003\330\001\001R\003val\0326\n\010V" + - "alEntry\022\020\n\003key\030\001 \001(\004R\003key\022\024\n\005value\030\002 \001(\t" + - "R\005value:\0028\001\"\327\003\n\014MultipleMaps\022[\n\005first\030\001 " + - "\003(\01327.buf.validate.conformance.cases.Mul" + - "tipleMaps.FirstEntryB\014\272H\t\232\001\006\"\004*\002 \000R\005firs" + - "t\022^\n\006second\030\002 \003(\01328.buf.validate.conform" + - "ance.cases.MultipleMaps.SecondEntryB\014\272H\t" + - "\232\001\006\"\004\032\002\020\000R\006second\022[\n\005third\030\003 \003(\01327.buf.v" + - "alidate.conformance.cases.MultipleMaps.T" + - "hirdEntryB\014\272H\t\232\001\006\"\004\032\002 \000R\005third\0328\n\nFirstE" + - "ntry\022\020\n\003key\030\001 \001(\rR\003key\022\024\n\005value\030\002 \001(\tR\005v" + - "alue:\0028\001\0329\n\013SecondEntry\022\020\n\003key\030\001 \001(\005R\003ke" + - "y\022\024\n\005value\030\002 \001(\010R\005value:\0028\001\0328\n\nThirdEntr" + - "y\022\020\n\003key\030\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\010R\005valu" + - "e:\0028\001B\315\001\n$build.buf.validate.conformance" + - ".casesB\tMapsProtoP\001\242\002\004BVCC\252\002\036Buf.Validat" + - "e.Conformance.Cases\312\002\036Buf\\Validate\\Confo" + - "rmance\\Cases\342\002*Buf\\Validate\\Conformance\\" + - "Cases\\GPBMetadata\352\002!Buf::Validate::Confo" + - "rmance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_MapNone_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_MapNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapNone_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapNone_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapNone_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapNone_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MapMin_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_MapMin_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapMin_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapMin_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapMin_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapMin_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapMin_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MapMax_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_MapMax_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapMax_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapMax_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapMax_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapMax_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapMax_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MapMinMax_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_MapMinMax_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapMinMax_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapMinMax_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapMinMax_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapMinMax_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapMinMax_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MapExact_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_MapExact_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapExact_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapExact_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapExact_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapExact_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapExact_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MapKeys_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_MapKeys_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapKeys_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapKeys_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapKeys_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapKeys_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapKeys_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MapValues_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_MapValues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapValues_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapValues_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapValues_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapValues_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapValues_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MapKeysPattern_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_MapKeysPattern_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapKeysPattern_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapKeysPattern_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapKeysPattern_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapKeysPattern_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapKeysPattern_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MapValuesPattern_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_MapValuesPattern_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapValuesPattern_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapValuesPattern_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapValuesPattern_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapValuesPattern_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapValuesPattern_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MapRecursive_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_MapRecursive_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapRecursive_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapRecursive_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapRecursive_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapRecursive_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapRecursive_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MapRecursive_Msg_descriptor = - internal_static_buf_validate_conformance_cases_MapRecursive_descriptor.getNestedTypes().get(1); - internal_static_buf_validate_conformance_cases_MapRecursive_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapRecursive_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapExactIgnore_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_MapExactIgnore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapExactIgnore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MapExactIgnore_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_MapExactIgnore_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MapExactIgnore_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MapExactIgnore_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MultipleMaps_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_MultipleMaps_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MultipleMaps_descriptor, - new java.lang.String[] { "First", "Second", "Third", }); - internal_static_buf_validate_conformance_cases_MultipleMaps_FirstEntry_descriptor = - internal_static_buf_validate_conformance_cases_MultipleMaps_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MultipleMaps_FirstEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MultipleMaps_FirstEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MultipleMaps_SecondEntry_descriptor = - internal_static_buf_validate_conformance_cases_MultipleMaps_descriptor.getNestedTypes().get(1); - internal_static_buf_validate_conformance_cases_MultipleMaps_SecondEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MultipleMaps_SecondEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_MultipleMaps_ThirdEntry_descriptor = - internal_static_buf_validate_conformance_cases_MultipleMaps_descriptor.getNestedTypes().get(2); - internal_static_buf_validate_conformance_cases_MultipleMaps_ThirdEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MultipleMaps_ThirdEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Message.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Message.java deleted file mode 100644 index 73725b5d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Message.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Message} - */ -public final class Message extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Message) - MessageOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Message.class.getName()); - } - // Use Message.newBuilder() to construct. - private Message(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Message() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_Message_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Message.class, build.buf.validate.conformance.cases.Message.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.TestMsg val_; - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Message)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Message other = (build.buf.validate.conformance.cases.Message) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Message parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Message 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.Message parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Message 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.Message parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Message 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.Message parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Message 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.Message parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Message 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.Message 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.Message 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.Message 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.Message} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Message) - build.buf.validate.conformance.cases.MessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_Message_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Message.class, build.buf.validate.conformance.cases.Message.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Message.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_Message_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Message getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Message.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Message build() { - build.buf.validate.conformance.cases.Message result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Message buildPartial() { - build.buf.validate.conformance.cases.Message result = new build.buf.validate.conformance.cases.Message(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Message result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Message) { - return mergeFrom((build.buf.validate.conformance.cases.Message)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Message other) { - if (other == build.buf.validate.conformance.cases.Message.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.TestMsg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - * @return The val. - */ - public build.buf.validate.conformance.cases.TestMsg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - */ - public Builder setVal(build.buf.validate.conformance.cases.TestMsg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - */ - public Builder setVal( - build.buf.validate.conformance.cases.TestMsg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - */ - public Builder mergeVal(build.buf.validate.conformance.cases.TestMsg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.TestMsg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.TestMsg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Message) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Message) - private static final build.buf.validate.conformance.cases.Message DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Message(); - } - - public static build.buf.validate.conformance.cases.Message getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Message 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.Message getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackage.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackage.java deleted file mode 100644 index 366ca6ec..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackage.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MessageCrossPackage} - */ -public final class MessageCrossPackage extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MessageCrossPackage) - MessageCrossPackageOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MessageCrossPackage.class.getName()); - } - // Use MessageCrossPackage.newBuilder() to construct. - private MessageCrossPackage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MessageCrossPackage() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageCrossPackage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageCrossPackage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageCrossPackage.class, build.buf.validate.conformance.cases.MessageCrossPackage.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.other_package.Embed val_; - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed getVal() { - return val_ == null ? build.buf.validate.conformance.cases.other_package.Embed.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.EmbedOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.other_package.Embed.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.MessageCrossPackage)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MessageCrossPackage other = (build.buf.validate.conformance.cases.MessageCrossPackage) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MessageCrossPackage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageCrossPackage 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.MessageCrossPackage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageCrossPackage 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.MessageCrossPackage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageCrossPackage 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.MessageCrossPackage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MessageCrossPackage 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.MessageCrossPackage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MessageCrossPackage 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.MessageCrossPackage 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.MessageCrossPackage 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.MessageCrossPackage 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.MessageCrossPackage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MessageCrossPackage) - build.buf.validate.conformance.cases.MessageCrossPackageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageCrossPackage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageCrossPackage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageCrossPackage.class, build.buf.validate.conformance.cases.MessageCrossPackage.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MessageCrossPackage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageCrossPackage_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageCrossPackage getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MessageCrossPackage.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageCrossPackage build() { - build.buf.validate.conformance.cases.MessageCrossPackage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageCrossPackage buildPartial() { - build.buf.validate.conformance.cases.MessageCrossPackage result = new build.buf.validate.conformance.cases.MessageCrossPackage(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MessageCrossPackage result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MessageCrossPackage) { - return mergeFrom((build.buf.validate.conformance.cases.MessageCrossPackage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MessageCrossPackage other) { - if (other == build.buf.validate.conformance.cases.MessageCrossPackage.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.other_package.Embed val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.other_package.Embed, build.buf.validate.conformance.cases.other_package.Embed.Builder, build.buf.validate.conformance.cases.other_package.EmbedOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - * @return The val. - */ - public build.buf.validate.conformance.cases.other_package.Embed getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.other_package.Embed.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder setVal(build.buf.validate.conformance.cases.other_package.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder setVal( - build.buf.validate.conformance.cases.other_package.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder mergeVal(build.buf.validate.conformance.cases.other_package.Embed value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.other_package.Embed.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.other_package.Embed.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.other_package.EmbedOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.other_package.Embed.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.other_package.Embed, build.buf.validate.conformance.cases.other_package.Embed.Builder, build.buf.validate.conformance.cases.other_package.EmbedOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.other_package.Embed, build.buf.validate.conformance.cases.other_package.Embed.Builder, build.buf.validate.conformance.cases.other_package.EmbedOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageCrossPackage) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MessageCrossPackage) - private static final build.buf.validate.conformance.cases.MessageCrossPackage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MessageCrossPackage(); - } - - public static build.buf.validate.conformance.cases.MessageCrossPackage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageCrossPackage 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.MessageCrossPackage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackageOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackageOrBuilder.java deleted file mode 100644 index 6366ceb6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageCrossPackageOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MessageCrossPackageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MessageCrossPackage) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - * @return The val. - */ - build.buf.validate.conformance.cases.other_package.Embed getVal(); - /** - * .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - build.buf.validate.conformance.cases.other_package.EmbedOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabled.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabled.java deleted file mode 100644 index 0ee793ee..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabled.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MessageDisabled} - */ -public final class MessageDisabled extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MessageDisabled) - MessageDisabledOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MessageDisabled.class.getName()); - } - // Use MessageDisabled.newBuilder() to construct. - private MessageDisabled(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MessageDisabled() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageDisabled_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageDisabled_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageDisabled.class, build.buf.validate.conformance.cases.MessageDisabled.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.MessageDisabled)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MessageDisabled other = (build.buf.validate.conformance.cases.MessageDisabled) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MessageDisabled parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageDisabled 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.MessageDisabled parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageDisabled 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.MessageDisabled parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageDisabled 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.MessageDisabled parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MessageDisabled 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.MessageDisabled parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MessageDisabled 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.MessageDisabled 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.MessageDisabled 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.MessageDisabled 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.MessageDisabled} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MessageDisabled) - build.buf.validate.conformance.cases.MessageDisabledOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageDisabled_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageDisabled_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageDisabled.class, build.buf.validate.conformance.cases.MessageDisabled.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MessageDisabled.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageDisabled_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageDisabled getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MessageDisabled.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageDisabled build() { - build.buf.validate.conformance.cases.MessageDisabled result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageDisabled buildPartial() { - build.buf.validate.conformance.cases.MessageDisabled result = new build.buf.validate.conformance.cases.MessageDisabled(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MessageDisabled result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MessageDisabled) { - return mergeFrom((build.buf.validate.conformance.cases.MessageDisabled)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MessageDisabled other) { - if (other == build.buf.validate.conformance.cases.MessageDisabled.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageDisabled) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MessageDisabled) - private static final build.buf.validate.conformance.cases.MessageDisabled DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MessageDisabled(); - } - - public static build.buf.validate.conformance.cases.MessageDisabled getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageDisabled 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.MessageDisabled getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabledOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabledOrBuilder.java deleted file mode 100644 index 19c742f5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageDisabledOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MessageDisabledOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MessageDisabled) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageNone.java deleted file mode 100644 index 0acbe889..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageNone.java +++ /dev/null @@ -1,913 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MessageNone} - */ -public final class MessageNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MessageNone) - MessageNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MessageNone.class.getName()); - } - // Use MessageNone.newBuilder() to construct. - private MessageNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MessageNone() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageNone.class, build.buf.validate.conformance.cases.MessageNone.Builder.class); - } - - public interface NoneMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MessageNone.NoneMsg) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.validate.conformance.cases.MessageNone.NoneMsg} - */ - public static final class NoneMsg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MessageNone.NoneMsg) - NoneMsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - NoneMsg.class.getName()); - } - // Use NoneMsg.newBuilder() to construct. - private NoneMsg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private NoneMsg() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageNone.NoneMsg.class, build.buf.validate.conformance.cases.MessageNone.NoneMsg.Builder.class); - } - - 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 { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.MessageNone.NoneMsg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MessageNone.NoneMsg other = (build.buf.validate.conformance.cases.MessageNone.NoneMsg) obj; - - 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(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MessageNone.NoneMsg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageNone.NoneMsg 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.MessageNone.NoneMsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageNone.NoneMsg 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.MessageNone.NoneMsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageNone.NoneMsg 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.MessageNone.NoneMsg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MessageNone.NoneMsg 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.MessageNone.NoneMsg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MessageNone.NoneMsg 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.MessageNone.NoneMsg 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.MessageNone.NoneMsg 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.MessageNone.NoneMsg 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.MessageNone.NoneMsg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MessageNone.NoneMsg) - build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageNone.NoneMsg.class, build.buf.validate.conformance.cases.MessageNone.NoneMsg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MessageNone.NoneMsg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageNone.NoneMsg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MessageNone.NoneMsg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageNone.NoneMsg build() { - build.buf.validate.conformance.cases.MessageNone.NoneMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageNone.NoneMsg buildPartial() { - build.buf.validate.conformance.cases.MessageNone.NoneMsg result = new build.buf.validate.conformance.cases.MessageNone.NoneMsg(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MessageNone.NoneMsg) { - return mergeFrom((build.buf.validate.conformance.cases.MessageNone.NoneMsg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MessageNone.NoneMsg other) { - if (other == build.buf.validate.conformance.cases.MessageNone.NoneMsg.getDefaultInstance()) return this; - 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; - 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; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageNone.NoneMsg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MessageNone.NoneMsg) - private static final build.buf.validate.conformance.cases.MessageNone.NoneMsg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MessageNone.NoneMsg(); - } - - public static build.buf.validate.conformance.cases.MessageNone.NoneMsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NoneMsg 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.MessageNone.NoneMsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.MessageNone.NoneMsg val_; - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.MessageNone.NoneMsg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.MessageNone.NoneMsg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.MessageNone.NoneMsg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.MessageNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MessageNone other = (build.buf.validate.conformance.cases.MessageNone) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MessageNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageNone 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.MessageNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageNone 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.MessageNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageNone 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.MessageNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MessageNone 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.MessageNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MessageNone 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.MessageNone 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.MessageNone 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.MessageNone 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.MessageNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MessageNone) - build.buf.validate.conformance.cases.MessageNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageNone.class, build.buf.validate.conformance.cases.MessageNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MessageNone.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MessageNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageNone build() { - build.buf.validate.conformance.cases.MessageNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageNone buildPartial() { - build.buf.validate.conformance.cases.MessageNone result = new build.buf.validate.conformance.cases.MessageNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MessageNone result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MessageNone) { - return mergeFrom((build.buf.validate.conformance.cases.MessageNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MessageNone other) { - if (other == build.buf.validate.conformance.cases.MessageNone.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.MessageNone.NoneMsg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.MessageNone.NoneMsg, build.buf.validate.conformance.cases.MessageNone.NoneMsg.Builder, build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - * @return The val. - */ - public build.buf.validate.conformance.cases.MessageNone.NoneMsg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.MessageNone.NoneMsg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - */ - public Builder setVal(build.buf.validate.conformance.cases.MessageNone.NoneMsg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - */ - public Builder setVal( - build.buf.validate.conformance.cases.MessageNone.NoneMsg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - */ - public Builder mergeVal(build.buf.validate.conformance.cases.MessageNone.NoneMsg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.MessageNone.NoneMsg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.MessageNone.NoneMsg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.MessageNone.NoneMsg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.MessageNone.NoneMsg, build.buf.validate.conformance.cases.MessageNone.NoneMsg.Builder, build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.MessageNone.NoneMsg, build.buf.validate.conformance.cases.MessageNone.NoneMsg.Builder, build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MessageNone) - private static final build.buf.validate.conformance.cases.MessageNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MessageNone(); - } - - public static build.buf.validate.conformance.cases.MessageNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageNone 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.MessageNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageNoneOrBuilder.java deleted file mode 100644 index 76f4a779..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageNoneOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MessageNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MessageNone) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - * @return The val. - */ - build.buf.validate.conformance.cases.MessageNone.NoneMsg getVal(); - /** - * .buf.validate.conformance.cases.MessageNone.NoneMsg val = 1 [json_name = "val"]; - */ - build.buf.validate.conformance.cases.MessageNone.NoneMsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageOrBuilder.java deleted file mode 100644 index e9b2665c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Message) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - * @return The val. - */ - build.buf.validate.conformance.cases.TestMsg getVal(); - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val"]; - */ - build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequired.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequired.java deleted file mode 100644 index 6e6579aa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequired.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MessageRequired} - */ -public final class MessageRequired extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MessageRequired) - MessageRequiredOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MessageRequired.class.getName()); - } - // Use MessageRequired.newBuilder() to construct. - private MessageRequired(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MessageRequired() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageRequired.class, build.buf.validate.conformance.cases.MessageRequired.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.TestMsg val_; - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.MessageRequired)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MessageRequired other = (build.buf.validate.conformance.cases.MessageRequired) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MessageRequired parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageRequired 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.MessageRequired parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageRequired 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.MessageRequired parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageRequired 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.MessageRequired parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MessageRequired 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.MessageRequired parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MessageRequired 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.MessageRequired 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.MessageRequired 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.MessageRequired 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.MessageRequired} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MessageRequired) - build.buf.validate.conformance.cases.MessageRequiredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageRequired.class, build.buf.validate.conformance.cases.MessageRequired.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MessageRequired.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequired_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageRequired getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MessageRequired.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageRequired build() { - build.buf.validate.conformance.cases.MessageRequired result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageRequired buildPartial() { - build.buf.validate.conformance.cases.MessageRequired result = new build.buf.validate.conformance.cases.MessageRequired(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MessageRequired result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MessageRequired) { - return mergeFrom((build.buf.validate.conformance.cases.MessageRequired)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MessageRequired other) { - if (other == build.buf.validate.conformance.cases.MessageRequired.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.TestMsg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.TestMsg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.TestMsg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.TestMsg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.TestMsg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.TestMsg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.TestMsg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageRequired) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MessageRequired) - private static final build.buf.validate.conformance.cases.MessageRequired DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MessageRequired(); - } - - public static build.buf.validate.conformance.cases.MessageRequired getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageRequired 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.MessageRequired getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptional.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptional.java deleted file mode 100644 index fc5fa2cd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptional.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MessageRequiredButOptional} - */ -public final class MessageRequiredButOptional extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MessageRequiredButOptional) - MessageRequiredButOptionalOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MessageRequiredButOptional.class.getName()); - } - // Use MessageRequiredButOptional.newBuilder() to construct. - private MessageRequiredButOptional(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MessageRequiredButOptional() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageRequiredButOptional.class, build.buf.validate.conformance.cases.MessageRequiredButOptional.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.TestMsg val_; - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.MessageRequiredButOptional)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MessageRequiredButOptional other = (build.buf.validate.conformance.cases.MessageRequiredButOptional) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MessageRequiredButOptional parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageRequiredButOptional 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.MessageRequiredButOptional parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageRequiredButOptional 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.MessageRequiredButOptional parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageRequiredButOptional 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.MessageRequiredButOptional parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MessageRequiredButOptional 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.MessageRequiredButOptional parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MessageRequiredButOptional 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.MessageRequiredButOptional 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.MessageRequiredButOptional 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.MessageRequiredButOptional 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.MessageRequiredButOptional} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MessageRequiredButOptional) - build.buf.validate.conformance.cases.MessageRequiredButOptionalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageRequiredButOptional.class, build.buf.validate.conformance.cases.MessageRequiredButOptional.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MessageRequiredButOptional.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageRequiredButOptional getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MessageRequiredButOptional.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageRequiredButOptional build() { - build.buf.validate.conformance.cases.MessageRequiredButOptional result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageRequiredButOptional buildPartial() { - build.buf.validate.conformance.cases.MessageRequiredButOptional result = new build.buf.validate.conformance.cases.MessageRequiredButOptional(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MessageRequiredButOptional result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MessageRequiredButOptional) { - return mergeFrom((build.buf.validate.conformance.cases.MessageRequiredButOptional)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MessageRequiredButOptional other) { - if (other == build.buf.validate.conformance.cases.MessageRequiredButOptional.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.TestMsg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.TestMsg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.TestMsg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.TestMsg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.TestMsg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.TestMsg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.TestMsg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageRequiredButOptional) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MessageRequiredButOptional) - private static final build.buf.validate.conformance.cases.MessageRequiredButOptional DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MessageRequiredButOptional(); - } - - public static build.buf.validate.conformance.cases.MessageRequiredButOptional getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageRequiredButOptional 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.MessageRequiredButOptional getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptionalOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptionalOrBuilder.java deleted file mode 100644 index c8f83609..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredButOptionalOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MessageRequiredButOptionalOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MessageRequiredButOptional) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestMsg getVal(); - /** - * optional .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneof.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneof.java deleted file mode 100644 index 8f35fe85..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneof.java +++ /dev/null @@ -1,648 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MessageRequiredOneof} - */ -public final class MessageRequiredOneof extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MessageRequiredOneof) - MessageRequiredOneofOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MessageRequiredOneof.class.getName()); - } - // Use MessageRequiredOneof.newBuilder() to construct. - private MessageRequiredOneof(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MessageRequiredOneof() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredOneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredOneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageRequiredOneof.class, build.buf.validate.conformance.cases.MessageRequiredOneof.Builder.class); - } - - private int oneCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object one_; - public enum OneCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - ONE_NOT_SET(0); - private final int value; - private OneCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneCase valueOf(int value) { - return forNumber(value); - } - - public static OneCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return ONE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneCase - getOneCase() { - return OneCase.forNumber( - oneCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oneCase_ == 1; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsg getVal() { - if (oneCase_ == 1) { - return (build.buf.validate.conformance.cases.TestMsg) one_; - } - return build.buf.validate.conformance.cases.TestMsg.getDefaultInstance(); - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { - if (oneCase_ == 1) { - return (build.buf.validate.conformance.cases.TestMsg) one_; - } - return build.buf.validate.conformance.cases.TestMsg.getDefaultInstance(); - } - - 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 { - if (oneCase_ == 1) { - output.writeMessage(1, (build.buf.validate.conformance.cases.TestMsg) one_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (build.buf.validate.conformance.cases.TestMsg) one_); - } - 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.MessageRequiredOneof)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MessageRequiredOneof other = (build.buf.validate.conformance.cases.MessageRequiredOneof) obj; - - if (!getOneCase().equals(other.getOneCase())) return false; - switch (oneCase_) { - case 1: - if (!getVal() - .equals(other.getVal())) return false; - break; - case 0: - default: - } - 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(); - switch (oneCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MessageRequiredOneof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageRequiredOneof 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.MessageRequiredOneof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageRequiredOneof 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.MessageRequiredOneof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageRequiredOneof 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.MessageRequiredOneof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MessageRequiredOneof 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.MessageRequiredOneof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MessageRequiredOneof 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.MessageRequiredOneof 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.MessageRequiredOneof 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.MessageRequiredOneof 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.MessageRequiredOneof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MessageRequiredOneof) - build.buf.validate.conformance.cases.MessageRequiredOneofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredOneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredOneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageRequiredOneof.class, build.buf.validate.conformance.cases.MessageRequiredOneof.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MessageRequiredOneof.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) { - valBuilder_.clear(); - } - oneCase_ = 0; - one_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageRequiredOneof_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageRequiredOneof getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MessageRequiredOneof.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageRequiredOneof build() { - build.buf.validate.conformance.cases.MessageRequiredOneof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageRequiredOneof buildPartial() { - build.buf.validate.conformance.cases.MessageRequiredOneof result = new build.buf.validate.conformance.cases.MessageRequiredOneof(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MessageRequiredOneof result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.MessageRequiredOneof result) { - result.oneCase_ = oneCase_; - result.one_ = this.one_; - if (oneCase_ == 1 && - valBuilder_ != null) { - result.one_ = valBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MessageRequiredOneof) { - return mergeFrom((build.buf.validate.conformance.cases.MessageRequiredOneof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MessageRequiredOneof other) { - if (other == build.buf.validate.conformance.cases.MessageRequiredOneof.getDefaultInstance()) return this; - switch (other.getOneCase()) { - case VAL: { - mergeVal(other.getVal()); - break; - } - case ONE_NOT_SET: { - break; - } - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - oneCase_ = 1; - 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 oneCase_ = 0; - private java.lang.Object one_; - public OneCase - getOneCase() { - return OneCase.forNumber( - oneCase_); - } - - public Builder clearOne() { - oneCase_ = 0; - one_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oneCase_ == 1; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsg getVal() { - if (valBuilder_ == null) { - if (oneCase_ == 1) { - return (build.buf.validate.conformance.cases.TestMsg) one_; - } - return build.buf.validate.conformance.cases.TestMsg.getDefaultInstance(); - } else { - if (oneCase_ == 1) { - return valBuilder_.getMessage(); - } - return build.buf.validate.conformance.cases.TestMsg.getDefaultInstance(); - } - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.TestMsg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - one_ = value; - onChanged(); - } else { - valBuilder_.setMessage(value); - } - oneCase_ = 1; - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.TestMsg.Builder builderForValue) { - if (valBuilder_ == null) { - one_ = builderForValue.build(); - onChanged(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - oneCase_ = 1; - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.TestMsg value) { - if (valBuilder_ == null) { - if (oneCase_ == 1 && - one_ != build.buf.validate.conformance.cases.TestMsg.getDefaultInstance()) { - one_ = build.buf.validate.conformance.cases.TestMsg.newBuilder((build.buf.validate.conformance.cases.TestMsg) one_) - .mergeFrom(value).buildPartial(); - } else { - one_ = value; - } - onChanged(); - } else { - if (oneCase_ == 1) { - valBuilder_.mergeFrom(value); - } else { - valBuilder_.setMessage(value); - } - } - oneCase_ = 1; - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - if (valBuilder_ == null) { - if (oneCase_ == 1) { - oneCase_ = 0; - one_ = null; - onChanged(); - } - } else { - if (oneCase_ == 1) { - oneCase_ = 0; - one_ = null; - } - valBuilder_.clear(); - } - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.TestMsg.Builder getValBuilder() { - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { - if ((oneCase_ == 1) && (valBuilder_ != null)) { - return valBuilder_.getMessageOrBuilder(); - } else { - if (oneCase_ == 1) { - return (build.buf.validate.conformance.cases.TestMsg) one_; - } - return build.buf.validate.conformance.cases.TestMsg.getDefaultInstance(); - } - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - if (!(oneCase_ == 1)) { - one_ = build.buf.validate.conformance.cases.TestMsg.getDefaultInstance(); - } - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder>( - (build.buf.validate.conformance.cases.TestMsg) one_, - getParentForChildren(), - isClean()); - one_ = null; - } - oneCase_ = 1; - onChanged(); - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageRequiredOneof) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MessageRequiredOneof) - private static final build.buf.validate.conformance.cases.MessageRequiredOneof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MessageRequiredOneof(); - } - - public static build.buf.validate.conformance.cases.MessageRequiredOneof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageRequiredOneof 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.MessageRequiredOneof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneofOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneofOrBuilder.java deleted file mode 100644 index 360539ba..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOneofOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MessageRequiredOneofOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MessageRequiredOneof) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestMsg getVal(); - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder(); - - build.buf.validate.conformance.cases.MessageRequiredOneof.OneCase getOneCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOrBuilder.java deleted file mode 100644 index fff58386..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageRequiredOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MessageRequiredOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MessageRequired) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestMsg getVal(); - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkip.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkip.java deleted file mode 100644 index 15db3c5c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkip.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MessageSkip} - */ -public final class MessageSkip extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MessageSkip) - MessageSkipOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MessageSkip.class.getName()); - } - // Use MessageSkip.newBuilder() to construct. - private MessageSkip(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MessageSkip() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageSkip_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageSkip_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageSkip.class, build.buf.validate.conformance.cases.MessageSkip.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.TestMsg val_; - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.MessageSkip)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MessageSkip other = (build.buf.validate.conformance.cases.MessageSkip) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MessageSkip parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageSkip 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.MessageSkip parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageSkip 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.MessageSkip parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageSkip 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.MessageSkip parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MessageSkip 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.MessageSkip parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MessageSkip 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.MessageSkip 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.MessageSkip 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.MessageSkip 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.MessageSkip} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MessageSkip) - build.buf.validate.conformance.cases.MessageSkipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageSkip_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageSkip_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageSkip.class, build.buf.validate.conformance.cases.MessageSkip.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MessageSkip.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageSkip_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageSkip getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MessageSkip.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageSkip build() { - build.buf.validate.conformance.cases.MessageSkip result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageSkip buildPartial() { - build.buf.validate.conformance.cases.MessageSkip result = new build.buf.validate.conformance.cases.MessageSkip(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MessageSkip result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MessageSkip) { - return mergeFrom((build.buf.validate.conformance.cases.MessageSkip)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MessageSkip other) { - if (other == build.buf.validate.conformance.cases.MessageSkip.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.TestMsg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.TestMsg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.TestMsg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.TestMsg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.TestMsg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.TestMsg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.TestMsg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageSkip) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MessageSkip) - private static final build.buf.validate.conformance.cases.MessageSkip DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MessageSkip(); - } - - public static build.buf.validate.conformance.cases.MessageSkip getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageSkip 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.MessageSkip getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkipOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkipOrBuilder.java deleted file mode 100644 index d8116b82..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageSkipOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MessageSkipOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MessageSkip) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.TestMsg getVal(); - /** - * .buf.validate.conformance.cases.TestMsg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.TestMsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInside.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInside.java deleted file mode 100644 index f4c479df..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInside.java +++ /dev/null @@ -1,358 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MessageWith3dInside} - */ -public final class MessageWith3dInside extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MessageWith3dInside) - MessageWith3dInsideOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MessageWith3dInside.class.getName()); - } - // Use MessageWith3dInside.newBuilder() to construct. - private MessageWith3dInside(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MessageWith3dInside() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageWith3dInside_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageWith3dInside_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageWith3dInside.class, build.buf.validate.conformance.cases.MessageWith3dInside.Builder.class); - } - - 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 { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.MessageWith3dInside)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MessageWith3dInside other = (build.buf.validate.conformance.cases.MessageWith3dInside) obj; - - 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(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MessageWith3dInside parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageWith3dInside 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.MessageWith3dInside parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageWith3dInside 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.MessageWith3dInside parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MessageWith3dInside 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.MessageWith3dInside parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MessageWith3dInside 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.MessageWith3dInside parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MessageWith3dInside 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.MessageWith3dInside 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.MessageWith3dInside 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.MessageWith3dInside 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.MessageWith3dInside} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MessageWith3dInside) - build.buf.validate.conformance.cases.MessageWith3dInsideOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageWith3dInside_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageWith3dInside_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MessageWith3dInside.class, build.buf.validate.conformance.cases.MessageWith3dInside.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MessageWith3dInside.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_MessageWith3dInside_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageWith3dInside getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MessageWith3dInside.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageWith3dInside build() { - build.buf.validate.conformance.cases.MessageWith3dInside result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MessageWith3dInside buildPartial() { - build.buf.validate.conformance.cases.MessageWith3dInside result = new build.buf.validate.conformance.cases.MessageWith3dInside(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MessageWith3dInside) { - return mergeFrom((build.buf.validate.conformance.cases.MessageWith3dInside)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MessageWith3dInside other) { - if (other == build.buf.validate.conformance.cases.MessageWith3dInside.getDefaultInstance()) return this; - 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; - 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; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MessageWith3dInside) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MessageWith3dInside) - private static final build.buf.validate.conformance.cases.MessageWith3dInside DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MessageWith3dInside(); - } - - public static build.buf.validate.conformance.cases.MessageWith3dInside getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageWith3dInside 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.MessageWith3dInside getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInsideOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInsideOrBuilder.java deleted file mode 100644 index d136f59a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessageWith3dInsideOrBuilder.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MessageWith3dInsideOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MessageWith3dInside) - com.google.protobuf.MessageOrBuilder { -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MessagesProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MessagesProto.java deleted file mode 100644 index 7edbf3f0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MessagesProto.java +++ /dev/null @@ -1,209 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class MessagesProto { - private MessagesProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MessagesProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TestMsg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TestMsg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MessageNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MessageNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MessageDisabled_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MessageDisabled_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Message_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Message_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MessageCrossPackage_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MessageCrossPackage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MessageSkip_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MessageSkip_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MessageRequired_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MessageRequired_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MessageRequiredOneof_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MessageRequiredOneof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_MessageWith3dInside_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_MessageWith3dInside_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-buf/validate/conformance/cases/message" + - "s.proto\022\036buf.validate.conformance.cases\032" + - "8buf/validate/conformance/cases/other_pa" + - "ckage/embed.proto\032\033buf/validate/validate" + - ".proto\"l\n\007TestMsg\022 \n\005const\030\001 \001(\tB\n\272H\007r\005\n" + - "\003fooR\005const\022?\n\006nested\030\002 \001(\0132\'.buf.valida" + - "te.conformance.cases.TestMsgR\006nested\"_\n\013" + - "MessageNone\022E\n\003val\030\001 \001(\01323.buf.validate." + - "conformance.cases.MessageNone.NoneMsgR\003v" + - "al\032\t\n\007NoneMsg\"3\n\017MessageDisabled\022\031\n\003val\030" + - "\001 \001(\004B\007\272H\0042\002 {R\003val:\005\272H\002\010\001\"D\n\007Message\0229\n" + - "\003val\030\001 \001(\0132\'.buf.validate.conformance.ca" + - "ses.TestMsgR\003val\"\\\n\023MessageCrossPackage\022" + - "E\n\003val\030\001 \001(\01323.buf.validate.conformance." + - "cases.other_package.EmbedR\003val\"P\n\013Messag" + - "eSkip\022A\n\003val\030\001 \001(\0132\'.buf.validate.confor" + - "mance.cases.TestMsgB\006\272H\003\330\001\003R\003val\"T\n\017Mess" + - "ageRequired\022A\n\003val\030\001 \001(\0132\'.buf.validate." + - "conformance.cases.TestMsgB\006\272H\003\310\001\001R\003val\"l" + - "\n\032MessageRequiredButOptional\022F\n\003val\030\001 \001(" + - "\0132\'.buf.validate.conformance.cases.TestM" + - "sgB\006\272H\003\310\001\001H\000R\003val\210\001\001B\006\n\004_val\"i\n\024MessageR" + - "equiredOneof\022C\n\003val\030\001 \001(\0132\'.buf.validate" + - ".conformance.cases.TestMsgB\006\272H\003\310\001\001H\000R\003va" + - "lB\014\n\003one\022\005\272H\002\010\001\"\025\n\023MessageWith3dInsideB\321" + - "\001\n$build.buf.validate.conformance.casesB" + - "\rMessagesProtoP\001\242\002\004BVCC\252\002\036Buf.Validate.C" + - "onformance.Cases\312\002\036Buf\\Validate\\Conforma" + - "nce\\Cases\342\002*Buf\\Validate\\Conformance\\Cas" + - "es\\GPBMetadata\352\002!Buf::Validate::Conforma" + - "nce::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.conformance.cases.other_package.EmbedProto.getDescriptor(), - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_TestMsg_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_TestMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_TestMsg_descriptor, - new java.lang.String[] { "Const", "Nested", }); - internal_static_buf_validate_conformance_cases_MessageNone_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_MessageNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MessageNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_descriptor = - internal_static_buf_validate_conformance_cases_MessageNone_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MessageNone_NoneMsg_descriptor, - new java.lang.String[] { }); - internal_static_buf_validate_conformance_cases_MessageDisabled_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_MessageDisabled_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MessageDisabled_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Message_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_Message_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Message_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MessageCrossPackage_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_MessageCrossPackage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MessageCrossPackage_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MessageSkip_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_MessageSkip_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MessageSkip_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MessageRequired_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_MessageRequired_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MessageRequired_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MessageRequiredButOptional_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_MessageRequiredOneof_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_MessageRequiredOneof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MessageRequiredOneof_descriptor, - new java.lang.String[] { "Val", "One", }); - internal_static_buf_validate_conformance_cases_MessageWith3dInside_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_MessageWith3dInside_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_MessageWith3dInside_descriptor, - new java.lang.String[] { }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.conformance.cases.other_package.EmbedProto.getDescriptor(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - registry.add(build.buf.validate.ValidateProto.message); - registry.add(build.buf.validate.ValidateProto.oneof); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMaps.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMaps.java deleted file mode 100644 index 2d66a67a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMaps.java +++ /dev/null @@ -1,1138 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.MultipleMaps} - */ -public final class MultipleMaps extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.MultipleMaps) - MultipleMapsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MultipleMaps.class.getName()); - } - // Use MultipleMaps.newBuilder() to construct. - private MultipleMaps(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MultipleMaps() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MultipleMaps_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetFirst(); - case 2: - return internalGetSecond(); - case 3: - return internalGetThird(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MultipleMaps_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MultipleMaps.class, build.buf.validate.conformance.cases.MultipleMaps.Builder.class); - } - - public static final int FIRST_FIELD_NUMBER = 1; - private static final class FirstDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MultipleMaps_FirstEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.String> first_; - private com.google.protobuf.MapField - internalGetFirst() { - if (first_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FirstDefaultEntryHolder.defaultEntry); - } - return first_; - } - public int getFirstCount() { - return internalGetFirst().getMap().size(); - } - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsFirst( - int key) { - - return internalGetFirst().getMap().containsKey(key); - } - /** - * Use {@link #getFirstMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getFirst() { - return getFirstMap(); - } - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getFirstMap() { - return internalGetFirst().getMap(); - } - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getFirstOrDefault( - int key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetFirst().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getFirstOrThrow( - int key) { - - java.util.Map map = - internalGetFirst().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SECOND_FIELD_NUMBER = 2; - private static final class SecondDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Boolean> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MultipleMaps_SecondEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.BOOL, - false); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Boolean> second_; - private com.google.protobuf.MapField - internalGetSecond() { - if (second_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SecondDefaultEntryHolder.defaultEntry); - } - return second_; - } - public int getSecondCount() { - return internalGetSecond().getMap().size(); - } - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsSecond( - int key) { - - return internalGetSecond().getMap().containsKey(key); - } - /** - * Use {@link #getSecondMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getSecond() { - return getSecondMap(); - } - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getSecondMap() { - return internalGetSecond().getMap(); - } - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getSecondOrDefault( - int key, - boolean defaultValue) { - - java.util.Map map = - internalGetSecond().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getSecondOrThrow( - int key) { - - java.util.Map map = - internalGetSecond().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int THIRD_FIELD_NUMBER = 3; - private static final class ThirdDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Boolean> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MultipleMaps_ThirdEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.BOOL, - false); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Boolean> third_; - private com.google.protobuf.MapField - internalGetThird() { - if (third_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ThirdDefaultEntryHolder.defaultEntry); - } - return third_; - } - public int getThirdCount() { - return internalGetThird().getMap().size(); - } - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsThird( - int key) { - - return internalGetThird().getMap().containsKey(key); - } - /** - * Use {@link #getThirdMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getThird() { - return getThirdMap(); - } - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getThirdMap() { - return internalGetThird().getMap(); - } - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getThirdOrDefault( - int key, - boolean defaultValue) { - - java.util.Map map = - internalGetThird().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getThirdOrThrow( - int key) { - - java.util.Map map = - internalGetThird().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetFirst(), - FirstDefaultEntryHolder.defaultEntry, - 1); - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetSecond(), - SecondDefaultEntryHolder.defaultEntry, - 2); - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetThird(), - ThirdDefaultEntryHolder.defaultEntry, - 3); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetFirst().getMap().entrySet()) { - com.google.protobuf.MapEntry - first__ = FirstDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, first__); - } - for (java.util.Map.Entry entry - : internalGetSecond().getMap().entrySet()) { - com.google.protobuf.MapEntry - second__ = SecondDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, second__); - } - for (java.util.Map.Entry entry - : internalGetThird().getMap().entrySet()) { - com.google.protobuf.MapEntry - third__ = ThirdDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, third__); - } - 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.MultipleMaps)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.MultipleMaps other = (build.buf.validate.conformance.cases.MultipleMaps) obj; - - if (!internalGetFirst().equals( - other.internalGetFirst())) return false; - if (!internalGetSecond().equals( - other.internalGetSecond())) return false; - if (!internalGetThird().equals( - other.internalGetThird())) 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 (!internalGetFirst().getMap().isEmpty()) { - hash = (37 * hash) + FIRST_FIELD_NUMBER; - hash = (53 * hash) + internalGetFirst().hashCode(); - } - if (!internalGetSecond().getMap().isEmpty()) { - hash = (37 * hash) + SECOND_FIELD_NUMBER; - hash = (53 * hash) + internalGetSecond().hashCode(); - } - if (!internalGetThird().getMap().isEmpty()) { - hash = (37 * hash) + THIRD_FIELD_NUMBER; - hash = (53 * hash) + internalGetThird().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.MultipleMaps parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MultipleMaps 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.MultipleMaps parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MultipleMaps 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.MultipleMaps parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.MultipleMaps 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.MultipleMaps parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.MultipleMaps 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.MultipleMaps parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.MultipleMaps 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.MultipleMaps 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.MultipleMaps 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.MultipleMaps 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.MultipleMaps} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.MultipleMaps) - build.buf.validate.conformance.cases.MultipleMapsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MultipleMaps_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetFirst(); - case 2: - return internalGetSecond(); - case 3: - return internalGetThird(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableFirst(); - case 2: - return internalGetMutableSecond(); - case 3: - return internalGetMutableThird(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MultipleMaps_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.MultipleMaps.class, build.buf.validate.conformance.cases.MultipleMaps.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.MultipleMaps.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableFirst().clear(); - internalGetMutableSecond().clear(); - internalGetMutableThird().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MapsProto.internal_static_buf_validate_conformance_cases_MultipleMaps_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MultipleMaps getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.MultipleMaps.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MultipleMaps build() { - build.buf.validate.conformance.cases.MultipleMaps result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.MultipleMaps buildPartial() { - build.buf.validate.conformance.cases.MultipleMaps result = new build.buf.validate.conformance.cases.MultipleMaps(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.MultipleMaps result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.first_ = internalGetFirst(); - result.first_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.second_ = internalGetSecond(); - result.second_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.third_ = internalGetThird(); - result.third_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.MultipleMaps) { - return mergeFrom((build.buf.validate.conformance.cases.MultipleMaps)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.MultipleMaps other) { - if (other == build.buf.validate.conformance.cases.MultipleMaps.getDefaultInstance()) return this; - internalGetMutableFirst().mergeFrom( - other.internalGetFirst()); - bitField0_ |= 0x00000001; - internalGetMutableSecond().mergeFrom( - other.internalGetSecond()); - bitField0_ |= 0x00000002; - internalGetMutableThird().mergeFrom( - other.internalGetThird()); - bitField0_ |= 0x00000004; - 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.MapEntry - first__ = input.readMessage( - FirstDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableFirst().getMutableMap().put( - first__.getKey(), first__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - second__ = input.readMessage( - SecondDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableSecond().getMutableMap().put( - second__.getKey(), second__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - third__ = input.readMessage( - ThirdDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableThird().getMutableMap().put( - third__.getKey(), third__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.String> first_; - private com.google.protobuf.MapField - internalGetFirst() { - if (first_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FirstDefaultEntryHolder.defaultEntry); - } - return first_; - } - private com.google.protobuf.MapField - internalGetMutableFirst() { - if (first_ == null) { - first_ = com.google.protobuf.MapField.newMapField( - FirstDefaultEntryHolder.defaultEntry); - } - if (!first_.isMutable()) { - first_ = first_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return first_; - } - public int getFirstCount() { - return internalGetFirst().getMap().size(); - } - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsFirst( - int key) { - - return internalGetFirst().getMap().containsKey(key); - } - /** - * Use {@link #getFirstMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getFirst() { - return getFirstMap(); - } - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getFirstMap() { - return internalGetFirst().getMap(); - } - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getFirstOrDefault( - int key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetFirst().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getFirstOrThrow( - int key) { - - java.util.Map map = - internalGetFirst().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearFirst() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableFirst().getMutableMap() - .clear(); - return this; - } - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - public Builder removeFirst( - int key) { - - internalGetMutableFirst().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableFirst() { - bitField0_ |= 0x00000001; - return internalGetMutableFirst().getMutableMap(); - } - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - public Builder putFirst( - int key, - java.lang.String value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableFirst().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - public Builder putAllFirst( - java.util.Map values) { - internalGetMutableFirst().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Boolean> second_; - private com.google.protobuf.MapField - internalGetSecond() { - if (second_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SecondDefaultEntryHolder.defaultEntry); - } - return second_; - } - private com.google.protobuf.MapField - internalGetMutableSecond() { - if (second_ == null) { - second_ = com.google.protobuf.MapField.newMapField( - SecondDefaultEntryHolder.defaultEntry); - } - if (!second_.isMutable()) { - second_ = second_.copy(); - } - bitField0_ |= 0x00000002; - onChanged(); - return second_; - } - public int getSecondCount() { - return internalGetSecond().getMap().size(); - } - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsSecond( - int key) { - - return internalGetSecond().getMap().containsKey(key); - } - /** - * Use {@link #getSecondMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getSecond() { - return getSecondMap(); - } - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getSecondMap() { - return internalGetSecond().getMap(); - } - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getSecondOrDefault( - int key, - boolean defaultValue) { - - java.util.Map map = - internalGetSecond().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getSecondOrThrow( - int key) { - - java.util.Map map = - internalGetSecond().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearSecond() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableSecond().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - public Builder removeSecond( - int key) { - - internalGetMutableSecond().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableSecond() { - bitField0_ |= 0x00000002; - return internalGetMutableSecond().getMutableMap(); - } - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - public Builder putSecond( - int key, - boolean value) { - - - internalGetMutableSecond().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000002; - return this; - } - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - public Builder putAllSecond( - java.util.Map values) { - internalGetMutableSecond().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000002; - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Boolean> third_; - private com.google.protobuf.MapField - internalGetThird() { - if (third_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ThirdDefaultEntryHolder.defaultEntry); - } - return third_; - } - private com.google.protobuf.MapField - internalGetMutableThird() { - if (third_ == null) { - third_ = com.google.protobuf.MapField.newMapField( - ThirdDefaultEntryHolder.defaultEntry); - } - if (!third_.isMutable()) { - third_ = third_.copy(); - } - bitField0_ |= 0x00000004; - onChanged(); - return third_; - } - public int getThirdCount() { - return internalGetThird().getMap().size(); - } - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsThird( - int key) { - - return internalGetThird().getMap().containsKey(key); - } - /** - * Use {@link #getThirdMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getThird() { - return getThirdMap(); - } - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getThirdMap() { - return internalGetThird().getMap(); - } - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getThirdOrDefault( - int key, - boolean defaultValue) { - - java.util.Map map = - internalGetThird().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean getThirdOrThrow( - int key) { - - java.util.Map map = - internalGetThird().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearThird() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableThird().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - public Builder removeThird( - int key) { - - internalGetMutableThird().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableThird() { - bitField0_ |= 0x00000004; - return internalGetMutableThird().getMutableMap(); - } - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - public Builder putThird( - int key, - boolean value) { - - - internalGetMutableThird().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000004; - return this; - } - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - public Builder putAllThird( - java.util.Map values) { - internalGetMutableThird().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000004; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.MultipleMaps) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.MultipleMaps) - private static final build.buf.validate.conformance.cases.MultipleMaps DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.MultipleMaps(); - } - - public static build.buf.validate.conformance.cases.MultipleMaps getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultipleMaps 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.MultipleMaps getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMapsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMapsOrBuilder.java deleted file mode 100644 index 6700dd9b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/MultipleMapsOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/maps.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface MultipleMapsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.MultipleMaps) - com.google.protobuf.MessageOrBuilder { - - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - int getFirstCount(); - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - boolean containsFirst( - int key); - /** - * Use {@link #getFirstMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getFirst(); - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - java.util.Map - getFirstMap(); - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getFirstOrDefault( - int key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<uint32, string> first = 1 [json_name = "first", (.buf.validate.field) = { ... } - */ - java.lang.String getFirstOrThrow( - int key); - - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - int getSecondCount(); - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - boolean containsSecond( - int key); - /** - * Use {@link #getSecondMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getSecond(); - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - java.util.Map - getSecondMap(); - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - boolean getSecondOrDefault( - int key, - boolean defaultValue); - /** - * map<int32, bool> second = 2 [json_name = "second", (.buf.validate.field) = { ... } - */ - boolean getSecondOrThrow( - int key); - - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - int getThirdCount(); - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - boolean containsThird( - int key); - /** - * Use {@link #getThirdMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getThird(); - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - java.util.Map - getThirdMap(); - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - boolean getThirdOrDefault( - int key, - boolean defaultValue); - /** - * map<int32, bool> third = 3 [json_name = "third", (.buf.validate.field) = { ... } - */ - boolean getThirdOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/NumbersProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/NumbersProto.java deleted file mode 100644 index ee289c9b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/NumbersProto.java +++ /dev/null @@ -1,2335 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class NumbersProto { - private NumbersProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - NumbersProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatConst_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatConst_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatNotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatLTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatLTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatGTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatGTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatGTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatGTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatFinite_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatFinite_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatNotFinite_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatNotFinite_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatIgnore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatIgnore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatIncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatIncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_FloatExample_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_FloatExample_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleConst_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleConst_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleNotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleLTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleLTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleGTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleGTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleGTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleGTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleFinite_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleFinite_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleNotFinite_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleNotFinite_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleIgnore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleIgnore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleIncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleIncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DoubleExample_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DoubleExample_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32None_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32None_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32Const_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32Const_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32In_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32In_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32NotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32NotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32LT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32LT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32LTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32LTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32GT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32GT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32GTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32GTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32GTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32GTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32ExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32ExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32GTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32GTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32ExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32ExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32Ignore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32Ignore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32IncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32IncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int32Example_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int32Example_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64None_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64None_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64Const_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64Const_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64In_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64In_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64NotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64NotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64LT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64LT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64LTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64LTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64GT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64GT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64GTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64GTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64GTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64GTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64ExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64ExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64GTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64GTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64ExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64ExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64Ignore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64Ignore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64BigConstraints_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64BigConstraints_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64IncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64IncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64Example_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64Example_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32None_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32None_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32Const_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32Const_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32In_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32In_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32NotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32NotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32LT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32LT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32LTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32LTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32GT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32GT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32GTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32GTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32GTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32GTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32ExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32ExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32GTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32GTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32Ignore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32Ignore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32IncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32IncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt32Example_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt32Example_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64None_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64None_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64Const_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64Const_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64In_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64In_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64NotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64NotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64LT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64LT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64LTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64LTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64GT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64GT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64GTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64GTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64GTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64GTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64ExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64ExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64GTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64GTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64Ignore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64Ignore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64IncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64IncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_UInt64Example_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_UInt64Example_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32None_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32None_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32Const_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32Const_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32In_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32In_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32NotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32NotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32LT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32LT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32LTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32LTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32GT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32GT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32GTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32GTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32GTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32GTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32ExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32ExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32GTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32GTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32Ignore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32Ignore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32IncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32IncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt32Example_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt32Example_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64None_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64None_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64Const_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64Const_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64In_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64In_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64NotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64NotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64LT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64LT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64LTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64LTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64GT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64GT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64GTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64GTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64GTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64GTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64ExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64ExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64GTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64GTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64Ignore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64Ignore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64IncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64IncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SInt64Example_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SInt64Example_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32None_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32None_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32Const_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32Const_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32In_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32In_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32NotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32NotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32LT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32LT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32LTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32LTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32GT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32GT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32GTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32GTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32GTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32GTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32GTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32GTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32Ignore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32Ignore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed32Example_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed32Example_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64None_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64None_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64Const_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64Const_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64In_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64In_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64NotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64NotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64LT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64LT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64LTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64LTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64GT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64GT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64GTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64GTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64GTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64GTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64GTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64GTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64Ignore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64Ignore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Fixed64Example_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Fixed64Example_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32None_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32None_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32Const_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32Const_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32In_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32In_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32NotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32NotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32LT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32LT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32LTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32LTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32GT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32GT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32GTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32GTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32GTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32GTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32GTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32GTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32Ignore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32Ignore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed32Example_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed32Example_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64None_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64None_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64Const_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64Const_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64In_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64In_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64NotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64NotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64LT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64LT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64LTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64LTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64GT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64GT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64GTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64GTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64GTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64GTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64GTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64GTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64Ignore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64Ignore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_SFixed64Example_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_SFixed64Example_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Int64LTEOptional_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Int64LTEOptional_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,buf/validate/conformance/cases/numbers" + - ".proto\022\036buf.validate.conformance.cases\032\033" + - "buf/validate/validate.proto\"\035\n\tFloatNone" + - "\022\020\n\003val\030\001 \001(\002R\003val\"*\n\nFloatConst\022\034\n\003val\030" + - "\001 \001(\002B\n\272H\007\n\005\r\244p\235?R\003val\",\n\007FloatIn\022!\n\003val" + - "\030\001 \001(\002B\017\272H\014\n\n5\205\353\221@5\341z\374@R\003val\"*\n\nFloatNot" + - "In\022\034\n\003val\030\001 \001(\002B\n\272H\007\n\005=\000\000\000\000R\003val\"\'\n\007Floa" + - "tLT\022\034\n\003val\030\001 \001(\002B\n\272H\007\n\005\025\000\000\000\000R\003val\"(\n\010Flo" + - "atLTE\022\034\n\003val\030\001 \001(\002B\n\272H\007\n\005\035\000\000\200BR\003val\"\'\n\007F" + - "loatGT\022\034\n\003val\030\001 \001(\002B\n\272H\007\n\005%\000\000\200AR\003val\"(\n\010" + - "FloatGTE\022\034\n\003val\030\001 \001(\002B\n\272H\007\n\005-\000\000\000AR\003val\"." + - "\n\tFloatGTLT\022!\n\003val\030\001 \001(\002B\017\272H\014\n\n\025\000\000 A%\000\000\000" + - "\000R\003val\"0\n\013FloatExLTGT\022!\n\003val\030\001 \001(\002B\017\272H\014\n" + - "\n\025\000\000\000\000%\000\000 AR\003val\"0\n\013FloatGTELTE\022!\n\003val\030\001" + - " \001(\002B\017\272H\014\n\n\035\000\000\200C-\000\000\000CR\003val\"2\n\rFloatExGTE" + - "LTE\022!\n\003val\030\001 \001(\002B\017\272H\014\n\n\035\000\000\000C-\000\000\200CR\003val\"(" + - "\n\013FloatFinite\022\031\n\003val\030\001 \001(\002B\007\272H\004\n\002@\001R\003val" + - "\"+\n\016FloatNotFinite\022\031\n\003val\030\001 \001(\002B\007\272H\004\n\002@\000" + - "R\003val\"3\n\013FloatIgnore\022$\n\003val\030\001 \001(\002B\022\272H\017\n\n" + - "\035\000\000\200C-\000\000\000C\330\001\001R\003val\"6\n\022FloatIncorrectType" + - "\022 \n\003val\030\001 \001(\002B\016\272H\013\022\t!\000\000\000\000\000\000\000\000R\003val\",\n\014Fl" + - "oatExample\022\034\n\003val\030\001 \001(\002B\n\272H\007\n\005M\000\000\000AR\003val" + - "\"\036\n\nDoubleNone\022\020\n\003val\030\001 \001(\001R\003val\"/\n\013Doub" + - "leConst\022 \n\003val\030\001 \001(\001B\016\272H\013\022\t\t\256G\341z\024\256\363?R\003va" + - "l\"5\n\010DoubleIn\022)\n\003val\030\001 \001(\001B\027\272H\024\022\0221=\n\327\243p=" + - "\022@1\217\302\365(\\\217\037@R\003val\"/\n\013DoubleNotIn\022 \n\003val\030\001" + - " \001(\001B\016\272H\013\022\t9\000\000\000\000\000\000\000\000R\003val\",\n\010DoubleLT\022 \n" + - "\003val\030\001 \001(\001B\016\272H\013\022\t\021\000\000\000\000\000\000\000\000R\003val\"-\n\tDoubl" + - "eLTE\022 \n\003val\030\001 \001(\001B\016\272H\013\022\t\031\000\000\000\000\000\000P@R\003val\"," + - "\n\010DoubleGT\022 \n\003val\030\001 \001(\001B\016\272H\013\022\t!\000\000\000\000\000\0000@R" + - "\003val\"-\n\tDoubleGTE\022 \n\003val\030\001 \001(\001B\016\272H\013\022\t)\000\000" + - "\000\000\000\000 @R\003val\"7\n\nDoubleGTLT\022)\n\003val\030\001 \001(\001B\027" + - "\272H\024\022\022\021\000\000\000\000\000\000$@!\000\000\000\000\000\000\000\000R\003val\"9\n\014DoubleEx" + - "LTGT\022)\n\003val\030\001 \001(\001B\027\272H\024\022\022\021\000\000\000\000\000\000\000\000!\000\000\000\000\000\000" + - "$@R\003val\"9\n\014DoubleGTELTE\022)\n\003val\030\001 \001(\001B\027\272H" + - "\024\022\022\031\000\000\000\000\000\000p@)\000\000\000\000\000\000`@R\003val\";\n\016DoubleExGT" + - "ELTE\022)\n\003val\030\001 \001(\001B\027\272H\024\022\022\031\000\000\000\000\000\000`@)\000\000\000\000\000\000" + - "p@R\003val\")\n\014DoubleFinite\022\031\n\003val\030\001 \001(\001B\007\272H" + - "\004\022\002@\001R\003val\",\n\017DoubleNotFinite\022\031\n\003val\030\001 \001" + - "(\001B\007\272H\004\022\002@\000R\003val\"<\n\014DoubleIgnore\022,\n\003val\030" + - "\001 \001(\001B\032\272H\027\022\022\031\000\000\000\000\000\000p@)\000\000\000\000\000\000`@\330\001\001R\003val\"3" + - "\n\023DoubleIncorrectType\022\034\n\003val\030\001 \001(\001B\n\272H\007\n" + - "\005%\000\000\000\000R\003val\"1\n\rDoubleExample\022 \n\003val\030\001 \001(" + - "\001B\016\272H\013\022\tI\000\000\000\000\000\000\000\000R\003val\"\035\n\tInt32None\022\020\n\003v" + - "al\030\001 \001(\005R\003val\"\'\n\nInt32Const\022\031\n\003val\030\001 \001(\005" + - "B\007\272H\004\032\002\010\001R\003val\"&\n\007Int32In\022\033\n\003val\030\001 \001(\005B\t" + - "\272H\006\032\0040\0020\003R\003val\"\'\n\nInt32NotIn\022\031\n\003val\030\001 \001(" + - "\005B\007\272H\004\032\0028\000R\003val\"$\n\007Int32LT\022\031\n\003val\030\001 \001(\005B" + - "\007\272H\004\032\002\020\000R\003val\"%\n\010Int32LTE\022\031\n\003val\030\001 \001(\005B\007" + - "\272H\004\032\002\030@R\003val\"$\n\007Int32GT\022\031\n\003val\030\001 \001(\005B\007\272H" + - "\004\032\002 \020R\003val\"%\n\010Int32GTE\022\031\n\003val\030\001 \001(\005B\007\272H\004" + - "\032\002(\010R\003val\"(\n\tInt32GTLT\022\033\n\003val\030\001 \001(\005B\t\272H\006" + - "\032\004\020\n \000R\003val\"*\n\013Int32ExLTGT\022\033\n\003val\030\001 \001(\005B" + - "\t\272H\006\032\004\020\000 \nR\003val\",\n\013Int32GTELTE\022\035\n\003val\030\001 " + - "\001(\005B\013\272H\010\032\006\030\200\002(\200\001R\003val\".\n\rInt32ExGTELTE\022\035" + - "\n\003val\030\001 \001(\005B\013\272H\010\032\006\030\200\001(\200\002R\003val\"/\n\013Int32Ig" + - "nore\022 \n\003val\030\001 \001(\005B\016\272H\013\032\006\030\200\002(\200\001\330\001\001R\003val\"2" + - "\n\022Int32IncorrectType\022\034\n\003val\030\001 \001(\005B\n\272H\007\n\005" + - "%\000\000\000\000R\003val\")\n\014Int32Example\022\031\n\003val\030\001 \001(\005B" + - "\007\272H\004\032\002@\nR\003val\"\035\n\tInt64None\022\020\n\003val\030\001 \001(\003R" + - "\003val\"\'\n\nInt64Const\022\031\n\003val\030\001 \001(\003B\007\272H\004\"\002\010\001" + - "R\003val\"&\n\007Int64In\022\033\n\003val\030\001 \001(\003B\t\272H\006\"\0040\0020\003" + - "R\003val\"\'\n\nInt64NotIn\022\031\n\003val\030\001 \001(\003B\007\272H\004\"\0028" + - "\000R\003val\"$\n\007Int64LT\022\031\n\003val\030\001 \001(\003B\007\272H\004\"\002\020\000R" + - "\003val\"%\n\010Int64LTE\022\031\n\003val\030\001 \001(\003B\007\272H\004\"\002\030@R\003" + - "val\"$\n\007Int64GT\022\031\n\003val\030\001 \001(\003B\007\272H\004\"\002 \020R\003va" + - "l\"%\n\010Int64GTE\022\031\n\003val\030\001 \001(\003B\007\272H\004\"\002(\010R\003val" + - "\"(\n\tInt64GTLT\022\033\n\003val\030\001 \001(\003B\t\272H\006\"\004\020\n \000R\003v" + - "al\"*\n\013Int64ExLTGT\022\033\n\003val\030\001 \001(\003B\t\272H\006\"\004\020\000 " + - "\nR\003val\",\n\013Int64GTELTE\022\035\n\003val\030\001 \001(\003B\013\272H\010\"" + - "\006\030\200\002(\200\001R\003val\".\n\rInt64ExGTELTE\022\035\n\003val\030\001 \001" + - "(\003B\013\272H\010\"\006\030\200\001(\200\002R\003val\"/\n\013Int64Ignore\022 \n\003v" + - "al\030\001 \001(\003B\016\272H\013\"\006\030\200\002(\200\001\330\001\001R\003val\"\214\004\n\023Int64B" + - "igConstraints\022\"\n\006lt_pos\030\001 \001(\003B\013\272H\010\"\006\020\246\335\207" + - "\244\024R\005ltPos\022\'\n\006lt_neg\030\002 \001(\003B\020\272H\r\"\013\020\332\242\370\333\353\377\377" + - "\377\377\001R\005ltNeg\022\"\n\006gt_pos\030\003 \001(\003B\013\272H\010\"\006 \246\335\207\244\024R" + - "\005gtPos\022\'\n\006gt_neg\030\004 \001(\003B\020\272H\r\"\013 \332\242\370\333\353\377\377\377\377\001" + - "R\005gtNeg\022$\n\007lte_pos\030\005 \001(\003B\013\272H\010\"\006\030\246\335\207\244\024R\006l" + - "tePos\022)\n\007lte_neg\030\006 \001(\003B\020\272H\r\"\013\030\332\242\370\333\353\377\377\377\377\001" + - "R\006lteNeg\022$\n\007gte_pos\030\007 \001(\003B\013\272H\010\"\006(\246\335\207\244\024R\006" + - "gtePos\022)\n\007gte_neg\030\010 \001(\003B\020\272H\r\"\013(\332\242\370\333\353\377\377\377\377" + - "\001R\006gteNeg\022.\n\014constant_pos\030\t \001(\003B\013\272H\010\"\006\010\246" + - "\335\207\244\024R\013constantPos\0223\n\014constant_neg\030\n \001(\003B" + - "\020\272H\r\"\013\010\332\242\370\333\353\377\377\377\377\001R\013constantNeg\022&\n\002in\030\013 \001" + - "(\003B\026\272H\023\"\0210\246\335\207\244\0240\332\242\370\333\353\377\377\377\377\001R\002in\022,\n\005notin\030" + - "\014 \001(\003B\026\272H\023\"\0218\246\335\207\244\0248\332\242\370\333\353\377\377\377\377\001R\005notin\"2\n\022" + - "Int64IncorrectType\022\034\n\003val\030\001 \001(\003B\n\272H\007\n\005%\000" + - "\000\000\000R\003val\")\n\014Int64Example\022\031\n\003val\030\001 \001(\003B\007\272" + - "H\004\"\002H\nR\003val\"\036\n\nUInt32None\022\020\n\003val\030\001 \001(\rR\003" + - "val\"(\n\013UInt32Const\022\031\n\003val\030\001 \001(\rB\007\272H\004*\002\010\001" + - "R\003val\"\'\n\010UInt32In\022\033\n\003val\030\001 \001(\rB\t\272H\006*\0040\0020" + - "\003R\003val\"(\n\013UInt32NotIn\022\031\n\003val\030\001 \001(\rB\007\272H\004*" + - "\0028\000R\003val\"%\n\010UInt32LT\022\031\n\003val\030\001 \001(\rB\007\272H\004*\002" + - "\020\005R\003val\"&\n\tUInt32LTE\022\031\n\003val\030\001 \001(\rB\007\272H\004*\002" + - "\030@R\003val\"%\n\010UInt32GT\022\031\n\003val\030\001 \001(\rB\007\272H\004*\002 " + - "\020R\003val\"&\n\tUInt32GTE\022\031\n\003val\030\001 \001(\rB\007\272H\004*\002(" + - "\010R\003val\")\n\nUInt32GTLT\022\033\n\003val\030\001 \001(\rB\t\272H\006*\004" + - "\020\n \005R\003val\"+\n\014UInt32ExLTGT\022\033\n\003val\030\001 \001(\rB\t" + - "\272H\006*\004\020\005 \nR\003val\"-\n\014UInt32GTELTE\022\035\n\003val\030\001 " + - "\001(\rB\013\272H\010*\006\030\200\002(\200\001R\003val\"/\n\016UInt32ExGTELTE\022" + - "\035\n\003val\030\001 \001(\rB\013\272H\010*\006\030\200\001(\200\002R\003val\"0\n\014UInt32" + - "Ignore\022 \n\003val\030\001 \001(\rB\016\272H\013*\006\030\200\002(\200\001\330\001\001R\003val" + - "\"3\n\023UInt32IncorrectType\022\034\n\003val\030\001 \001(\rB\n\272H" + - "\007\n\005%\000\000\000\000R\003val\"*\n\rUInt32Example\022\031\n\003val\030\001 " + - "\001(\rB\007\272H\004*\002@\000R\003val\"\036\n\nUInt64None\022\020\n\003val\030\001" + - " \001(\004R\003val\"(\n\013UInt64Const\022\031\n\003val\030\001 \001(\004B\007\272" + - "H\0042\002\010\001R\003val\"\'\n\010UInt64In\022\033\n\003val\030\001 \001(\004B\t\272H" + - "\0062\0040\0020\003R\003val\"(\n\013UInt64NotIn\022\031\n\003val\030\001 \001(\004" + - "B\007\272H\0042\0028\000R\003val\"%\n\010UInt64LT\022\031\n\003val\030\001 \001(\004B" + - "\007\272H\0042\002\020\005R\003val\"&\n\tUInt64LTE\022\031\n\003val\030\001 \001(\004B" + - "\007\272H\0042\002\030@R\003val\"%\n\010UInt64GT\022\031\n\003val\030\001 \001(\004B\007" + - "\272H\0042\002 \020R\003val\"&\n\tUInt64GTE\022\031\n\003val\030\001 \001(\004B\007" + - "\272H\0042\002(\010R\003val\")\n\nUInt64GTLT\022\033\n\003val\030\001 \001(\004B" + - "\t\272H\0062\004\020\n \005R\003val\"+\n\014UInt64ExLTGT\022\033\n\003val\030\001" + - " \001(\004B\t\272H\0062\004\020\005 \nR\003val\"-\n\014UInt64GTELTE\022\035\n\003" + - "val\030\001 \001(\004B\013\272H\0102\006\030\200\002(\200\001R\003val\"/\n\016UInt64ExG" + - "TELTE\022\035\n\003val\030\001 \001(\004B\013\272H\0102\006\030\200\001(\200\002R\003val\"0\n\014" + - "UInt64Ignore\022 \n\003val\030\001 \001(\004B\016\272H\0132\006\030\200\002(\200\001\330\001" + - "\001R\003val\"3\n\023UInt64IncorrectType\022\034\n\003val\030\001 \001" + - "(\004B\n\272H\007\n\005%\000\000\000\000R\003val\"*\n\rUInt64Example\022\031\n\003" + - "val\030\001 \001(\004B\007\272H\0042\002@\000R\003val\"\036\n\nSInt32None\022\020\n" + - "\003val\030\001 \001(\021R\003val\"(\n\013SInt32Const\022\031\n\003val\030\001 " + - "\001(\021B\007\272H\004:\002\010\002R\003val\"\'\n\010SInt32In\022\033\n\003val\030\001 \001" + - "(\021B\t\272H\006:\0040\0040\006R\003val\"(\n\013SInt32NotIn\022\031\n\003val" + - "\030\001 \001(\021B\007\272H\004:\0028\000R\003val\"%\n\010SInt32LT\022\031\n\003val\030" + - "\001 \001(\021B\007\272H\004:\002\020\000R\003val\"\'\n\tSInt32LTE\022\032\n\003val\030" + - "\001 \001(\021B\010\272H\005:\003\030\200\001R\003val\"%\n\010SInt32GT\022\031\n\003val\030" + - "\001 \001(\021B\007\272H\004:\002 R\003val\"&\n\tSInt32GTE\022\031\n\003val\030" + - "\001 \001(\021B\007\272H\004:\002(\020R\003val\")\n\nSInt32GTLT\022\033\n\003val" + - "\030\001 \001(\021B\t\272H\006:\004\020\024 \000R\003val\"+\n\014SInt32ExLTGT\022\033" + - "\n\003val\030\001 \001(\021B\t\272H\006:\004\020\000 \024R\003val\"-\n\014SInt32GTE" + - "LTE\022\035\n\003val\030\001 \001(\021B\013\272H\010:\006\030\200\004(\200\002R\003val\"/\n\016SI" + - "nt32ExGTELTE\022\035\n\003val\030\001 \001(\021B\013\272H\010:\006\030\200\002(\200\004R\003" + - "val\"0\n\014SInt32Ignore\022 \n\003val\030\001 \001(\021B\016\272H\013:\006\030" + - "\200\004(\200\002\330\001\001R\003val\"3\n\023SInt32IncorrectType\022\034\n\003" + - "val\030\001 \001(\021B\n\272H\007\n\005%\000\000\000\000R\003val\"*\n\rSInt32Exam" + - "ple\022\031\n\003val\030\001 \001(\021B\007\272H\004:\002@\000R\003val\"\036\n\nSInt64" + - "None\022\020\n\003val\030\001 \001(\022R\003val\"(\n\013SInt64Const\022\031\n" + - "\003val\030\001 \001(\022B\007\272H\004B\002\010\002R\003val\"\'\n\010SInt64In\022\033\n\003" + - "val\030\001 \001(\022B\t\272H\006B\0040\0040\006R\003val\"(\n\013SInt64NotIn" + - "\022\031\n\003val\030\001 \001(\022B\007\272H\004B\0028\000R\003val\"%\n\010SInt64LT\022" + - "\031\n\003val\030\001 \001(\022B\007\272H\004B\002\020\000R\003val\"\'\n\tSInt64LTE\022" + - "\032\n\003val\030\001 \001(\022B\010\272H\005B\003\030\200\001R\003val\"%\n\010SInt64GT\022" + - "\031\n\003val\030\001 \001(\022B\007\272H\004B\002 R\003val\"&\n\tSInt64GTE\022" + - "\031\n\003val\030\001 \001(\022B\007\272H\004B\002(\020R\003val\")\n\nSInt64GTLT" + - "\022\033\n\003val\030\001 \001(\022B\t\272H\006B\004\020\024 \000R\003val\"+\n\014SInt64E" + - "xLTGT\022\033\n\003val\030\001 \001(\022B\t\272H\006B\004\020\000 \024R\003val\"-\n\014SI" + - "nt64GTELTE\022\035\n\003val\030\001 \001(\022B\013\272H\010B\006\030\200\004(\200\002R\003va" + - "l\"/\n\016SInt64ExGTELTE\022\035\n\003val\030\001 \001(\022B\013\272H\010B\006\030" + - "\200\002(\200\004R\003val\"0\n\014SInt64Ignore\022 \n\003val\030\001 \001(\022B" + - "\016\272H\013B\006\030\200\004(\200\002\330\001\001R\003val\"3\n\023SInt64IncorrectT" + - "ype\022\034\n\003val\030\001 \001(\022B\n\272H\007\n\005%\000\000\000\000R\003val\"*\n\rSIn" + - "t64Example\022\031\n\003val\030\001 \001(\022B\007\272H\004B\002@\000R\003val\"\037\n" + - "\013Fixed32None\022\020\n\003val\030\001 \001(\007R\003val\",\n\014Fixed3" + - "2Const\022\034\n\003val\030\001 \001(\007B\n\272H\007J\005\r\001\000\000\000R\003val\".\n\t" + - "Fixed32In\022!\n\003val\030\001 \001(\007B\017\272H\014J\n5\002\000\000\0005\003\000\000\000R" + - "\003val\",\n\014Fixed32NotIn\022\034\n\003val\030\001 \001(\007B\n\272H\007J\005" + - "=\000\000\000\000R\003val\")\n\tFixed32LT\022\034\n\003val\030\001 \001(\007B\n\272H" + - "\007J\005\025\005\000\000\000R\003val\"*\n\nFixed32LTE\022\034\n\003val\030\001 \001(\007" + - "B\n\272H\007J\005\035@\000\000\000R\003val\")\n\tFixed32GT\022\034\n\003val\030\001 " + - "\001(\007B\n\272H\007J\005%\020\000\000\000R\003val\"*\n\nFixed32GTE\022\034\n\003va" + - "l\030\001 \001(\007B\n\272H\007J\005-\010\000\000\000R\003val\"0\n\013Fixed32GTLT\022" + - "!\n\003val\030\001 \001(\007B\017\272H\014J\n\025\n\000\000\000%\005\000\000\000R\003val\"2\n\rFi" + - "xed32ExLTGT\022!\n\003val\030\001 \001(\007B\017\272H\014J\n\025\005\000\000\000%\n\000\000" + - "\000R\003val\"2\n\rFixed32GTELTE\022!\n\003val\030\001 \001(\007B\017\272H" + - "\014J\n\035\000\001\000\000-\200\000\000\000R\003val\"4\n\017Fixed32ExGTELTE\022!\n" + - "\003val\030\001 \001(\007B\017\272H\014J\n\035\200\000\000\000-\000\001\000\000R\003val\"5\n\rFixe" + - "d32Ignore\022$\n\003val\030\001 \001(\007B\022\272H\017J\n\035\000\001\000\000-\200\000\000\000\330" + - "\001\001R\003val\"4\n\024Fixed32IncorrectType\022\034\n\003val\030\001" + - " \001(\007B\n\272H\007\n\005%\000\000\000\000R\003val\".\n\016Fixed32Example\022" + - "\034\n\003val\030\001 \001(\007B\n\272H\007J\005E\000\000\000\000R\003val\"\037\n\013Fixed64" + - "None\022\020\n\003val\030\001 \001(\006R\003val\"0\n\014Fixed64Const\022 " + - "\n\003val\030\001 \001(\006B\016\272H\013R\t\t\001\000\000\000\000\000\000\000R\003val\"6\n\tFixe" + - "d64In\022)\n\003val\030\001 \001(\006B\027\272H\024R\0221\002\000\000\000\000\000\000\0001\003\000\000\000\000" + - "\000\000\000R\003val\"0\n\014Fixed64NotIn\022 \n\003val\030\001 \001(\006B\016\272" + - "H\013R\t9\000\000\000\000\000\000\000\000R\003val\"-\n\tFixed64LT\022 \n\003val\030\001" + - " \001(\006B\016\272H\013R\t\021\005\000\000\000\000\000\000\000R\003val\".\n\nFixed64LTE\022" + - " \n\003val\030\001 \001(\006B\016\272H\013R\t\031@\000\000\000\000\000\000\000R\003val\"-\n\tFix" + - "ed64GT\022 \n\003val\030\001 \001(\006B\016\272H\013R\t!\020\000\000\000\000\000\000\000R\003val" + - "\".\n\nFixed64GTE\022 \n\003val\030\001 \001(\006B\016\272H\013R\t)\010\000\000\000\000" + - "\000\000\000R\003val\"8\n\013Fixed64GTLT\022)\n\003val\030\001 \001(\006B\027\272H" + - "\024R\022\021\n\000\000\000\000\000\000\000!\005\000\000\000\000\000\000\000R\003val\":\n\rFixed64ExL" + - "TGT\022)\n\003val\030\001 \001(\006B\027\272H\024R\022\021\005\000\000\000\000\000\000\000!\n\000\000\000\000\000\000" + - "\000R\003val\":\n\rFixed64GTELTE\022)\n\003val\030\001 \001(\006B\027\272H" + - "\024R\022\031\000\001\000\000\000\000\000\000)\200\000\000\000\000\000\000\000R\003val\"<\n\017Fixed64ExG" + - "TELTE\022)\n\003val\030\001 \001(\006B\027\272H\024R\022\031\200\000\000\000\000\000\000\000)\000\001\000\000\000" + - "\000\000\000R\003val\"=\n\rFixed64Ignore\022,\n\003val\030\001 \001(\006B\032" + - "\272H\027R\022\031\000\001\000\000\000\000\000\000)\200\000\000\000\000\000\000\000\330\001\001R\003val\"4\n\024Fixed" + - "64IncorrectType\022\034\n\003val\030\001 \001(\006B\n\272H\007\n\005%\000\000\000\000" + - "R\003val\"2\n\016Fixed64Example\022 \n\003val\030\001 \001(\006B\016\272H" + - "\013R\tA\000\000\000\000\000\000\000\000R\003val\" \n\014SFixed32None\022\020\n\003val" + - "\030\001 \001(\017R\003val\"-\n\rSFixed32Const\022\034\n\003val\030\001 \001(" + - "\017B\n\272H\007Z\005\r\001\000\000\000R\003val\"/\n\nSFixed32In\022!\n\003val\030" + - "\001 \001(\017B\017\272H\014Z\n5\002\000\000\0005\003\000\000\000R\003val\"-\n\rSFixed32N" + - "otIn\022\034\n\003val\030\001 \001(\017B\n\272H\007Z\005=\000\000\000\000R\003val\"*\n\nSF" + - "ixed32LT\022\034\n\003val\030\001 \001(\017B\n\272H\007Z\005\025\000\000\000\000R\003val\"+" + - "\n\013SFixed32LTE\022\034\n\003val\030\001 \001(\017B\n\272H\007Z\005\035@\000\000\000R\003" + - "val\"*\n\nSFixed32GT\022\034\n\003val\030\001 \001(\017B\n\272H\007Z\005%\020\000" + - "\000\000R\003val\"+\n\013SFixed32GTE\022\034\n\003val\030\001 \001(\017B\n\272H\007" + - "Z\005-\010\000\000\000R\003val\"1\n\014SFixed32GTLT\022!\n\003val\030\001 \001(" + - "\017B\017\272H\014Z\n\025\n\000\000\000%\000\000\000\000R\003val\"3\n\016SFixed32ExLTG" + - "T\022!\n\003val\030\001 \001(\017B\017\272H\014Z\n\025\000\000\000\000%\n\000\000\000R\003val\"3\n\016" + - "SFixed32GTELTE\022!\n\003val\030\001 \001(\017B\017\272H\014Z\n\035\000\001\000\000-" + - "\200\000\000\000R\003val\"5\n\020SFixed32ExGTELTE\022!\n\003val\030\001 \001" + - "(\017B\017\272H\014Z\n\035\200\000\000\000-\000\001\000\000R\003val\"6\n\016SFixed32Igno" + - "re\022$\n\003val\030\001 \001(\017B\022\272H\017Z\n\035\000\001\000\000-\200\000\000\000\330\001\001R\003val" + - "\"5\n\025SFixed32IncorrectType\022\034\n\003val\030\001 \001(\017B\n" + - "\272H\007\n\005%\000\000\000\000R\003val\"/\n\017SFixed32Example\022\034\n\003va" + - "l\030\001 \001(\017B\n\272H\007Z\005E\000\000\000\000R\003val\" \n\014SFixed64None" + - "\022\020\n\003val\030\001 \001(\020R\003val\"1\n\rSFixed64Const\022 \n\003v" + - "al\030\001 \001(\020B\016\272H\013b\t\t\001\000\000\000\000\000\000\000R\003val\"7\n\nSFixed6" + - "4In\022)\n\003val\030\001 \001(\020B\027\272H\024b\0221\002\000\000\000\000\000\000\0001\003\000\000\000\000\000\000" + - "\000R\003val\"1\n\rSFixed64NotIn\022 \n\003val\030\001 \001(\020B\016\272H" + - "\013b\t9\000\000\000\000\000\000\000\000R\003val\".\n\nSFixed64LT\022 \n\003val\030\001" + - " \001(\020B\016\272H\013b\t\021\000\000\000\000\000\000\000\000R\003val\"/\n\013SFixed64LTE" + - "\022 \n\003val\030\001 \001(\020B\016\272H\013b\t\031@\000\000\000\000\000\000\000R\003val\".\n\nSF" + - "ixed64GT\022 \n\003val\030\001 \001(\020B\016\272H\013b\t!\020\000\000\000\000\000\000\000R\003v" + - "al\"/\n\013SFixed64GTE\022 \n\003val\030\001 \001(\020B\016\272H\013b\t)\010\000" + - "\000\000\000\000\000\000R\003val\"9\n\014SFixed64GTLT\022)\n\003val\030\001 \001(\020" + - "B\027\272H\024b\022\021\n\000\000\000\000\000\000\000!\000\000\000\000\000\000\000\000R\003val\";\n\016SFixed" + - "64ExLTGT\022)\n\003val\030\001 \001(\020B\027\272H\024b\022\021\000\000\000\000\000\000\000\000!\n\000" + - "\000\000\000\000\000\000R\003val\";\n\016SFixed64GTELTE\022)\n\003val\030\001 \001" + - "(\020B\027\272H\024b\022\031\000\001\000\000\000\000\000\000)\200\000\000\000\000\000\000\000R\003val\"=\n\020SFix" + - "ed64ExGTELTE\022)\n\003val\030\001 \001(\020B\027\272H\024b\022\031\200\000\000\000\000\000\000" + - "\000)\000\001\000\000\000\000\000\000R\003val\">\n\016SFixed64Ignore\022,\n\003val" + - "\030\001 \001(\020B\032\272H\027b\022\031\000\001\000\000\000\000\000\000)\200\000\000\000\000\000\000\000\330\001\001R\003val\"" + - "5\n\025SFixed64IncorrectType\022\034\n\003val\030\001 \001(\020B\n\272" + - "H\007\n\005%\000\000\000\000R\003val\"3\n\017SFixed64Example\022 \n\003val" + - "\030\001 \001(\020B\016\272H\013b\tA\000\000\000\000\000\000\000\000R\003val\":\n\020Int64LTEO" + - "ptional\022\036\n\003val\030\001 \001(\003B\007\272H\004\"\002\030@H\000R\003val\210\001\001B" + - "\006\n\004_valB\320\001\n$build.buf.validate.conforman" + - "ce.casesB\014NumbersProtoP\001\242\002\004BVCC\252\002\036Buf.Va" + - "lidate.Conformance.Cases\312\002\036Buf\\Validate\\" + - "Conformance\\Cases\342\002*Buf\\Validate\\Conform" + - "ance\\Cases\\GPBMetadata\352\002!Buf::Validate::" + - "Conformance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_FloatNone_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_FloatNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatConst_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_FloatConst_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatConst_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatIn_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_FloatIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatNotIn_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_FloatNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatNotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatLT_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_FloatLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatLTE_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_FloatLTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatLTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatGT_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_FloatGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatGTE_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_FloatGTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatGTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatGTLT_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_FloatGTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatGTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatExLTGT_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_FloatExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatGTELTE_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_FloatGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_FloatExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatFinite_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_FloatFinite_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatFinite_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatNotFinite_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_FloatNotFinite_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatNotFinite_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatIgnore_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_conformance_cases_FloatIgnore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatIgnore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatIncorrectType_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_conformance_cases_FloatIncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatIncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_FloatExample_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_conformance_cases_FloatExample_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_FloatExample_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleNone_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_conformance_cases_DoubleNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleConst_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_buf_validate_conformance_cases_DoubleConst_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleConst_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleIn_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_buf_validate_conformance_cases_DoubleIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleNotIn_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_buf_validate_conformance_cases_DoubleNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleNotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleLT_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_buf_validate_conformance_cases_DoubleLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleLTE_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_buf_validate_conformance_cases_DoubleLTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleLTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleGT_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_buf_validate_conformance_cases_DoubleGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleGTE_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_buf_validate_conformance_cases_DoubleGTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleGTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleGTLT_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_buf_validate_conformance_cases_DoubleGTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleGTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleExLTGT_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_buf_validate_conformance_cases_DoubleExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleGTELTE_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_buf_validate_conformance_cases_DoubleGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_buf_validate_conformance_cases_DoubleExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleFinite_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_buf_validate_conformance_cases_DoubleFinite_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleFinite_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleNotFinite_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_buf_validate_conformance_cases_DoubleNotFinite_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleNotFinite_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleIgnore_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_buf_validate_conformance_cases_DoubleIgnore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleIgnore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleIncorrectType_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_buf_validate_conformance_cases_DoubleIncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleIncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_DoubleExample_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_buf_validate_conformance_cases_DoubleExample_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_DoubleExample_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32None_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_buf_validate_conformance_cases_Int32None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32None_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32Const_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_buf_validate_conformance_cases_Int32Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32Const_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32In_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_buf_validate_conformance_cases_Int32In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32In_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32NotIn_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_buf_validate_conformance_cases_Int32NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32NotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32LT_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_buf_validate_conformance_cases_Int32LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32LT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32LTE_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_buf_validate_conformance_cases_Int32LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32LTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32GT_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_buf_validate_conformance_cases_Int32GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32GT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32GTE_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_buf_validate_conformance_cases_Int32GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32GTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32GTLT_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_buf_validate_conformance_cases_Int32GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32GTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32ExLTGT_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_buf_validate_conformance_cases_Int32ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32ExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32GTELTE_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_buf_validate_conformance_cases_Int32GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32GTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32ExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_buf_validate_conformance_cases_Int32ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32ExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32Ignore_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_buf_validate_conformance_cases_Int32Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32Ignore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32IncorrectType_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_buf_validate_conformance_cases_Int32IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32IncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int32Example_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_buf_validate_conformance_cases_Int32Example_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int32Example_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64None_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_buf_validate_conformance_cases_Int64None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64None_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64Const_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_buf_validate_conformance_cases_Int64Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64Const_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64In_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_buf_validate_conformance_cases_Int64In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64In_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64NotIn_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_buf_validate_conformance_cases_Int64NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64NotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64LT_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_buf_validate_conformance_cases_Int64LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64LT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64LTE_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_buf_validate_conformance_cases_Int64LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64LTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64GT_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_buf_validate_conformance_cases_Int64GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64GT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64GTE_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_buf_validate_conformance_cases_Int64GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64GTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64GTLT_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_buf_validate_conformance_cases_Int64GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64GTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64ExLTGT_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_buf_validate_conformance_cases_Int64ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64ExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64GTELTE_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_buf_validate_conformance_cases_Int64GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64GTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64ExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_buf_validate_conformance_cases_Int64ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64ExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64Ignore_descriptor = - getDescriptor().getMessageTypes().get(61); - internal_static_buf_validate_conformance_cases_Int64Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64Ignore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64BigConstraints_descriptor = - getDescriptor().getMessageTypes().get(62); - internal_static_buf_validate_conformance_cases_Int64BigConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64BigConstraints_descriptor, - new java.lang.String[] { "LtPos", "LtNeg", "GtPos", "GtNeg", "LtePos", "LteNeg", "GtePos", "GteNeg", "ConstantPos", "ConstantNeg", "In", "Notin", }); - internal_static_buf_validate_conformance_cases_Int64IncorrectType_descriptor = - getDescriptor().getMessageTypes().get(63); - internal_static_buf_validate_conformance_cases_Int64IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64IncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64Example_descriptor = - getDescriptor().getMessageTypes().get(64); - internal_static_buf_validate_conformance_cases_Int64Example_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64Example_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32None_descriptor = - getDescriptor().getMessageTypes().get(65); - internal_static_buf_validate_conformance_cases_UInt32None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32None_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32Const_descriptor = - getDescriptor().getMessageTypes().get(66); - internal_static_buf_validate_conformance_cases_UInt32Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32Const_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32In_descriptor = - getDescriptor().getMessageTypes().get(67); - internal_static_buf_validate_conformance_cases_UInt32In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32In_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32NotIn_descriptor = - getDescriptor().getMessageTypes().get(68); - internal_static_buf_validate_conformance_cases_UInt32NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32NotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32LT_descriptor = - getDescriptor().getMessageTypes().get(69); - internal_static_buf_validate_conformance_cases_UInt32LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32LT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32LTE_descriptor = - getDescriptor().getMessageTypes().get(70); - internal_static_buf_validate_conformance_cases_UInt32LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32LTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32GT_descriptor = - getDescriptor().getMessageTypes().get(71); - internal_static_buf_validate_conformance_cases_UInt32GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32GT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32GTE_descriptor = - getDescriptor().getMessageTypes().get(72); - internal_static_buf_validate_conformance_cases_UInt32GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32GTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32GTLT_descriptor = - getDescriptor().getMessageTypes().get(73); - internal_static_buf_validate_conformance_cases_UInt32GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32GTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32ExLTGT_descriptor = - getDescriptor().getMessageTypes().get(74); - internal_static_buf_validate_conformance_cases_UInt32ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32ExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32GTELTE_descriptor = - getDescriptor().getMessageTypes().get(75); - internal_static_buf_validate_conformance_cases_UInt32GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32GTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(76); - internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32Ignore_descriptor = - getDescriptor().getMessageTypes().get(77); - internal_static_buf_validate_conformance_cases_UInt32Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32Ignore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32IncorrectType_descriptor = - getDescriptor().getMessageTypes().get(78); - internal_static_buf_validate_conformance_cases_UInt32IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32IncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt32Example_descriptor = - getDescriptor().getMessageTypes().get(79); - internal_static_buf_validate_conformance_cases_UInt32Example_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt32Example_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64None_descriptor = - getDescriptor().getMessageTypes().get(80); - internal_static_buf_validate_conformance_cases_UInt64None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64None_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64Const_descriptor = - getDescriptor().getMessageTypes().get(81); - internal_static_buf_validate_conformance_cases_UInt64Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64Const_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64In_descriptor = - getDescriptor().getMessageTypes().get(82); - internal_static_buf_validate_conformance_cases_UInt64In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64In_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64NotIn_descriptor = - getDescriptor().getMessageTypes().get(83); - internal_static_buf_validate_conformance_cases_UInt64NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64NotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64LT_descriptor = - getDescriptor().getMessageTypes().get(84); - internal_static_buf_validate_conformance_cases_UInt64LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64LT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64LTE_descriptor = - getDescriptor().getMessageTypes().get(85); - internal_static_buf_validate_conformance_cases_UInt64LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64LTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64GT_descriptor = - getDescriptor().getMessageTypes().get(86); - internal_static_buf_validate_conformance_cases_UInt64GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64GT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64GTE_descriptor = - getDescriptor().getMessageTypes().get(87); - internal_static_buf_validate_conformance_cases_UInt64GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64GTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64GTLT_descriptor = - getDescriptor().getMessageTypes().get(88); - internal_static_buf_validate_conformance_cases_UInt64GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64GTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64ExLTGT_descriptor = - getDescriptor().getMessageTypes().get(89); - internal_static_buf_validate_conformance_cases_UInt64ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64ExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64GTELTE_descriptor = - getDescriptor().getMessageTypes().get(90); - internal_static_buf_validate_conformance_cases_UInt64GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64GTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(91); - internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64Ignore_descriptor = - getDescriptor().getMessageTypes().get(92); - internal_static_buf_validate_conformance_cases_UInt64Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64Ignore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64IncorrectType_descriptor = - getDescriptor().getMessageTypes().get(93); - internal_static_buf_validate_conformance_cases_UInt64IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64IncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_UInt64Example_descriptor = - getDescriptor().getMessageTypes().get(94); - internal_static_buf_validate_conformance_cases_UInt64Example_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_UInt64Example_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32None_descriptor = - getDescriptor().getMessageTypes().get(95); - internal_static_buf_validate_conformance_cases_SInt32None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32None_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32Const_descriptor = - getDescriptor().getMessageTypes().get(96); - internal_static_buf_validate_conformance_cases_SInt32Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32Const_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32In_descriptor = - getDescriptor().getMessageTypes().get(97); - internal_static_buf_validate_conformance_cases_SInt32In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32In_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32NotIn_descriptor = - getDescriptor().getMessageTypes().get(98); - internal_static_buf_validate_conformance_cases_SInt32NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32NotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32LT_descriptor = - getDescriptor().getMessageTypes().get(99); - internal_static_buf_validate_conformance_cases_SInt32LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32LT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32LTE_descriptor = - getDescriptor().getMessageTypes().get(100); - internal_static_buf_validate_conformance_cases_SInt32LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32LTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32GT_descriptor = - getDescriptor().getMessageTypes().get(101); - internal_static_buf_validate_conformance_cases_SInt32GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32GT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32GTE_descriptor = - getDescriptor().getMessageTypes().get(102); - internal_static_buf_validate_conformance_cases_SInt32GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32GTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32GTLT_descriptor = - getDescriptor().getMessageTypes().get(103); - internal_static_buf_validate_conformance_cases_SInt32GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32GTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32ExLTGT_descriptor = - getDescriptor().getMessageTypes().get(104); - internal_static_buf_validate_conformance_cases_SInt32ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32ExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32GTELTE_descriptor = - getDescriptor().getMessageTypes().get(105); - internal_static_buf_validate_conformance_cases_SInt32GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32GTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(106); - internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32Ignore_descriptor = - getDescriptor().getMessageTypes().get(107); - internal_static_buf_validate_conformance_cases_SInt32Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32Ignore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32IncorrectType_descriptor = - getDescriptor().getMessageTypes().get(108); - internal_static_buf_validate_conformance_cases_SInt32IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32IncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt32Example_descriptor = - getDescriptor().getMessageTypes().get(109); - internal_static_buf_validate_conformance_cases_SInt32Example_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt32Example_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64None_descriptor = - getDescriptor().getMessageTypes().get(110); - internal_static_buf_validate_conformance_cases_SInt64None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64None_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64Const_descriptor = - getDescriptor().getMessageTypes().get(111); - internal_static_buf_validate_conformance_cases_SInt64Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64Const_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64In_descriptor = - getDescriptor().getMessageTypes().get(112); - internal_static_buf_validate_conformance_cases_SInt64In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64In_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64NotIn_descriptor = - getDescriptor().getMessageTypes().get(113); - internal_static_buf_validate_conformance_cases_SInt64NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64NotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64LT_descriptor = - getDescriptor().getMessageTypes().get(114); - internal_static_buf_validate_conformance_cases_SInt64LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64LT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64LTE_descriptor = - getDescriptor().getMessageTypes().get(115); - internal_static_buf_validate_conformance_cases_SInt64LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64LTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64GT_descriptor = - getDescriptor().getMessageTypes().get(116); - internal_static_buf_validate_conformance_cases_SInt64GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64GT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64GTE_descriptor = - getDescriptor().getMessageTypes().get(117); - internal_static_buf_validate_conformance_cases_SInt64GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64GTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64GTLT_descriptor = - getDescriptor().getMessageTypes().get(118); - internal_static_buf_validate_conformance_cases_SInt64GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64GTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64ExLTGT_descriptor = - getDescriptor().getMessageTypes().get(119); - internal_static_buf_validate_conformance_cases_SInt64ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64ExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64GTELTE_descriptor = - getDescriptor().getMessageTypes().get(120); - internal_static_buf_validate_conformance_cases_SInt64GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64GTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(121); - internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64Ignore_descriptor = - getDescriptor().getMessageTypes().get(122); - internal_static_buf_validate_conformance_cases_SInt64Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64Ignore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64IncorrectType_descriptor = - getDescriptor().getMessageTypes().get(123); - internal_static_buf_validate_conformance_cases_SInt64IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64IncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SInt64Example_descriptor = - getDescriptor().getMessageTypes().get(124); - internal_static_buf_validate_conformance_cases_SInt64Example_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SInt64Example_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32None_descriptor = - getDescriptor().getMessageTypes().get(125); - internal_static_buf_validate_conformance_cases_Fixed32None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32None_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32Const_descriptor = - getDescriptor().getMessageTypes().get(126); - internal_static_buf_validate_conformance_cases_Fixed32Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32Const_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32In_descriptor = - getDescriptor().getMessageTypes().get(127); - internal_static_buf_validate_conformance_cases_Fixed32In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32In_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32NotIn_descriptor = - getDescriptor().getMessageTypes().get(128); - internal_static_buf_validate_conformance_cases_Fixed32NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32NotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32LT_descriptor = - getDescriptor().getMessageTypes().get(129); - internal_static_buf_validate_conformance_cases_Fixed32LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32LT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32LTE_descriptor = - getDescriptor().getMessageTypes().get(130); - internal_static_buf_validate_conformance_cases_Fixed32LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32LTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32GT_descriptor = - getDescriptor().getMessageTypes().get(131); - internal_static_buf_validate_conformance_cases_Fixed32GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32GT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32GTE_descriptor = - getDescriptor().getMessageTypes().get(132); - internal_static_buf_validate_conformance_cases_Fixed32GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32GTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32GTLT_descriptor = - getDescriptor().getMessageTypes().get(133); - internal_static_buf_validate_conformance_cases_Fixed32GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32GTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_descriptor = - getDescriptor().getMessageTypes().get(134); - internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32ExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32GTELTE_descriptor = - getDescriptor().getMessageTypes().get(135); - internal_static_buf_validate_conformance_cases_Fixed32GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32GTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(136); - internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32ExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32Ignore_descriptor = - getDescriptor().getMessageTypes().get(137); - internal_static_buf_validate_conformance_cases_Fixed32Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32Ignore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_descriptor = - getDescriptor().getMessageTypes().get(138); - internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32IncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed32Example_descriptor = - getDescriptor().getMessageTypes().get(139); - internal_static_buf_validate_conformance_cases_Fixed32Example_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed32Example_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64None_descriptor = - getDescriptor().getMessageTypes().get(140); - internal_static_buf_validate_conformance_cases_Fixed64None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64None_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64Const_descriptor = - getDescriptor().getMessageTypes().get(141); - internal_static_buf_validate_conformance_cases_Fixed64Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64Const_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64In_descriptor = - getDescriptor().getMessageTypes().get(142); - internal_static_buf_validate_conformance_cases_Fixed64In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64In_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64NotIn_descriptor = - getDescriptor().getMessageTypes().get(143); - internal_static_buf_validate_conformance_cases_Fixed64NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64NotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64LT_descriptor = - getDescriptor().getMessageTypes().get(144); - internal_static_buf_validate_conformance_cases_Fixed64LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64LT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64LTE_descriptor = - getDescriptor().getMessageTypes().get(145); - internal_static_buf_validate_conformance_cases_Fixed64LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64LTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64GT_descriptor = - getDescriptor().getMessageTypes().get(146); - internal_static_buf_validate_conformance_cases_Fixed64GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64GT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64GTE_descriptor = - getDescriptor().getMessageTypes().get(147); - internal_static_buf_validate_conformance_cases_Fixed64GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64GTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64GTLT_descriptor = - getDescriptor().getMessageTypes().get(148); - internal_static_buf_validate_conformance_cases_Fixed64GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64GTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_descriptor = - getDescriptor().getMessageTypes().get(149); - internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64ExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64GTELTE_descriptor = - getDescriptor().getMessageTypes().get(150); - internal_static_buf_validate_conformance_cases_Fixed64GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64GTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(151); - internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64ExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64Ignore_descriptor = - getDescriptor().getMessageTypes().get(152); - internal_static_buf_validate_conformance_cases_Fixed64Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64Ignore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_descriptor = - getDescriptor().getMessageTypes().get(153); - internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64IncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Fixed64Example_descriptor = - getDescriptor().getMessageTypes().get(154); - internal_static_buf_validate_conformance_cases_Fixed64Example_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Fixed64Example_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32None_descriptor = - getDescriptor().getMessageTypes().get(155); - internal_static_buf_validate_conformance_cases_SFixed32None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32None_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32Const_descriptor = - getDescriptor().getMessageTypes().get(156); - internal_static_buf_validate_conformance_cases_SFixed32Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32Const_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32In_descriptor = - getDescriptor().getMessageTypes().get(157); - internal_static_buf_validate_conformance_cases_SFixed32In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32In_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32NotIn_descriptor = - getDescriptor().getMessageTypes().get(158); - internal_static_buf_validate_conformance_cases_SFixed32NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32NotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32LT_descriptor = - getDescriptor().getMessageTypes().get(159); - internal_static_buf_validate_conformance_cases_SFixed32LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32LT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32LTE_descriptor = - getDescriptor().getMessageTypes().get(160); - internal_static_buf_validate_conformance_cases_SFixed32LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32LTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32GT_descriptor = - getDescriptor().getMessageTypes().get(161); - internal_static_buf_validate_conformance_cases_SFixed32GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32GT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32GTE_descriptor = - getDescriptor().getMessageTypes().get(162); - internal_static_buf_validate_conformance_cases_SFixed32GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32GTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32GTLT_descriptor = - getDescriptor().getMessageTypes().get(163); - internal_static_buf_validate_conformance_cases_SFixed32GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32GTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_descriptor = - getDescriptor().getMessageTypes().get(164); - internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32GTELTE_descriptor = - getDescriptor().getMessageTypes().get(165); - internal_static_buf_validate_conformance_cases_SFixed32GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32GTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(166); - internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32Ignore_descriptor = - getDescriptor().getMessageTypes().get(167); - internal_static_buf_validate_conformance_cases_SFixed32Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32Ignore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_descriptor = - getDescriptor().getMessageTypes().get(168); - internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed32Example_descriptor = - getDescriptor().getMessageTypes().get(169); - internal_static_buf_validate_conformance_cases_SFixed32Example_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed32Example_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64None_descriptor = - getDescriptor().getMessageTypes().get(170); - internal_static_buf_validate_conformance_cases_SFixed64None_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64None_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64Const_descriptor = - getDescriptor().getMessageTypes().get(171); - internal_static_buf_validate_conformance_cases_SFixed64Const_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64Const_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64In_descriptor = - getDescriptor().getMessageTypes().get(172); - internal_static_buf_validate_conformance_cases_SFixed64In_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64In_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64NotIn_descriptor = - getDescriptor().getMessageTypes().get(173); - internal_static_buf_validate_conformance_cases_SFixed64NotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64NotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64LT_descriptor = - getDescriptor().getMessageTypes().get(174); - internal_static_buf_validate_conformance_cases_SFixed64LT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64LT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64LTE_descriptor = - getDescriptor().getMessageTypes().get(175); - internal_static_buf_validate_conformance_cases_SFixed64LTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64LTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64GT_descriptor = - getDescriptor().getMessageTypes().get(176); - internal_static_buf_validate_conformance_cases_SFixed64GT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64GT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64GTE_descriptor = - getDescriptor().getMessageTypes().get(177); - internal_static_buf_validate_conformance_cases_SFixed64GTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64GTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64GTLT_descriptor = - getDescriptor().getMessageTypes().get(178); - internal_static_buf_validate_conformance_cases_SFixed64GTLT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64GTLT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_descriptor = - getDescriptor().getMessageTypes().get(179); - internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64GTELTE_descriptor = - getDescriptor().getMessageTypes().get(180); - internal_static_buf_validate_conformance_cases_SFixed64GTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64GTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_descriptor = - getDescriptor().getMessageTypes().get(181); - internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64Ignore_descriptor = - getDescriptor().getMessageTypes().get(182); - internal_static_buf_validate_conformance_cases_SFixed64Ignore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64Ignore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_descriptor = - getDescriptor().getMessageTypes().get(183); - internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_SFixed64Example_descriptor = - getDescriptor().getMessageTypes().get(184); - internal_static_buf_validate_conformance_cases_SFixed64Example_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_SFixed64Example_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_Int64LTEOptional_descriptor = - getDescriptor().getMessageTypes().get(185); - internal_static_buf_validate_conformance_cases_Int64LTEOptional_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Int64LTEOptional_descriptor, - new java.lang.String[] { "Val", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Oneof.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Oneof.java deleted file mode 100644 index b0c4d624..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Oneof.java +++ /dev/null @@ -1,912 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/oneofs.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Oneof} - */ -public final class Oneof extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Oneof) - OneofOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Oneof.class.getName()); - } - // Use Oneof.newBuilder() to construct. - private Oneof(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Oneof() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_Oneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_Oneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Oneof.class, build.buf.validate.conformance.cases.Oneof.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - X(1), - Y(2), - Z(3), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return X; - case 2: return Y; - case 3: return Z; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int X_FIELD_NUMBER = 1; - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @return Whether the x field is set. - */ - public boolean hasX() { - return oCase_ == 1; - } - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @return The x. - */ - public java.lang.String getX() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 1) { - o_ = s; - } - return s; - } - } - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @return The bytes for x. - */ - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 1) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int Y_FIELD_NUMBER = 2; - /** - * int32 y = 2 [json_name = "y", (.buf.validate.field) = { ... } - * @return Whether the y field is set. - */ - @java.lang.Override - public boolean hasY() { - return oCase_ == 2; - } - /** - * int32 y = 2 [json_name = "y", (.buf.validate.field) = { ... } - * @return The y. - */ - @java.lang.Override - public int getY() { - if (oCase_ == 2) { - return (java.lang.Integer) o_; - } - return 0; - } - - public static final int Z_FIELD_NUMBER = 3; - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - * @return Whether the z field is set. - */ - @java.lang.Override - public boolean hasZ() { - return oCase_ == 3; - } - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - * @return The z. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestOneofMsg getZ() { - if (oCase_ == 3) { - return (build.buf.validate.conformance.cases.TestOneofMsg) o_; - } - return build.buf.validate.conformance.cases.TestOneofMsg.getDefaultInstance(); - } - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestOneofMsgOrBuilder getZOrBuilder() { - if (oCase_ == 3) { - return (build.buf.validate.conformance.cases.TestOneofMsg) o_; - } - return build.buf.validate.conformance.cases.TestOneofMsg.getDefaultInstance(); - } - - 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 { - if (oCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, o_); - } - if (oCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) o_)); - } - if (oCase_ == 3) { - output.writeMessage(3, (build.buf.validate.conformance.cases.TestOneofMsg) o_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, o_); - } - if (oCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) o_)); - } - if (oCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (build.buf.validate.conformance.cases.TestOneofMsg) o_); - } - 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.Oneof)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Oneof other = (build.buf.validate.conformance.cases.Oneof) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (!getX() - .equals(other.getX())) return false; - break; - case 2: - if (getY() - != other.getY()) return false; - break; - case 3: - if (!getZ() - .equals(other.getZ())) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + getX().hashCode(); - break; - case 2: - hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + getY(); - break; - case 3: - hash = (37 * hash) + Z_FIELD_NUMBER; - hash = (53 * hash) + getZ().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Oneof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Oneof 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.Oneof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Oneof 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.Oneof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Oneof 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.Oneof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Oneof 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.Oneof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Oneof 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.Oneof 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.Oneof 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.Oneof 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.Oneof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Oneof) - build.buf.validate.conformance.cases.OneofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_Oneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_Oneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Oneof.class, build.buf.validate.conformance.cases.Oneof.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Oneof.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (zBuilder_ != null) { - zBuilder_.clear(); - } - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_Oneof_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Oneof getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Oneof.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Oneof build() { - build.buf.validate.conformance.cases.Oneof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Oneof buildPartial() { - build.buf.validate.conformance.cases.Oneof result = new build.buf.validate.conformance.cases.Oneof(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Oneof result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Oneof result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - if (oCase_ == 3 && - zBuilder_ != null) { - result.o_ = zBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Oneof) { - return mergeFrom((build.buf.validate.conformance.cases.Oneof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Oneof other) { - if (other == build.buf.validate.conformance.cases.Oneof.getDefaultInstance()) return this; - switch (other.getOCase()) { - case X: { - oCase_ = 1; - o_ = other.o_; - onChanged(); - break; - } - case Y: { - setY(other.getY()); - break; - } - case Z: { - mergeZ(other.getZ()); - break; - } - case O_NOT_SET: { - break; - } - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - oCase_ = 1; - o_ = s; - break; - } // case 10 - case 16: { - o_ = input.readInt32(); - oCase_ = 2; - break; - } // case 16 - case 26: { - input.readMessage( - internalGetZFieldBuilder().getBuilder(), - extensionRegistry); - oCase_ = 3; - break; - } // case 26 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @return Whether the x field is set. - */ - @java.lang.Override - public boolean hasX() { - return oCase_ == 1; - } - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @return The x. - */ - @java.lang.Override - public java.lang.String getX() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 1) { - o_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @return The bytes for x. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 1) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @param value The x to set. - * @return This builder for chaining. - */ - public Builder setX( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearX() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @param value The bytes for x to set. - * @return This builder for chaining. - */ - public Builder setXBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - - /** - * int32 y = 2 [json_name = "y", (.buf.validate.field) = { ... } - * @return Whether the y field is set. - */ - public boolean hasY() { - return oCase_ == 2; - } - /** - * int32 y = 2 [json_name = "y", (.buf.validate.field) = { ... } - * @return The y. - */ - public int getY() { - if (oCase_ == 2) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 y = 2 [json_name = "y", (.buf.validate.field) = { ... } - * @param value The y to set. - * @return This builder for chaining. - */ - public Builder setY(int value) { - - oCase_ = 2; - o_ = value; - onChanged(); - return this; - } - /** - * int32 y = 2 [json_name = "y", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearY() { - if (oCase_ == 2) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestOneofMsg, build.buf.validate.conformance.cases.TestOneofMsg.Builder, build.buf.validate.conformance.cases.TestOneofMsgOrBuilder> zBuilder_; - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - * @return Whether the z field is set. - */ - @java.lang.Override - public boolean hasZ() { - return oCase_ == 3; - } - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - * @return The z. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestOneofMsg getZ() { - if (zBuilder_ == null) { - if (oCase_ == 3) { - return (build.buf.validate.conformance.cases.TestOneofMsg) o_; - } - return build.buf.validate.conformance.cases.TestOneofMsg.getDefaultInstance(); - } else { - if (oCase_ == 3) { - return zBuilder_.getMessage(); - } - return build.buf.validate.conformance.cases.TestOneofMsg.getDefaultInstance(); - } - } - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - */ - public Builder setZ(build.buf.validate.conformance.cases.TestOneofMsg value) { - if (zBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - o_ = value; - onChanged(); - } else { - zBuilder_.setMessage(value); - } - oCase_ = 3; - return this; - } - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - */ - public Builder setZ( - build.buf.validate.conformance.cases.TestOneofMsg.Builder builderForValue) { - if (zBuilder_ == null) { - o_ = builderForValue.build(); - onChanged(); - } else { - zBuilder_.setMessage(builderForValue.build()); - } - oCase_ = 3; - return this; - } - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - */ - public Builder mergeZ(build.buf.validate.conformance.cases.TestOneofMsg value) { - if (zBuilder_ == null) { - if (oCase_ == 3 && - o_ != build.buf.validate.conformance.cases.TestOneofMsg.getDefaultInstance()) { - o_ = build.buf.validate.conformance.cases.TestOneofMsg.newBuilder((build.buf.validate.conformance.cases.TestOneofMsg) o_) - .mergeFrom(value).buildPartial(); - } else { - o_ = value; - } - onChanged(); - } else { - if (oCase_ == 3) { - zBuilder_.mergeFrom(value); - } else { - zBuilder_.setMessage(value); - } - } - oCase_ = 3; - return this; - } - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - */ - public Builder clearZ() { - if (zBuilder_ == null) { - if (oCase_ == 3) { - oCase_ = 0; - o_ = null; - onChanged(); - } - } else { - if (oCase_ == 3) { - oCase_ = 0; - o_ = null; - } - zBuilder_.clear(); - } - return this; - } - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - */ - public build.buf.validate.conformance.cases.TestOneofMsg.Builder getZBuilder() { - return internalGetZFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestOneofMsgOrBuilder getZOrBuilder() { - if ((oCase_ == 3) && (zBuilder_ != null)) { - return zBuilder_.getMessageOrBuilder(); - } else { - if (oCase_ == 3) { - return (build.buf.validate.conformance.cases.TestOneofMsg) o_; - } - return build.buf.validate.conformance.cases.TestOneofMsg.getDefaultInstance(); - } - } - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestOneofMsg, build.buf.validate.conformance.cases.TestOneofMsg.Builder, build.buf.validate.conformance.cases.TestOneofMsgOrBuilder> - internalGetZFieldBuilder() { - if (zBuilder_ == null) { - if (!(oCase_ == 3)) { - o_ = build.buf.validate.conformance.cases.TestOneofMsg.getDefaultInstance(); - } - zBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestOneofMsg, build.buf.validate.conformance.cases.TestOneofMsg.Builder, build.buf.validate.conformance.cases.TestOneofMsgOrBuilder>( - (build.buf.validate.conformance.cases.TestOneofMsg) o_, - getParentForChildren(), - isClean()); - o_ = null; - } - oCase_ = 3; - onChanged(); - return zBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Oneof) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Oneof) - private static final build.buf.validate.conformance.cases.Oneof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Oneof(); - } - - public static build.buf.validate.conformance.cases.Oneof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Oneof 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.Oneof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofNone.java deleted file mode 100644 index 091e29c8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofNone.java +++ /dev/null @@ -1,704 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/oneofs.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.OneofNone} - */ -public final class OneofNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.OneofNone) - OneofNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - OneofNone.class.getName()); - } - // Use OneofNone.newBuilder() to construct. - private OneofNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private OneofNone() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.OneofNone.class, build.buf.validate.conformance.cases.OneofNone.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - X(1), - Y(2), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return X; - case 2: return Y; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int X_FIELD_NUMBER = 1; - /** - * string x = 1 [json_name = "x"]; - * @return Whether the x field is set. - */ - public boolean hasX() { - return oCase_ == 1; - } - /** - * string x = 1 [json_name = "x"]; - * @return The x. - */ - public java.lang.String getX() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 1) { - o_ = s; - } - return s; - } - } - /** - * string x = 1 [json_name = "x"]; - * @return The bytes for x. - */ - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 1) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int Y_FIELD_NUMBER = 2; - /** - * int32 y = 2 [json_name = "y"]; - * @return Whether the y field is set. - */ - @java.lang.Override - public boolean hasY() { - return oCase_ == 2; - } - /** - * int32 y = 2 [json_name = "y"]; - * @return The y. - */ - @java.lang.Override - public int getY() { - if (oCase_ == 2) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, o_); - } - if (oCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, o_); - } - if (oCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) o_)); - } - 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.OneofNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.OneofNone other = (build.buf.validate.conformance.cases.OneofNone) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (!getX() - .equals(other.getX())) return false; - break; - case 2: - if (getY() - != other.getY()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + getX().hashCode(); - break; - case 2: - hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + getY(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.OneofNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.OneofNone 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.OneofNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.OneofNone 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.OneofNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.OneofNone 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.OneofNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.OneofNone 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.OneofNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.OneofNone 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.OneofNone 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.OneofNone 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.OneofNone 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.OneofNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.OneofNone) - build.buf.validate.conformance.cases.OneofNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.OneofNone.class, build.buf.validate.conformance.cases.OneofNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.OneofNone.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.OneofNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.OneofNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.OneofNone build() { - build.buf.validate.conformance.cases.OneofNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.OneofNone buildPartial() { - build.buf.validate.conformance.cases.OneofNone result = new build.buf.validate.conformance.cases.OneofNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.OneofNone result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.OneofNone result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.OneofNone) { - return mergeFrom((build.buf.validate.conformance.cases.OneofNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.OneofNone other) { - if (other == build.buf.validate.conformance.cases.OneofNone.getDefaultInstance()) return this; - switch (other.getOCase()) { - case X: { - oCase_ = 1; - o_ = other.o_; - onChanged(); - break; - } - case Y: { - setY(other.getY()); - break; - } - case O_NOT_SET: { - break; - } - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - oCase_ = 1; - o_ = s; - break; - } // case 10 - case 16: { - o_ = input.readInt32(); - oCase_ = 2; - break; - } // case 16 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * string x = 1 [json_name = "x"]; - * @return Whether the x field is set. - */ - @java.lang.Override - public boolean hasX() { - return oCase_ == 1; - } - /** - * string x = 1 [json_name = "x"]; - * @return The x. - */ - @java.lang.Override - public java.lang.String getX() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 1) { - o_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string x = 1 [json_name = "x"]; - * @return The bytes for x. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 1) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string x = 1 [json_name = "x"]; - * @param value The x to set. - * @return This builder for chaining. - */ - public Builder setX( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * string x = 1 [json_name = "x"]; - * @return This builder for chaining. - */ - public Builder clearX() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - /** - * string x = 1 [json_name = "x"]; - * @param value The bytes for x to set. - * @return This builder for chaining. - */ - public Builder setXBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - - /** - * int32 y = 2 [json_name = "y"]; - * @return Whether the y field is set. - */ - public boolean hasY() { - return oCase_ == 2; - } - /** - * int32 y = 2 [json_name = "y"]; - * @return The y. - */ - public int getY() { - if (oCase_ == 2) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 y = 2 [json_name = "y"]; - * @param value The y to set. - * @return This builder for chaining. - */ - public Builder setY(int value) { - - oCase_ = 2; - o_ = value; - onChanged(); - return this; - } - /** - * int32 y = 2 [json_name = "y"]; - * @return This builder for chaining. - */ - public Builder clearY() { - if (oCase_ == 2) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.OneofNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.OneofNone) - private static final build.buf.validate.conformance.cases.OneofNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.OneofNone(); - } - - public static build.buf.validate.conformance.cases.OneofNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OneofNone 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.OneofNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofNoneOrBuilder.java deleted file mode 100644 index ad0a4b84..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofNoneOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/oneofs.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface OneofNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.OneofNone) - com.google.protobuf.MessageOrBuilder { - - /** - * string x = 1 [json_name = "x"]; - * @return Whether the x field is set. - */ - boolean hasX(); - /** - * string x = 1 [json_name = "x"]; - * @return The x. - */ - java.lang.String getX(); - /** - * string x = 1 [json_name = "x"]; - * @return The bytes for x. - */ - com.google.protobuf.ByteString - getXBytes(); - - /** - * int32 y = 2 [json_name = "y"]; - * @return Whether the y field is set. - */ - boolean hasY(); - /** - * int32 y = 2 [json_name = "y"]; - * @return The y. - */ - int getY(); - - build.buf.validate.conformance.cases.OneofNone.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofOrBuilder.java deleted file mode 100644 index 36c4d034..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/oneofs.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface OneofOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Oneof) - com.google.protobuf.MessageOrBuilder { - - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @return Whether the x field is set. - */ - boolean hasX(); - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @return The x. - */ - java.lang.String getX(); - /** - * string x = 1 [json_name = "x", (.buf.validate.field) = { ... } - * @return The bytes for x. - */ - com.google.protobuf.ByteString - getXBytes(); - - /** - * int32 y = 2 [json_name = "y", (.buf.validate.field) = { ... } - * @return Whether the y field is set. - */ - boolean hasY(); - /** - * int32 y = 2 [json_name = "y", (.buf.validate.field) = { ... } - * @return The y. - */ - int getY(); - - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - * @return Whether the z field is set. - */ - boolean hasZ(); - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - * @return The z. - */ - build.buf.validate.conformance.cases.TestOneofMsg getZ(); - /** - * .buf.validate.conformance.cases.TestOneofMsg z = 3 [json_name = "z"]; - */ - build.buf.validate.conformance.cases.TestOneofMsgOrBuilder getZOrBuilder(); - - build.buf.validate.conformance.cases.Oneof.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequired.java b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequired.java deleted file mode 100644 index 4c5c64e0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequired.java +++ /dev/null @@ -1,886 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/oneofs.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.OneofRequired} - */ -public final class OneofRequired extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.OneofRequired) - OneofRequiredOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - OneofRequired.class.getName()); - } - // Use OneofRequired.newBuilder() to construct. - private OneofRequired(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private OneofRequired() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.OneofRequired.class, build.buf.validate.conformance.cases.OneofRequired.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - X(1), - Y(2), - NAME_WITH_UNDERSCORES(3), - UNDER_AND_1_NUMBER(4), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return X; - case 2: return Y; - case 3: return NAME_WITH_UNDERSCORES; - case 4: return UNDER_AND_1_NUMBER; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int X_FIELD_NUMBER = 1; - /** - * string x = 1 [json_name = "x"]; - * @return Whether the x field is set. - */ - public boolean hasX() { - return oCase_ == 1; - } - /** - * string x = 1 [json_name = "x"]; - * @return The x. - */ - public java.lang.String getX() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 1) { - o_ = s; - } - return s; - } - } - /** - * string x = 1 [json_name = "x"]; - * @return The bytes for x. - */ - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 1) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int Y_FIELD_NUMBER = 2; - /** - * int32 y = 2 [json_name = "y"]; - * @return Whether the y field is set. - */ - @java.lang.Override - public boolean hasY() { - return oCase_ == 2; - } - /** - * int32 y = 2 [json_name = "y"]; - * @return The y. - */ - @java.lang.Override - public int getY() { - if (oCase_ == 2) { - return (java.lang.Integer) o_; - } - return 0; - } - - public static final int NAME_WITH_UNDERSCORES_FIELD_NUMBER = 3; - /** - * int32 name_with_underscores = 3 [json_name = "nameWithUnderscores"]; - * @return Whether the nameWithUnderscores field is set. - */ - @java.lang.Override - public boolean hasNameWithUnderscores() { - return oCase_ == 3; - } - /** - * int32 name_with_underscores = 3 [json_name = "nameWithUnderscores"]; - * @return The nameWithUnderscores. - */ - @java.lang.Override - public int getNameWithUnderscores() { - if (oCase_ == 3) { - return (java.lang.Integer) o_; - } - return 0; - } - - public static final int UNDER_AND_1_NUMBER_FIELD_NUMBER = 4; - /** - * int32 under_and_1_number = 4 [json_name = "underAnd1Number"]; - * @return Whether the underAnd1Number field is set. - */ - @java.lang.Override - public boolean hasUnderAnd1Number() { - return oCase_ == 4; - } - /** - * int32 under_and_1_number = 4 [json_name = "underAnd1Number"]; - * @return The underAnd1Number. - */ - @java.lang.Override - public int getUnderAnd1Number() { - if (oCase_ == 4) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, o_); - } - if (oCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) o_)); - } - if (oCase_ == 3) { - output.writeInt32( - 3, (int)((java.lang.Integer) o_)); - } - if (oCase_ == 4) { - output.writeInt32( - 4, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, o_); - } - if (oCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) o_)); - } - if (oCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 3, (int)((java.lang.Integer) o_)); - } - if (oCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 4, (int)((java.lang.Integer) o_)); - } - 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.OneofRequired)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.OneofRequired other = (build.buf.validate.conformance.cases.OneofRequired) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (!getX() - .equals(other.getX())) return false; - break; - case 2: - if (getY() - != other.getY()) return false; - break; - case 3: - if (getNameWithUnderscores() - != other.getNameWithUnderscores()) return false; - break; - case 4: - if (getUnderAnd1Number() - != other.getUnderAnd1Number()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + getX().hashCode(); - break; - case 2: - hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + getY(); - break; - case 3: - hash = (37 * hash) + NAME_WITH_UNDERSCORES_FIELD_NUMBER; - hash = (53 * hash) + getNameWithUnderscores(); - break; - case 4: - hash = (37 * hash) + UNDER_AND_1_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getUnderAnd1Number(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.OneofRequired parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.OneofRequired 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.OneofRequired parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.OneofRequired 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.OneofRequired parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.OneofRequired 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.OneofRequired parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.OneofRequired 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.OneofRequired parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.OneofRequired 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.OneofRequired 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.OneofRequired 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.OneofRequired 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.OneofRequired} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.OneofRequired) - build.buf.validate.conformance.cases.OneofRequiredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.OneofRequired.class, build.buf.validate.conformance.cases.OneofRequired.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.OneofRequired.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequired_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.OneofRequired getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.OneofRequired.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.OneofRequired build() { - build.buf.validate.conformance.cases.OneofRequired result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.OneofRequired buildPartial() { - build.buf.validate.conformance.cases.OneofRequired result = new build.buf.validate.conformance.cases.OneofRequired(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.OneofRequired result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.OneofRequired result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.OneofRequired) { - return mergeFrom((build.buf.validate.conformance.cases.OneofRequired)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.OneofRequired other) { - if (other == build.buf.validate.conformance.cases.OneofRequired.getDefaultInstance()) return this; - switch (other.getOCase()) { - case X: { - oCase_ = 1; - o_ = other.o_; - onChanged(); - break; - } - case Y: { - setY(other.getY()); - break; - } - case NAME_WITH_UNDERSCORES: { - setNameWithUnderscores(other.getNameWithUnderscores()); - break; - } - case UNDER_AND_1_NUMBER: { - setUnderAnd1Number(other.getUnderAnd1Number()); - break; - } - case O_NOT_SET: { - break; - } - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - oCase_ = 1; - o_ = s; - break; - } // case 10 - case 16: { - o_ = input.readInt32(); - oCase_ = 2; - break; - } // case 16 - case 24: { - o_ = input.readInt32(); - oCase_ = 3; - break; - } // case 24 - case 32: { - o_ = input.readInt32(); - oCase_ = 4; - break; - } // case 32 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * string x = 1 [json_name = "x"]; - * @return Whether the x field is set. - */ - @java.lang.Override - public boolean hasX() { - return oCase_ == 1; - } - /** - * string x = 1 [json_name = "x"]; - * @return The x. - */ - @java.lang.Override - public java.lang.String getX() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 1) { - o_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string x = 1 [json_name = "x"]; - * @return The bytes for x. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getXBytes() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 1) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string x = 1 [json_name = "x"]; - * @param value The x to set. - * @return This builder for chaining. - */ - public Builder setX( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * string x = 1 [json_name = "x"]; - * @return This builder for chaining. - */ - public Builder clearX() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - /** - * string x = 1 [json_name = "x"]; - * @param value The bytes for x to set. - * @return This builder for chaining. - */ - public Builder setXBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - - /** - * int32 y = 2 [json_name = "y"]; - * @return Whether the y field is set. - */ - public boolean hasY() { - return oCase_ == 2; - } - /** - * int32 y = 2 [json_name = "y"]; - * @return The y. - */ - public int getY() { - if (oCase_ == 2) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 y = 2 [json_name = "y"]; - * @param value The y to set. - * @return This builder for chaining. - */ - public Builder setY(int value) { - - oCase_ = 2; - o_ = value; - onChanged(); - return this; - } - /** - * int32 y = 2 [json_name = "y"]; - * @return This builder for chaining. - */ - public Builder clearY() { - if (oCase_ == 2) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - /** - * int32 name_with_underscores = 3 [json_name = "nameWithUnderscores"]; - * @return Whether the nameWithUnderscores field is set. - */ - public boolean hasNameWithUnderscores() { - return oCase_ == 3; - } - /** - * int32 name_with_underscores = 3 [json_name = "nameWithUnderscores"]; - * @return The nameWithUnderscores. - */ - public int getNameWithUnderscores() { - if (oCase_ == 3) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 name_with_underscores = 3 [json_name = "nameWithUnderscores"]; - * @param value The nameWithUnderscores to set. - * @return This builder for chaining. - */ - public Builder setNameWithUnderscores(int value) { - - oCase_ = 3; - o_ = value; - onChanged(); - return this; - } - /** - * int32 name_with_underscores = 3 [json_name = "nameWithUnderscores"]; - * @return This builder for chaining. - */ - public Builder clearNameWithUnderscores() { - if (oCase_ == 3) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - /** - * int32 under_and_1_number = 4 [json_name = "underAnd1Number"]; - * @return Whether the underAnd1Number field is set. - */ - public boolean hasUnderAnd1Number() { - return oCase_ == 4; - } - /** - * int32 under_and_1_number = 4 [json_name = "underAnd1Number"]; - * @return The underAnd1Number. - */ - public int getUnderAnd1Number() { - if (oCase_ == 4) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 under_and_1_number = 4 [json_name = "underAnd1Number"]; - * @param value The underAnd1Number to set. - * @return This builder for chaining. - */ - public Builder setUnderAnd1Number(int value) { - - oCase_ = 4; - o_ = value; - onChanged(); - return this; - } - /** - * int32 under_and_1_number = 4 [json_name = "underAnd1Number"]; - * @return This builder for chaining. - */ - public Builder clearUnderAnd1Number() { - if (oCase_ == 4) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.OneofRequired) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.OneofRequired) - private static final build.buf.validate.conformance.cases.OneofRequired DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.OneofRequired(); - } - - public static build.buf.validate.conformance.cases.OneofRequired getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OneofRequired 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.OneofRequired getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredOrBuilder.java deleted file mode 100644 index d32a5dc2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/oneofs.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface OneofRequiredOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.OneofRequired) - com.google.protobuf.MessageOrBuilder { - - /** - * string x = 1 [json_name = "x"]; - * @return Whether the x field is set. - */ - boolean hasX(); - /** - * string x = 1 [json_name = "x"]; - * @return The x. - */ - java.lang.String getX(); - /** - * string x = 1 [json_name = "x"]; - * @return The bytes for x. - */ - com.google.protobuf.ByteString - getXBytes(); - - /** - * int32 y = 2 [json_name = "y"]; - * @return Whether the y field is set. - */ - boolean hasY(); - /** - * int32 y = 2 [json_name = "y"]; - * @return The y. - */ - int getY(); - - /** - * int32 name_with_underscores = 3 [json_name = "nameWithUnderscores"]; - * @return Whether the nameWithUnderscores field is set. - */ - boolean hasNameWithUnderscores(); - /** - * int32 name_with_underscores = 3 [json_name = "nameWithUnderscores"]; - * @return The nameWithUnderscores. - */ - int getNameWithUnderscores(); - - /** - * int32 under_and_1_number = 4 [json_name = "underAnd1Number"]; - * @return Whether the underAnd1Number field is set. - */ - boolean hasUnderAnd1Number(); - /** - * int32 under_and_1_number = 4 [json_name = "underAnd1Number"]; - * @return The underAnd1Number. - */ - int getUnderAnd1Number(); - - build.buf.validate.conformance.cases.OneofRequired.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredField.java b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredField.java deleted file mode 100644 index ec7b7a8a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredField.java +++ /dev/null @@ -1,786 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/oneofs.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.OneofRequiredWithRequiredField} - */ -public final class OneofRequiredWithRequiredField extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.OneofRequiredWithRequiredField) - OneofRequiredWithRequiredFieldOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - OneofRequiredWithRequiredField.class.getName()); - } - // Use OneofRequiredWithRequiredField.newBuilder() to construct. - private OneofRequiredWithRequiredField(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private OneofRequiredWithRequiredField() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.OneofRequiredWithRequiredField.class, build.buf.validate.conformance.cases.OneofRequiredWithRequiredField.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - A(1), - B(2), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return A; - case 2: return B; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int A_FIELD_NUMBER = 1; - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - public boolean hasA() { - return oCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - public java.lang.String getA() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 1) { - o_ = s; - } - return s; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 1) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int B_FIELD_NUMBER = 2; - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - public boolean hasB() { - return oCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - public java.lang.String getB() { - java.lang.Object ref = ""; - if (oCase_ == 2) { - ref = o_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 2) { - o_ = s; - } - return s; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (oCase_ == 2) { - ref = o_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 2) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (oCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, o_); - } - if (oCase_ == 2) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, o_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, o_); - } - if (oCase_ == 2) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, o_); - } - 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.OneofRequiredWithRequiredField)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.OneofRequiredWithRequiredField other = (build.buf.validate.conformance.cases.OneofRequiredWithRequiredField) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (!getA() - .equals(other.getA())) return false; - break; - case 2: - if (!getB() - .equals(other.getB())) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA().hashCode(); - break; - case 2: - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.OneofRequiredWithRequiredField parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.OneofRequiredWithRequiredField 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.OneofRequiredWithRequiredField parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.OneofRequiredWithRequiredField 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.OneofRequiredWithRequiredField parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.OneofRequiredWithRequiredField 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.OneofRequiredWithRequiredField parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.OneofRequiredWithRequiredField 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.OneofRequiredWithRequiredField parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.OneofRequiredWithRequiredField 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.OneofRequiredWithRequiredField 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.OneofRequiredWithRequiredField 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.OneofRequiredWithRequiredField 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.OneofRequiredWithRequiredField} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.OneofRequiredWithRequiredField) - build.buf.validate.conformance.cases.OneofRequiredWithRequiredFieldOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.OneofRequiredWithRequiredField.class, build.buf.validate.conformance.cases.OneofRequiredWithRequiredField.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.OneofRequiredWithRequiredField.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.OneofRequiredWithRequiredField getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.OneofRequiredWithRequiredField.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.OneofRequiredWithRequiredField build() { - build.buf.validate.conformance.cases.OneofRequiredWithRequiredField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.OneofRequiredWithRequiredField buildPartial() { - build.buf.validate.conformance.cases.OneofRequiredWithRequiredField result = new build.buf.validate.conformance.cases.OneofRequiredWithRequiredField(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.OneofRequiredWithRequiredField result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.OneofRequiredWithRequiredField result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.OneofRequiredWithRequiredField) { - return mergeFrom((build.buf.validate.conformance.cases.OneofRequiredWithRequiredField)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.OneofRequiredWithRequiredField other) { - if (other == build.buf.validate.conformance.cases.OneofRequiredWithRequiredField.getDefaultInstance()) return this; - switch (other.getOCase()) { - case A: { - oCase_ = 1; - o_ = other.o_; - onChanged(); - break; - } - case B: { - oCase_ = 2; - o_ = other.o_; - onChanged(); - break; - } - case O_NOT_SET: { - break; - } - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - oCase_ = 1; - o_ = s; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - oCase_ = 2; - o_ = s; - break; - } // case 18 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return oCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public java.lang.String getA() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 1) { - o_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (oCase_ == 1) { - ref = o_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 1) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The bytes for a to set. - * @return This builder for chaining. - */ - public Builder setABytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - @java.lang.Override - public boolean hasB() { - return oCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public java.lang.String getB() { - java.lang.Object ref = ""; - if (oCase_ == 2) { - ref = o_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oCase_ == 2) { - o_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (oCase_ == 2) { - ref = o_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (oCase_ == 2) { - o_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @param value The b to set. - * @return This builder for chaining. - */ - public Builder setB( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - oCase_ = 2; - o_ = value; - onChanged(); - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @return This builder for chaining. - */ - public Builder clearB() { - if (oCase_ == 2) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @param value The bytes for b to set. - * @return This builder for chaining. - */ - public Builder setBBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - oCase_ = 2; - o_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.OneofRequiredWithRequiredField) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.OneofRequiredWithRequiredField) - private static final build.buf.validate.conformance.cases.OneofRequiredWithRequiredField DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.OneofRequiredWithRequiredField(); - } - - public static build.buf.validate.conformance.cases.OneofRequiredWithRequiredField getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OneofRequiredWithRequiredField 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.OneofRequiredWithRequiredField getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredFieldOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredFieldOrBuilder.java deleted file mode 100644 index ba35384e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofRequiredWithRequiredFieldOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/oneofs.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface OneofRequiredWithRequiredFieldOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.OneofRequiredWithRequiredField) - com.google.protobuf.MessageOrBuilder { - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - boolean hasA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - java.lang.String getA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - com.google.protobuf.ByteString - getABytes(); - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - boolean hasB(); - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - java.lang.String getB(); - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - com.google.protobuf.ByteString - getBBytes(); - - build.buf.validate.conformance.cases.OneofRequiredWithRequiredField.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofsProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/OneofsProto.java deleted file mode 100644 index 456fb41a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/OneofsProto.java +++ /dev/null @@ -1,129 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/oneofs.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class OneofsProto { - private OneofsProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - OneofsProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TestOneofMsg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TestOneofMsg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_OneofNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_OneofNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Oneof_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Oneof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_OneofRequired_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_OneofRequired_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+buf/validate/conformance/cases/oneofs." + - "proto\022\036buf.validate.conformance.cases\032\033b" + - "uf/validate/validate.proto\")\n\014TestOneofM" + - "sg\022\031\n\003val\030\001 \001(\010B\007\272H\004j\002\010\001R\003val\"0\n\tOneofNo" + - "ne\022\016\n\001x\030\001 \001(\tH\000R\001x\022\016\n\001y\030\002 \001(\005H\000R\001yB\003\n\001o\"" + - "\177\n\005Oneof\022\032\n\001x\030\001 \001(\tB\n\272H\007r\005:\003fooH\000R\001x\022\027\n\001" + - "y\030\002 \001(\005B\007\272H\004\032\002 \000H\000R\001y\022<\n\001z\030\003 \001(\0132,.buf.v" + - "alidate.conformance.cases.TestOneofMsgH\000" + - "R\001zB\003\n\001o\"\240\001\n\rOneofRequired\022\016\n\001x\030\001 \001(\tH\000R" + - "\001x\022\016\n\001y\030\002 \001(\005H\000R\001y\0224\n\025name_with_undersco" + - "res\030\003 \001(\005H\000R\023nameWithUnderscores\022-\n\022unde" + - "r_and_1_number\030\004 \001(\005H\000R\017underAnd1NumberB" + - "\n\n\001o\022\005\272H\002\010\001\"T\n\036OneofRequiredWithRequired" + - "Field\022\026\n\001a\030\001 \001(\tB\006\272H\003\310\001\001H\000R\001a\022\016\n\001b\030\002 \001(\t" + - "H\000R\001bB\n\n\001o\022\005\272H\002\010\001B\317\001\n$build.buf.validate" + - ".conformance.casesB\013OneofsProtoP\001\242\002\004BVCC" + - "\252\002\036Buf.Validate.Conformance.Cases\312\002\036Buf\\" + - "Validate\\Conformance\\Cases\342\002*Buf\\Validat" + - "e\\Conformance\\Cases\\GPBMetadata\352\002!Buf::V" + - "alidate::Conformance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_TestOneofMsg_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_TestOneofMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_TestOneofMsg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_OneofNone_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_OneofNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_OneofNone_descriptor, - new java.lang.String[] { "X", "Y", "O", }); - internal_static_buf_validate_conformance_cases_Oneof_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_Oneof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Oneof_descriptor, - new java.lang.String[] { "X", "Y", "Z", "O", }); - internal_static_buf_validate_conformance_cases_OneofRequired_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_OneofRequired_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_OneofRequired_descriptor, - new java.lang.String[] { "X", "Y", "NameWithUnderscores", "UnderAnd1Number", "O", }); - internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_OneofRequiredWithRequiredField_descriptor, - new java.lang.String[] { "A", "B", "O", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - registry.add(build.buf.validate.ValidateProto.oneof); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} 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 deleted file mode 100644 index 78e54edb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023.java +++ /dev/null @@ -1,1110 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023} - */ -public final class PredefinedAndCustomRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023) - PredefinedAndCustomRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedAndCustomRuleEdition2023.class.getName()); - } - // Use PredefinedAndCustomRuleEdition2023.newBuilder() to construct. - private PredefinedAndCustomRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedAndCustomRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Builder.class); - } - - public interface NestedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return Whether the c field is set. - */ - boolean hasC(); - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return The c. - */ - int getC(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested} - */ - public static final class Nested extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested) - NestedOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Nested.class.getName()); - } - // Use Nested.newBuilder() to construct. - private Nested(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Nested() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_Nested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_Nested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.Builder.class); - } - - private int bitField0_; - public static final int C_FIELD_NUMBER = 1; - private int c_ = 0; - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return Whether the c field is set. - */ - @java.lang.Override - public boolean hasC() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return The c. - */ - @java.lang.Override - public int getC() { - return c_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt32(1, c_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, c_); - } - 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.PredefinedAndCustomRuleEdition2023.Nested)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested other = (build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested) obj; - - if (hasC() != other.hasC()) return false; - if (hasC()) { - if (getC() - != other.getC()) 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 (hasC()) { - hash = (37 * hash) + C_FIELD_NUMBER; - hash = (53 * hash) + getC(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested 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.PredefinedAndCustomRuleEdition2023.Nested parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested 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.PredefinedAndCustomRuleEdition2023.Nested parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested 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.PredefinedAndCustomRuleEdition2023.Nested parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested 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.PredefinedAndCustomRuleEdition2023.Nested parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested 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.PredefinedAndCustomRuleEdition2023.Nested 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.PredefinedAndCustomRuleEdition2023.Nested 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.PredefinedAndCustomRuleEdition2023.Nested 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.PredefinedAndCustomRuleEdition2023.Nested} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested) - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.NestedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_Nested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_Nested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - c_ = 0; - 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_PredefinedAndCustomRuleEdition2023_Nested_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested build() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested buildPartial() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested result = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.c_ = c_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested other) { - if (other == build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.getDefaultInstance()) return this; - if (other.hasC()) { - setC(other.getC()); - } - 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 8: { - c_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int c_ ; - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return Whether the c field is set. - */ - @java.lang.Override - public boolean hasC() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return The c. - */ - @java.lang.Override - public int getC() { - return c_; - } - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @param value The c to set. - * @return This builder for chaining. - */ - public Builder setC(int value) { - - c_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearC() { - bitField0_ = (bitField0_ & ~0x00000001); - c_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested) - private static final build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested(); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Nested 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.PredefinedAndCustomRuleEdition2023.Nested getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - public static final int B_FIELD_NUMBER = 2; - private build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b_; - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return Whether the b field is set. - */ - @java.lang.Override - public boolean hasB() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The b. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested getB() { - return b_ == null ? build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.getDefaultInstance() : b_; - } - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.NestedOrBuilder getBOrBuilder() { - return b_ == null ? build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.getDefaultInstance() : b_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt32(1, a_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getB()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, a_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getB()); - } - 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.PredefinedAndCustomRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023) obj; - - if (hasA() != other.hasA()) return false; - if (hasA()) { - if (getA() - != other.getA()) return false; - } - if (hasB() != other.hasB()) return false; - if (hasB()) { - if (!getB() - .equals(other.getB())) 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 (hasA()) { - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - } - if (hasB()) { - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 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.PredefinedAndCustomRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 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.PredefinedAndCustomRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 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.PredefinedAndCustomRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 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.PredefinedAndCustomRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 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.PredefinedAndCustomRuleEdition2023 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.PredefinedAndCustomRuleEdition2023 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.PredefinedAndCustomRuleEdition2023 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.PredefinedAndCustomRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetBFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - b_ = null; - if (bBuilder_ != null) { - bBuilder_.dispose(); - bBuilder_ = null; - } - 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_PredefinedAndCustomRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.b_ = bBuilder_ == null - ? b_ - : bBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.getDefaultInstance()) return this; - if (other.hasA()) { - setA(other.getA()); - } - if (other.hasB()) { - mergeB(other.getB()); - } - 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 8: { - a_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - internalGetBFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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 int a_ ; - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - private build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested, build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.Builder, build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.NestedOrBuilder> bBuilder_; - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return Whether the b field is set. - */ - public boolean hasB() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The b. - */ - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested getB() { - if (bBuilder_ == null) { - return b_ == null ? build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.getDefaultInstance() : b_; - } else { - return bBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder setB(build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested value) { - if (bBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - b_ = value; - } else { - bBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder setB( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.Builder builderForValue) { - if (bBuilder_ == null) { - b_ = builderForValue.build(); - } else { - bBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder mergeB(build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested value) { - if (bBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - b_ != null && - b_ != build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.getDefaultInstance()) { - getBBuilder().mergeFrom(value); - } else { - b_ = value; - } - } else { - bBuilder_.mergeFrom(value); - } - if (b_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder clearB() { - bitField0_ = (bitField0_ & ~0x00000002); - b_ = null; - if (bBuilder_ != null) { - bBuilder_.dispose(); - bBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.Builder getBBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetBFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.NestedOrBuilder getBOrBuilder() { - if (bBuilder_ != null) { - return bBuilder_.getMessageOrBuilder(); - } else { - return b_ == null ? - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.getDefaultInstance() : b_; - } - } - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested, build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.Builder, build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.NestedOrBuilder> - internalGetBFieldBuilder() { - if (bBuilder_ == null) { - bBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested, build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested.Builder, build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.NestedOrBuilder>( - getB(), - getParentForChildren(), - isClean()); - b_ = null; - } - return bBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedAndCustomRuleEdition2023 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.PredefinedAndCustomRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - 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 deleted file mode 100644 index 4066d0a6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedAndCustomRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - boolean hasA(); - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - int getA(); - - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return Whether the b field is set. - */ - boolean hasB(); - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The b. - */ - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested getB(); - /** - * .buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.NestedOrBuilder getBOrBuilder(); -} 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 deleted file mode 100644 index e2de5ed4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2.java +++ /dev/null @@ -1,1110 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedAndCustomRuleProto2} - */ -public final class PredefinedAndCustomRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleProto2) - PredefinedAndCustomRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedAndCustomRuleProto2.class.getName()); - } - // Use PredefinedAndCustomRuleProto2.newBuilder() to construct. - private PredefinedAndCustomRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedAndCustomRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Builder.class); - } - - public interface NestedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested) - com.google.protobuf.MessageOrBuilder { - - /** - * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return Whether the c field is set. - */ - boolean hasC(); - /** - * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return The c. - */ - int getC(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested} - */ - public static final class Nested extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested) - NestedOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Nested.class.getName()); - } - // Use Nested.newBuilder() to construct. - private Nested(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Nested() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_Nested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_Nested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.Builder.class); - } - - private int bitField0_; - public static final int C_FIELD_NUMBER = 1; - private int c_ = 0; - /** - * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return Whether the c field is set. - */ - @java.lang.Override - public boolean hasC() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return The c. - */ - @java.lang.Override - public int getC() { - return c_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt32(1, c_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, c_); - } - 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.PredefinedAndCustomRuleProto2.Nested)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested other = (build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested) obj; - - if (hasC() != other.hasC()) return false; - if (hasC()) { - if (getC() - != other.getC()) 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 (hasC()) { - hash = (37 * hash) + C_FIELD_NUMBER; - hash = (53 * hash) + getC(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested 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.PredefinedAndCustomRuleProto2.Nested parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested 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.PredefinedAndCustomRuleProto2.Nested parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested 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.PredefinedAndCustomRuleProto2.Nested parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested 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.PredefinedAndCustomRuleProto2.Nested parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested 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.PredefinedAndCustomRuleProto2.Nested 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.PredefinedAndCustomRuleProto2.Nested 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.PredefinedAndCustomRuleProto2.Nested 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.PredefinedAndCustomRuleProto2.Nested} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested) - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.NestedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_Nested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_Nested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - c_ = 0; - 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_PredefinedAndCustomRuleProto2_Nested_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested build() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested buildPartial() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested result = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.c_ = c_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested other) { - if (other == build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.getDefaultInstance()) return this; - if (other.hasC()) { - setC(other.getC()); - } - 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 8: { - c_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int c_ ; - /** - * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return Whether the c field is set. - */ - @java.lang.Override - public boolean hasC() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return The c. - */ - @java.lang.Override - public int getC() { - return c_; - } - /** - * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @param value The c to set. - * @return This builder for chaining. - */ - public Builder setC(int value) { - - c_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearC() { - bitField0_ = (bitField0_ & ~0x00000001); - c_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested) - private static final build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested(); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Nested 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.PredefinedAndCustomRuleProto2.Nested getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - public static final int B_FIELD_NUMBER = 2; - private build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b_; - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return Whether the b field is set. - */ - @java.lang.Override - public boolean hasB() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The b. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested getB() { - return b_ == null ? build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.getDefaultInstance() : b_; - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.NestedOrBuilder getBOrBuilder() { - return b_ == null ? build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.getDefaultInstance() : b_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt32(1, a_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getB()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, a_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getB()); - } - 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.PredefinedAndCustomRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2) obj; - - if (hasA() != other.hasA()) return false; - if (hasA()) { - if (getA() - != other.getA()) return false; - } - if (hasB() != other.hasB()) return false; - if (hasB()) { - if (!getB() - .equals(other.getB())) 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 (hasA()) { - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - } - if (hasB()) { - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 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.PredefinedAndCustomRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 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.PredefinedAndCustomRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 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.PredefinedAndCustomRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 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.PredefinedAndCustomRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 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.PredefinedAndCustomRuleProto2 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.PredefinedAndCustomRuleProto2 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.PredefinedAndCustomRuleProto2 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.PredefinedAndCustomRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleProto2) - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetBFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - b_ = null; - if (bBuilder_ != null) { - bBuilder_.dispose(); - bBuilder_ = null; - } - 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_PredefinedAndCustomRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.b_ = bBuilder_ == null - ? b_ - : bBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.getDefaultInstance()) return this; - if (other.hasA()) { - setA(other.getA()); - } - if (other.hasB()) { - mergeB(other.getB()); - } - 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 8: { - a_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - internalGetBFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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 int a_ ; - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - private build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.Builder, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.NestedOrBuilder> bBuilder_; - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return Whether the b field is set. - */ - public boolean hasB() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The b. - */ - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested getB() { - if (bBuilder_ == null) { - return b_ == null ? build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.getDefaultInstance() : b_; - } else { - return bBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder setB(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested value) { - if (bBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - b_ = value; - } else { - bBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder setB( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.Builder builderForValue) { - if (bBuilder_ == null) { - b_ = builderForValue.build(); - } else { - bBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder mergeB(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested value) { - if (bBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - b_ != null && - b_ != build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.getDefaultInstance()) { - getBBuilder().mergeFrom(value); - } else { - b_ = value; - } - } else { - bBuilder_.mergeFrom(value); - } - if (b_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder clearB() { - bitField0_ = (bitField0_ & ~0x00000002); - b_ = null; - if (bBuilder_ != null) { - bBuilder_.dispose(); - bBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.Builder getBBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetBFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.NestedOrBuilder getBOrBuilder() { - if (bBuilder_ != null) { - return bBuilder_.getMessageOrBuilder(); - } else { - return b_ == null ? - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.getDefaultInstance() : b_; - } - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.Builder, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.NestedOrBuilder> - internalGetBFieldBuilder() { - if (bBuilder_ == null) { - bBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested.Builder, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.NestedOrBuilder>( - getB(), - getParentForChildren(), - isClean()); - b_ = null; - } - return bBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedAndCustomRuleProto2 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.PredefinedAndCustomRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - 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 deleted file mode 100644 index 969b4af1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2OrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedAndCustomRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedAndCustomRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - boolean hasA(); - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - int getA(); - - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return Whether the b field is set. - */ - boolean hasB(); - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The b. - */ - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested getB(); - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.NestedOrBuilder getBOrBuilder(); -} 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 deleted file mode 100644 index 2ba5e03b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3.java +++ /dev/null @@ -1,1058 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedAndCustomRuleProto3} - */ -public final class PredefinedAndCustomRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleProto3) - PredefinedAndCustomRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedAndCustomRuleProto3.class.getName()); - } - // Use PredefinedAndCustomRuleProto3.newBuilder() to construct. - private PredefinedAndCustomRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedAndCustomRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Builder.class); - } - - public interface NestedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return The c. - */ - int getC(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested} - */ - public static final class Nested extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested) - NestedOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Nested.class.getName()); - } - // Use Nested.newBuilder() to construct. - private Nested(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Nested() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_Nested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_Nested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.Builder.class); - } - - public static final int C_FIELD_NUMBER = 1; - private int c_ = 0; - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return The c. - */ - @java.lang.Override - public int getC() { - return c_; - } - - 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 { - if (c_ != 0) { - output.writeSInt32(1, c_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (c_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, c_); - } - 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.PredefinedAndCustomRuleProto3.Nested)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested other = (build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested) obj; - - if (getC() - != other.getC()) 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(); - hash = (37 * hash) + C_FIELD_NUMBER; - hash = (53 * hash) + getC(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested 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.PredefinedAndCustomRuleProto3.Nested parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested 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.PredefinedAndCustomRuleProto3.Nested parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested 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.PredefinedAndCustomRuleProto3.Nested parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested 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.PredefinedAndCustomRuleProto3.Nested parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested 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.PredefinedAndCustomRuleProto3.Nested 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.PredefinedAndCustomRuleProto3.Nested 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.PredefinedAndCustomRuleProto3.Nested 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.PredefinedAndCustomRuleProto3.Nested} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested) - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.NestedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_Nested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_Nested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - c_ = 0; - 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_PredefinedAndCustomRuleProto3_Nested_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested build() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested buildPartial() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested result = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.c_ = c_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested other) { - if (other == build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.getDefaultInstance()) return this; - if (other.getC() != 0) { - setC(other.getC()); - } - 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 8: { - c_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int c_ ; - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return The c. - */ - @java.lang.Override - public int getC() { - return c_; - } - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @param value The c to set. - * @return This builder for chaining. - */ - public Builder setC(int value) { - - c_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearC() { - bitField0_ = (bitField0_ & ~0x00000001); - c_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested) - private static final build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested(); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Nested 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.PredefinedAndCustomRuleProto3.Nested getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - public static final int B_FIELD_NUMBER = 2; - private build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b_; - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return Whether the b field is set. - */ - @java.lang.Override - public boolean hasB() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The b. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested getB() { - return b_ == null ? build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.getDefaultInstance() : b_; - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.NestedOrBuilder getBOrBuilder() { - return b_ == null ? build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.getDefaultInstance() : b_; - } - - 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 { - if (a_ != 0) { - output.writeSInt32(1, a_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getB()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, a_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getB()); - } - 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.PredefinedAndCustomRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3) obj; - - if (getA() - != other.getA()) return false; - if (hasB() != other.hasB()) return false; - if (hasB()) { - if (!getB() - .equals(other.getB())) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - if (hasB()) { - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 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.PredefinedAndCustomRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 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.PredefinedAndCustomRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 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.PredefinedAndCustomRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 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.PredefinedAndCustomRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 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.PredefinedAndCustomRuleProto3 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.PredefinedAndCustomRuleProto3 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.PredefinedAndCustomRuleProto3 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.PredefinedAndCustomRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedAndCustomRuleProto3) - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.class, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetBFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - b_ = null; - if (bBuilder_ != null) { - bBuilder_.dispose(); - bBuilder_ = null; - } - 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_PredefinedAndCustomRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.b_ = bBuilder_ == null - ? b_ - : bBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - if (other.hasB()) { - mergeB(other.getB()); - } - 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 8: { - a_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - internalGetBFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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 int a_ ; - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - private build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.Builder, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.NestedOrBuilder> bBuilder_; - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return Whether the b field is set. - */ - public boolean hasB() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The b. - */ - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested getB() { - if (bBuilder_ == null) { - return b_ == null ? build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.getDefaultInstance() : b_; - } else { - return bBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder setB(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested value) { - if (bBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - b_ = value; - } else { - bBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder setB( - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.Builder builderForValue) { - if (bBuilder_ == null) { - b_ = builderForValue.build(); - } else { - bBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder mergeB(build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested value) { - if (bBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - b_ != null && - b_ != build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.getDefaultInstance()) { - getBBuilder().mergeFrom(value); - } else { - b_ = value; - } - } else { - bBuilder_.mergeFrom(value); - } - if (b_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public Builder clearB() { - bitField0_ = (bitField0_ & ~0x00000002); - b_ = null; - if (bBuilder_ != null) { - bBuilder_.dispose(); - bBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.Builder getBBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetBFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.NestedOrBuilder getBOrBuilder() { - if (bBuilder_ != null) { - return bBuilder_.getMessageOrBuilder(); - } else { - return b_ == null ? - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.getDefaultInstance() : b_; - } - } - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.Builder, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.NestedOrBuilder> - internalGetBFieldBuilder() { - if (bBuilder_ == null) { - bBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested.Builder, build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.NestedOrBuilder>( - getB(), - getParentForChildren(), - isClean()); - b_ = null; - } - return bBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedAndCustomRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedAndCustomRuleProto3 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.PredefinedAndCustomRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - 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 deleted file mode 100644 index a0499dd9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3OrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedAndCustomRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedAndCustomRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - int getA(); - - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return Whether the b field is set. - */ - boolean hasB(); - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The b. - */ - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested getB(); - /** - * optional .buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested b = 2 [json_name = "b", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.NestedOrBuilder getBOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleEdition2023.java deleted file mode 100644 index c20bcb6f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleEdition2023.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedBoolRuleEdition2023} - */ -public final class PredefinedBoolRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedBoolRuleEdition2023) - PredefinedBoolRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedBoolRuleEdition2023.class.getName()); - } - // Use PredefinedBoolRuleEdition2023.newBuilder() to construct. - private PredefinedBoolRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedBoolRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private boolean val_ = false; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, val_); - } - 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.PredefinedBoolRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 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.PredefinedBoolRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 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.PredefinedBoolRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 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.PredefinedBoolRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 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.PredefinedBoolRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 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.PredefinedBoolRuleEdition2023 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.PredefinedBoolRuleEdition2023 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.PredefinedBoolRuleEdition2023 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.PredefinedBoolRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedBoolRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = false; - 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_PredefinedBoolRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 boolean val_ ; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(boolean value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedBoolRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedBoolRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedBoolRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedBoolRuleEdition2023 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.PredefinedBoolRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleEdition2023OrBuilder.java deleted file mode 100644 index 6eb26efb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedBoolRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedBoolRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - boolean getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto2.java deleted file mode 100644 index 9c61cff6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto2.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedBoolRuleProto2} - */ -public final class PredefinedBoolRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedBoolRuleProto2) - PredefinedBoolRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedBoolRuleProto2.class.getName()); - } - // Use PredefinedBoolRuleProto2.newBuilder() to construct. - private PredefinedBoolRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedBoolRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBoolRuleProto2.class, build.buf.validate.conformance.cases.PredefinedBoolRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private boolean val_ = false; - /** - * optional bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, val_); - } - 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.PredefinedBoolRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedBoolRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 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.PredefinedBoolRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 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.PredefinedBoolRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 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.PredefinedBoolRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 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.PredefinedBoolRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 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.PredefinedBoolRuleProto2 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.PredefinedBoolRuleProto2 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.PredefinedBoolRuleProto2 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.PredefinedBoolRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedBoolRuleProto2) - build.buf.validate.conformance.cases.PredefinedBoolRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBoolRuleProto2.class, build.buf.validate.conformance.cases.PredefinedBoolRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedBoolRuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = false; - 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_PredefinedBoolRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedBoolRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedBoolRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedBoolRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedBoolRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedBoolRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 boolean val_ ; - /** - * optional bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - /** - * optional bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(boolean value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedBoolRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedBoolRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedBoolRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedBoolRuleProto2 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.PredefinedBoolRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto2OrBuilder.java deleted file mode 100644 index b3ccb5ae..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedBoolRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedBoolRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - boolean getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto3.java deleted file mode 100644 index a43b97a4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto3.java +++ /dev/null @@ -1,432 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedBoolRuleProto3} - */ -public final class PredefinedBoolRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedBoolRuleProto3) - PredefinedBoolRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedBoolRuleProto3.class.getName()); - } - // Use PredefinedBoolRuleProto3.newBuilder() to construct. - private PredefinedBoolRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedBoolRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBoolRuleProto3.class, build.buf.validate.conformance.cases.PredefinedBoolRuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private boolean val_ = false; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - - 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 { - if (val_ != false) { - output.writeBool(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, val_); - } - 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.PredefinedBoolRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedBoolRuleProto3) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 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.PredefinedBoolRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 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.PredefinedBoolRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 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.PredefinedBoolRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 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.PredefinedBoolRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 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.PredefinedBoolRuleProto3 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.PredefinedBoolRuleProto3 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.PredefinedBoolRuleProto3 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.PredefinedBoolRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedBoolRuleProto3) - build.buf.validate.conformance.cases.PredefinedBoolRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBoolRuleProto3.class, build.buf.validate.conformance.cases.PredefinedBoolRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedBoolRuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = false; - 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_PredefinedBoolRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedBoolRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedBoolRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedBoolRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedBoolRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedBoolRuleProto3.getDefaultInstance()) return this; - if (other.getVal() != false) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 boolean val_ ; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(boolean value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedBoolRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedBoolRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedBoolRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedBoolRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedBoolRuleProto3 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.PredefinedBoolRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto3OrBuilder.java deleted file mode 100644 index d02d0173..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBoolRuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedBoolRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedBoolRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - boolean getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleEdition2023.java deleted file mode 100644 index 55d96e90..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleEdition2023.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedBytesRuleEdition2023} - */ -public final class PredefinedBytesRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedBytesRuleEdition2023) - PredefinedBytesRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedBytesRuleEdition2023.class.getName()); - } - // Use PredefinedBytesRuleEdition2023.newBuilder() to construct. - private PredefinedBytesRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedBytesRuleEdition2023() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.PredefinedBytesRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 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.PredefinedBytesRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 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.PredefinedBytesRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 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.PredefinedBytesRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 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.PredefinedBytesRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 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.PredefinedBytesRuleEdition2023 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.PredefinedBytesRuleEdition2023 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.PredefinedBytesRuleEdition2023 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.PredefinedBytesRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedBytesRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - 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_PredefinedBytesRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedBytesRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedBytesRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedBytesRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedBytesRuleEdition2023 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.PredefinedBytesRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleEdition2023OrBuilder.java deleted file mode 100644 index 92c31ffb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedBytesRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedBytesRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto2.java deleted file mode 100644 index b20e039e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto2.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedBytesRuleProto2} - */ -public final class PredefinedBytesRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedBytesRuleProto2) - PredefinedBytesRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedBytesRuleProto2.class.getName()); - } - // Use PredefinedBytesRuleProto2.newBuilder() to construct. - private PredefinedBytesRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedBytesRuleProto2() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBytesRuleProto2.class, build.buf.validate.conformance.cases.PredefinedBytesRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.PredefinedBytesRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedBytesRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 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.PredefinedBytesRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 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.PredefinedBytesRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 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.PredefinedBytesRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 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.PredefinedBytesRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 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.PredefinedBytesRuleProto2 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.PredefinedBytesRuleProto2 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.PredefinedBytesRuleProto2 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.PredefinedBytesRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedBytesRuleProto2) - build.buf.validate.conformance.cases.PredefinedBytesRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBytesRuleProto2.class, build.buf.validate.conformance.cases.PredefinedBytesRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedBytesRuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - 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_PredefinedBytesRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedBytesRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedBytesRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedBytesRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedBytesRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedBytesRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * optional bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedBytesRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedBytesRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedBytesRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedBytesRuleProto2 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.PredefinedBytesRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto2OrBuilder.java deleted file mode 100644 index 8758fe63..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedBytesRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedBytesRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto3.java deleted file mode 100644 index 173cce91..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto3.java +++ /dev/null @@ -1,432 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedBytesRuleProto3} - */ -public final class PredefinedBytesRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedBytesRuleProto3) - PredefinedBytesRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedBytesRuleProto3.class.getName()); - } - // Use PredefinedBytesRuleProto3.newBuilder() to construct. - private PredefinedBytesRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedBytesRuleProto3() { - val_ = com.google.protobuf.ByteString.EMPTY; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBytesRuleProto3.class, build.buf.validate.conformance.cases.PredefinedBytesRuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - - 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 { - if (!val_.isEmpty()) { - output.writeBytes(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!val_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, val_); - } - 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.PredefinedBytesRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedBytesRuleProto3) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 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.PredefinedBytesRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 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.PredefinedBytesRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 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.PredefinedBytesRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 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.PredefinedBytesRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 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.PredefinedBytesRuleProto3 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.PredefinedBytesRuleProto3 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.PredefinedBytesRuleProto3 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.PredefinedBytesRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedBytesRuleProto3) - build.buf.validate.conformance.cases.PredefinedBytesRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedBytesRuleProto3.class, build.buf.validate.conformance.cases.PredefinedBytesRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedBytesRuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = com.google.protobuf.ByteString.EMPTY; - 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_PredefinedBytesRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedBytesRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedBytesRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedBytesRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedBytesRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedBytesRuleProto3.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - setVal(other.getVal()); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.ByteString val_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVal() { - return val_; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedBytesRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedBytesRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedBytesRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedBytesRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedBytesRuleProto3 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.PredefinedBytesRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto3OrBuilder.java deleted file mode 100644 index 9e32aff5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedBytesRuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedBytesRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedBytesRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.ByteString getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleEdition2023.java deleted file mode 100644 index f85c4234..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleEdition2023.java +++ /dev/null @@ -1,458 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023} - */ -public final class PredefinedDoubleRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023) - PredefinedDoubleRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedDoubleRuleEdition2023.class.getName()); - } - // Use PredefinedDoubleRuleEdition2023.newBuilder() to construct. - private PredefinedDoubleRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedDoubleRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.PredefinedDoubleRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 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.PredefinedDoubleRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 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.PredefinedDoubleRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 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.PredefinedDoubleRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 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.PredefinedDoubleRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 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.PredefinedDoubleRuleEdition2023 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.PredefinedDoubleRuleEdition2023 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.PredefinedDoubleRuleEdition2023 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.PredefinedDoubleRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - 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_PredefinedDoubleRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedDoubleRuleEdition2023 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.PredefinedDoubleRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleEdition2023OrBuilder.java deleted file mode 100644 index e5d96936..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedDoubleRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedDoubleRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto2.java deleted file mode 100644 index 0278e664..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto2.java +++ /dev/null @@ -1,458 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedDoubleRuleProto2} - */ -public final class PredefinedDoubleRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedDoubleRuleProto2) - PredefinedDoubleRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedDoubleRuleProto2.class.getName()); - } - // Use PredefinedDoubleRuleProto2.newBuilder() to construct. - private PredefinedDoubleRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedDoubleRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2.class, build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * optional double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.PredefinedDoubleRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 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.PredefinedDoubleRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 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.PredefinedDoubleRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 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.PredefinedDoubleRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 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.PredefinedDoubleRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 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.PredefinedDoubleRuleProto2 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.PredefinedDoubleRuleProto2 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.PredefinedDoubleRuleProto2 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.PredefinedDoubleRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedDoubleRuleProto2) - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2.class, build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - 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_PredefinedDoubleRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * optional double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * optional double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedDoubleRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedDoubleRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedDoubleRuleProto2 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.PredefinedDoubleRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto2OrBuilder.java deleted file mode 100644 index 32f272f4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedDoubleRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedDoubleRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto3.java deleted file mode 100644 index c8435d04..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto3.java +++ /dev/null @@ -1,433 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedDoubleRuleProto3} - */ -public final class PredefinedDoubleRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedDoubleRuleProto3) - PredefinedDoubleRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedDoubleRuleProto3.class.getName()); - } - // Use PredefinedDoubleRuleProto3.newBuilder() to construct. - private PredefinedDoubleRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedDoubleRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3.class, build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private double val_ = 0D; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - - 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 { - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - output.writeDouble(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, val_); - } - 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.PredefinedDoubleRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3) obj; - - if (java.lang.Double.doubleToLongBits(getVal()) - != java.lang.Double.doubleToLongBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVal())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 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.PredefinedDoubleRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 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.PredefinedDoubleRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 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.PredefinedDoubleRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 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.PredefinedDoubleRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 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.PredefinedDoubleRuleProto3 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.PredefinedDoubleRuleProto3 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.PredefinedDoubleRuleProto3 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.PredefinedDoubleRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedDoubleRuleProto3) - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3.class, build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0D; - 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_PredefinedDoubleRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3.getDefaultInstance()) return this; - if (java.lang.Double.doubleToRawLongBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 double val_ ; - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public double getVal() { - return val_; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(double value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0D; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedDoubleRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedDoubleRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedDoubleRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedDoubleRuleProto3 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.PredefinedDoubleRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto3OrBuilder.java deleted file mode 100644 index 6881b043..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDoubleRuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedDoubleRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedDoubleRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - double getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleEdition2023.java deleted file mode 100644 index 62389454..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleEdition2023.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedDurationRuleEdition2023} - */ -public final class PredefinedDurationRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedDurationRuleEdition2023) - PredefinedDurationRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedDurationRuleEdition2023.class.getName()); - } - // Use PredefinedDurationRuleEdition2023.newBuilder() to construct. - private PredefinedDurationRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedDurationRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedDurationRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 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.PredefinedDurationRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 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.PredefinedDurationRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 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.PredefinedDurationRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 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.PredefinedDurationRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 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.PredefinedDurationRuleEdition2023 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.PredefinedDurationRuleEdition2023 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.PredefinedDurationRuleEdition2023 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.PredefinedDurationRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedDurationRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedDurationRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedDurationRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedDurationRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedDurationRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedDurationRuleEdition2023 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.PredefinedDurationRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleEdition2023OrBuilder.java deleted file mode 100644 index 0f1c8461..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedDurationRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedDurationRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto2.java deleted file mode 100644 index 1664f93b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto2.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedDurationRuleProto2} - */ -public final class PredefinedDurationRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedDurationRuleProto2) - PredefinedDurationRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedDurationRuleProto2.class.getName()); - } - // Use PredefinedDurationRuleProto2.newBuilder() to construct. - private PredefinedDurationRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedDurationRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDurationRuleProto2.class, build.buf.validate.conformance.cases.PredefinedDurationRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedDurationRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedDurationRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 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.PredefinedDurationRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 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.PredefinedDurationRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 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.PredefinedDurationRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 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.PredefinedDurationRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 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.PredefinedDurationRuleProto2 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.PredefinedDurationRuleProto2 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.PredefinedDurationRuleProto2 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.PredefinedDurationRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedDurationRuleProto2) - build.buf.validate.conformance.cases.PredefinedDurationRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDurationRuleProto2.class, build.buf.validate.conformance.cases.PredefinedDurationRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedDurationRuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedDurationRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedDurationRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedDurationRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedDurationRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedDurationRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedDurationRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedDurationRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedDurationRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedDurationRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedDurationRuleProto2 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.PredefinedDurationRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto2OrBuilder.java deleted file mode 100644 index ec4a55dc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto2OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedDurationRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedDurationRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * optional .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto3.java deleted file mode 100644 index ceed19f3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto3.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedDurationRuleProto3} - */ -public final class PredefinedDurationRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedDurationRuleProto3) - PredefinedDurationRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedDurationRuleProto3.class.getName()); - } - // Use PredefinedDurationRuleProto3.newBuilder() to construct. - private PredefinedDurationRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedDurationRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDurationRuleProto3.class, build.buf.validate.conformance.cases.PredefinedDurationRuleProto3.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Duration val_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Duration getVal() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedDurationRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedDurationRuleProto3) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 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.PredefinedDurationRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 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.PredefinedDurationRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 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.PredefinedDurationRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 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.PredefinedDurationRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 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.PredefinedDurationRuleProto3 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.PredefinedDurationRuleProto3 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.PredefinedDurationRuleProto3 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.PredefinedDurationRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedDurationRuleProto3) - build.buf.validate.conformance.cases.PredefinedDurationRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedDurationRuleProto3.class, build.buf.validate.conformance.cases.PredefinedDurationRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedDurationRuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedDurationRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedDurationRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedDurationRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedDurationRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedDurationRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedDurationRuleProto3.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Duration val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Duration getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Duration.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Duration.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedDurationRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedDurationRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedDurationRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedDurationRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedDurationRuleProto3 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.PredefinedDurationRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto3OrBuilder.java deleted file mode 100644 index 5c2eb96e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedDurationRuleProto3OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedDurationRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedDurationRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Duration getVal(); - /** - * .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleEdition2023.java deleted file mode 100644 index 377f453a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleEdition2023.java +++ /dev/null @@ -1,599 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedEnumRuleEdition2023} - */ -public final class PredefinedEnumRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedEnumRuleEdition2023) - PredefinedEnumRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedEnumRuleEdition2023.class.getName()); - } - // Use PredefinedEnumRuleEdition2023.newBuilder() to construct. - private PredefinedEnumRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedEnumRuleEdition2023() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.Builder.class); - } - - /** - * Protobuf enum {@code buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023} - */ - public enum EnumEdition2023 - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ENUM_EDITION2023_ZERO_UNSPECIFIED = 0; - */ - ENUM_EDITION2023_ZERO_UNSPECIFIED(0), - /** - * ENUM_EDITION2023_ONE = 1; - */ - ENUM_EDITION2023_ONE(1), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumEdition2023.class.getName()); - } - /** - * ENUM_EDITION2023_ZERO_UNSPECIFIED = 0; - */ - public static final int ENUM_EDITION2023_ZERO_UNSPECIFIED_VALUE = 0; - /** - * ENUM_EDITION2023_ONE = 1; - */ - public static final int ENUM_EDITION2023_ONE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EnumEdition2023 valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static EnumEdition2023 forNumber(int value) { - switch (value) { - case 0: return ENUM_EDITION2023_ZERO_UNSPECIFIED; - case 1: return ENUM_EDITION2023_ONE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - EnumEdition2023> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EnumEdition2023 findValueByNumber(int number) { - return EnumEdition2023.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.getDescriptor().getEnumTypes().get(0); - } - - private static final EnumEdition2023[] VALUES = values(); - - public static EnumEdition2023 valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EnumEdition2023(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023) - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 getVal() { - build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 result = build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023.UNRECOGNIZED : result; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.PredefinedEnumRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (val_ != other.val_) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 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.PredefinedEnumRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 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.PredefinedEnumRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 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.PredefinedEnumRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 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.PredefinedEnumRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 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.PredefinedEnumRuleEdition2023 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.PredefinedEnumRuleEdition2023 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.PredefinedEnumRuleEdition2023 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.PredefinedEnumRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedEnumRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedEnumRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 getVal() { - build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 result = build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedEnumRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedEnumRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedEnumRuleEdition2023 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.PredefinedEnumRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleEdition2023OrBuilder.java deleted file mode 100644 index b86f1301..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedEnumRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedEnumRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.PredefinedEnumRuleEdition2023.EnumEdition2023 getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto2.java deleted file mode 100644 index dd68a812..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto2.java +++ /dev/null @@ -1,569 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedEnumRuleProto2} - */ -public final class PredefinedEnumRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedEnumRuleProto2) - PredefinedEnumRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedEnumRuleProto2.class.getName()); - } - // Use PredefinedEnumRuleProto2.newBuilder() to construct. - private PredefinedEnumRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedEnumRuleProto2() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.class, build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.Builder.class); - } - - /** - * Protobuf enum {@code buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2} - */ - public enum EnumProto2 - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ENUM_PROTO2_ZERO_UNSPECIFIED = 0; - */ - ENUM_PROTO2_ZERO_UNSPECIFIED(0), - /** - * ENUM_PROTO2_ONE = 1; - */ - ENUM_PROTO2_ONE(1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumProto2.class.getName()); - } - /** - * ENUM_PROTO2_ZERO_UNSPECIFIED = 0; - */ - public static final int ENUM_PROTO2_ZERO_UNSPECIFIED_VALUE = 0; - /** - * ENUM_PROTO2_ONE = 1; - */ - public static final int ENUM_PROTO2_ONE_VALUE = 1; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EnumProto2 valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static EnumProto2 forNumber(int value) { - switch (value) { - case 0: return ENUM_PROTO2_ZERO_UNSPECIFIED; - case 1: return ENUM_PROTO2_ONE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - EnumProto2> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EnumProto2 findValueByNumber(int number) { - return EnumProto2.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.getDescriptor().getEnumTypes().get(0); - } - - private static final EnumProto2[] VALUES = values(); - - public static EnumProto2 valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EnumProto2(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2) - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional .buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 getVal() { - build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 result = build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2.ENUM_PROTO2_ZERO_UNSPECIFIED : result; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.PredefinedEnumRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedEnumRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (val_ != other.val_) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 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.PredefinedEnumRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 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.PredefinedEnumRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 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.PredefinedEnumRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 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.PredefinedEnumRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 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.PredefinedEnumRuleProto2 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.PredefinedEnumRuleProto2 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.PredefinedEnumRuleProto2 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.PredefinedEnumRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedEnumRuleProto2) - build.buf.validate.conformance.cases.PredefinedEnumRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.class, build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedEnumRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedEnumRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedEnumRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedEnumRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - int tmpRaw = input.readEnum(); - build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 tmpValue = - build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(1, tmpRaw); - } else { - val_ = tmpRaw; - bitField0_ |= 0x00000001; - } - break; - } // case 8 - 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 int val_ = 0; - /** - * optional .buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 getVal() { - build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 result = build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2.ENUM_PROTO2_ZERO_UNSPECIFIED : result; - } - /** - * optional .buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedEnumRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedEnumRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedEnumRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedEnumRuleProto2 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.PredefinedEnumRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto2OrBuilder.java deleted file mode 100644 index 36279118..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedEnumRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedEnumRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.PredefinedEnumRuleProto2.EnumProto2 getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto3.java deleted file mode 100644 index 7fac6277..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto3.java +++ /dev/null @@ -1,576 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedEnumRuleProto3} - */ -public final class PredefinedEnumRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedEnumRuleProto3) - PredefinedEnumRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedEnumRuleProto3.class.getName()); - } - // Use PredefinedEnumRuleProto3.newBuilder() to construct. - private PredefinedEnumRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedEnumRuleProto3() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.class, build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.Builder.class); - } - - /** - * Protobuf enum {@code buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3} - */ - public enum EnumProto3 - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ENUM_PROTO3_ZERO_UNSPECIFIED = 0; - */ - ENUM_PROTO3_ZERO_UNSPECIFIED(0), - /** - * ENUM_PROTO3_ONE = 1; - */ - ENUM_PROTO3_ONE(1), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumProto3.class.getName()); - } - /** - * ENUM_PROTO3_ZERO_UNSPECIFIED = 0; - */ - public static final int ENUM_PROTO3_ZERO_UNSPECIFIED_VALUE = 0; - /** - * ENUM_PROTO3_ONE = 1; - */ - public static final int ENUM_PROTO3_ONE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EnumProto3 valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static EnumProto3 forNumber(int value) { - switch (value) { - case 0: return ENUM_PROTO3_ZERO_UNSPECIFIED; - case 1: return ENUM_PROTO3_ONE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - EnumProto3> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EnumProto3 findValueByNumber(int number) { - return EnumProto3.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.getDescriptor().getEnumTypes().get(0); - } - - private static final EnumProto3[] VALUES = values(); - - public static EnumProto3 valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EnumProto3(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3) - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 getVal() { - build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 result = build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3.ENUM_PROTO3_ZERO_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3.ENUM_PROTO3_ZERO_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.PredefinedEnumRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedEnumRuleProto3) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 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.PredefinedEnumRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 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.PredefinedEnumRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 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.PredefinedEnumRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 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.PredefinedEnumRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 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.PredefinedEnumRuleProto3 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.PredefinedEnumRuleProto3 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.PredefinedEnumRuleProto3 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.PredefinedEnumRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedEnumRuleProto3) - build.buf.validate.conformance.cases.PredefinedEnumRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.class, build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedEnumRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedEnumRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedEnumRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedEnumRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 getVal() { - build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 result = build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedEnumRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedEnumRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedEnumRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedEnumRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedEnumRuleProto3 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.PredefinedEnumRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto3OrBuilder.java deleted file mode 100644 index eb9320f8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedEnumRuleProto3OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedEnumRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedEnumRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.PredefinedEnumRuleProto3.EnumProto3 getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleEdition2023.java deleted file mode 100644 index 81da3b1b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleEdition2023.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023} - */ -public final class PredefinedFixed32RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023) - PredefinedFixed32RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedFixed32RuleEdition2023.class.getName()); - } - // Use PredefinedFixed32RuleEdition2023.newBuilder() to construct. - private PredefinedFixed32RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedFixed32RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.PredefinedFixed32RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 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.PredefinedFixed32RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 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.PredefinedFixed32RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 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.PredefinedFixed32RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 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.PredefinedFixed32RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 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.PredefinedFixed32RuleEdition2023 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.PredefinedFixed32RuleEdition2023 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.PredefinedFixed32RuleEdition2023 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.PredefinedFixed32RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedFixed32RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedFixed32RuleEdition2023 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.PredefinedFixed32RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleEdition2023OrBuilder.java deleted file mode 100644 index 67291341..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedFixed32RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedFixed32RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto2.java deleted file mode 100644 index 411b77dd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto2.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedFixed32RuleProto2} - */ -public final class PredefinedFixed32RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedFixed32RuleProto2) - PredefinedFixed32RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedFixed32RuleProto2.class.getName()); - } - // Use PredefinedFixed32RuleProto2.newBuilder() to construct. - private PredefinedFixed32RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedFixed32RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.PredefinedFixed32RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 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.PredefinedFixed32RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 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.PredefinedFixed32RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 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.PredefinedFixed32RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 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.PredefinedFixed32RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 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.PredefinedFixed32RuleProto2 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.PredefinedFixed32RuleProto2 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.PredefinedFixed32RuleProto2 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.PredefinedFixed32RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedFixed32RuleProto2) - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedFixed32RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * optional fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedFixed32RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedFixed32RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedFixed32RuleProto2 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.PredefinedFixed32RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto2OrBuilder.java deleted file mode 100644 index 89db568a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedFixed32RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedFixed32RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto3.java deleted file mode 100644 index 2167d5dc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto3.java +++ /dev/null @@ -1,431 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedFixed32RuleProto3} - */ -public final class PredefinedFixed32RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedFixed32RuleProto3) - PredefinedFixed32RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedFixed32RuleProto3.class.getName()); - } - // Use PredefinedFixed32RuleProto3.newBuilder() to construct. - private PredefinedFixed32RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedFixed32RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, val_); - } - 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.PredefinedFixed32RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 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.PredefinedFixed32RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 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.PredefinedFixed32RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 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.PredefinedFixed32RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 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.PredefinedFixed32RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 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.PredefinedFixed32RuleProto3 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.PredefinedFixed32RuleProto3 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.PredefinedFixed32RuleProto3 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.PredefinedFixed32RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedFixed32RuleProto3) - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedFixed32RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedFixed32RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedFixed32RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed32RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedFixed32RuleProto3 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.PredefinedFixed32RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto3OrBuilder.java deleted file mode 100644 index 578b5566..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed32RuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedFixed32RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedFixed32RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleEdition2023.java deleted file mode 100644 index f33c776f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleEdition2023.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023} - */ -public final class PredefinedFixed64RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023) - PredefinedFixed64RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedFixed64RuleEdition2023.class.getName()); - } - // Use PredefinedFixed64RuleEdition2023.newBuilder() to construct. - private PredefinedFixed64RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedFixed64RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.PredefinedFixed64RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 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.PredefinedFixed64RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 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.PredefinedFixed64RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 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.PredefinedFixed64RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 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.PredefinedFixed64RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 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.PredefinedFixed64RuleEdition2023 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.PredefinedFixed64RuleEdition2023 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.PredefinedFixed64RuleEdition2023 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.PredefinedFixed64RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedFixed64RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedFixed64RuleEdition2023 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.PredefinedFixed64RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleEdition2023OrBuilder.java deleted file mode 100644 index 57954252..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedFixed64RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedFixed64RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto2.java deleted file mode 100644 index 0c37d703..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto2.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedFixed64RuleProto2} - */ -public final class PredefinedFixed64RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedFixed64RuleProto2) - PredefinedFixed64RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedFixed64RuleProto2.class.getName()); - } - // Use PredefinedFixed64RuleProto2.newBuilder() to construct. - private PredefinedFixed64RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedFixed64RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * optional fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.PredefinedFixed64RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 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.PredefinedFixed64RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 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.PredefinedFixed64RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 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.PredefinedFixed64RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 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.PredefinedFixed64RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 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.PredefinedFixed64RuleProto2 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.PredefinedFixed64RuleProto2 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.PredefinedFixed64RuleProto2 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.PredefinedFixed64RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedFixed64RuleProto2) - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedFixed64RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * optional fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * optional fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedFixed64RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedFixed64RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedFixed64RuleProto2 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.PredefinedFixed64RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto2OrBuilder.java deleted file mode 100644 index 939e83a4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedFixed64RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedFixed64RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto3.java deleted file mode 100644 index 714ed4c8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto3.java +++ /dev/null @@ -1,432 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedFixed64RuleProto3} - */ -public final class PredefinedFixed64RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedFixed64RuleProto3) - PredefinedFixed64RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedFixed64RuleProto3.class.getName()); - } - // Use PredefinedFixed64RuleProto3.newBuilder() to construct. - private PredefinedFixed64RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedFixed64RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, val_); - } - 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.PredefinedFixed64RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 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.PredefinedFixed64RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 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.PredefinedFixed64RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 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.PredefinedFixed64RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 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.PredefinedFixed64RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 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.PredefinedFixed64RuleProto3 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.PredefinedFixed64RuleProto3 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.PredefinedFixed64RuleProto3 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.PredefinedFixed64RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedFixed64RuleProto3) - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedFixed64RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedFixed64RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedFixed64RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedFixed64RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedFixed64RuleProto3 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.PredefinedFixed64RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto3OrBuilder.java deleted file mode 100644 index e6f23c0c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFixed64RuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedFixed64RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedFixed64RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * fixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleEdition2023.java deleted file mode 100644 index de729304..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleEdition2023.java +++ /dev/null @@ -1,458 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedFloatRuleEdition2023} - */ -public final class PredefinedFloatRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedFloatRuleEdition2023) - PredefinedFloatRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedFloatRuleEdition2023.class.getName()); - } - // Use PredefinedFloatRuleEdition2023.newBuilder() to construct. - private PredefinedFloatRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedFloatRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.PredefinedFloatRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 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.PredefinedFloatRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 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.PredefinedFloatRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 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.PredefinedFloatRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 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.PredefinedFloatRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 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.PredefinedFloatRuleEdition2023 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.PredefinedFloatRuleEdition2023 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.PredefinedFloatRuleEdition2023 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.PredefinedFloatRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedFloatRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - 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_PredefinedFloatRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedFloatRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedFloatRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedFloatRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedFloatRuleEdition2023 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.PredefinedFloatRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleEdition2023OrBuilder.java deleted file mode 100644 index 4d6a4cd9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedFloatRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedFloatRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto2.java deleted file mode 100644 index 42e1e3ec..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto2.java +++ /dev/null @@ -1,458 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedFloatRuleProto2} - */ -public final class PredefinedFloatRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedFloatRuleProto2) - PredefinedFloatRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedFloatRuleProto2.class.getName()); - } - // Use PredefinedFloatRuleProto2.newBuilder() to construct. - private PredefinedFloatRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedFloatRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFloatRuleProto2.class, build.buf.validate.conformance.cases.PredefinedFloatRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * optional float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.PredefinedFloatRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedFloatRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 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.PredefinedFloatRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 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.PredefinedFloatRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 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.PredefinedFloatRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 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.PredefinedFloatRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 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.PredefinedFloatRuleProto2 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.PredefinedFloatRuleProto2 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.PredefinedFloatRuleProto2 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.PredefinedFloatRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedFloatRuleProto2) - build.buf.validate.conformance.cases.PredefinedFloatRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFloatRuleProto2.class, build.buf.validate.conformance.cases.PredefinedFloatRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedFloatRuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - 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_PredefinedFloatRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedFloatRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedFloatRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedFloatRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedFloatRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedFloatRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * optional float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * optional float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedFloatRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedFloatRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedFloatRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedFloatRuleProto2 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.PredefinedFloatRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto2OrBuilder.java deleted file mode 100644 index 19356e5a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedFloatRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedFloatRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto3.java deleted file mode 100644 index ae669f6c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto3.java +++ /dev/null @@ -1,433 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedFloatRuleProto3} - */ -public final class PredefinedFloatRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedFloatRuleProto3) - PredefinedFloatRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedFloatRuleProto3.class.getName()); - } - // Use PredefinedFloatRuleProto3.newBuilder() to construct. - private PredefinedFloatRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedFloatRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFloatRuleProto3.class, build.buf.validate.conformance.cases.PredefinedFloatRuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private float val_ = 0F; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - - 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 { - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - output.writeFloat(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(val_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, val_); - } - 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.PredefinedFloatRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedFloatRuleProto3) obj; - - if (java.lang.Float.floatToIntBits(getVal()) - != java.lang.Float.floatToIntBits( - other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 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.PredefinedFloatRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 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.PredefinedFloatRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 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.PredefinedFloatRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 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.PredefinedFloatRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 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.PredefinedFloatRuleProto3 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.PredefinedFloatRuleProto3 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.PredefinedFloatRuleProto3 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.PredefinedFloatRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedFloatRuleProto3) - build.buf.validate.conformance.cases.PredefinedFloatRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedFloatRuleProto3.class, build.buf.validate.conformance.cases.PredefinedFloatRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedFloatRuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0F; - 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_PredefinedFloatRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedFloatRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedFloatRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedFloatRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedFloatRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedFloatRuleProto3.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getVal()) != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 float val_ ; - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public float getVal() { - return val_; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(float value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedFloatRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedFloatRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedFloatRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedFloatRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedFloatRuleProto3 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.PredefinedFloatRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto3OrBuilder.java deleted file mode 100644 index a0b4eb44..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedFloatRuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedFloatRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedFloatRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - float getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleEdition2023.java deleted file mode 100644 index 81be4d26..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleEdition2023.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedInt32RuleEdition2023} - */ -public final class PredefinedInt32RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedInt32RuleEdition2023) - PredefinedInt32RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedInt32RuleEdition2023.class.getName()); - } - // Use PredefinedInt32RuleEdition2023.newBuilder() to construct. - private PredefinedInt32RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedInt32RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.PredefinedInt32RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 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.PredefinedInt32RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 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.PredefinedInt32RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 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.PredefinedInt32RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 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.PredefinedInt32RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 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.PredefinedInt32RuleEdition2023 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.PredefinedInt32RuleEdition2023 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.PredefinedInt32RuleEdition2023 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.PredefinedInt32RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedInt32RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedInt32RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedInt32RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedInt32RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedInt32RuleEdition2023 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.PredefinedInt32RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleEdition2023OrBuilder.java deleted file mode 100644 index 1a0fd6b1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedInt32RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedInt32RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto2.java deleted file mode 100644 index c0f7ddb1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto2.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedInt32RuleProto2} - */ -public final class PredefinedInt32RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedInt32RuleProto2) - PredefinedInt32RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedInt32RuleProto2.class.getName()); - } - // Use PredefinedInt32RuleProto2.newBuilder() to construct. - private PredefinedInt32RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedInt32RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedInt32RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.PredefinedInt32RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedInt32RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 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.PredefinedInt32RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 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.PredefinedInt32RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 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.PredefinedInt32RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 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.PredefinedInt32RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 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.PredefinedInt32RuleProto2 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.PredefinedInt32RuleProto2 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.PredefinedInt32RuleProto2 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.PredefinedInt32RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedInt32RuleProto2) - build.buf.validate.conformance.cases.PredefinedInt32RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedInt32RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedInt32RuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedInt32RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedInt32RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedInt32RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedInt32RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedInt32RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedInt32RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedInt32RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedInt32RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedInt32RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedInt32RuleProto2 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.PredefinedInt32RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto2OrBuilder.java deleted file mode 100644 index 6f6a5bcb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedInt32RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedInt32RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto3.java deleted file mode 100644 index 0e939409..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto3.java +++ /dev/null @@ -1,431 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedInt32RuleProto3} - */ -public final class PredefinedInt32RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedInt32RuleProto3) - PredefinedInt32RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedInt32RuleProto3.class.getName()); - } - // Use PredefinedInt32RuleProto3.newBuilder() to construct. - private PredefinedInt32RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedInt32RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedInt32RuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.PredefinedInt32RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedInt32RuleProto3) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 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.PredefinedInt32RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 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.PredefinedInt32RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 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.PredefinedInt32RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 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.PredefinedInt32RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 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.PredefinedInt32RuleProto3 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.PredefinedInt32RuleProto3 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.PredefinedInt32RuleProto3 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.PredefinedInt32RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedInt32RuleProto3) - build.buf.validate.conformance.cases.PredefinedInt32RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedInt32RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedInt32RuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedInt32RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedInt32RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedInt32RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedInt32RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedInt32RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedInt32RuleProto3.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedInt32RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedInt32RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedInt32RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedInt32RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedInt32RuleProto3 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.PredefinedInt32RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto3OrBuilder.java deleted file mode 100644 index 60974706..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt32RuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedInt32RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedInt32RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleEdition2023.java deleted file mode 100644 index 25eaa5e4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleEdition2023.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedInt64RuleEdition2023} - */ -public final class PredefinedInt64RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedInt64RuleEdition2023) - PredefinedInt64RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedInt64RuleEdition2023.class.getName()); - } - // Use PredefinedInt64RuleEdition2023.newBuilder() to construct. - private PredefinedInt64RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedInt64RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.PredefinedInt64RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 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.PredefinedInt64RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 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.PredefinedInt64RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 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.PredefinedInt64RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 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.PredefinedInt64RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 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.PredefinedInt64RuleEdition2023 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.PredefinedInt64RuleEdition2023 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.PredefinedInt64RuleEdition2023 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.PredefinedInt64RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedInt64RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedInt64RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedInt64RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedInt64RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedInt64RuleEdition2023 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.PredefinedInt64RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleEdition2023OrBuilder.java deleted file mode 100644 index 96db8920..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedInt64RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedInt64RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto2.java deleted file mode 100644 index bebf891b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto2.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedInt64RuleProto2} - */ -public final class PredefinedInt64RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedInt64RuleProto2) - PredefinedInt64RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedInt64RuleProto2.class.getName()); - } - // Use PredefinedInt64RuleProto2.newBuilder() to construct. - private PredefinedInt64RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedInt64RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedInt64RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.PredefinedInt64RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedInt64RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 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.PredefinedInt64RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 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.PredefinedInt64RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 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.PredefinedInt64RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 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.PredefinedInt64RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 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.PredefinedInt64RuleProto2 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.PredefinedInt64RuleProto2 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.PredefinedInt64RuleProto2 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.PredefinedInt64RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedInt64RuleProto2) - build.buf.validate.conformance.cases.PredefinedInt64RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedInt64RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedInt64RuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedInt64RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedInt64RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedInt64RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedInt64RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedInt64RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedInt64RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedInt64RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedInt64RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedInt64RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedInt64RuleProto2 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.PredefinedInt64RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto2OrBuilder.java deleted file mode 100644 index 7d64a531..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedInt64RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedInt64RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto3.java deleted file mode 100644 index 4cc82947..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto3.java +++ /dev/null @@ -1,432 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedInt64RuleProto3} - */ -public final class PredefinedInt64RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedInt64RuleProto3) - PredefinedInt64RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedInt64RuleProto3.class.getName()); - } - // Use PredefinedInt64RuleProto3.newBuilder() to construct. - private PredefinedInt64RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedInt64RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedInt64RuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.PredefinedInt64RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedInt64RuleProto3) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 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.PredefinedInt64RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 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.PredefinedInt64RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 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.PredefinedInt64RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 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.PredefinedInt64RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 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.PredefinedInt64RuleProto3 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.PredefinedInt64RuleProto3 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.PredefinedInt64RuleProto3 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.PredefinedInt64RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedInt64RuleProto3) - build.buf.validate.conformance.cases.PredefinedInt64RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedInt64RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedInt64RuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedInt64RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedInt64RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedInt64RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedInt64RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedInt64RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedInt64RuleProto3.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedInt64RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedInt64RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedInt64RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedInt64RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedInt64RuleProto3 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.PredefinedInt64RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto3OrBuilder.java deleted file mode 100644 index 66f06a62..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedInt64RuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedInt64RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedInt64RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleEdition2023.java deleted file mode 100644 index 3e95318b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleEdition2023.java +++ /dev/null @@ -1,640 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedMapRuleEdition2023} - */ -public final class PredefinedMapRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedMapRuleEdition2023) - PredefinedMapRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedMapRuleEdition2023.class.getName()); - } - // Use PredefinedMapRuleEdition2023.newBuilder() to construct. - private PredefinedMapRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedMapRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Long, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT64, - 0L, - com.google.protobuf.WireFormat.FieldType.UINT64, - 0L); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Long, java.lang.Long> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public long getValOrDefault( - long key, - long defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public long getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeLongMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.PredefinedMapRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 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.PredefinedMapRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 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.PredefinedMapRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 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.PredefinedMapRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 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.PredefinedMapRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 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.PredefinedMapRuleEdition2023 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.PredefinedMapRuleEdition2023 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.PredefinedMapRuleEdition2023 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.PredefinedMapRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedMapRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - 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_PredefinedMapRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Long, java.lang.Long> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public long getValOrDefault( - long key, - long defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public long getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - long key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - long key, - long value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedMapRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedMapRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedMapRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedMapRuleEdition2023 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.PredefinedMapRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleEdition2023OrBuilder.java deleted file mode 100644 index 666486a9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedMapRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedMapRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - long key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - long getValOrDefault( - long key, - long defaultValue); - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - long getValOrThrow( - long key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleProto3.java deleted file mode 100644 index ade10e51..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleProto3.java +++ /dev/null @@ -1,640 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedMapRuleProto3} - */ -public final class PredefinedMapRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedMapRuleProto3) - PredefinedMapRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedMapRuleProto3.class.getName()); - } - // Use PredefinedMapRuleProto3.newBuilder() to construct. - private PredefinedMapRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedMapRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedMapRuleProto3.class, build.buf.validate.conformance.cases.PredefinedMapRuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Long, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT64, - 0L, - com.google.protobuf.WireFormat.FieldType.UINT64, - 0L); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Long, java.lang.Long> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public long getValOrDefault( - long key, - long defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public long getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeLongMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.PredefinedMapRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedMapRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedMapRuleProto3) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedMapRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedMapRuleProto3 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.PredefinedMapRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedMapRuleProto3 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.PredefinedMapRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedMapRuleProto3 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.PredefinedMapRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedMapRuleProto3 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.PredefinedMapRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedMapRuleProto3 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.PredefinedMapRuleProto3 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.PredefinedMapRuleProto3 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.PredefinedMapRuleProto3 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.PredefinedMapRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedMapRuleProto3) - build.buf.validate.conformance.cases.PredefinedMapRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedMapRuleProto3.class, build.buf.validate.conformance.cases.PredefinedMapRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedMapRuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - 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_PredefinedMapRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedMapRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedMapRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedMapRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedMapRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedMapRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedMapRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedMapRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedMapRuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedMapRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedMapRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedMapRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedMapRuleProto3.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Long, java.lang.Long> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - long key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public long getValOrDefault( - long key, - long defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public long getValOrThrow( - long key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - long key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - long key, - long value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedMapRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedMapRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedMapRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedMapRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedMapRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedMapRuleProto3 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.PredefinedMapRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleProto3OrBuilder.java deleted file mode 100644 index 2dcf5f44..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedMapRuleProto3OrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedMapRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedMapRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - long key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - long getValOrDefault( - long key, - long defaultValue); - /** - * map<uint64, uint64> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - long getValOrThrow( - long key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleEdition2023.java deleted file mode 100644 index b32808ed..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleEdition2023.java +++ /dev/null @@ -1,540 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023} - */ -public final class PredefinedRepeatedRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023) - PredefinedRepeatedRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRepeatedRuleEdition2023.class.getName()); - } - // Use PredefinedRepeatedRuleEdition2023.newBuilder() to construct. - private PredefinedRepeatedRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedRepeatedRuleEdition2023() { - val_ = emptyLongList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList val_ = - emptyLongList(); - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public long getVal(int index) { - return val_.getLong(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeUInt64NoTag(val_.getLong(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(val_.getLong(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.PredefinedRepeatedRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023) 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.PredefinedRepeatedRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 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.PredefinedRepeatedRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 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.PredefinedRepeatedRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 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.PredefinedRepeatedRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 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.PredefinedRepeatedRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 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.PredefinedRepeatedRuleEdition2023 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.PredefinedRepeatedRuleEdition2023 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.PredefinedRepeatedRuleEdition2023 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.PredefinedRepeatedRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyLongList(); - 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_PredefinedRepeatedRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - long v = input.readUInt64(); - ensureValIsMutable(); - val_.addLong(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addLong(input.readUInt64()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.LongList val_ = emptyLongList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public long getVal(int index) { - return val_.getLong(index); - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, long value) { - - ensureValIsMutable(); - val_.setLong(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(long value) { - - ensureValIsMutable(); - val_.addLong(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedRepeatedRuleEdition2023 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.PredefinedRepeatedRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleEdition2023OrBuilder.java deleted file mode 100644 index 196373a4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedRepeatedRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - long getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto2.java deleted file mode 100644 index 5b83558b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto2.java +++ /dev/null @@ -1,529 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedRuleProto2} - */ -public final class PredefinedRepeatedRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedRuleProto2) - PredefinedRepeatedRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRepeatedRuleProto2.class.getName()); - } - // Use PredefinedRepeatedRuleProto2.newBuilder() to construct. - private PredefinedRepeatedRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedRepeatedRuleProto2() { - val_ = emptyLongList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList val_ = - emptyLongList(); - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public long getVal(int index) { - return val_.getLong(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.writeUInt64(1, val_.getLong(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(val_.getLong(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.PredefinedRepeatedRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2) 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.PredefinedRepeatedRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 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.PredefinedRepeatedRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 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.PredefinedRepeatedRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 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.PredefinedRepeatedRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 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.PredefinedRepeatedRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 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.PredefinedRepeatedRuleProto2 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.PredefinedRepeatedRuleProto2 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.PredefinedRepeatedRuleProto2 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.PredefinedRepeatedRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedRuleProto2) - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyLongList(); - 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_PredefinedRepeatedRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - long v = input.readUInt64(); - ensureValIsMutable(); - val_.addLong(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addLong(input.readUInt64()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.LongList val_ = emptyLongList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public long getVal(int index) { - return val_.getLong(index); - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, long value) { - - ensureValIsMutable(); - val_.setLong(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(long value) { - - ensureValIsMutable(); - val_.addLong(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedRepeatedRuleProto2 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.PredefinedRepeatedRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto2OrBuilder.java deleted file mode 100644 index cd5b510e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto2OrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedRepeatedRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - long getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto3.java deleted file mode 100644 index 5f121146..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto3.java +++ /dev/null @@ -1,540 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedRuleProto3} - */ -public final class PredefinedRepeatedRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedRuleProto3) - PredefinedRepeatedRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRepeatedRuleProto3.class.getName()); - } - // Use PredefinedRepeatedRuleProto3.newBuilder() to construct. - private PredefinedRepeatedRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedRepeatedRuleProto3() { - val_ = emptyLongList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList val_ = - emptyLongList(); - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public long getVal(int index) { - return val_.getLong(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeUInt64NoTag(val_.getLong(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(val_.getLong(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.PredefinedRepeatedRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3) 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.PredefinedRepeatedRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 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.PredefinedRepeatedRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 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.PredefinedRepeatedRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 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.PredefinedRepeatedRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 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.PredefinedRepeatedRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 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.PredefinedRepeatedRuleProto3 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.PredefinedRepeatedRuleProto3 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.PredefinedRepeatedRuleProto3 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.PredefinedRepeatedRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedRuleProto3) - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyLongList(); - 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_PredefinedRepeatedRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - long v = input.readUInt64(); - ensureValIsMutable(); - val_.addLong(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addLong(input.readUInt64()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.LongList val_ = emptyLongList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public long getVal(int index) { - return val_.getLong(index); - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, long value) { - - ensureValIsMutable(); - val_.setLong(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(long value) { - - ensureValIsMutable(); - val_.addLong(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedRepeatedRuleProto3 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.PredefinedRepeatedRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto3OrBuilder.java deleted file mode 100644 index 984c4d1e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedRuleProto3OrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedRepeatedRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - long getVal(int index); -} 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 deleted file mode 100644 index 594688ed..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index d555111c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 5b31e61a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 224baf26..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index c4f8ae0f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 9a6dc5a6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 14df811b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index ba6d9799..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 1ff0ad88..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 6f7e305e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 3eb5eacd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 0c487492..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 5f2cebdd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 23d1a2ed..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 93bbc9ad..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index d9e665dc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 8e9b2b34..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index d1b5e952..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 21d4ca7e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index cb65908c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index d4a449c1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 1b7b3a46..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 8923c44c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 1af9587f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 87b74b2e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 555335a1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 7dff5c93..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 8264cbfb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index aab9a3d6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 3f114c86..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index ffb308c2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index e5270842..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 2f98afc8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 8c5abf81..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 41a89ffd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index f9273fd7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 07fb70ed..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index a8d5e636..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 735d1d2b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 9686d183..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index fd5cff12..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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 - 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 ? - internalGetValFieldBuilder() : 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 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 internalGetValFieldBuilder().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 - 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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().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 internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - internalGetValFieldBuilder() { - 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 deleted file mode 100644 index 2a1db4d3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -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 - 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 deleted file mode 100644 index 8923ceb3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleEdition2023.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -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= */ 30, - /* patch= */ 2, - /* 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_; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt32Value getVal(int index) { - return val_.get(index); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt32ValueOrBuilder 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.PredefinedRepeatedWrappedUInt32RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023) 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.PredefinedRepeatedWrappedUInt32RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 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.PredefinedRepeatedWrappedUInt32RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 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.PredefinedRepeatedWrappedUInt32RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 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.PredefinedRepeatedWrappedUInt32RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 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.PredefinedRepeatedWrappedUInt32RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 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.PredefinedRepeatedWrappedUInt32RuleEdition2023 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.PredefinedRepeatedWrappedUInt32RuleEdition2023 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.PredefinedRepeatedWrappedUInt32RuleEdition2023 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.PredefinedRepeatedWrappedUInt32RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023OrBuilder { - 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); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023.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_PredefinedRepeatedWrappedUInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 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.PredefinedRepeatedWrappedUInt32RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023.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 ? - internalGetValFieldBuilder() : 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.UInt32Value m = - input.readMessage( - com.google.protobuf.UInt32Value.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.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> valBuilder_; - - /** - * repeated .google.protobuf.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(com.google.protobuf.UInt32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value 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.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - com.google.protobuf.UInt32Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, com.google.protobuf.UInt32Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedRepeatedWrappedUInt32RuleEdition2023 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.PredefinedRepeatedWrappedUInt32RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleEdition2023OrBuilder.java deleted file mode 100644 index 92daa8d3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedRepeatedWrappedUInt32RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt32Value getVal(int index); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto2.java deleted file mode 100644 index bbd08c31..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto2.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2} - */ -public final class PredefinedRepeatedWrappedUInt32RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2) - PredefinedRepeatedWrappedUInt32RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRepeatedWrappedUInt32RuleProto2.class.getName()); - } - // Use PredefinedRepeatedWrappedUInt32RuleProto2.newBuilder() to construct. - private PredefinedRepeatedWrappedUInt32RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedRepeatedWrappedUInt32RuleProto2() { - 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_PredefinedRepeatedWrappedUInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2.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_; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt32Value getVal(int index) { - return val_.get(index); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt32ValueOrBuilder 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.PredefinedRepeatedWrappedUInt32RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2) 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.PredefinedRepeatedWrappedUInt32RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 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.PredefinedRepeatedWrappedUInt32RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 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.PredefinedRepeatedWrappedUInt32RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 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.PredefinedRepeatedWrappedUInt32RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 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.PredefinedRepeatedWrappedUInt32RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 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.PredefinedRepeatedWrappedUInt32RuleProto2 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.PredefinedRepeatedWrappedUInt32RuleProto2 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.PredefinedRepeatedWrappedUInt32RuleProto2 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.PredefinedRepeatedWrappedUInt32RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2) - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2.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_PredefinedRepeatedWrappedUInt32RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 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.PredefinedRepeatedWrappedUInt32RuleProto2 result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2.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 ? - internalGetValFieldBuilder() : 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.UInt32Value m = - input.readMessage( - com.google.protobuf.UInt32Value.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.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> valBuilder_; - - /** - * repeated .google.protobuf.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(com.google.protobuf.UInt32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value 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.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - com.google.protobuf.UInt32Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, com.google.protobuf.UInt32Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedRepeatedWrappedUInt32RuleProto2 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.PredefinedRepeatedWrappedUInt32RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto2OrBuilder.java deleted file mode 100644 index a0901e15..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto2OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedRepeatedWrappedUInt32RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt32Value getVal(int index); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto3.java deleted file mode 100644 index dce1d6fd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto3.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3} - */ -public final class PredefinedRepeatedWrappedUInt32RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3) - PredefinedRepeatedWrappedUInt32RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRepeatedWrappedUInt32RuleProto3.class.getName()); - } - // Use PredefinedRepeatedWrappedUInt32RuleProto3.newBuilder() to construct. - private PredefinedRepeatedWrappedUInt32RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedRepeatedWrappedUInt32RuleProto3() { - 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_PredefinedRepeatedWrappedUInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3.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_; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt32Value getVal(int index) { - return val_.get(index); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt32ValueOrBuilder 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.PredefinedRepeatedWrappedUInt32RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3) 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.PredefinedRepeatedWrappedUInt32RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 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.PredefinedRepeatedWrappedUInt32RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 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.PredefinedRepeatedWrappedUInt32RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 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.PredefinedRepeatedWrappedUInt32RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 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.PredefinedRepeatedWrappedUInt32RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 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.PredefinedRepeatedWrappedUInt32RuleProto3 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.PredefinedRepeatedWrappedUInt32RuleProto3 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.PredefinedRepeatedWrappedUInt32RuleProto3 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.PredefinedRepeatedWrappedUInt32RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3) - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3.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_PredefinedRepeatedWrappedUInt32RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 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.PredefinedRepeatedWrappedUInt32RuleProto3 result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3.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 ? - internalGetValFieldBuilder() : 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.UInt32Value m = - input.readMessage( - com.google.protobuf.UInt32Value.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.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> valBuilder_; - - /** - * repeated .google.protobuf.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(com.google.protobuf.UInt32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.UInt32Value 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.UInt32Value 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.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - com.google.protobuf.UInt32Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, com.google.protobuf.UInt32Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedRepeatedWrappedUInt32RuleProto3 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.PredefinedRepeatedWrappedUInt32RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto3OrBuilder.java deleted file mode 100644 index 04f715fa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto3OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedRepeatedWrappedUInt32RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt32Value getVal(int index); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleEdition2023.java deleted file mode 100644 index cc59ada4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleEdition2023.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023} - */ -public final class PredefinedRepeatedWrappedUInt64RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023) - PredefinedRepeatedWrappedUInt64RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRepeatedWrappedUInt64RuleEdition2023.class.getName()); - } - // Use PredefinedRepeatedWrappedUInt64RuleEdition2023.newBuilder() to construct. - private PredefinedRepeatedWrappedUInt64RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedRepeatedWrappedUInt64RuleEdition2023() { - 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_PredefinedRepeatedWrappedUInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt64Value getVal(int index) { - return val_.get(index); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt64ValueOrBuilder 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.PredefinedRepeatedWrappedUInt64RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023) 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.PredefinedRepeatedWrappedUInt64RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 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.PredefinedRepeatedWrappedUInt64RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 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.PredefinedRepeatedWrappedUInt64RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 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.PredefinedRepeatedWrappedUInt64RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 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.PredefinedRepeatedWrappedUInt64RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 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.PredefinedRepeatedWrappedUInt64RuleEdition2023 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.PredefinedRepeatedWrappedUInt64RuleEdition2023 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.PredefinedRepeatedWrappedUInt64RuleEdition2023 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.PredefinedRepeatedWrappedUInt64RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023.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_PredefinedRepeatedWrappedUInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 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.PredefinedRepeatedWrappedUInt64RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023.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 ? - internalGetValFieldBuilder() : 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.UInt64Value m = - input.readMessage( - com.google.protobuf.UInt64Value.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.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> valBuilder_; - - /** - * repeated .google.protobuf.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(com.google.protobuf.UInt64Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value 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.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - com.google.protobuf.UInt64Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, com.google.protobuf.UInt64Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedRepeatedWrappedUInt64RuleEdition2023 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.PredefinedRepeatedWrappedUInt64RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleEdition2023OrBuilder.java deleted file mode 100644 index 750f304a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedRepeatedWrappedUInt64RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt64Value getVal(int index); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto2.java deleted file mode 100644 index 23e4c7ff..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto2.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2} - */ -public final class PredefinedRepeatedWrappedUInt64RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2) - PredefinedRepeatedWrappedUInt64RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRepeatedWrappedUInt64RuleProto2.class.getName()); - } - // Use PredefinedRepeatedWrappedUInt64RuleProto2.newBuilder() to construct. - private PredefinedRepeatedWrappedUInt64RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedRepeatedWrappedUInt64RuleProto2() { - 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_PredefinedRepeatedWrappedUInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt64Value getVal(int index) { - return val_.get(index); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt64ValueOrBuilder 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.PredefinedRepeatedWrappedUInt64RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2) 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.PredefinedRepeatedWrappedUInt64RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 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.PredefinedRepeatedWrappedUInt64RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 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.PredefinedRepeatedWrappedUInt64RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 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.PredefinedRepeatedWrappedUInt64RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 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.PredefinedRepeatedWrappedUInt64RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 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.PredefinedRepeatedWrappedUInt64RuleProto2 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.PredefinedRepeatedWrappedUInt64RuleProto2 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.PredefinedRepeatedWrappedUInt64RuleProto2 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.PredefinedRepeatedWrappedUInt64RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2) - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2.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_PredefinedRepeatedWrappedUInt64RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 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.PredefinedRepeatedWrappedUInt64RuleProto2 result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2.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 ? - internalGetValFieldBuilder() : 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.UInt64Value m = - input.readMessage( - com.google.protobuf.UInt64Value.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.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> valBuilder_; - - /** - * repeated .google.protobuf.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(com.google.protobuf.UInt64Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value 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.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - com.google.protobuf.UInt64Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, com.google.protobuf.UInt64Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedRepeatedWrappedUInt64RuleProto2 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.PredefinedRepeatedWrappedUInt64RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto2OrBuilder.java deleted file mode 100644 index 0210d3b4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto2OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedRepeatedWrappedUInt64RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt64Value getVal(int index); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto3.java deleted file mode 100644 index 9c0a4af7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto3.java +++ /dev/null @@ -1,719 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3} - */ -public final class PredefinedRepeatedWrappedUInt64RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3) - PredefinedRepeatedWrappedUInt64RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRepeatedWrappedUInt64RuleProto3.class.getName()); - } - // Use PredefinedRepeatedWrappedUInt64RuleProto3.newBuilder() to construct. - private PredefinedRepeatedWrappedUInt64RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedRepeatedWrappedUInt64RuleProto3() { - 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_PredefinedRepeatedWrappedUInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt64Value getVal(int index) { - return val_.get(index); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt64ValueOrBuilder 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.PredefinedRepeatedWrappedUInt64RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3) 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.PredefinedRepeatedWrappedUInt64RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 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.PredefinedRepeatedWrappedUInt64RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 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.PredefinedRepeatedWrappedUInt64RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 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.PredefinedRepeatedWrappedUInt64RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 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.PredefinedRepeatedWrappedUInt64RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 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.PredefinedRepeatedWrappedUInt64RuleProto3 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.PredefinedRepeatedWrappedUInt64RuleProto3 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.PredefinedRepeatedWrappedUInt64RuleProto3 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.PredefinedRepeatedWrappedUInt64RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3) - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3.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_PredefinedRepeatedWrappedUInt64RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 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.PredefinedRepeatedWrappedUInt64RuleProto3 result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3.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 ? - internalGetValFieldBuilder() : 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.UInt64Value m = - input.readMessage( - com.google.protobuf.UInt64Value.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.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> valBuilder_; - - /** - * repeated .google.protobuf.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(com.google.protobuf.UInt64Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.UInt64Value 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.UInt64Value 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.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - com.google.protobuf.UInt64Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, com.google.protobuf.UInt64Value.getDefaultInstance()); - } - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedRepeatedWrappedUInt64RuleProto3 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.PredefinedRepeatedWrappedUInt64RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto3OrBuilder.java deleted file mode 100644 index 2eb4166b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto3OrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedRepeatedWrappedUInt64RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt64RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt64Value getVal(int index); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto2Proto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto2Proto.java deleted file mode 100644 index 35ce7192..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto2Proto.java +++ /dev/null @@ -1,956 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public final class PredefinedRulesProto2Proto { - private PredefinedRulesProto2Proto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRulesProto2Proto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.floatAbsRangeProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.doubleAbsRangeProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.int32AbsInProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.int64AbsInProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.uint32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.uint64EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sint32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sint64EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.fixed32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.fixed64EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sfixed32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sfixed64EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.boolFalseProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.stringValidPathProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.bytesValidPathProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.enumNonZeroProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.repeatedAtLeastFiveProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.durationTooLongProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.timestampInRangeProto2); - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public static final int FLOAT_ABS_RANGE_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.FloatRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.FloatRules, - java.lang.Float> floatAbsRangeProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Float.class, - null); - public static final int DOUBLE_ABS_RANGE_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.DoubleRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.DoubleRules, - java.lang.Double> doubleAbsRangeProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Double.class, - null); - public static final int INT32_ABS_IN_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.Int32Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.Int32Rules, - java.util.List> int32AbsInProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Integer.class, - null); - public static final int INT64_ABS_IN_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.Int64Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.Int64Rules, - java.util.List> int64AbsInProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - com.google.protobuf.Int64Value.class, - com.google.protobuf.Int64Value.getDefaultInstance()); - public static final int UINT32_EVEN_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.UInt32Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.UInt32Rules, - java.lang.Boolean> uint32EvenProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int UINT64_EVEN_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.UInt64Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.UInt64Rules, - java.lang.Boolean> uint64EvenProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int SINT32_EVEN_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.SInt32Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.SInt32Rules, - java.lang.Boolean> sint32EvenProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int SINT64_EVEN_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.SInt64Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.SInt64Rules, - java.lang.Boolean> sint64EvenProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int FIXED32_EVEN_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.Fixed32Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.Fixed32Rules, - java.lang.Boolean> fixed32EvenProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int FIXED64_EVEN_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.Fixed64Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.Fixed64Rules, - java.lang.Boolean> fixed64EvenProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int SFIXED32_EVEN_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.SFixed32Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.SFixed32Rules, - java.lang.Boolean> sfixed32EvenProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int SFIXED64_EVEN_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.SFixed64Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.SFixed64Rules, - java.lang.Boolean> sfixed64EvenProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int BOOL_FALSE_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.BoolRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.BoolRules, - java.lang.Boolean> boolFalseProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int STRING_VALID_PATH_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.StringRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.StringRules, - java.lang.Boolean> stringValidPathProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int BYTES_VALID_PATH_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.BytesRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.BytesRules, - java.lang.Boolean> bytesValidPathProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int ENUM_NON_ZERO_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.EnumRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.EnumRules, - java.lang.Boolean> enumNonZeroProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int REPEATED_AT_LEAST_FIVE_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.RepeatedRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.RepeatedRules, - java.lang.Boolean> repeatedAtLeastFiveProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int DURATION_TOO_LONG_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.DurationRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.DurationRules, - java.lang.Boolean> durationTooLongProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int TIMESTAMP_IN_RANGE_PROTO2_FIELD_NUMBER = 1161; - /** - * extend .buf.validate.TimestampRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.TimestampRules, - java.lang.Boolean> timestampInRangeProto2 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_Nested_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_Nested_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto2_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto2_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n 24 ? \'\' : \'a must be greater than" + - " 24\'R\001a\022\264\001\n\001b\030\002 \001(\0132D.buf.validate.confo" + - "rmance.cases.PredefinedAndCustomRuleProt" + - "o2.NestedB`\272H]\272\001Z\n*predefined_and_custom" + - "_rule_embedded_proto2\022\033b.c must be a mul" + - "tiple of 3\032\017this.c % 3 == 0R\001b\032s\n\006Nested" + - "\022i\n\001c\030\001 \001(\021B[\272HX:\003\310H\001\272\001P\n(predefined_and" + - "_custom_rule_nested_proto2\032$this > 0 ? \'" + - "\' : \'c must be positive\'R\001c\"\245\001\n%Standard" + - "PredefinedAndCustomRuleProto2\022|\n\001a\030\001 \001(\021" + - "Bn\272Hk:\005\0208\310H\001\272\001a\n1standard_predefined_and" + - "_custom_rule_scalar_proto2\032,this > 24 ? " + - "\'\' : \'a must be greater than 24\'R\001a:\251\001\n\026" + - "float_abs_range_proto2\022\030.buf.validate.Fl" + - "oatRules\030\211\t \001(\002BY\302HV\nT\n\026float.abs_range." + - "proto2\022\033float value is out of range\032\035thi" + - "s >= -rule && this <= ruleR\023floatAbsRang" + - "eProto2:\256\001\n\027double_abs_range_proto2\022\031.bu" + - "f.validate.DoubleRules\030\211\t \001(\001B[\302HX\nV\n\027do" + - "uble.abs_range.proto2\022\034double value is o" + - "ut of range\032\035this >= -rule && this <= ru" + - "leR\024doubleAbsRangeProto2:\266\001\n\023int32_abs_i" + - "n_proto2\022\030.buf.validate.Int32Rules\030\211\t \003(" + - "\005Bl\302Hi\ng\n\023int32.abs_in.proto2\022\'value mus" + - "t be in absolute value of list\032\'this in " + - "rule || this in rule.map(n, -n)R\020int32Ab" + - "sInProto2:\323\001\n\023int64_abs_in_proto2\022\030.buf." + - "validate.Int64Rules\030\211\t \003(\0132\033.google.prot" + - "obuf.Int64ValueBl\302Hi\ng\n\023int64.abs_in.pro" + - "to2\022\'value must be in absolute value of " + - "list\032\'this in rule || this in rule.map(n" + - ", -n)R\020int64AbsInProto2:\216\001\n\022uint32_even_" + - "proto2\022\031.buf.validate.UInt32Rules\030\211\t \001(\010" + - "BD\302HA\n?\n\022uint32.even.proto2\022\030uint32 valu" + - "e is not even\032\017this % 2u == 0uR\020uint32Ev" + - "enProto2:\216\001\n\022uint64_even_proto2\022\031.buf.va" + - "lidate.UInt64Rules\030\211\t \001(\010BD\302HA\n?\n\022uint64" + - ".even.proto2\022\030uint64 value is not even\032\017" + - "this % 2u == 0uR\020uint64EvenProto2:\214\001\n\022si" + - "nt32_even_proto2\022\031.buf.validate.SInt32Ru" + - "les\030\211\t \001(\010BB\302H?\n=\n\022sint32.even.proto2\022\030s" + - "int32 value is not even\032\rthis % 2 == 0R\020" + - "sint32EvenProto2:\214\001\n\022sint64_even_proto2\022" + - "\031.buf.validate.SInt64Rules\030\211\t \001(\010BB\302H?\n=" + - "\n\022sint64.even.proto2\022\030sint64 value is no" + - "t even\032\rthis % 2 == 0R\020sint64EvenProto2:" + - "\223\001\n\023fixed32_even_proto2\022\032.buf.validate.F" + - "ixed32Rules\030\211\t \001(\010BF\302HC\nA\n\023fixed32.even." + - "proto2\022\031fixed32 value is not even\032\017this " + - "% 2u == 0uR\021fixed32EvenProto2:\223\001\n\023fixed6" + - "4_even_proto2\022\032.buf.validate.Fixed64Rule" + - "s\030\211\t \001(\010BF\302HC\nA\n\023fixed64.even.proto2\022\031fi" + - "xed64 value is not even\032\017this % 2u == 0u" + - "R\021fixed64EvenProto2:\226\001\n\024sfixed32_even_pr" + - "oto2\022\033.buf.validate.SFixed32Rules\030\211\t \001(\010" + - "BF\302HC\nA\n\024sfixed32.even.proto2\022\032sfixed32 " + - "value is not even\032\rthis % 2 == 0R\022sfixed" + - "32EvenProto2:\226\001\n\024sfixed64_even_proto2\022\033." + - "buf.validate.SFixed64Rules\030\211\t \001(\010BF\302HC\nA" + - "\n\024sfixed64.even.proto2\022\032sfixed64 value i" + - "s not even\032\rthis % 2 == 0R\022sfixed64EvenP" + - "roto2:\206\001\n\021bool_false_proto2\022\027.buf.valida" + - "te.BoolRules\030\211\t \001(\010B@\302H=\n;\n\021bool.false.p" + - "roto2\022\027bool value is not false\032\rthis == " + - "falseR\017boolFalseProto2:\376\001\n\030string_valid_" + - "path_proto2\022\031.buf.validate.StringRules\030\211" + - "\t \001(\010B\250\001\302H\244\001\n\241\001\n\030string.valid_path.proto" + - "2\032\204\001!this.matches(\'^([^/.][^/]?|[^/][^/." + - "]|[^/]{3,})(/([^/.][^/]?|[^/][^/.]|[^/]{" + - "3,}))*$\') ? \'not a valid path: `%s`\'.for" + - "mat([this]) : \'\'R\025stringValidPathProto2:" + - "\202\002\n\027bytes_valid_path_proto2\022\030.buf.valida" + - "te.BytesRules\030\211\t \001(\010B\257\001\302H\253\001\n\250\001\n\027bytes.va" + - "lid_path.proto2\032\214\001!string(this).matches(" + - "\'^([^/.][^/]?|[^/][^/.]|[^/]{3,})(/([^/." + - "][^/]?|[^/][^/.]|[^/]{3,}))*$\') ? \'not a" + - " valid path: `%s`\'.format([this]) : \'\'R\024" + - "bytesValidPathProto2:\222\001\n\024enum_non_zero_p" + - "roto2\022\027.buf.validate.EnumRules\030\211\t \001(\010BG\302" + - "HD\nB\n\024enum.non_zero.proto2\022\032enum value i" + - "s not non-zero\032\016int(this) != 0R\021enumNonZ" + - "eroProto2:\314\001\n\035repeated_at_least_five_pro" + - "to2\022\033.buf.validate.RepeatedRules\030\211\t \001(\010B" + - "l\302Hi\ng\n\035repeated.at_least_five.proto2\022-r" + - "epeated field must have at least five va" + - "lues\032\027uint(this.size()) >= 5uR\031repeatedA" + - "tLeastFiveProto2:\271\001\n\030duration_too_long_p" + - "roto2\022\033.buf.validate.DurationRules\030\211\t \001(" + - "\010Bb\302H_\n]\n\030duration.too_long.proto2\022(dura" + - "tion can\'t be longer than 10 seconds\032\027th" + - "is <= duration(\'10s\')R\025durationTooLongPr" + - "oto2:\310\001\n\031timestamp_in_range_proto2\022\034.buf" + - ".validate.TimestampRules\030\211\t \001(\010Bn\302Hk\ni\n\033" + - "timestamp.time_range.proto2\022\026timestamp o" + - "ut of range\0322int(this) >= 1049587200 && " + - "int(this) <= 1080432000R\026timestampInRang" + - "eProto2B\336\001\n$build.buf.validate.conforman" + - "ce.casesB\032PredefinedRulesProto2ProtoP\001\242\002" + - "\004BVCC\252\002\036Buf.Validate.Conformance.Cases\312\002" + - "\036Buf\\Validate\\Conformance\\Cases\342\002*Buf\\Va" + - "lidate\\Conformance\\Cases\\GPBMetadata\352\002!B" + - "uf::Validate::Conformance::Cases" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto2_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto2_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_descriptor, - new java.lang.String[] { "A", "B", }); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_Nested_descriptor = - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_Nested_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto2_Nested_descriptor, - new java.lang.String[] { "C", }); - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto2_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto2_descriptor, - new java.lang.String[] { "A", }); - floatAbsRangeProto2.internalInit(descriptor.getExtensions().get(0)); - doubleAbsRangeProto2.internalInit(descriptor.getExtensions().get(1)); - int32AbsInProto2.internalInit(descriptor.getExtensions().get(2)); - int64AbsInProto2.internalInit(descriptor.getExtensions().get(3)); - uint32EvenProto2.internalInit(descriptor.getExtensions().get(4)); - uint64EvenProto2.internalInit(descriptor.getExtensions().get(5)); - sint32EvenProto2.internalInit(descriptor.getExtensions().get(6)); - sint64EvenProto2.internalInit(descriptor.getExtensions().get(7)); - fixed32EvenProto2.internalInit(descriptor.getExtensions().get(8)); - fixed64EvenProto2.internalInit(descriptor.getExtensions().get(9)); - sfixed32EvenProto2.internalInit(descriptor.getExtensions().get(10)); - sfixed64EvenProto2.internalInit(descriptor.getExtensions().get(11)); - boolFalseProto2.internalInit(descriptor.getExtensions().get(12)); - stringValidPathProto2.internalInit(descriptor.getExtensions().get(13)); - bytesValidPathProto2.internalInit(descriptor.getExtensions().get(14)); - enumNonZeroProto2.internalInit(descriptor.getExtensions().get(15)); - repeatedAtLeastFiveProto2.internalInit(descriptor.getExtensions().get(16)); - durationTooLongProto2.internalInit(descriptor.getExtensions().get(17)); - timestampInRangeProto2.internalInit(descriptor.getExtensions().get(18)); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.boolFalseProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.bytesValidPathProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.doubleAbsRangeProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.durationTooLongProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.enumNonZeroProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.fixed32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.fixed64EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.floatAbsRangeProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.int32AbsInProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.int64AbsInProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.repeatedAtLeastFiveProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sfixed32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sfixed64EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sint32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sint64EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.stringValidPathProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.timestampInRangeProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.uint32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.uint64EvenProto2); - registry.add(build.buf.validate.ValidateProto.field); - registry.add(build.buf.validate.ValidateProto.predefined); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3Proto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3Proto.java deleted file mode 100644 index 8dda22b3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3Proto.java +++ /dev/null @@ -1,679 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public final class PredefinedRulesProto3Proto { - private PredefinedRulesProto3Proto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRulesProto3Proto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_Nested_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_Nested_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto3_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto3_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRulesProto3UnusedImportBugWorkaround_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRulesProto3UnusedImportBugWorkaround_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n 24" + - " ? \'\' : \'a must be greater than 24\'R\001a\022\271" + - "\001\n\001b\030\002 \001(\0132D.buf.validate.conformance.ca" + - "ses.PredefinedAndCustomRuleProto3.Nested" + - "B`\272H]\272\001Z\n*predefined_and_custom_rule_emb" + - "edded_proto3\022\033b.c must be a multiple of " + - "3\032\017this.c % 3 == 0H\000R\001b\210\001\001\032s\n\006Nested\022i\n\001" + - "c\030\001 \001(\021B[\272HX:\003\320H\001\272\001P\n(predefined_and_cus" + - "tom_rule_nested_proto3\032$this > 0 ? \'\' : " + - "\'c must be positive\'R\001cB\004\n\002_b\"\245\001\n%Standa" + - "rdPredefinedAndCustomRuleProto3\022|\n\001a\030\001 \001" + - "(\021Bn\272Hk:\005\0208\310H\001\272\001a\n1standard_predefined_a" + - "nd_custom_rule_scalar_proto3\032,this > 24 " + - "? \'\' : \'a must be greater than 24\'R\001a\"\365\001" + - "\n.PredefinedRulesProto3UnusedImportBugWo" + - "rkaround\022^\n\007dummy_1\030\001 \001(\0132E.buf.validate" + - ".conformance.cases.StandardPredefinedAnd" + - "CustomRuleProto2R\006dummy1\022c\n\007dummy_2\030\002 \001(" + - "\0132J.buf.validate.conformance.cases.Stand" + - "ardPredefinedAndCustomRuleEdition2023R\006d" + - "ummy2B\336\001\n$build.buf.validate.conformance" + - ".casesB\032PredefinedRulesProto3ProtoP\001\242\002\004B" + - "VCC\252\002\036Buf.Validate.Conformance.Cases\312\002\036B" + - "uf\\Validate\\Conformance\\Cases\342\002*Buf\\Vali" + - "date\\Conformance\\Cases\\GPBMetadata\352\002!Buf" + - "::Validate::Conformance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.getDescriptor(), - build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.getDescriptor(), - build.buf.validate.ValidateProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedMapRuleProto3_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto3_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto3_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_descriptor, - new java.lang.String[] { "A", "B", }); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_Nested_descriptor = - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_Nested_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleProto3_Nested_descriptor, - new java.lang.String[] { "C", }); - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto3_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto3_descriptor, - new java.lang.String[] { "A", }); - internal_static_buf_validate_conformance_cases_PredefinedRulesProto3UnusedImportBugWorkaround_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_buf_validate_conformance_cases_PredefinedRulesProto3UnusedImportBugWorkaround_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRulesProto3UnusedImportBugWorkaround_descriptor, - new java.lang.String[] { "Dummy1", "Dummy2", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.getDescriptor(); - build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.getDescriptor(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.boolFalseProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.bytesValidPathProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.doubleAbsRangeProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.durationTooLongProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.enumNonZeroProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.fixed32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.fixed64EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.floatAbsRangeProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.int32AbsInProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.int64AbsInEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.int64AbsInProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.mapAtLeastFiveEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.repeatedAtLeastFiveProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sfixed32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sfixed64EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.sint32EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sint32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.sint64EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.stringValidPathProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.timestampInRangeProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.uint32EvenProto2); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.uint64EvenProto2); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3UnusedImportBugWorkaround.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3UnusedImportBugWorkaround.java deleted file mode 100644 index 20037937..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3UnusedImportBugWorkaround.java +++ /dev/null @@ -1,753 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - *
- * This is a workaround for https://github.com/bufbuild/buf/issues/3306.
- * TODO(jchadwick-buf): Remove this when bufbuild/buf#3306 is fixed.
- * 
- * - * Protobuf type {@code buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround} - */ -public final class PredefinedRulesProto3UnusedImportBugWorkaround extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround) - PredefinedRulesProto3UnusedImportBugWorkaroundOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRulesProto3UnusedImportBugWorkaround.class.getName()); - } - // Use PredefinedRulesProto3UnusedImportBugWorkaround.newBuilder() to construct. - private PredefinedRulesProto3UnusedImportBugWorkaround(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedRulesProto3UnusedImportBugWorkaround() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRulesProto3UnusedImportBugWorkaround_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRulesProto3UnusedImportBugWorkaround_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround.class, build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround.Builder.class); - } - - private int bitField0_; - public static final int DUMMY_1_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy1_; - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - * @return Whether the dummy1 field is set. - */ - @java.lang.Override - public boolean hasDummy1() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - * @return The dummy1. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 getDummy1() { - return dummy1_ == null ? build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.getDefaultInstance() : dummy1_; - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2OrBuilder getDummy1OrBuilder() { - return dummy1_ == null ? build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.getDefaultInstance() : dummy1_; - } - - public static final int DUMMY_2_FIELD_NUMBER = 2; - private build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy2_; - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - * @return Whether the dummy2 field is set. - */ - @java.lang.Override - public boolean hasDummy2() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - * @return The dummy2. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 getDummy2() { - return dummy2_ == null ? build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.getDefaultInstance() : dummy2_; - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023OrBuilder getDummy2OrBuilder() { - return dummy2_ == null ? build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.getDefaultInstance() : dummy2_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getDummy1()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getDummy2()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDummy1()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDummy2()); - } - 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.PredefinedRulesProto3UnusedImportBugWorkaround)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround other = (build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround) obj; - - if (hasDummy1() != other.hasDummy1()) return false; - if (hasDummy1()) { - if (!getDummy1() - .equals(other.getDummy1())) return false; - } - if (hasDummy2() != other.hasDummy2()) return false; - if (hasDummy2()) { - if (!getDummy2() - .equals(other.getDummy2())) 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 (hasDummy1()) { - hash = (37 * hash) + DUMMY_1_FIELD_NUMBER; - hash = (53 * hash) + getDummy1().hashCode(); - } - if (hasDummy2()) { - hash = (37 * hash) + DUMMY_2_FIELD_NUMBER; - hash = (53 * hash) + getDummy2().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround 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.PredefinedRulesProto3UnusedImportBugWorkaround parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround 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.PredefinedRulesProto3UnusedImportBugWorkaround parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround 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.PredefinedRulesProto3UnusedImportBugWorkaround parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround 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.PredefinedRulesProto3UnusedImportBugWorkaround parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround 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.PredefinedRulesProto3UnusedImportBugWorkaround 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.PredefinedRulesProto3UnusedImportBugWorkaround 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.PredefinedRulesProto3UnusedImportBugWorkaround 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; - } - /** - *
-   * This is a workaround for https://github.com/bufbuild/buf/issues/3306.
-   * TODO(jchadwick-buf): Remove this when bufbuild/buf#3306 is fixed.
-   * 
- * - * Protobuf type {@code buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround) - build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaroundOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRulesProto3UnusedImportBugWorkaround_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRulesProto3UnusedImportBugWorkaround_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround.class, build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetDummy1FieldBuilder(); - internalGetDummy2FieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dummy1_ = null; - if (dummy1Builder_ != null) { - dummy1Builder_.dispose(); - dummy1Builder_ = null; - } - dummy2_ = null; - if (dummy2Builder_ != null) { - dummy2Builder_.dispose(); - dummy2Builder_ = null; - } - 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_PredefinedRulesProto3UnusedImportBugWorkaround_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround build() { - build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround buildPartial() { - build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround result = new build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dummy1_ = dummy1Builder_ == null - ? dummy1_ - : dummy1Builder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dummy2_ = dummy2Builder_ == null - ? dummy2_ - : dummy2Builder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround other) { - if (other == build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround.getDefaultInstance()) return this; - if (other.hasDummy1()) { - mergeDummy1(other.getDummy1()); - } - if (other.hasDummy2()) { - mergeDummy2(other.getDummy2()); - } - 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: { - input.readMessage( - internalGetDummy1FieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - internalGetDummy2FieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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 build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy1_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.Builder, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2OrBuilder> dummy1Builder_; - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - * @return Whether the dummy1 field is set. - */ - public boolean hasDummy1() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - * @return The dummy1. - */ - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 getDummy1() { - if (dummy1Builder_ == null) { - return dummy1_ == null ? build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.getDefaultInstance() : dummy1_; - } else { - return dummy1Builder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - */ - public Builder setDummy1(build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 value) { - if (dummy1Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dummy1_ = value; - } else { - dummy1Builder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - */ - public Builder setDummy1( - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.Builder builderForValue) { - if (dummy1Builder_ == null) { - dummy1_ = builderForValue.build(); - } else { - dummy1Builder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - */ - public Builder mergeDummy1(build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 value) { - if (dummy1Builder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - dummy1_ != null && - dummy1_ != build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.getDefaultInstance()) { - getDummy1Builder().mergeFrom(value); - } else { - dummy1_ = value; - } - } else { - dummy1Builder_.mergeFrom(value); - } - if (dummy1_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - */ - public Builder clearDummy1() { - bitField0_ = (bitField0_ & ~0x00000001); - dummy1_ = null; - if (dummy1Builder_ != null) { - dummy1Builder_.dispose(); - dummy1Builder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - */ - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.Builder getDummy1Builder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetDummy1FieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - */ - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2OrBuilder getDummy1OrBuilder() { - if (dummy1Builder_ != null) { - return dummy1Builder_.getMessageOrBuilder(); - } else { - return dummy1_ == null ? - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.getDefaultInstance() : dummy1_; - } - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.Builder, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2OrBuilder> - internalGetDummy1FieldBuilder() { - if (dummy1Builder_ == null) { - dummy1Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.Builder, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2OrBuilder>( - getDummy1(), - getParentForChildren(), - isClean()); - dummy1_ = null; - } - return dummy1Builder_; - } - - private build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy2_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.Builder, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023OrBuilder> dummy2Builder_; - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - * @return Whether the dummy2 field is set. - */ - public boolean hasDummy2() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - * @return The dummy2. - */ - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 getDummy2() { - if (dummy2Builder_ == null) { - return dummy2_ == null ? build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.getDefaultInstance() : dummy2_; - } else { - return dummy2Builder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - */ - public Builder setDummy2(build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 value) { - if (dummy2Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dummy2_ = value; - } else { - dummy2Builder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - */ - public Builder setDummy2( - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.Builder builderForValue) { - if (dummy2Builder_ == null) { - dummy2_ = builderForValue.build(); - } else { - dummy2Builder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - */ - public Builder mergeDummy2(build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 value) { - if (dummy2Builder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - dummy2_ != null && - dummy2_ != build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.getDefaultInstance()) { - getDummy2Builder().mergeFrom(value); - } else { - dummy2_ = value; - } - } else { - dummy2Builder_.mergeFrom(value); - } - if (dummy2_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - */ - public Builder clearDummy2() { - bitField0_ = (bitField0_ & ~0x00000002); - dummy2_ = null; - if (dummy2Builder_ != null) { - dummy2Builder_.dispose(); - dummy2Builder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - */ - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.Builder getDummy2Builder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetDummy2FieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - */ - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023OrBuilder getDummy2OrBuilder() { - if (dummy2Builder_ != null) { - return dummy2Builder_.getMessageOrBuilder(); - } else { - return dummy2_ == null ? - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.getDefaultInstance() : dummy2_; - } - } - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.Builder, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023OrBuilder> - internalGetDummy2FieldBuilder() { - if (dummy2Builder_ == null) { - dummy2Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.Builder, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023OrBuilder>( - getDummy2(), - getParentForChildren(), - isClean()); - dummy2_ = null; - } - return dummy2Builder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround) - private static final build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround(); - } - - public static build.buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedRulesProto3UnusedImportBugWorkaround 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.PredefinedRulesProto3UnusedImportBugWorkaround getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3UnusedImportBugWorkaroundOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3UnusedImportBugWorkaroundOrBuilder.java deleted file mode 100644 index d3317e04..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProto3UnusedImportBugWorkaroundOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedRulesProto3UnusedImportBugWorkaroundOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRulesProto3UnusedImportBugWorkaround) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - * @return Whether the dummy1 field is set. - */ - boolean hasDummy1(); - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - * @return The dummy1. - */ - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 getDummy1(); - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 dummy_1 = 1 [json_name = "dummy1"]; - */ - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2OrBuilder getDummy1OrBuilder(); - - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - * @return Whether the dummy2 field is set. - */ - boolean hasDummy2(); - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - * @return The dummy2. - */ - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 getDummy2(); - /** - * .buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 dummy_2 = 2 [json_name = "dummy2"]; - */ - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023OrBuilder getDummy2OrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProtoEditionsProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProtoEditionsProto.java deleted file mode 100644 index 44ed5043..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRulesProtoEditionsProto.java +++ /dev/null @@ -1,1017 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public final class PredefinedRulesProtoEditionsProto { - private PredefinedRulesProtoEditionsProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedRulesProtoEditionsProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.floatAbsRangeEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.doubleAbsRangeEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.int32AbsInEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.int64AbsInEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.uint32EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.uint64EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.sint32EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.sint64EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.fixed32EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.fixed64EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.sfixed32EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.sfixed64EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.boolFalseEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.stringValidPathEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.bytesValidPathEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.enumNonZeroEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.repeatedAtLeastFiveEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.mapAtLeastFiveEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.durationTooLongEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.timestampInRangeEdition2023); - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public static final int FLOAT_ABS_RANGE_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.FloatRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.FloatRules, - java.lang.Float> floatAbsRangeEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Float.class, - null); - public static final int DOUBLE_ABS_RANGE_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.DoubleRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.DoubleRules, - java.lang.Double> doubleAbsRangeEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Double.class, - null); - public static final int INT32_ABS_IN_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.Int32Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.Int32Rules, - java.util.List> int32AbsInEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Integer.class, - null); - public static final int INT64_ABS_IN_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.Int64Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.Int64Rules, - java.util.List> int64AbsInEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - com.google.protobuf.Int64Value.class, - com.google.protobuf.Int64Value.getDefaultInstance()); - public static final int UINT32_EVEN_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.UInt32Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.UInt32Rules, - java.lang.Boolean> uint32EvenEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int UINT64_EVEN_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.UInt64Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.UInt64Rules, - java.lang.Boolean> uint64EvenEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int SINT32_EVEN_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.SInt32Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.SInt32Rules, - java.lang.Boolean> sint32EvenEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int SINT64_EVEN_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.SInt64Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.SInt64Rules, - java.lang.Boolean> sint64EvenEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int FIXED32_EVEN_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.Fixed32Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.Fixed32Rules, - java.lang.Boolean> fixed32EvenEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int FIXED64_EVEN_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.Fixed64Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.Fixed64Rules, - java.lang.Boolean> fixed64EvenEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int SFIXED32_EVEN_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.SFixed32Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.SFixed32Rules, - java.lang.Boolean> sfixed32EvenEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int SFIXED64_EVEN_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.SFixed64Rules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.SFixed64Rules, - java.lang.Boolean> sfixed64EvenEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int BOOL_FALSE_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.BoolRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.BoolRules, - java.lang.Boolean> boolFalseEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int STRING_VALID_PATH_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.StringRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.StringRules, - java.lang.Boolean> stringValidPathEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int BYTES_VALID_PATH_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.BytesRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.BytesRules, - java.lang.Boolean> bytesValidPathEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int ENUM_NON_ZERO_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.EnumRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.EnumRules, - java.lang.Boolean> enumNonZeroEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int REPEATED_AT_LEAST_FIVE_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.RepeatedRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.RepeatedRules, - java.lang.Boolean> repeatedAtLeastFiveEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int MAP_AT_LEAST_FIVE_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.MapRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.MapRules, - java.lang.Boolean> mapAtLeastFiveEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int DURATION_TOO_LONG_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.DurationRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.DurationRules, - java.lang.Boolean> durationTooLongEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - public static final int TIMESTAMP_IN_RANGE_EDITION_2023_FIELD_NUMBER = 1162; - /** - * extend .buf.validate.TimestampRules { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - build.buf.validate.TimestampRules, - java.lang.Boolean> timestampInRangeEdition2023 = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Boolean.class, - null); - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedStringRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedStringRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_Nested_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_Nested_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleEdition2023_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleEdition2023_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nDbuf/validate/conformance/cases/predefi" + - "ned_rules_proto_editions.proto\022\036buf.vali" + - "date.conformance.cases\032\033buf/validate/val" + - "idate.proto\032\036google/protobuf/duration.pr" + - "oto\032\037google/protobuf/timestamp.proto\032\036go" + - "ogle/protobuf/wrappers.proto\"?\n\036Predefin" + - "edFloatRuleEdition2023\022\035\n\003val\030\001 \001(\002B\013\272H\010" + - "\n\006\325H\000\000\200?R\003val\"D\n\037PredefinedDoubleRuleEdi" + - "tion2023\022!\n\003val\030\001 \001(\001B\017\272H\014\022\n\321H\000\000\000\000\000\000\360?R\003" + - "val\"F\n\036PredefinedInt32RuleEdition2023\022$\n" + - "\003val\030\001 \001(\005B\022\272H\017\032\r\322H\n\376\377\377\377\377\377\377\377\377\001R\003val\"G\n\036P" + - "redefinedInt64RuleEdition2023\022%\n\003val\030\001 \001" + - "(\003B\023\272H\020\"\016\322H\013\010\376\377\377\377\377\377\377\377\377\001R\003val\"=\n\037Predefin" + - "edUInt32RuleEdition2023\022\032\n\003val\030\001 \001(\rB\010\272H" + - "\005*\003\320H\001R\003val\"=\n\037PredefinedUInt64RuleEditi" + - "on2023\022\032\n\003val\030\001 \001(\004B\010\272H\0052\003\320H\001R\003val\"=\n\037Pr" + - "edefinedSInt32RuleEdition2023\022\032\n\003val\030\001 \001" + - "(\021B\010\272H\005:\003\320H\001R\003val\"=\n\037PredefinedSInt64Rul" + - "eEdition2023\022\032\n\003val\030\001 \001(\022B\010\272H\005B\003\320H\001R\003val" + - "\">\n PredefinedFixed32RuleEdition2023\022\032\n\003" + - "val\030\001 \001(\007B\010\272H\005J\003\320H\001R\003val\">\n PredefinedFi" + - "xed64RuleEdition2023\022\032\n\003val\030\001 \001(\006B\010\272H\005R\003" + - "\320H\001R\003val\"?\n!PredefinedSFixed32RuleEditio" + - "n2023\022\032\n\003val\030\001 \001(\017B\010\272H\005Z\003\320H\001R\003val\"?\n!Pre" + - "definedSFixed64RuleEdition2023\022\032\n\003val\030\001 " + - "\001(\020B\010\272H\005b\003\320H\001R\003val\";\n\035PredefinedBoolRule" + - "Edition2023\022\032\n\003val\030\001 \001(\010B\010\272H\005j\003\320H\001R\003val\"" + - "=\n\037PredefinedStringRuleEdition2023\022\032\n\003va" + - "l\030\001 \001(\tB\010\272H\005r\003\320H\001R\003val\"<\n\036PredefinedByte" + - "sRuleEdition2023\022\032\n\003val\030\001 \001(\014B\010\272H\005z\003\320H\001R" + - "\003val\"\337\001\n\035PredefinedEnumRuleEdition2023\022j" + - "\n\003val\030\001 \001(\0162M.buf.validate.conformance.c" + - "ases.PredefinedEnumRuleEdition2023.EnumE" + - "dition2023B\t\272H\006\202\001\003\320H\001R\003val\"R\n\017EnumEditio" + - "n2023\022%\n!ENUM_EDITION2023_ZERO_UNSPECIFI" + - "ED\020\000\022\030\n\024ENUM_EDITION2023_ONE\020\001\"@\n!Predef" + - "inedRepeatedRuleEdition2023\022\033\n\003val\030\001 \003(\004" + - "B\t\272H\006\222\001\003\320H\001R\003val\"\272\001\n\034PredefinedMapRuleEd" + - "ition2023\022b\n\003val\030\001 \003(\0132E.buf.validate.co" + - "nformance.cases.PredefinedMapRuleEdition" + - "2023.ValEntryB\t\272H\006\232\001\003\320H\001R\003val\0326\n\010ValEntr" + - "y\022\020\n\003key\030\001 \001(\004R\003key\022\024\n\005value\030\002 \001(\004R\005valu" + - "e:\0028\001\"[\n!PredefinedDurationRuleEdition20" + - "23\0226\n\003val\030\001 \001(\0132\031.google.protobuf.Durati" + - "onB\t\272H\006\252\001\003\320H\001R\003val\"]\n\"PredefinedTimestam" + - "pRuleEdition2023\0227\n\003val\030\001 \001(\0132\032.google.p" + - "rotobuf.TimestampB\t\272H\006\262\001\003\320H\001R\003val\"c\n%Pre" + - "definedWrappedFloatRuleEdition2023\022:\n\003va" + - "l\030\001 \001(\0132\033.google.protobuf.FloatValueB\013\272H" + - "\010\n\006\325H\000\000\200?R\003val\"i\n&PredefinedWrappedDoubl" + - "eRuleEdition2023\022?\n\003val\030\001 \001(\0132\034.google.p" + - "rotobuf.DoubleValueB\017\272H\014\022\n\321H\000\000\000\000\000\000\360?R\003va" + - "l\"j\n%PredefinedWrappedInt32RuleEdition20" + - "23\022A\n\003val\030\001 \001(\0132\033.google.protobuf.Int32V" + - "alueB\022\272H\017\032\r\322H\n\376\377\377\377\377\377\377\377\377\001R\003val\"k\n%Predefi" + - "nedWrappedInt64RuleEdition2023\022B\n\003val\030\001 " + - "\001(\0132\033.google.protobuf.Int64ValueB\023\272H\020\"\016\322" + - "H\013\010\376\377\377\377\377\377\377\377\377\001R\003val\"b\n&PredefinedWrappedU" + - "Int32RuleEdition2023\0228\n\003val\030\001 \001(\0132\034.goog" + - "le.protobuf.UInt32ValueB\010\272H\005*\003\320H\001R\003val\"b" + - "\n&PredefinedWrappedUInt64RuleEdition2023" + - "\0228\n\003val\030\001 \001(\0132\034.google.protobuf.UInt64Va" + - "lueB\010\272H\0052\003\320H\001R\003val\"^\n$PredefinedWrappedB" + - "oolRuleEdition2023\0226\n\003val\030\001 \001(\0132\032.google" + - ".protobuf.BoolValueB\010\272H\005j\003\320H\001R\003val\"b\n&Pr" + - "edefinedWrappedStringRuleEdition2023\0228\n\003" + - "val\030\001 \001(\0132\034.google.protobuf.StringValueB" + - "\010\272H\005r\003\320H\001R\003val\"`\n%PredefinedWrappedBytes" + - "RuleEdition2023\0227\n\003val\030\001 \001(\0132\033.google.pr" + - "otobuf.BytesValueB\010\272H\005z\003\320H\001R\003val\"p\n-Pred" + - "efinedRepeatedWrappedFloatRuleEdition202" + - "3\022?\n\003val\030\001 \003(\0132\033.google.protobuf.FloatVa" + - "lueB\020\272H\r\222\001\n\"\010\n\006\325H\000\000\200?R\003val\"v\n.Predefined" + - "RepeatedWrappedDoubleRuleEdition2023\022D\n\003" + - "val\030\001 \003(\0132\034.google.protobuf.DoubleValueB" + - "\024\272H\021\222\001\016\"\014\022\n\321H\000\000\000\000\000\000\360?R\003val\"w\n-Predefined" + - "RepeatedWrappedInt32RuleEdition2023\022F\n\003v" + - "al\030\001 \003(\0132\033.google.protobuf.Int32ValueB\027\272" + - "H\024\222\001\021\"\017\032\r\322H\n\376\377\377\377\377\377\377\377\377\001R\003val\"x\n-Predefine" + - "dRepeatedWrappedInt64RuleEdition2023\022G\n\003" + - "val\030\001 \003(\0132\033.google.protobuf.Int64ValueB\030" + - "\272H\025\222\001\022\"\020\"\016\322H\013\010\376\377\377\377\377\377\377\377\377\001R\003val\"o\n.Predefi" + - "nedRepeatedWrappedUInt32RuleEdition2023\022" + - "=\n\003val\030\001 \003(\0132\034.google.protobuf.UInt32Val" + - "ueB\r\272H\n\222\001\007\"\005*\003\320H\001R\003val\"o\n.PredefinedRepe" + - "atedWrappedUInt64RuleEdition2023\022=\n\003val\030" + - "\001 \003(\0132\034.google.protobuf.UInt64ValueB\r\272H\n" + - "\222\001\007\"\0052\003\320H\001R\003val\"k\n,PredefinedRepeatedWra" + - "ppedBoolRuleEdition2023\022;\n\003val\030\001 \003(\0132\032.g" + - "oogle.protobuf.BoolValueB\r\272H\n\222\001\007\"\005j\003\320H\001R" + - "\003val\"o\n.PredefinedRepeatedWrappedStringR" + - "uleEdition2023\022=\n\003val\030\001 \003(\0132\034.google.pro" + - "tobuf.StringValueB\r\272H\n\222\001\007\"\005r\003\320H\001R\003val\"m\n" + - "-PredefinedRepeatedWrappedBytesRuleEditi" + - "on2023\022<\n\003val\030\001 \003(\0132\033.google.protobuf.By" + - "tesValueB\r\272H\n\222\001\007\"\005z\003\320H\001R\003val\"\332\003\n\"Predefi" + - "nedAndCustomRuleEdition2023\022w\n\001a\030\001 \001(\021Bi" + - "\272Hf:\003\320H\001\272\001^\n.predefined_and_custom_rule_" + - "scalar_edition_2023\032,this > 24 ? \'\' : \'a" + - " must be greater than 24\'R\001a\022\277\001\n\001b\030\002 \001(\013" + - "2I.buf.validate.conformance.cases.Predef" + - "inedAndCustomRuleEdition2023.NestedBf\272Hc" + - "\272\001`\n0predefined_and_custom_rule_embedded" + - "_edition_2023\022\033b.c must be a multiple of" + - " 3\032\017this.c % 3 == 0R\001b\032y\n\006Nested\022o\n\001c\030\001 " + - "\001(\021Ba\272H^:\003\320H\001\272\001V\n.predefined_and_custom_" + - "rule_nested_edition_2023\032$this > 0 ? \'\' " + - ": \'c must be positive\'R\001c\"\261\001\n*StandardPr" + - "edefinedAndCustomRuleEdition2023\022\202\001\n\001a\030\001" + - " \001(\021Bt\272Hq:\005\0208\320H\001\272\001g\n7standard_predefined" + - "_and_custom_rule_scalar_edition_2023\032,th" + - "is > 24 ? \'\' : \'a must be greater than 2" + - "4\'R\001a:\272\001\n\034float_abs_range_edition_2023\022\030" + - ".buf.validate.FloatRules\030\212\t \001(\002B_\302H\\\nZ\n\034" + - "float.abs_range.edition_2023\022\033float valu" + - "e is out of range\032\035this >= -rule && this" + - " <= ruleR\030floatAbsRangeEdition2023:\277\001\n\035d" + - "ouble_abs_range_edition_2023\022\031.buf.valid" + - "ate.DoubleRules\030\212\t \001(\001Ba\302H^\n\\\n\035double.ab" + - "s_range.edition_2023\022\034double value is ou" + - "t of range\032\035this >= -rule && this <= rul" + - "eR\031doubleAbsRangeEdition2023:\307\001\n\031int32_a" + - "bs_in_edition_2023\022\030.buf.validate.Int32R" + - "ules\030\212\t \003(\005Br\302Ho\nm\n\031int32.abs_in.edition" + - "_2023\022\'value must be in absolute value o" + - "f list\032\'this in rule || this in rule.map" + - "(n, -n)R\025int32AbsInEdition2023:\344\001\n\031int64" + - "_abs_in_edition_2023\022\030.buf.validate.Int6" + - "4Rules\030\212\t \003(\0132\033.google.protobuf.Int64Val" + - "ueBr\302Ho\nm\n\031int64.abs_in.edition_2023\022\'va" + - "lue must be in absolute value of list\032\'t" + - "his in rule || this in rule.map(n, -n)R\025" + - "int64AbsInEdition2023:\237\001\n\030uint32_even_ed" + - "ition_2023\022\031.buf.validate.UInt32Rules\030\212\t" + - " \001(\010BJ\302HG\nE\n\030uint32.even.edition_2023\022\030u" + - "int32 value is not even\032\017this % 2u == 0u" + - "R\025uint32EvenEdition2023:\237\001\n\030uint64_even_" + - "edition_2023\022\031.buf.validate.UInt64Rules\030" + - "\212\t \001(\010BJ\302HG\nE\n\030uint64.even.edition_2023\022" + - "\030uint64 value is not even\032\017this % 2u == " + - "0uR\025uint64EvenEdition2023:\235\001\n\030sint32_eve" + - "n_edition_2023\022\031.buf.validate.SInt32Rule" + - "s\030\212\t \001(\010BH\302HE\nC\n\030sint32.even.edition_202" + - "3\022\030sint32 value is not even\032\rthis % 2 ==" + - " 0R\025sint32EvenEdition2023:\235\001\n\030sint64_eve" + - "n_edition_2023\022\031.buf.validate.SInt64Rule" + - "s\030\212\t \001(\010BH\302HE\nC\n\030sint64.even.edition_202" + - "3\022\030sint64 value is not even\032\rthis % 2 ==" + - " 0R\025sint64EvenEdition2023:\244\001\n\031fixed32_ev" + - "en_edition_2023\022\032.buf.validate.Fixed32Ru" + - "les\030\212\t \001(\010BL\302HI\nG\n\031fixed32.even.edition_" + - "2023\022\031fixed32 value is not even\032\017this % " + - "2u == 0uR\026fixed32EvenEdition2023:\244\001\n\031fix" + - "ed64_even_edition_2023\022\032.buf.validate.Fi" + - "xed64Rules\030\212\t \001(\010BL\302HI\nG\n\031fixed64.even.e" + - "dition_2023\022\031fixed64 value is not even\032\017" + - "this % 2u == 0uR\026fixed64EvenEdition2023:" + - "\247\001\n\032sfixed32_even_edition_2023\022\033.buf.val" + - "idate.SFixed32Rules\030\212\t \001(\010BL\302HI\nG\n\032sfixe" + - "d32.even.edition_2023\022\032sfixed32 value is" + - " not even\032\rthis % 2 == 0R\027sfixed32EvenEd" + - "ition2023:\247\001\n\032sfixed64_even_edition_2023" + - "\022\033.buf.validate.SFixed64Rules\030\212\t \001(\010BL\302H" + - "I\nG\n\032sfixed64.even.edition_2023\022\032sfixed6" + - "4 value is not even\032\rthis % 2 == 0R\027sfix" + - "ed64EvenEdition2023:\227\001\n\027bool_false_editi" + - "on_2023\022\027.buf.validate.BoolRules\030\212\t \001(\010B" + - "F\302HC\nA\n\027bool.false.edition_2023\022\027bool va" + - "lue is not false\032\rthis == falseR\024boolFal" + - "seEdition2023:\217\002\n\036string_valid_path_edit" + - "ion_2023\022\031.buf.validate.StringRules\030\212\t \001" + - "(\010B\256\001\302H\252\001\n\247\001\n\036string.valid_path.edition_" + - "2023\032\204\001!this.matches(\'^([^/.][^/]?|[^/][" + - "^/.]|[^/]{3,})(/([^/.][^/]?|[^/][^/.]|[^" + - "/]{3,}))*$\') ? \'not a valid path: `%s`\'." + - "format([this]) : \'\'R\032stringValidPathEdit" + - "ion2023:\223\002\n\035bytes_valid_path_edition_202" + - "3\022\030.buf.validate.BytesRules\030\212\t \001(\010B\265\001\302H\261" + - "\001\n\256\001\n\035bytes.valid_path.edition_2023\032\214\001!s" + - "tring(this).matches(\'^([^/.][^/]?|[^/][^" + - "/.]|[^/]{3,})(/([^/.][^/]?|[^/][^/.]|[^/" + - "]{3,}))*$\') ? \'not a valid path: `%s`\'.f" + - "ormat([this]) : \'\'R\031bytesValidPathEditio" + - "n2023:\243\001\n\032enum_non_zero_edition_2023\022\027.b" + - "uf.validate.EnumRules\030\212\t \001(\010BM\302HJ\nH\n\032enu" + - "m.non_zero.edition_2023\022\032enum value is n" + - "ot non-zero\032\016int(this) != 0R\026enumNonZero" + - "Edition2023:\335\001\n#repeated_at_least_five_e" + - "dition_2023\022\033.buf.validate.RepeatedRules" + - "\030\212\t \001(\010Br\302Ho\nm\n#repeated.at_least_five.e" + - "dition_2023\022-repeated field must have at" + - " least five values\032\027uint(this.size()) >=" + - " 5uR\036repeatedAtLeastFiveEdition2023:\275\001\n\036" + - "map_at_least_five_edition_2023\022\026.buf.val" + - "idate.MapRules\030\212\t \001(\010Ba\302H^\n\\\n\036map.at_lea" + - "st_five.edition_2023\022!map must have at l" + - "east five pairs\032\027uint(this.size()) >= 5u" + - "R\031mapAtLeastFiveEdition2023:\312\001\n\036duration" + - "_too_long_edition_2023\022\033.buf.validate.Du" + - "rationRules\030\212\t \001(\010Bh\302He\nc\n\036duration.too_" + - "long.edition_2023\022(duration can\'t be lon" + - "ger than 10 seconds\032\027this <= duration(\'1" + - "0s\')R\032durationTooLongEdition2023:\331\001\n\037tim" + - "estamp_in_range_edition_2023\022\034.buf.valid" + - "ate.TimestampRules\030\212\t \001(\010Bt\302Hq\no\n!timest" + - "amp.time_range.edition_2023\022\026timestamp o" + - "ut of range\0322int(this) >= 1049587200 && " + - "int(this) <= 1080432000R\033timestampInRang" + - "eEdition2023B\345\001\n$build.buf.validate.conf" + - "ormance.casesB!PredefinedRulesProtoEditi" + - "onsProtoP\001\242\002\004BVCC\252\002\036Buf.Validate.Conform" + - "ance.Cases\312\002\036Buf\\Validate\\Conformance\\Ca" + - "ses\342\002*Buf\\Validate\\Conformance\\Cases\\GPB" + - "Metadata\352\002!Buf::Validate::Conformance::C" + - "asesb\010editionsp\350\007" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedFloatRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedDoubleRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedInt32RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedInt64RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedFixed32RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedFixed64RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedBoolRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedStringRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_PredefinedStringRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedStringRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedBytesRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedEnumRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedMapRuleEdition2023_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedDurationRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt64RuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleEdition2023_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_descriptor, - new java.lang.String[] { "A", "B", }); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_Nested_descriptor = - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_Nested_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_PredefinedAndCustomRuleEdition2023_Nested_descriptor, - new java.lang.String[] { "C", }); - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleEdition2023_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleEdition2023_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleEdition2023_descriptor, - new java.lang.String[] { "A", }); - floatAbsRangeEdition2023.internalInit(descriptor.getExtensions().get(0)); - doubleAbsRangeEdition2023.internalInit(descriptor.getExtensions().get(1)); - int32AbsInEdition2023.internalInit(descriptor.getExtensions().get(2)); - int64AbsInEdition2023.internalInit(descriptor.getExtensions().get(3)); - uint32EvenEdition2023.internalInit(descriptor.getExtensions().get(4)); - uint64EvenEdition2023.internalInit(descriptor.getExtensions().get(5)); - sint32EvenEdition2023.internalInit(descriptor.getExtensions().get(6)); - sint64EvenEdition2023.internalInit(descriptor.getExtensions().get(7)); - fixed32EvenEdition2023.internalInit(descriptor.getExtensions().get(8)); - fixed64EvenEdition2023.internalInit(descriptor.getExtensions().get(9)); - sfixed32EvenEdition2023.internalInit(descriptor.getExtensions().get(10)); - sfixed64EvenEdition2023.internalInit(descriptor.getExtensions().get(11)); - boolFalseEdition2023.internalInit(descriptor.getExtensions().get(12)); - stringValidPathEdition2023.internalInit(descriptor.getExtensions().get(13)); - bytesValidPathEdition2023.internalInit(descriptor.getExtensions().get(14)); - enumNonZeroEdition2023.internalInit(descriptor.getExtensions().get(15)); - repeatedAtLeastFiveEdition2023.internalInit(descriptor.getExtensions().get(16)); - mapAtLeastFiveEdition2023.internalInit(descriptor.getExtensions().get(17)); - durationTooLongEdition2023.internalInit(descriptor.getExtensions().get(18)); - timestampInRangeEdition2023.internalInit(descriptor.getExtensions().get(19)); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.boolFalseEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.bytesValidPathEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.doubleAbsRangeEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.durationTooLongEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.enumNonZeroEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.fixed32EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.fixed64EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.floatAbsRangeEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.int32AbsInEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.int64AbsInEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.mapAtLeastFiveEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.repeatedAtLeastFiveEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.sfixed32EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.sfixed64EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.sint32EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.sint64EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.stringValidPathEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.timestampInRangeEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.uint32EvenEdition2023); - registry.add(build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.uint64EvenEdition2023); - registry.add(build.buf.validate.ValidateProto.field); - registry.add(build.buf.validate.ValidateProto.predefined); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleEdition2023.java deleted file mode 100644 index b5ee116b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleEdition2023.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023} - */ -public final class PredefinedSFixed32RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023) - PredefinedSFixed32RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSFixed32RuleEdition2023.class.getName()); - } - // Use PredefinedSFixed32RuleEdition2023.newBuilder() to construct. - private PredefinedSFixed32RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSFixed32RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.PredefinedSFixed32RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 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.PredefinedSFixed32RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 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.PredefinedSFixed32RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 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.PredefinedSFixed32RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 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.PredefinedSFixed32RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 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.PredefinedSFixed32RuleEdition2023 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.PredefinedSFixed32RuleEdition2023 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.PredefinedSFixed32RuleEdition2023 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.PredefinedSFixed32RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedSFixed32RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSFixed32RuleEdition2023 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.PredefinedSFixed32RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleEdition2023OrBuilder.java deleted file mode 100644 index a5b029a9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSFixed32RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSFixed32RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto2.java deleted file mode 100644 index 1ea1db88..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto2.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSFixed32RuleProto2} - */ -public final class PredefinedSFixed32RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSFixed32RuleProto2) - PredefinedSFixed32RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSFixed32RuleProto2.class.getName()); - } - // Use PredefinedSFixed32RuleProto2.newBuilder() to construct. - private PredefinedSFixed32RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSFixed32RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.PredefinedSFixed32RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 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.PredefinedSFixed32RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 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.PredefinedSFixed32RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 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.PredefinedSFixed32RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 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.PredefinedSFixed32RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 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.PredefinedSFixed32RuleProto2 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.PredefinedSFixed32RuleProto2 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.PredefinedSFixed32RuleProto2 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.PredefinedSFixed32RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSFixed32RuleProto2) - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedSFixed32RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * optional sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSFixed32RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSFixed32RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSFixed32RuleProto2 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.PredefinedSFixed32RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto2OrBuilder.java deleted file mode 100644 index 9667a083..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSFixed32RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSFixed32RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto3.java deleted file mode 100644 index 2758773b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto3.java +++ /dev/null @@ -1,431 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSFixed32RuleProto3} - */ -public final class PredefinedSFixed32RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSFixed32RuleProto3) - PredefinedSFixed32RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSFixed32RuleProto3.class.getName()); - } - // Use PredefinedSFixed32RuleProto3.newBuilder() to construct. - private PredefinedSFixed32RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSFixed32RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.PredefinedSFixed32RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 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.PredefinedSFixed32RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 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.PredefinedSFixed32RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 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.PredefinedSFixed32RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 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.PredefinedSFixed32RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 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.PredefinedSFixed32RuleProto3 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.PredefinedSFixed32RuleProto3 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.PredefinedSFixed32RuleProto3 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.PredefinedSFixed32RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSFixed32RuleProto3) - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedSFixed32RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSFixed32RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSFixed32RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed32RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSFixed32RuleProto3 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.PredefinedSFixed32RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto3OrBuilder.java deleted file mode 100644 index 38df2d7f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed32RuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSFixed32RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSFixed32RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleEdition2023.java deleted file mode 100644 index b8b159b9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleEdition2023.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023} - */ -public final class PredefinedSFixed64RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023) - PredefinedSFixed64RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSFixed64RuleEdition2023.class.getName()); - } - // Use PredefinedSFixed64RuleEdition2023.newBuilder() to construct. - private PredefinedSFixed64RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSFixed64RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.PredefinedSFixed64RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 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.PredefinedSFixed64RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 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.PredefinedSFixed64RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 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.PredefinedSFixed64RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 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.PredefinedSFixed64RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 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.PredefinedSFixed64RuleEdition2023 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.PredefinedSFixed64RuleEdition2023 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.PredefinedSFixed64RuleEdition2023 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.PredefinedSFixed64RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedSFixed64RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSFixed64RuleEdition2023 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.PredefinedSFixed64RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleEdition2023OrBuilder.java deleted file mode 100644 index 9def6f7f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSFixed64RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSFixed64RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto2.java deleted file mode 100644 index 3c35e69b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto2.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSFixed64RuleProto2} - */ -public final class PredefinedSFixed64RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSFixed64RuleProto2) - PredefinedSFixed64RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSFixed64RuleProto2.class.getName()); - } - // Use PredefinedSFixed64RuleProto2.newBuilder() to construct. - private PredefinedSFixed64RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSFixed64RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * optional sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.PredefinedSFixed64RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 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.PredefinedSFixed64RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 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.PredefinedSFixed64RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 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.PredefinedSFixed64RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 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.PredefinedSFixed64RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 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.PredefinedSFixed64RuleProto2 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.PredefinedSFixed64RuleProto2 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.PredefinedSFixed64RuleProto2 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.PredefinedSFixed64RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSFixed64RuleProto2) - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedSFixed64RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * optional sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * optional sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSFixed64RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSFixed64RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSFixed64RuleProto2 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.PredefinedSFixed64RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto2OrBuilder.java deleted file mode 100644 index 17789c5e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSFixed64RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSFixed64RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto3.java deleted file mode 100644 index ff1b7796..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto3.java +++ /dev/null @@ -1,432 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSFixed64RuleProto3} - */ -public final class PredefinedSFixed64RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSFixed64RuleProto3) - PredefinedSFixed64RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSFixed64RuleProto3.class.getName()); - } - // Use PredefinedSFixed64RuleProto3.newBuilder() to construct. - private PredefinedSFixed64RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSFixed64RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.PredefinedSFixed64RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 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.PredefinedSFixed64RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 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.PredefinedSFixed64RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 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.PredefinedSFixed64RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 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.PredefinedSFixed64RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 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.PredefinedSFixed64RuleProto3 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.PredefinedSFixed64RuleProto3 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.PredefinedSFixed64RuleProto3 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.PredefinedSFixed64RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSFixed64RuleProto3) - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSFixed64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedSFixed64RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSFixed64RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSFixed64RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedSFixed64RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSFixed64RuleProto3 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.PredefinedSFixed64RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto3OrBuilder.java deleted file mode 100644 index 0710d2bc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSFixed64RuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSFixed64RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSFixed64RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleEdition2023.java deleted file mode 100644 index 09ac83e8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleEdition2023.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023} - */ -public final class PredefinedSInt32RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023) - PredefinedSInt32RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSInt32RuleEdition2023.class.getName()); - } - // Use PredefinedSInt32RuleEdition2023.newBuilder() to construct. - private PredefinedSInt32RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSInt32RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.PredefinedSInt32RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 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.PredefinedSInt32RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 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.PredefinedSInt32RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 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.PredefinedSInt32RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 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.PredefinedSInt32RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 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.PredefinedSInt32RuleEdition2023 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.PredefinedSInt32RuleEdition2023 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.PredefinedSInt32RuleEdition2023 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.PredefinedSInt32RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedSInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSInt32RuleEdition2023 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.PredefinedSInt32RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleEdition2023OrBuilder.java deleted file mode 100644 index 1e746ab7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSInt32RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSInt32RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto2.java deleted file mode 100644 index dd064984..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto2.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSInt32RuleProto2} - */ -public final class PredefinedSInt32RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSInt32RuleProto2) - PredefinedSInt32RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSInt32RuleProto2.class.getName()); - } - // Use PredefinedSInt32RuleProto2.newBuilder() to construct. - private PredefinedSInt32RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSInt32RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.PredefinedSInt32RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 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.PredefinedSInt32RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 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.PredefinedSInt32RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 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.PredefinedSInt32RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 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.PredefinedSInt32RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 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.PredefinedSInt32RuleProto2 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.PredefinedSInt32RuleProto2 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.PredefinedSInt32RuleProto2 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.PredefinedSInt32RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSInt32RuleProto2) - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedSInt32RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSInt32RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSInt32RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSInt32RuleProto2 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.PredefinedSInt32RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto2OrBuilder.java deleted file mode 100644 index 4708d346..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSInt32RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSInt32RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto3.java deleted file mode 100644 index ea59747e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto3.java +++ /dev/null @@ -1,431 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSInt32RuleProto3} - */ -public final class PredefinedSInt32RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSInt32RuleProto3) - PredefinedSInt32RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSInt32RuleProto3.class.getName()); - } - // Use PredefinedSInt32RuleProto3.newBuilder() to construct. - private PredefinedSInt32RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSInt32RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.PredefinedSInt32RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 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.PredefinedSInt32RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 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.PredefinedSInt32RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 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.PredefinedSInt32RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 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.PredefinedSInt32RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 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.PredefinedSInt32RuleProto3 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.PredefinedSInt32RuleProto3 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.PredefinedSInt32RuleProto3 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.PredefinedSInt32RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSInt32RuleProto3) - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedSInt32RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSInt32RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSInt32RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt32RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSInt32RuleProto3 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.PredefinedSInt32RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto3OrBuilder.java deleted file mode 100644 index 88b27ea1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt32RuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSInt32RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSInt32RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleEdition2023.java deleted file mode 100644 index 7bcc20e6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleEdition2023.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023} - */ -public final class PredefinedSInt64RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023) - PredefinedSInt64RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSInt64RuleEdition2023.class.getName()); - } - // Use PredefinedSInt64RuleEdition2023.newBuilder() to construct. - private PredefinedSInt64RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSInt64RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.PredefinedSInt64RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 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.PredefinedSInt64RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 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.PredefinedSInt64RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 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.PredefinedSInt64RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 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.PredefinedSInt64RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 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.PredefinedSInt64RuleEdition2023 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.PredefinedSInt64RuleEdition2023 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.PredefinedSInt64RuleEdition2023 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.PredefinedSInt64RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedSInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSInt64RuleEdition2023 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.PredefinedSInt64RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleEdition2023OrBuilder.java deleted file mode 100644 index dea1c2e9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSInt64RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSInt64RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto2.java deleted file mode 100644 index 3f669cdc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto2.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSInt64RuleProto2} - */ -public final class PredefinedSInt64RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSInt64RuleProto2) - PredefinedSInt64RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSInt64RuleProto2.class.getName()); - } - // Use PredefinedSInt64RuleProto2.newBuilder() to construct. - private PredefinedSInt64RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSInt64RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * optional sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.PredefinedSInt64RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 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.PredefinedSInt64RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 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.PredefinedSInt64RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 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.PredefinedSInt64RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 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.PredefinedSInt64RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 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.PredefinedSInt64RuleProto2 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.PredefinedSInt64RuleProto2 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.PredefinedSInt64RuleProto2 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.PredefinedSInt64RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSInt64RuleProto2) - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedSInt64RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * optional sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * optional sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSInt64RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSInt64RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSInt64RuleProto2 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.PredefinedSInt64RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto2OrBuilder.java deleted file mode 100644 index a4dceede..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSInt64RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSInt64RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto3.java deleted file mode 100644 index e2afc545..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto3.java +++ /dev/null @@ -1,432 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedSInt64RuleProto3} - */ -public final class PredefinedSInt64RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedSInt64RuleProto3) - PredefinedSInt64RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedSInt64RuleProto3.class.getName()); - } - // Use PredefinedSInt64RuleProto3.newBuilder() to construct. - private PredefinedSInt64RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedSInt64RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.PredefinedSInt64RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 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.PredefinedSInt64RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 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.PredefinedSInt64RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 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.PredefinedSInt64RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 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.PredefinedSInt64RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 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.PredefinedSInt64RuleProto3 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.PredefinedSInt64RuleProto3 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.PredefinedSInt64RuleProto3 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.PredefinedSInt64RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedSInt64RuleProto3) - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedSInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedSInt64RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedSInt64RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedSInt64RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedSInt64RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedSInt64RuleProto3 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.PredefinedSInt64RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto3OrBuilder.java deleted file mode 100644 index b7eef64c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedSInt64RuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedSInt64RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedSInt64RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleEdition2023.java deleted file mode 100644 index 5afec137..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleEdition2023.java +++ /dev/null @@ -1,525 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedStringRuleEdition2023} - */ -public final class PredefinedStringRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedStringRuleEdition2023) - PredefinedStringRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedStringRuleEdition2023.class.getName()); - } - // Use PredefinedStringRuleEdition2023.newBuilder() to construct. - private PredefinedStringRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedStringRuleEdition2023() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.PredefinedStringRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 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.PredefinedStringRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 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.PredefinedStringRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 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.PredefinedStringRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 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.PredefinedStringRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 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.PredefinedStringRuleEdition2023 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.PredefinedStringRuleEdition2023 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.PredefinedStringRuleEdition2023 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.PredefinedStringRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedStringRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - 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_PredefinedStringRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedStringRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedStringRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedStringRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedStringRuleEdition2023 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.PredefinedStringRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleEdition2023OrBuilder.java deleted file mode 100644 index 5f8effd1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedStringRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedStringRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto2.java deleted file mode 100644 index 37f653ef..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto2.java +++ /dev/null @@ -1,528 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedStringRuleProto2} - */ -public final class PredefinedStringRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedStringRuleProto2) - PredefinedStringRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedStringRuleProto2.class.getName()); - } - // Use PredefinedStringRuleProto2.newBuilder() to construct. - private PredefinedStringRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedStringRuleProto2() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedStringRuleProto2.class, build.buf.validate.conformance.cases.PredefinedStringRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.PredefinedStringRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedStringRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedStringRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto2 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.PredefinedStringRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto2 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.PredefinedStringRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto2 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.PredefinedStringRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto2 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.PredefinedStringRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto2 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.PredefinedStringRuleProto2 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.PredefinedStringRuleProto2 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.PredefinedStringRuleProto2 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.PredefinedStringRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedStringRuleProto2) - build.buf.validate.conformance.cases.PredefinedStringRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedStringRuleProto2.class, build.buf.validate.conformance.cases.PredefinedStringRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedStringRuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - 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_PredefinedStringRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedStringRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedStringRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedStringRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedStringRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedStringRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedStringRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedStringRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedStringRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedStringRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedStringRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedStringRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedStringRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedStringRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedStringRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedStringRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedStringRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedStringRuleProto2 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.PredefinedStringRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto2OrBuilder.java deleted file mode 100644 index 324ed788..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto2OrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedStringRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedStringRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto3.java deleted file mode 100644 index 018dfe6c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto3.java +++ /dev/null @@ -1,501 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedStringRuleProto3} - */ -public final class PredefinedStringRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedStringRuleProto3) - PredefinedStringRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedStringRuleProto3.class.getName()); - } - // Use PredefinedStringRuleProto3.newBuilder() to construct. - private PredefinedStringRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedStringRuleProto3() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedStringRuleProto3.class, build.buf.validate.conformance.cases.PredefinedStringRuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.PredefinedStringRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedStringRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedStringRuleProto3) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto3 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.PredefinedStringRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto3 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.PredefinedStringRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto3 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.PredefinedStringRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto3 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.PredefinedStringRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto3 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.PredefinedStringRuleProto3 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.PredefinedStringRuleProto3 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.PredefinedStringRuleProto3 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.PredefinedStringRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedStringRuleProto3) - build.buf.validate.conformance.cases.PredefinedStringRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedStringRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedStringRuleProto3.class, build.buf.validate.conformance.cases.PredefinedStringRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedStringRuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - 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_PredefinedStringRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedStringRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedStringRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedStringRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedStringRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedStringRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedStringRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedStringRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedStringRuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedStringRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedStringRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedStringRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedStringRuleProto3.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedStringRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedStringRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedStringRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedStringRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedStringRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedStringRuleProto3 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.PredefinedStringRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto3OrBuilder.java deleted file mode 100644 index a76736c0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedStringRuleProto3OrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedStringRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedStringRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleEdition2023.java deleted file mode 100644 index 2ed285ed..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleEdition2023.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023} - */ -public final class PredefinedTimestampRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023) - PredefinedTimestampRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedTimestampRuleEdition2023.class.getName()); - } - // Use PredefinedTimestampRuleEdition2023.newBuilder() to construct. - private PredefinedTimestampRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedTimestampRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedTimestampRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 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.PredefinedTimestampRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 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.PredefinedTimestampRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 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.PredefinedTimestampRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 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.PredefinedTimestampRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 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.PredefinedTimestampRuleEdition2023 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.PredefinedTimestampRuleEdition2023 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.PredefinedTimestampRuleEdition2023 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.PredefinedTimestampRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedTimestampRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedTimestampRuleEdition2023 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.PredefinedTimestampRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleEdition2023OrBuilder.java deleted file mode 100644 index e89e5930..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedTimestampRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedTimestampRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto2.java deleted file mode 100644 index a0ee70f4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto2.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedTimestampRuleProto2} - */ -public final class PredefinedTimestampRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedTimestampRuleProto2) - PredefinedTimestampRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedTimestampRuleProto2.class.getName()); - } - // Use PredefinedTimestampRuleProto2.newBuilder() to construct. - private PredefinedTimestampRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedTimestampRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2.class, build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedTimestampRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 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.PredefinedTimestampRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 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.PredefinedTimestampRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 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.PredefinedTimestampRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 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.PredefinedTimestampRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 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.PredefinedTimestampRuleProto2 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.PredefinedTimestampRuleProto2 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.PredefinedTimestampRuleProto2 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.PredefinedTimestampRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedTimestampRuleProto2) - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2.class, build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedTimestampRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedTimestampRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedTimestampRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedTimestampRuleProto2 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.PredefinedTimestampRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto2OrBuilder.java deleted file mode 100644 index 3f6921a1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto2OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedTimestampRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedTimestampRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * optional .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto3.java deleted file mode 100644 index 39b61de3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto3.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedTimestampRuleProto3} - */ -public final class PredefinedTimestampRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedTimestampRuleProto3) - PredefinedTimestampRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedTimestampRuleProto3.class.getName()); - } - // Use PredefinedTimestampRuleProto3.newBuilder() to construct. - private PredefinedTimestampRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedTimestampRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3.class, build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedTimestampRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 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.PredefinedTimestampRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 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.PredefinedTimestampRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 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.PredefinedTimestampRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 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.PredefinedTimestampRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 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.PredefinedTimestampRuleProto3 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.PredefinedTimestampRuleProto3 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.PredefinedTimestampRuleProto3 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.PredefinedTimestampRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedTimestampRuleProto3) - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedTimestampRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3.class, build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedTimestampRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedTimestampRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedTimestampRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedTimestampRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedTimestampRuleProto3 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.PredefinedTimestampRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto3OrBuilder.java deleted file mode 100644 index afa9dc18..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedTimestampRuleProto3OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedTimestampRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedTimestampRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleEdition2023.java deleted file mode 100644 index 52c9d1fd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleEdition2023.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023} - */ -public final class PredefinedUInt32RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023) - PredefinedUInt32RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedUInt32RuleEdition2023.class.getName()); - } - // Use PredefinedUInt32RuleEdition2023.newBuilder() to construct. - private PredefinedUInt32RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedUInt32RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.PredefinedUInt32RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 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.PredefinedUInt32RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 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.PredefinedUInt32RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 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.PredefinedUInt32RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 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.PredefinedUInt32RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 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.PredefinedUInt32RuleEdition2023 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.PredefinedUInt32RuleEdition2023 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.PredefinedUInt32RuleEdition2023 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.PredefinedUInt32RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedUInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedUInt32RuleEdition2023 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.PredefinedUInt32RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleEdition2023OrBuilder.java deleted file mode 100644 index c13139fe..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedUInt32RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedUInt32RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto2.java deleted file mode 100644 index f2c97ff4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto2.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedUInt32RuleProto2} - */ -public final class PredefinedUInt32RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedUInt32RuleProto2) - PredefinedUInt32RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedUInt32RuleProto2.class.getName()); - } - // Use PredefinedUInt32RuleProto2.newBuilder() to construct. - private PredefinedUInt32RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedUInt32RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.PredefinedUInt32RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 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.PredefinedUInt32RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 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.PredefinedUInt32RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 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.PredefinedUInt32RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 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.PredefinedUInt32RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 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.PredefinedUInt32RuleProto2 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.PredefinedUInt32RuleProto2 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.PredefinedUInt32RuleProto2 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.PredefinedUInt32RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedUInt32RuleProto2) - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedUInt32RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedUInt32RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedUInt32RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedUInt32RuleProto2 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.PredefinedUInt32RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto2OrBuilder.java deleted file mode 100644 index 86fed963..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedUInt32RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedUInt32RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto3.java deleted file mode 100644 index 61fe67bb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto3.java +++ /dev/null @@ -1,431 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedUInt32RuleProto3} - */ -public final class PredefinedUInt32RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedUInt32RuleProto3) - PredefinedUInt32RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedUInt32RuleProto3.class.getName()); - } - // Use PredefinedUInt32RuleProto3.newBuilder() to construct. - private PredefinedUInt32RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedUInt32RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.PredefinedUInt32RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 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.PredefinedUInt32RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 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.PredefinedUInt32RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 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.PredefinedUInt32RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 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.PredefinedUInt32RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 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.PredefinedUInt32RuleProto3 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.PredefinedUInt32RuleProto3 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.PredefinedUInt32RuleProto3 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.PredefinedUInt32RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedUInt32RuleProto3) - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - 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_PredefinedUInt32RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedUInt32RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedUInt32RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt32RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedUInt32RuleProto3 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.PredefinedUInt32RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto3OrBuilder.java deleted file mode 100644 index e79f8b33..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt32RuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedUInt32RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedUInt32RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleEdition2023.java deleted file mode 100644 index c208c2fe..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleEdition2023.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023} - */ -public final class PredefinedUInt64RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023) - PredefinedUInt64RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedUInt64RuleEdition2023.class.getName()); - } - // Use PredefinedUInt64RuleEdition2023.newBuilder() to construct. - private PredefinedUInt64RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedUInt64RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.PredefinedUInt64RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 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.PredefinedUInt64RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 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.PredefinedUInt64RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 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.PredefinedUInt64RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 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.PredefinedUInt64RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 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.PredefinedUInt64RuleEdition2023 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.PredefinedUInt64RuleEdition2023 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.PredefinedUInt64RuleEdition2023 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.PredefinedUInt64RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedUInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedUInt64RuleEdition2023 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.PredefinedUInt64RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleEdition2023OrBuilder.java deleted file mode 100644 index cbc56368..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedUInt64RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedUInt64RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto2.java deleted file mode 100644 index 0ca63b7a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto2.java +++ /dev/null @@ -1,457 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedUInt64RuleProto2} - */ -public final class PredefinedUInt64RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedUInt64RuleProto2) - PredefinedUInt64RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedUInt64RuleProto2.class.getName()); - } - // Use PredefinedUInt64RuleProto2.newBuilder() to construct. - private PredefinedUInt64RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedUInt64RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * optional uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.PredefinedUInt64RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 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.PredefinedUInt64RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 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.PredefinedUInt64RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 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.PredefinedUInt64RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 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.PredefinedUInt64RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 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.PredefinedUInt64RuleProto2 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.PredefinedUInt64RuleProto2 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.PredefinedUInt64RuleProto2 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.PredefinedUInt64RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedUInt64RuleProto2) - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedUInt64RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * optional uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * optional uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedUInt64RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedUInt64RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedUInt64RuleProto2 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.PredefinedUInt64RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto2OrBuilder.java deleted file mode 100644 index f5af7f1a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedUInt64RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedUInt64RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto3.java deleted file mode 100644 index 218025cd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto3.java +++ /dev/null @@ -1,432 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedUInt64RuleProto3} - */ -public final class PredefinedUInt64RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedUInt64RuleProto3) - PredefinedUInt64RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedUInt64RuleProto3.class.getName()); - } - // Use PredefinedUInt64RuleProto3.newBuilder() to construct. - private PredefinedUInt64RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedUInt64RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.PredefinedUInt64RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 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.PredefinedUInt64RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 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.PredefinedUInt64RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 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.PredefinedUInt64RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 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.PredefinedUInt64RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 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.PredefinedUInt64RuleProto3 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.PredefinedUInt64RuleProto3 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.PredefinedUInt64RuleProto3 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.PredefinedUInt64RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedUInt64RuleProto3) - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedUInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - 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_PredefinedUInt64RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedUInt64RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedUInt64RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedUInt64RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedUInt64RuleProto3 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.PredefinedUInt64RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto3OrBuilder.java deleted file mode 100644 index 60fe5fc2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedUInt64RuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedUInt64RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedUInt64RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleEdition2023.java deleted file mode 100644 index 947ad4da..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleEdition2023.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023} - */ -public final class PredefinedWrappedBoolRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023) - PredefinedWrappedBoolRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedBoolRuleEdition2023.class.getName()); - } - // Use PredefinedWrappedBoolRuleEdition2023.newBuilder() to construct. - private PredefinedWrappedBoolRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedBoolRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.BoolValue val_; - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getVal() { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedBoolRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 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.PredefinedWrappedBoolRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 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.PredefinedWrappedBoolRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 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.PredefinedWrappedBoolRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 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.PredefinedWrappedBoolRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 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.PredefinedWrappedBoolRuleEdition2023 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.PredefinedWrappedBoolRuleEdition2023 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.PredefinedWrappedBoolRuleEdition2023 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.PredefinedWrappedBoolRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedBoolRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.BoolValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> valBuilder_; - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.BoolValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.BoolValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.BoolValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BoolValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BoolValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedBoolRuleEdition2023 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.PredefinedWrappedBoolRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleEdition2023OrBuilder.java deleted file mode 100644 index 3b9da1f6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedBoolRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedBoolRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.BoolValue getVal(); - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.BoolValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto2.java deleted file mode 100644 index 14689423..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto2.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2} - */ -public final class PredefinedWrappedBoolRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2) - PredefinedWrappedBoolRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedBoolRuleProto2.class.getName()); - } - // Use PredefinedWrappedBoolRuleProto2.newBuilder() to construct. - private PredefinedWrappedBoolRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedBoolRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.BoolValue val_; - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getVal() { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedBoolRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 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.PredefinedWrappedBoolRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 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.PredefinedWrappedBoolRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 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.PredefinedWrappedBoolRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 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.PredefinedWrappedBoolRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 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.PredefinedWrappedBoolRuleProto2 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.PredefinedWrappedBoolRuleProto2 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.PredefinedWrappedBoolRuleProto2 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.PredefinedWrappedBoolRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2) - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedBoolRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.BoolValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> valBuilder_; - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.BoolValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.BoolValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.BoolValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BoolValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BoolValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - } - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedBoolRuleProto2 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.PredefinedWrappedBoolRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto2OrBuilder.java deleted file mode 100644 index 9644c931..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto2OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedBoolRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.BoolValue getVal(); - /** - * optional .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.BoolValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto3.java deleted file mode 100644 index 129e245a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto3.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3} - */ -public final class PredefinedWrappedBoolRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3) - PredefinedWrappedBoolRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedBoolRuleProto3.class.getName()); - } - // Use PredefinedWrappedBoolRuleProto3.newBuilder() to construct. - private PredefinedWrappedBoolRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedBoolRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.BoolValue val_; - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getVal() { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedBoolRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 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.PredefinedWrappedBoolRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 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.PredefinedWrappedBoolRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 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.PredefinedWrappedBoolRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 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.PredefinedWrappedBoolRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 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.PredefinedWrappedBoolRuleProto3 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.PredefinedWrappedBoolRuleProto3 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.PredefinedWrappedBoolRuleProto3 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.PredefinedWrappedBoolRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3) - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBoolRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedBoolRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.BoolValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> valBuilder_; - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.BoolValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.BoolValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.BoolValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BoolValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BoolValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedBoolRuleProto3 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.PredefinedWrappedBoolRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto3OrBuilder.java deleted file mode 100644 index a1d19442..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto3OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedBoolRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedBoolRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.BoolValue getVal(); - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.BoolValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleEdition2023.java deleted file mode 100644 index dd4a4b20..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleEdition2023.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023} - */ -public final class PredefinedWrappedBytesRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023) - PredefinedWrappedBytesRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedBytesRuleEdition2023.class.getName()); - } - // Use PredefinedWrappedBytesRuleEdition2023.newBuilder() to construct. - private PredefinedWrappedBytesRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedBytesRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.BytesValue val_; - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.BytesValue getVal() { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.BytesValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedBytesRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 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.PredefinedWrappedBytesRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 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.PredefinedWrappedBytesRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 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.PredefinedWrappedBytesRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 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.PredefinedWrappedBytesRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 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.PredefinedWrappedBytesRuleEdition2023 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.PredefinedWrappedBytesRuleEdition2023 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.PredefinedWrappedBytesRuleEdition2023 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.PredefinedWrappedBytesRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedBytesRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.BytesValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> valBuilder_; - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.BytesValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.BytesValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.BytesValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.BytesValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.BytesValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BytesValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BytesValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedBytesRuleEdition2023 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.PredefinedWrappedBytesRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleEdition2023OrBuilder.java deleted file mode 100644 index ce8f0608..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedBytesRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedBytesRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.BytesValue getVal(); - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.BytesValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto2.java deleted file mode 100644 index f9d3bcf9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto2.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2} - */ -public final class PredefinedWrappedBytesRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2) - PredefinedWrappedBytesRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedBytesRuleProto2.class.getName()); - } - // Use PredefinedWrappedBytesRuleProto2.newBuilder() to construct. - private PredefinedWrappedBytesRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedBytesRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.BytesValue val_; - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.BytesValue getVal() { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.BytesValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedBytesRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 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.PredefinedWrappedBytesRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 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.PredefinedWrappedBytesRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 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.PredefinedWrappedBytesRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 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.PredefinedWrappedBytesRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 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.PredefinedWrappedBytesRuleProto2 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.PredefinedWrappedBytesRuleProto2 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.PredefinedWrappedBytesRuleProto2 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.PredefinedWrappedBytesRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2) - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedBytesRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.BytesValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> valBuilder_; - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.BytesValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.BytesValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.BytesValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.BytesValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.BytesValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BytesValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BytesValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - } - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedBytesRuleProto2 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.PredefinedWrappedBytesRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto2OrBuilder.java deleted file mode 100644 index 90dc8efb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto2OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedBytesRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.BytesValue getVal(); - /** - * optional .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.BytesValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto3.java deleted file mode 100644 index 9e765c4f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto3.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3} - */ -public final class PredefinedWrappedBytesRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3) - PredefinedWrappedBytesRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedBytesRuleProto3.class.getName()); - } - // Use PredefinedWrappedBytesRuleProto3.newBuilder() to construct. - private PredefinedWrappedBytesRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedBytesRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.BytesValue val_; - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.BytesValue getVal() { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.BytesValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedBytesRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 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.PredefinedWrappedBytesRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 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.PredefinedWrappedBytesRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 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.PredefinedWrappedBytesRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 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.PredefinedWrappedBytesRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 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.PredefinedWrappedBytesRuleProto3 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.PredefinedWrappedBytesRuleProto3 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.PredefinedWrappedBytesRuleProto3 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.PredefinedWrappedBytesRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3) - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedBytesRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedBytesRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.BytesValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> valBuilder_; - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.BytesValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.BytesValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.BytesValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.BytesValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.BytesValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BytesValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BytesValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedBytesRuleProto3 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.PredefinedWrappedBytesRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto3OrBuilder.java deleted file mode 100644 index d0d41058..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto3OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedBytesRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedBytesRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.BytesValue getVal(); - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.BytesValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleEdition2023.java deleted file mode 100644 index 190058d2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleEdition2023.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023} - */ -public final class PredefinedWrappedDoubleRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023) - PredefinedWrappedDoubleRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedDoubleRuleEdition2023.class.getName()); - } - // Use PredefinedWrappedDoubleRuleEdition2023.newBuilder() to construct. - private PredefinedWrappedDoubleRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedDoubleRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.DoubleValue val_; - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.DoubleValue getVal() { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedDoubleRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 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.PredefinedWrappedDoubleRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 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.PredefinedWrappedDoubleRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 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.PredefinedWrappedDoubleRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 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.PredefinedWrappedDoubleRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 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.PredefinedWrappedDoubleRuleEdition2023 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.PredefinedWrappedDoubleRuleEdition2023 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.PredefinedWrappedDoubleRuleEdition2023 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.PredefinedWrappedDoubleRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedDoubleRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.DoubleValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> valBuilder_; - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.DoubleValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.DoubleValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.DoubleValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.DoubleValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DoubleValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedDoubleRuleEdition2023 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.PredefinedWrappedDoubleRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleEdition2023OrBuilder.java deleted file mode 100644 index 0236639f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedDoubleRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.DoubleValue getVal(); - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto2.java deleted file mode 100644 index 9fb2a00c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto2.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2} - */ -public final class PredefinedWrappedDoubleRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2) - PredefinedWrappedDoubleRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedDoubleRuleProto2.class.getName()); - } - // Use PredefinedWrappedDoubleRuleProto2.newBuilder() to construct. - private PredefinedWrappedDoubleRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedDoubleRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.DoubleValue val_; - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.DoubleValue getVal() { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedDoubleRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 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.PredefinedWrappedDoubleRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 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.PredefinedWrappedDoubleRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 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.PredefinedWrappedDoubleRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 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.PredefinedWrappedDoubleRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 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.PredefinedWrappedDoubleRuleProto2 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.PredefinedWrappedDoubleRuleProto2 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.PredefinedWrappedDoubleRuleProto2 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.PredefinedWrappedDoubleRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2) - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedDoubleRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.DoubleValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> valBuilder_; - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.DoubleValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.DoubleValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.DoubleValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.DoubleValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DoubleValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - } - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedDoubleRuleProto2 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.PredefinedWrappedDoubleRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto2OrBuilder.java deleted file mode 100644 index 07191e67..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto2OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedDoubleRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.DoubleValue getVal(); - /** - * optional .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto3.java deleted file mode 100644 index e0cd1569..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto3.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3} - */ -public final class PredefinedWrappedDoubleRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3) - PredefinedWrappedDoubleRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedDoubleRuleProto3.class.getName()); - } - // Use PredefinedWrappedDoubleRuleProto3.newBuilder() to construct. - private PredefinedWrappedDoubleRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedDoubleRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.DoubleValue val_; - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.DoubleValue getVal() { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedDoubleRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 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.PredefinedWrappedDoubleRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 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.PredefinedWrappedDoubleRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 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.PredefinedWrappedDoubleRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 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.PredefinedWrappedDoubleRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 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.PredefinedWrappedDoubleRuleProto3 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.PredefinedWrappedDoubleRuleProto3 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.PredefinedWrappedDoubleRuleProto3 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.PredefinedWrappedDoubleRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3) - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedDoubleRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedDoubleRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.DoubleValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> valBuilder_; - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.DoubleValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.DoubleValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.DoubleValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.DoubleValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DoubleValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedDoubleRuleProto3 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.PredefinedWrappedDoubleRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto3OrBuilder.java deleted file mode 100644 index a11abc2a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto3OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedDoubleRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedDoubleRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.DoubleValue getVal(); - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleEdition2023.java deleted file mode 100644 index bdf3b03f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleEdition2023.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023} - */ -public final class PredefinedWrappedFloatRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023) - PredefinedWrappedFloatRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedFloatRuleEdition2023.class.getName()); - } - // Use PredefinedWrappedFloatRuleEdition2023.newBuilder() to construct. - private PredefinedWrappedFloatRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedFloatRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.FloatValue val_; - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.FloatValue getVal() { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedFloatRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 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.PredefinedWrappedFloatRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 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.PredefinedWrappedFloatRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 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.PredefinedWrappedFloatRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 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.PredefinedWrappedFloatRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 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.PredefinedWrappedFloatRuleEdition2023 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.PredefinedWrappedFloatRuleEdition2023 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.PredefinedWrappedFloatRuleEdition2023 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.PredefinedWrappedFloatRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedFloatRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.FloatValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> valBuilder_; - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.FloatValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.FloatValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.FloatValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.FloatValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.FloatValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedFloatRuleEdition2023 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.PredefinedWrappedFloatRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleEdition2023OrBuilder.java deleted file mode 100644 index 04b03727..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedFloatRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedFloatRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.FloatValue getVal(); - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.FloatValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto2.java deleted file mode 100644 index 6f7d0e5b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto2.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2} - */ -public final class PredefinedWrappedFloatRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2) - PredefinedWrappedFloatRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedFloatRuleProto2.class.getName()); - } - // Use PredefinedWrappedFloatRuleProto2.newBuilder() to construct. - private PredefinedWrappedFloatRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedFloatRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.FloatValue val_; - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.FloatValue getVal() { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedFloatRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 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.PredefinedWrappedFloatRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 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.PredefinedWrappedFloatRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 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.PredefinedWrappedFloatRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 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.PredefinedWrappedFloatRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 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.PredefinedWrappedFloatRuleProto2 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.PredefinedWrappedFloatRuleProto2 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.PredefinedWrappedFloatRuleProto2 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.PredefinedWrappedFloatRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2) - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedFloatRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.FloatValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> valBuilder_; - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.FloatValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.FloatValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.FloatValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.FloatValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.FloatValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - } - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedFloatRuleProto2 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.PredefinedWrappedFloatRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto2OrBuilder.java deleted file mode 100644 index eba54e99..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto2OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedFloatRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.FloatValue getVal(); - /** - * optional .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.FloatValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto3.java deleted file mode 100644 index 68dbfeaa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto3.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3} - */ -public final class PredefinedWrappedFloatRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3) - PredefinedWrappedFloatRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedFloatRuleProto3.class.getName()); - } - // Use PredefinedWrappedFloatRuleProto3.newBuilder() to construct. - private PredefinedWrappedFloatRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedFloatRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.FloatValue val_; - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.FloatValue getVal() { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedFloatRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 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.PredefinedWrappedFloatRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 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.PredefinedWrappedFloatRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 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.PredefinedWrappedFloatRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 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.PredefinedWrappedFloatRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 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.PredefinedWrappedFloatRuleProto3 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.PredefinedWrappedFloatRuleProto3 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.PredefinedWrappedFloatRuleProto3 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.PredefinedWrappedFloatRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3) - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedFloatRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedFloatRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.FloatValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> valBuilder_; - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.FloatValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.FloatValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.FloatValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.FloatValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.FloatValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedFloatRuleProto3 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.PredefinedWrappedFloatRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto3OrBuilder.java deleted file mode 100644 index e6a07eb3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto3OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedFloatRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedFloatRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.FloatValue getVal(); - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.FloatValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleEdition2023.java deleted file mode 100644 index 8bf4bdff..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleEdition2023.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023} - */ -public final class PredefinedWrappedInt32RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023) - PredefinedWrappedInt32RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedInt32RuleEdition2023.class.getName()); - } - // Use PredefinedWrappedInt32RuleEdition2023.newBuilder() to construct. - private PredefinedWrappedInt32RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedInt32RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Int32Value val_; - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Int32Value getVal() { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedInt32RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 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.PredefinedWrappedInt32RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 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.PredefinedWrappedInt32RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 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.PredefinedWrappedInt32RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 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.PredefinedWrappedInt32RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 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.PredefinedWrappedInt32RuleEdition2023 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.PredefinedWrappedInt32RuleEdition2023 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.PredefinedWrappedInt32RuleEdition2023 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.PredefinedWrappedInt32RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Int32Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Int32Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Int32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Int32Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Int32Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Int32Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int32Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedInt32RuleEdition2023 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.PredefinedWrappedInt32RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleEdition2023OrBuilder.java deleted file mode 100644 index 6af1a0ad..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedInt32RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedInt32RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Int32Value getVal(); - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto2.java deleted file mode 100644 index 87e71e99..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto2.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2} - */ -public final class PredefinedWrappedInt32RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2) - PredefinedWrappedInt32RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedInt32RuleProto2.class.getName()); - } - // Use PredefinedWrappedInt32RuleProto2.newBuilder() to construct. - private PredefinedWrappedInt32RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedInt32RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Int32Value val_; - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Int32Value getVal() { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedInt32RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 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.PredefinedWrappedInt32RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 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.PredefinedWrappedInt32RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 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.PredefinedWrappedInt32RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 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.PredefinedWrappedInt32RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 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.PredefinedWrappedInt32RuleProto2 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.PredefinedWrappedInt32RuleProto2 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.PredefinedWrappedInt32RuleProto2 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.PredefinedWrappedInt32RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2) - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedInt32RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Int32Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> valBuilder_; - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Int32Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Int32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Int32Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Int32Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Int32Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int32Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - } - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedInt32RuleProto2 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.PredefinedWrappedInt32RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto2OrBuilder.java deleted file mode 100644 index 3cb3bd65..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto2OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedInt32RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Int32Value getVal(); - /** - * optional .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto3.java deleted file mode 100644 index 03a2980a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto3.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3} - */ -public final class PredefinedWrappedInt32RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3) - PredefinedWrappedInt32RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedInt32RuleProto3.class.getName()); - } - // Use PredefinedWrappedInt32RuleProto3.newBuilder() to construct. - private PredefinedWrappedInt32RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedInt32RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Int32Value val_; - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Int32Value getVal() { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedInt32RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 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.PredefinedWrappedInt32RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 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.PredefinedWrappedInt32RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 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.PredefinedWrappedInt32RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 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.PredefinedWrappedInt32RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 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.PredefinedWrappedInt32RuleProto3 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.PredefinedWrappedInt32RuleProto3 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.PredefinedWrappedInt32RuleProto3 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.PredefinedWrappedInt32RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3) - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedInt32RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Int32Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Int32Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Int32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Int32Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Int32Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Int32Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int32Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedInt32RuleProto3 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.PredefinedWrappedInt32RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto3OrBuilder.java deleted file mode 100644 index f6294878..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto3OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedInt32RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedInt32RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Int32Value getVal(); - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleEdition2023.java deleted file mode 100644 index 4ab23d64..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleEdition2023.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023} - */ -public final class PredefinedWrappedInt64RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023) - PredefinedWrappedInt64RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedInt64RuleEdition2023.class.getName()); - } - // Use PredefinedWrappedInt64RuleEdition2023.newBuilder() to construct. - private PredefinedWrappedInt64RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedInt64RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Int64Value val_; - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Int64Value getVal() { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedInt64RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 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.PredefinedWrappedInt64RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 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.PredefinedWrappedInt64RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 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.PredefinedWrappedInt64RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 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.PredefinedWrappedInt64RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 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.PredefinedWrappedInt64RuleEdition2023 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.PredefinedWrappedInt64RuleEdition2023 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.PredefinedWrappedInt64RuleEdition2023 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.PredefinedWrappedInt64RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Int64Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Int64Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Int64Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Int64Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Int64Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int64Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedInt64RuleEdition2023 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.PredefinedWrappedInt64RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleEdition2023OrBuilder.java deleted file mode 100644 index ba320eb4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedInt64RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedInt64RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Int64Value getVal(); - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto2.java deleted file mode 100644 index a493d23d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto2.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2} - */ -public final class PredefinedWrappedInt64RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2) - PredefinedWrappedInt64RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedInt64RuleProto2.class.getName()); - } - // Use PredefinedWrappedInt64RuleProto2.newBuilder() to construct. - private PredefinedWrappedInt64RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedInt64RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Int64Value val_; - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Int64Value getVal() { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedInt64RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 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.PredefinedWrappedInt64RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 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.PredefinedWrappedInt64RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 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.PredefinedWrappedInt64RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 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.PredefinedWrappedInt64RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 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.PredefinedWrappedInt64RuleProto2 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.PredefinedWrappedInt64RuleProto2 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.PredefinedWrappedInt64RuleProto2 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.PredefinedWrappedInt64RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2) - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedInt64RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Int64Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> valBuilder_; - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Int64Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Int64Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Int64Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Int64Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int64Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - } - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedInt64RuleProto2 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.PredefinedWrappedInt64RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto2OrBuilder.java deleted file mode 100644 index 17a5f3bc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto2OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedInt64RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Int64Value getVal(); - /** - * optional .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto3.java deleted file mode 100644 index bbbcc319..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto3.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3} - */ -public final class PredefinedWrappedInt64RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3) - PredefinedWrappedInt64RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedInt64RuleProto3.class.getName()); - } - // Use PredefinedWrappedInt64RuleProto3.newBuilder() to construct. - private PredefinedWrappedInt64RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedInt64RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Int64Value val_; - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Int64Value getVal() { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedInt64RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 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.PredefinedWrappedInt64RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 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.PredefinedWrappedInt64RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 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.PredefinedWrappedInt64RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 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.PredefinedWrappedInt64RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 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.PredefinedWrappedInt64RuleProto3 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.PredefinedWrappedInt64RuleProto3 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.PredefinedWrappedInt64RuleProto3 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.PredefinedWrappedInt64RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3) - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedInt64RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Int64Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Int64Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Int64Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Int64Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Int64Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int64Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedInt64RuleProto3 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.PredefinedWrappedInt64RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto3OrBuilder.java deleted file mode 100644 index a4293e47..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto3OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedInt64RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedInt64RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Int64Value getVal(); - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleEdition2023.java deleted file mode 100644 index e537fceb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleEdition2023.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023} - */ -public final class PredefinedWrappedStringRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023) - PredefinedWrappedStringRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedStringRuleEdition2023.class.getName()); - } - // Use PredefinedWrappedStringRuleEdition2023.newBuilder() to construct. - private PredefinedWrappedStringRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedStringRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.StringValue val_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.StringValue getVal() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedStringRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 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.PredefinedWrappedStringRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 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.PredefinedWrappedStringRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 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.PredefinedWrappedStringRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 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.PredefinedWrappedStringRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 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.PredefinedWrappedStringRuleEdition2023 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.PredefinedWrappedStringRuleEdition2023 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.PredefinedWrappedStringRuleEdition2023 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.PredefinedWrappedStringRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023) - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedStringRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.StringValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valBuilder_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.StringValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.StringValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.StringValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedStringRuleEdition2023 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.PredefinedWrappedStringRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleEdition2023OrBuilder.java deleted file mode 100644 index de1836d9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedStringRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedStringRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.StringValue getVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.StringValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto2.java deleted file mode 100644 index 6d4854d1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto2.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2} - */ -public final class PredefinedWrappedStringRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2) - PredefinedWrappedStringRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedStringRuleProto2.class.getName()); - } - // Use PredefinedWrappedStringRuleProto2.newBuilder() to construct. - private PredefinedWrappedStringRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedStringRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.StringValue val_; - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.StringValue getVal() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedStringRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 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.PredefinedWrappedStringRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 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.PredefinedWrappedStringRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 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.PredefinedWrappedStringRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 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.PredefinedWrappedStringRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 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.PredefinedWrappedStringRuleProto2 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.PredefinedWrappedStringRuleProto2 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.PredefinedWrappedStringRuleProto2 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.PredefinedWrappedStringRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2) - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedStringRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.StringValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valBuilder_; - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.StringValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.StringValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.StringValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - } - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedStringRuleProto2 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.PredefinedWrappedStringRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto2OrBuilder.java deleted file mode 100644 index 27ff3085..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto2OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedStringRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedStringRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.StringValue getVal(); - /** - * optional .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.StringValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto3.java deleted file mode 100644 index 1f5e0071..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto3.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3} - */ -public final class PredefinedWrappedStringRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3) - PredefinedWrappedStringRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedStringRuleProto3.class.getName()); - } - // Use PredefinedWrappedStringRuleProto3.newBuilder() to construct. - private PredefinedWrappedStringRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedStringRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.StringValue val_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.StringValue getVal() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedStringRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 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.PredefinedWrappedStringRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 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.PredefinedWrappedStringRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 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.PredefinedWrappedStringRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 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.PredefinedWrappedStringRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 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.PredefinedWrappedStringRuleProto3 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.PredefinedWrappedStringRuleProto3 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.PredefinedWrappedStringRuleProto3 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.PredefinedWrappedStringRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3) - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedStringRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedStringRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.StringValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valBuilder_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.StringValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.StringValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.StringValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedStringRuleProto3 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.PredefinedWrappedStringRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto3OrBuilder.java deleted file mode 100644 index a68b5dca..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto3OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedStringRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedStringRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.StringValue getVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.StringValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleEdition2023.java deleted file mode 100644 index a2c19fe8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleEdition2023.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023} - */ -public final class PredefinedWrappedUInt32RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023) - PredefinedWrappedUInt32RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedUInt32RuleEdition2023.class.getName()); - } - // Use PredefinedWrappedUInt32RuleEdition2023.newBuilder() to construct. - private PredefinedWrappedUInt32RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedUInt32RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.UInt32Value val_; - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.UInt32Value getVal() { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedUInt32RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 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.PredefinedWrappedUInt32RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 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.PredefinedWrappedUInt32RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 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.PredefinedWrappedUInt32RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 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.PredefinedWrappedUInt32RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 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.PredefinedWrappedUInt32RuleEdition2023 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.PredefinedWrappedUInt32RuleEdition2023 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.PredefinedWrappedUInt32RuleEdition2023 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.PredefinedWrappedUInt32RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedUInt32RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.UInt32Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.UInt32Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.UInt32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.UInt32Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedUInt32RuleEdition2023 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.PredefinedWrappedUInt32RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleEdition2023OrBuilder.java deleted file mode 100644 index a39b95fb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedUInt32RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.UInt32Value getVal(); - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto2.java deleted file mode 100644 index 2301b142..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto2.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2} - */ -public final class PredefinedWrappedUInt32RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2) - PredefinedWrappedUInt32RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedUInt32RuleProto2.class.getName()); - } - // Use PredefinedWrappedUInt32RuleProto2.newBuilder() to construct. - private PredefinedWrappedUInt32RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedUInt32RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.UInt32Value val_; - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.UInt32Value getVal() { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedUInt32RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 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.PredefinedWrappedUInt32RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 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.PredefinedWrappedUInt32RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 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.PredefinedWrappedUInt32RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 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.PredefinedWrappedUInt32RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 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.PredefinedWrappedUInt32RuleProto2 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.PredefinedWrappedUInt32RuleProto2 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.PredefinedWrappedUInt32RuleProto2 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.PredefinedWrappedUInt32RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2) - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedUInt32RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.UInt32Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> valBuilder_; - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.UInt32Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.UInt32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.UInt32Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - } - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedUInt32RuleProto2 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.PredefinedWrappedUInt32RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto2OrBuilder.java deleted file mode 100644 index 80548c0b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto2OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedUInt32RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.UInt32Value getVal(); - /** - * optional .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto3.java deleted file mode 100644 index ca312ea0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto3.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3} - */ -public final class PredefinedWrappedUInt32RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3) - PredefinedWrappedUInt32RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedUInt32RuleProto3.class.getName()); - } - // Use PredefinedWrappedUInt32RuleProto3.newBuilder() to construct. - private PredefinedWrappedUInt32RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedUInt32RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.UInt32Value val_; - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.UInt32Value getVal() { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedUInt32RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 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.PredefinedWrappedUInt32RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 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.PredefinedWrappedUInt32RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 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.PredefinedWrappedUInt32RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 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.PredefinedWrappedUInt32RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 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.PredefinedWrappedUInt32RuleProto3 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.PredefinedWrappedUInt32RuleProto3 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.PredefinedWrappedUInt32RuleProto3 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.PredefinedWrappedUInt32RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3) - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt32RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedUInt32RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.UInt32Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.UInt32Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.UInt32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.UInt32Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedUInt32RuleProto3 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.PredefinedWrappedUInt32RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto3OrBuilder.java deleted file mode 100644 index 74019baa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto3OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedUInt32RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedUInt32RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.UInt32Value getVal(); - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleEdition2023.java deleted file mode 100644 index 4a122883..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleEdition2023.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023} - */ -public final class PredefinedWrappedUInt64RuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023) - PredefinedWrappedUInt64RuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedUInt64RuleEdition2023.class.getName()); - } - // Use PredefinedWrappedUInt64RuleEdition2023.newBuilder() to construct. - private PredefinedWrappedUInt64RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedUInt64RuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.UInt64Value val_; - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.UInt64Value getVal() { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedUInt64RuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 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.PredefinedWrappedUInt64RuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 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.PredefinedWrappedUInt64RuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 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.PredefinedWrappedUInt64RuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 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.PredefinedWrappedUInt64RuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 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.PredefinedWrappedUInt64RuleEdition2023 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.PredefinedWrappedUInt64RuleEdition2023 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.PredefinedWrappedUInt64RuleEdition2023 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.PredefinedWrappedUInt64RuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023) - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedUInt64RuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 build() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.UInt64Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.UInt64Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.UInt64Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.UInt64Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.UInt64Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023) - private static final build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedUInt64RuleEdition2023 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.PredefinedWrappedUInt64RuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleEdition2023OrBuilder.java deleted file mode 100644 index da1bb29b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleEdition2023OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedUInt64RuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.UInt64Value getVal(); - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto2.java deleted file mode 100644 index e977606c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto2.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2} - */ -public final class PredefinedWrappedUInt64RuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2) - PredefinedWrappedUInt64RuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedUInt64RuleProto2.class.getName()); - } - // Use PredefinedWrappedUInt64RuleProto2.newBuilder() to construct. - private PredefinedWrappedUInt64RuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedUInt64RuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.UInt64Value val_; - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.UInt64Value getVal() { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedUInt64RuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 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.PredefinedWrappedUInt64RuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 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.PredefinedWrappedUInt64RuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 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.PredefinedWrappedUInt64RuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 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.PredefinedWrappedUInt64RuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 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.PredefinedWrappedUInt64RuleProto2 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.PredefinedWrappedUInt64RuleProto2 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.PredefinedWrappedUInt64RuleProto2 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.PredefinedWrappedUInt64RuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2) - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedUInt64RuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 build() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.UInt64Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> valBuilder_; - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.UInt64Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.UInt64Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.UInt64Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.UInt64Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - } - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2) - private static final build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedUInt64RuleProto2 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.PredefinedWrappedUInt64RuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto2OrBuilder.java deleted file mode 100644 index c3bfc8a5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto2OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedUInt64RuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.UInt64Value getVal(); - /** - * optional .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto3.java deleted file mode 100644 index 2cadd9f8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto3.java +++ /dev/null @@ -1,558 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3} - */ -public final class PredefinedWrappedUInt64RuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3) - PredefinedWrappedUInt64RuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedWrappedUInt64RuleProto3.class.getName()); - } - // Use PredefinedWrappedUInt64RuleProto3.newBuilder() to construct. - private PredefinedWrappedUInt64RuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedWrappedUInt64RuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.UInt64Value val_; - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.UInt64Value getVal() { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.PredefinedWrappedUInt64RuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 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.PredefinedWrappedUInt64RuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 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.PredefinedWrappedUInt64RuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 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.PredefinedWrappedUInt64RuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 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.PredefinedWrappedUInt64RuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 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.PredefinedWrappedUInt64RuleProto3 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.PredefinedWrappedUInt64RuleProto3 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.PredefinedWrappedUInt64RuleProto3 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.PredefinedWrappedUInt64RuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3) - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedWrappedUInt64RuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - 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_PredefinedWrappedUInt64RuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 build() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 buildPartial() { - build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 other) { - if (other == build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.UInt64Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.UInt64Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.UInt64Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.UInt64Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.UInt64Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3) - private static final build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3(); - } - - public static build.buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedWrappedUInt64RuleProto3 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.PredefinedWrappedUInt64RuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto3OrBuilder.java deleted file mode 100644 index 9a5975fe..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto3OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface PredefinedWrappedUInt64RuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedWrappedUInt64RuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.UInt64Value getVal(); - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreAlways.java deleted file mode 100644 index 67e46e28..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreAlways.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapIgnoreAlways} - */ -public final class Proto2MapIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapIgnoreAlways) - Proto2MapIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapIgnoreAlways.class.getName()); - } - // Use Proto2MapIgnoreAlways.newBuilder() to construct. - private Proto2MapIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2MapIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapIgnoreAlways other = (build.buf.validate.conformance.cases.Proto2MapIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreAlways 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.Proto2MapIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreAlways 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.Proto2MapIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreAlways 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.Proto2MapIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreAlways 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.Proto2MapIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreAlways 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.Proto2MapIgnoreAlways 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.Proto2MapIgnoreAlways 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.Proto2MapIgnoreAlways 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.Proto2MapIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapIgnoreAlways) - build.buf.validate.conformance.cases.Proto2MapIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2MapIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto2MapIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto2MapIgnoreAlways result = new build.buf.validate.conformance.cases.Proto2MapIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto2MapIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto2MapIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapIgnoreAlways 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.Proto2MapIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 0305be4d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefault.java deleted file mode 100644 index 0764c711..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefault.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapIgnoreDefault} - */ -public final class Proto2MapIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapIgnoreDefault) - Proto2MapIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapIgnoreDefault.class.getName()); - } - // Use Proto2MapIgnoreDefault.newBuilder() to construct. - private Proto2MapIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2MapIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapIgnoreDefault other = (build.buf.validate.conformance.cases.Proto2MapIgnoreDefault) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreDefault 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.Proto2MapIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreDefault 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.Proto2MapIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreDefault 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.Proto2MapIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreDefault 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.Proto2MapIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreDefault 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.Proto2MapIgnoreDefault 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.Proto2MapIgnoreDefault 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.Proto2MapIgnoreDefault 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.Proto2MapIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapIgnoreDefault) - build.buf.validate.conformance.cases.Proto2MapIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2MapIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto2MapIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2MapIgnoreDefault result = new build.buf.validate.conformance.cases.Proto2MapIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2MapIgnoreDefault.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto2MapIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapIgnoreDefault 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.Proto2MapIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefaultOrBuilder.java deleted file mode 100644 index 332fd1be..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmpty.java deleted file mode 100644 index 8d415f98..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmpty.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapIgnoreEmpty} - */ -public final class Proto2MapIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapIgnoreEmpty) - Proto2MapIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapIgnoreEmpty.class.getName()); - } - // Use Proto2MapIgnoreEmpty.newBuilder() to construct. - private Proto2MapIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty 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.Proto2MapIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty 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.Proto2MapIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty 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.Proto2MapIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty 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.Proto2MapIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty 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.Proto2MapIgnoreEmpty 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.Proto2MapIgnoreEmpty 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.Proto2MapIgnoreEmpty 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.Proto2MapIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapIgnoreEmpty) - build.buf.validate.conformance.cases.Proto2MapIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapIgnoreEmpty 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.Proto2MapIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmptyOrBuilder.java deleted file mode 100644 index da0694b9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecified.java deleted file mode 100644 index d7fedb5a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecified.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapIgnoreUnspecified} - */ -public final class Proto2MapIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapIgnoreUnspecified) - Proto2MapIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapIgnoreUnspecified.class.getName()); - } - // Use Proto2MapIgnoreUnspecified.newBuilder() to construct. - private Proto2MapIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified 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.Proto2MapIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified 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.Proto2MapIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified 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.Proto2MapIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified 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.Proto2MapIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified 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.Proto2MapIgnoreUnspecified 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.Proto2MapIgnoreUnspecified 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.Proto2MapIgnoreUnspecified 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.Proto2MapIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto2MapIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapIgnoreUnspecified 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.Proto2MapIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index ca436043..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreAlways.java deleted file mode 100644 index 3b56ac80..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreAlways.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways} - */ -public final class Proto2MapKeyIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways) - Proto2MapKeyIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapKeyIgnoreAlways.class.getName()); - } - // Use Proto2MapKeyIgnoreAlways.newBuilder() to construct. - private Proto2MapKeyIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapKeyIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapKeyIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways other = (build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways 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.Proto2MapKeyIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways 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.Proto2MapKeyIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways 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.Proto2MapKeyIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways 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.Proto2MapKeyIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways 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.Proto2MapKeyIgnoreAlways 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.Proto2MapKeyIgnoreAlways 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.Proto2MapKeyIgnoreAlways 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.Proto2MapKeyIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways) - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways result = new build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapKeyIgnoreAlways 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.Proto2MapKeyIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreAlwaysOrBuilder.java deleted file mode 100644 index c5d295e9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapKeyIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapKeyIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefault.java deleted file mode 100644 index a03f5601..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefault.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault} - */ -public final class Proto2MapKeyIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault) - Proto2MapKeyIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapKeyIgnoreDefault.class.getName()); - } - // Use Proto2MapKeyIgnoreDefault.newBuilder() to construct. - private Proto2MapKeyIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapKeyIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapKeyIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault other = (build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault 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.Proto2MapKeyIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault 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.Proto2MapKeyIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault 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.Proto2MapKeyIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault 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.Proto2MapKeyIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault 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.Proto2MapKeyIgnoreDefault 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.Proto2MapKeyIgnoreDefault 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.Proto2MapKeyIgnoreDefault 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.Proto2MapKeyIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault) - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault result = new build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapKeyIgnoreDefault 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.Proto2MapKeyIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefaultOrBuilder.java deleted file mode 100644 index e0a1281f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapKeyIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapKeyIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmpty.java deleted file mode 100644 index 706bd691..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmpty.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty} - */ -public final class Proto2MapKeyIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty) - Proto2MapKeyIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapKeyIgnoreEmpty.class.getName()); - } - // Use Proto2MapKeyIgnoreEmpty.newBuilder() to construct. - private Proto2MapKeyIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapKeyIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapKeyIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty 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.Proto2MapKeyIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty 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.Proto2MapKeyIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty 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.Proto2MapKeyIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty 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.Proto2MapKeyIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty 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.Proto2MapKeyIgnoreEmpty 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.Proto2MapKeyIgnoreEmpty 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.Proto2MapKeyIgnoreEmpty 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.Proto2MapKeyIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty) - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapKeyIgnoreEmpty 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.Proto2MapKeyIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmptyOrBuilder.java deleted file mode 100644 index 93dafef3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapKeyIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapKeyIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecified.java deleted file mode 100644 index ee1c3cbb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecified.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified} - */ -public final class Proto2MapKeyIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified) - Proto2MapKeyIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapKeyIgnoreUnspecified.class.getName()); - } - // Use Proto2MapKeyIgnoreUnspecified.newBuilder() to construct. - private Proto2MapKeyIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapKeyIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapKeyIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified 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.Proto2MapKeyIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified 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.Proto2MapKeyIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified 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.Proto2MapKeyIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified 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.Proto2MapKeyIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified 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.Proto2MapKeyIgnoreUnspecified 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.Proto2MapKeyIgnoreUnspecified 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.Proto2MapKeyIgnoreUnspecified 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.Proto2MapKeyIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapKeyIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapKeyIgnoreUnspecified 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.Proto2MapKeyIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 8dd2b738..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapKeyIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapKeyIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapKeyIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreAlways.java deleted file mode 100644 index 6da6dfc8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreAlways.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapValueIgnoreAlways} - */ -public final class Proto2MapValueIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapValueIgnoreAlways) - Proto2MapValueIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapValueIgnoreAlways.class.getName()); - } - // Use Proto2MapValueIgnoreAlways.newBuilder() to construct. - private Proto2MapValueIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapValueIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapValueIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways other = (build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways 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.Proto2MapValueIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways 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.Proto2MapValueIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways 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.Proto2MapValueIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways 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.Proto2MapValueIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways 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.Proto2MapValueIgnoreAlways 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.Proto2MapValueIgnoreAlways 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.Proto2MapValueIgnoreAlways 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.Proto2MapValueIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapValueIgnoreAlways) - build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways result = new build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapValueIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapValueIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapValueIgnoreAlways 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.Proto2MapValueIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreAlwaysOrBuilder.java deleted file mode 100644 index f6577c70..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapValueIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapValueIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefault.java deleted file mode 100644 index 3d715a66..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefault.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapValueIgnoreDefault} - */ -public final class Proto2MapValueIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapValueIgnoreDefault) - Proto2MapValueIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapValueIgnoreDefault.class.getName()); - } - // Use Proto2MapValueIgnoreDefault.newBuilder() to construct. - private Proto2MapValueIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapValueIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapValueIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault other = (build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault 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.Proto2MapValueIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault 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.Proto2MapValueIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault 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.Proto2MapValueIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault 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.Proto2MapValueIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault 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.Proto2MapValueIgnoreDefault 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.Proto2MapValueIgnoreDefault 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.Proto2MapValueIgnoreDefault 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.Proto2MapValueIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapValueIgnoreDefault) - build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault result = new build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapValueIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapValueIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapValueIgnoreDefault 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.Proto2MapValueIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefaultOrBuilder.java deleted file mode 100644 index 0083eb4f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapValueIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapValueIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmpty.java deleted file mode 100644 index 4e87d66b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmpty.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty} - */ -public final class Proto2MapValueIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty) - Proto2MapValueIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapValueIgnoreEmpty.class.getName()); - } - // Use Proto2MapValueIgnoreEmpty.newBuilder() to construct. - private Proto2MapValueIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapValueIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapValueIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty 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.Proto2MapValueIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty 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.Proto2MapValueIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty 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.Proto2MapValueIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty 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.Proto2MapValueIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty 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.Proto2MapValueIgnoreEmpty 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.Proto2MapValueIgnoreEmpty 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.Proto2MapValueIgnoreEmpty 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.Proto2MapValueIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty) - build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapValueIgnoreEmpty 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.Proto2MapValueIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmptyOrBuilder.java deleted file mode 100644 index 5e639ca5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapValueIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapValueIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecified.java deleted file mode 100644 index c165b6c1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecified.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified} - */ -public final class Proto2MapValueIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified) - Proto2MapValueIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MapValueIgnoreUnspecified.class.getName()); - } - // Use Proto2MapValueIgnoreUnspecified.newBuilder() to construct. - private Proto2MapValueIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MapValueIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto2MapValueIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified 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.Proto2MapValueIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified 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.Proto2MapValueIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified 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.Proto2MapValueIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified 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.Proto2MapValueIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified 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.Proto2MapValueIgnoreUnspecified 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.Proto2MapValueIgnoreUnspecified 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.Proto2MapValueIgnoreUnspecified 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.Proto2MapValueIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MapValueIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MapValueIgnoreUnspecified 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.Proto2MapValueIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 4476abe5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MapValueIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MapValueIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MapValueIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreAlways.java deleted file mode 100644 index 15a9b84f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreAlways.java +++ /dev/null @@ -1,1100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways} - */ -public final class Proto2MessageOptionalIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways) - Proto2MessageOptionalIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MessageOptionalIgnoreAlways.class.getName()); - } - // Use Proto2MessageOptionalIgnoreAlways.newBuilder() to construct. - private Proto2MessageOptionalIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MessageOptionalIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto2MessageOptionalIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg 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.Proto2MessageOptionalIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg 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.Proto2MessageOptionalIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg 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.Proto2MessageOptionalIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg 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.Proto2MessageOptionalIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg 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.Proto2MessageOptionalIgnoreAlways.Msg 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.Proto2MessageOptionalIgnoreAlways.Msg 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.Proto2MessageOptionalIgnoreAlways.Msg 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.Proto2MessageOptionalIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg) - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto2MessageOptionalIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val_; - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto2MessageOptionalIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways other = (build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways 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.Proto2MessageOptionalIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways 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.Proto2MessageOptionalIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways 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.Proto2MessageOptionalIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways 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.Proto2MessageOptionalIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways 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.Proto2MessageOptionalIgnoreAlways 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.Proto2MessageOptionalIgnoreAlways 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.Proto2MessageOptionalIgnoreAlways 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.Proto2MessageOptionalIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways) - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways result = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MessageOptionalIgnoreAlways 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.Proto2MessageOptionalIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreAlwaysOrBuilder.java deleted file mode 100644 index e0e6b407..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MessageOptionalIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefault.java deleted file mode 100644 index b21d43f9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefault.java +++ /dev/null @@ -1,1100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault} - */ -public final class Proto2MessageOptionalIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault) - Proto2MessageOptionalIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MessageOptionalIgnoreDefault.class.getName()); - } - // Use Proto2MessageOptionalIgnoreDefault.newBuilder() to construct. - private Proto2MessageOptionalIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MessageOptionalIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto2MessageOptionalIgnoreDefault.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg other = (build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg 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.Proto2MessageOptionalIgnoreDefault.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg 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.Proto2MessageOptionalIgnoreDefault.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg 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.Proto2MessageOptionalIgnoreDefault.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg 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.Proto2MessageOptionalIgnoreDefault.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg 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.Proto2MessageOptionalIgnoreDefault.Msg 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.Proto2MessageOptionalIgnoreDefault.Msg 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.Proto2MessageOptionalIgnoreDefault.Msg 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.Proto2MessageOptionalIgnoreDefault.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg) - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg build() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg result = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg) - private static final build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto2MessageOptionalIgnoreDefault.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val_; - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto2MessageOptionalIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault other = (build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault 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.Proto2MessageOptionalIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault 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.Proto2MessageOptionalIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault 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.Proto2MessageOptionalIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault 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.Proto2MessageOptionalIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault 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.Proto2MessageOptionalIgnoreDefault 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.Proto2MessageOptionalIgnoreDefault 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.Proto2MessageOptionalIgnoreDefault 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.Proto2MessageOptionalIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault) - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault result = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MessageOptionalIgnoreDefault 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.Proto2MessageOptionalIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefaultOrBuilder.java deleted file mode 100644 index 50ac4558..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MessageOptionalIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreDefault.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmpty.java deleted file mode 100644 index 2535e4fb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmpty.java +++ /dev/null @@ -1,1100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty} - */ -public final class Proto2MessageOptionalIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty) - Proto2MessageOptionalIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MessageOptionalIgnoreEmpty.class.getName()); - } - // Use Proto2MessageOptionalIgnoreEmpty.newBuilder() to construct. - private Proto2MessageOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MessageOptionalIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto2MessageOptionalIgnoreEmpty.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg other = (build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg 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.Proto2MessageOptionalIgnoreEmpty.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg 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.Proto2MessageOptionalIgnoreEmpty.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg 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.Proto2MessageOptionalIgnoreEmpty.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg 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.Proto2MessageOptionalIgnoreEmpty.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg 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.Proto2MessageOptionalIgnoreEmpty.Msg 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.Proto2MessageOptionalIgnoreEmpty.Msg 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.Proto2MessageOptionalIgnoreEmpty.Msg 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.Proto2MessageOptionalIgnoreEmpty.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg) - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg build() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg result = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg) - private static final build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto2MessageOptionalIgnoreEmpty.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val_; - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto2MessageOptionalIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty 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.Proto2MessageOptionalIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty 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.Proto2MessageOptionalIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty 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.Proto2MessageOptionalIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty 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.Proto2MessageOptionalIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty 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.Proto2MessageOptionalIgnoreEmpty 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.Proto2MessageOptionalIgnoreEmpty 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.Proto2MessageOptionalIgnoreEmpty 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.Proto2MessageOptionalIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty) - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MessageOptionalIgnoreEmpty 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.Proto2MessageOptionalIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmptyOrBuilder.java deleted file mode 100644 index e9702e0b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MessageOptionalIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreEmpty.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecified.java deleted file mode 100644 index 979aed87..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecified.java +++ /dev/null @@ -1,1100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified} - */ -public final class Proto2MessageOptionalIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified) - Proto2MessageOptionalIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MessageOptionalIgnoreUnspecified.class.getName()); - } - // Use Proto2MessageOptionalIgnoreUnspecified.newBuilder() to construct. - private Proto2MessageOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MessageOptionalIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto2MessageOptionalIgnoreUnspecified.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg other = (build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg 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.Proto2MessageOptionalIgnoreUnspecified.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg 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.Proto2MessageOptionalIgnoreUnspecified.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg 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.Proto2MessageOptionalIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg 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.Proto2MessageOptionalIgnoreUnspecified.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg 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.Proto2MessageOptionalIgnoreUnspecified.Msg 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.Proto2MessageOptionalIgnoreUnspecified.Msg 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.Proto2MessageOptionalIgnoreUnspecified.Msg 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.Proto2MessageOptionalIgnoreUnspecified.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg) - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg build() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg result = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg) - private static final build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto2MessageOptionalIgnoreUnspecified.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val_; - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto2MessageOptionalIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified 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.Proto2MessageOptionalIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified 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.Proto2MessageOptionalIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified 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.Proto2MessageOptionalIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified 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.Proto2MessageOptionalIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified 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.Proto2MessageOptionalIgnoreUnspecified 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.Proto2MessageOptionalIgnoreUnspecified 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.Proto2MessageOptionalIgnoreUnspecified 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.Proto2MessageOptionalIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MessageOptionalIgnoreUnspecified 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.Proto2MessageOptionalIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 99d3f40b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageOptionalIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MessageOptionalIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto2MessageOptionalIgnoreUnspecified.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreAlways.java deleted file mode 100644 index 0368f4ca..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreAlways.java +++ /dev/null @@ -1,1107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways} - */ -public final class Proto2MessageRequiredIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways) - Proto2MessageRequiredIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MessageRequiredIgnoreAlways.class.getName()); - } - // Use Proto2MessageRequiredIgnoreAlways.newBuilder() to construct. - private Proto2MessageRequiredIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MessageRequiredIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto2MessageRequiredIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg 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.Proto2MessageRequiredIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg 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.Proto2MessageRequiredIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg 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.Proto2MessageRequiredIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg 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.Proto2MessageRequiredIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg 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.Proto2MessageRequiredIgnoreAlways.Msg 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.Proto2MessageRequiredIgnoreAlways.Msg 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.Proto2MessageRequiredIgnoreAlways.Msg 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.Proto2MessageRequiredIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg) - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto2MessageRequiredIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val_; - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto2MessageRequiredIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways other = (build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways 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.Proto2MessageRequiredIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways 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.Proto2MessageRequiredIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways 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.Proto2MessageRequiredIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways 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.Proto2MessageRequiredIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways 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.Proto2MessageRequiredIgnoreAlways 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.Proto2MessageRequiredIgnoreAlways 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.Proto2MessageRequiredIgnoreAlways 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.Proto2MessageRequiredIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways) - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways result = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MessageRequiredIgnoreAlways 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.Proto2MessageRequiredIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 711f5e6c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MessageRequiredIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg getVal(); - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefault.java deleted file mode 100644 index b0ec2de5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefault.java +++ /dev/null @@ -1,1107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault} - */ -public final class Proto2MessageRequiredIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault) - Proto2MessageRequiredIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MessageRequiredIgnoreDefault.class.getName()); - } - // Use Proto2MessageRequiredIgnoreDefault.newBuilder() to construct. - private Proto2MessageRequiredIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MessageRequiredIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto2MessageRequiredIgnoreDefault.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg other = (build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg 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.Proto2MessageRequiredIgnoreDefault.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg 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.Proto2MessageRequiredIgnoreDefault.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg 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.Proto2MessageRequiredIgnoreDefault.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg 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.Proto2MessageRequiredIgnoreDefault.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg 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.Proto2MessageRequiredIgnoreDefault.Msg 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.Proto2MessageRequiredIgnoreDefault.Msg 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.Proto2MessageRequiredIgnoreDefault.Msg 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.Proto2MessageRequiredIgnoreDefault.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg) - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg build() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg result = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg) - private static final build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto2MessageRequiredIgnoreDefault.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val_; - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.getDefaultInstance() : val_; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto2MessageRequiredIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault other = (build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault 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.Proto2MessageRequiredIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault 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.Proto2MessageRequiredIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault 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.Proto2MessageRequiredIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault 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.Proto2MessageRequiredIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault 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.Proto2MessageRequiredIgnoreDefault 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.Proto2MessageRequiredIgnoreDefault 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.Proto2MessageRequiredIgnoreDefault 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.Proto2MessageRequiredIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault) - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault result = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.MsgOrBuilder> valBuilder_; - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.getDefaultInstance() : val_; - } - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MessageRequiredIgnoreDefault 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.Proto2MessageRequiredIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefaultOrBuilder.java deleted file mode 100644 index 340abb14..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MessageRequiredIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg getVal(); - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreDefault.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmpty.java deleted file mode 100644 index b6d657eb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmpty.java +++ /dev/null @@ -1,1107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty} - */ -public final class Proto2MessageRequiredIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty) - Proto2MessageRequiredIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MessageRequiredIgnoreEmpty.class.getName()); - } - // Use Proto2MessageRequiredIgnoreEmpty.newBuilder() to construct. - private Proto2MessageRequiredIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MessageRequiredIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto2MessageRequiredIgnoreEmpty.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg other = (build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg 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.Proto2MessageRequiredIgnoreEmpty.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg 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.Proto2MessageRequiredIgnoreEmpty.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg 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.Proto2MessageRequiredIgnoreEmpty.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg 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.Proto2MessageRequiredIgnoreEmpty.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg 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.Proto2MessageRequiredIgnoreEmpty.Msg 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.Proto2MessageRequiredIgnoreEmpty.Msg 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.Proto2MessageRequiredIgnoreEmpty.Msg 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.Proto2MessageRequiredIgnoreEmpty.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg) - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg build() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg result = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg) - private static final build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto2MessageRequiredIgnoreEmpty.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val_; - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto2MessageRequiredIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty 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.Proto2MessageRequiredIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty 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.Proto2MessageRequiredIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty 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.Proto2MessageRequiredIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty 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.Proto2MessageRequiredIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty 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.Proto2MessageRequiredIgnoreEmpty 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.Proto2MessageRequiredIgnoreEmpty 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.Proto2MessageRequiredIgnoreEmpty 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.Proto2MessageRequiredIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty) - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.MsgOrBuilder> valBuilder_; - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MessageRequiredIgnoreEmpty 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.Proto2MessageRequiredIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmptyOrBuilder.java deleted file mode 100644 index ff6aeea8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MessageRequiredIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg getVal(); - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreEmpty.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecified.java deleted file mode 100644 index a18c2f65..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecified.java +++ /dev/null @@ -1,1107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified} - */ -public final class Proto2MessageRequiredIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified) - Proto2MessageRequiredIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2MessageRequiredIgnoreUnspecified.class.getName()); - } - // Use Proto2MessageRequiredIgnoreUnspecified.newBuilder() to construct. - private Proto2MessageRequiredIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2MessageRequiredIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto2MessageRequiredIgnoreUnspecified.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg other = (build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg 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.Proto2MessageRequiredIgnoreUnspecified.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg 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.Proto2MessageRequiredIgnoreUnspecified.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg 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.Proto2MessageRequiredIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg 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.Proto2MessageRequiredIgnoreUnspecified.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg 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.Proto2MessageRequiredIgnoreUnspecified.Msg 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.Proto2MessageRequiredIgnoreUnspecified.Msg 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.Proto2MessageRequiredIgnoreUnspecified.Msg 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.Proto2MessageRequiredIgnoreUnspecified.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg) - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg build() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg result = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg) - private static final build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto2MessageRequiredIgnoreUnspecified.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val_; - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto2MessageRequiredIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified 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.Proto2MessageRequiredIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified 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.Proto2MessageRequiredIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified 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.Proto2MessageRequiredIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified 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.Proto2MessageRequiredIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified 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.Proto2MessageRequiredIgnoreUnspecified 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.Proto2MessageRequiredIgnoreUnspecified 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.Proto2MessageRequiredIgnoreUnspecified 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.Proto2MessageRequiredIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2MessageRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.MsgOrBuilder> valBuilder_; - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - } - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2MessageRequiredIgnoreUnspecified 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.Proto2MessageRequiredIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index f909d0cd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2MessageRequiredIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2MessageRequiredIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg getVal(); - /** - * required .buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto2MessageRequiredIgnoreUnspecified.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlways.java deleted file mode 100644 index 927bbe8f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlways.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreAlways} - */ -public final class Proto2OneofIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2OneofIgnoreAlways) - Proto2OneofIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2OneofIgnoreAlways.class.getName()); - } - // Use Proto2OneofIgnoreAlways.newBuilder() to construct. - private Proto2OneofIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2OneofIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto2OneofIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways other = (build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways 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.Proto2OneofIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways 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.Proto2OneofIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways 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.Proto2OneofIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways 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.Proto2OneofIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways 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.Proto2OneofIgnoreAlways 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.Proto2OneofIgnoreAlways 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.Proto2OneofIgnoreAlways 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.Proto2OneofIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2OneofIgnoreAlways) - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways result = new build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2OneofIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2OneofIgnoreAlways 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.Proto2OneofIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 69f0361f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2OneofIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2OneofIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlways.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysWithDefault.java deleted file mode 100644 index b0043aee..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysWithDefault.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault} - */ -public final class Proto2OneofIgnoreAlwaysWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault) - Proto2OneofIgnoreAlwaysWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2OneofIgnoreAlwaysWithDefault.class.getName()); - } - // Use Proto2OneofIgnoreAlwaysWithDefault.newBuilder() to construct. - private Proto2OneofIgnoreAlwaysWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2OneofIgnoreAlwaysWithDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto2OneofIgnoreAlwaysWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault other = (build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault 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.Proto2OneofIgnoreAlwaysWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault 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.Proto2OneofIgnoreAlwaysWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault 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.Proto2OneofIgnoreAlwaysWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault 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.Proto2OneofIgnoreAlwaysWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault 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.Proto2OneofIgnoreAlwaysWithDefault 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.Proto2OneofIgnoreAlwaysWithDefault 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.Proto2OneofIgnoreAlwaysWithDefault 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.Proto2OneofIgnoreAlwaysWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault) - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault build() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault result = new build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault) - private static final build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2OneofIgnoreAlwaysWithDefault 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.Proto2OneofIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysWithDefaultOrBuilder.java deleted file mode 100644 index 6eccc53f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreAlwaysWithDefaultOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2OneofIgnoreAlwaysWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto2OneofIgnoreAlwaysWithDefault.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefault.java deleted file mode 100644 index 25b231cf..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefault.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreDefault} - */ -public final class Proto2OneofIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2OneofIgnoreDefault) - Proto2OneofIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2OneofIgnoreDefault.class.getName()); - } - // Use Proto2OneofIgnoreDefault.newBuilder() to construct. - private Proto2OneofIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2OneofIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto2OneofIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault other = (build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault 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.Proto2OneofIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault 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.Proto2OneofIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault 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.Proto2OneofIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault 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.Proto2OneofIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault 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.Proto2OneofIgnoreDefault 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.Proto2OneofIgnoreDefault 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.Proto2OneofIgnoreDefault 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.Proto2OneofIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2OneofIgnoreDefault) - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault result = new build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2OneofIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2OneofIgnoreDefault 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.Proto2OneofIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultOrBuilder.java deleted file mode 100644 index 904f4272..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2OneofIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2OneofIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefault.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefault.java deleted file mode 100644 index de76ac63..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefault.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault} - */ -public final class Proto2OneofIgnoreDefaultWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault) - Proto2OneofIgnoreDefaultWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2OneofIgnoreDefaultWithDefault.class.getName()); - } - // Use Proto2OneofIgnoreDefaultWithDefault.newBuilder() to construct. - private Proto2OneofIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2OneofIgnoreDefaultWithDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto2OneofIgnoreDefaultWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault other = (build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault 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.Proto2OneofIgnoreDefaultWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault 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.Proto2OneofIgnoreDefaultWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault 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.Proto2OneofIgnoreDefaultWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault 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.Proto2OneofIgnoreDefaultWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault 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.Proto2OneofIgnoreDefaultWithDefault 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.Proto2OneofIgnoreDefaultWithDefault 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.Proto2OneofIgnoreDefaultWithDefault 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.Proto2OneofIgnoreDefaultWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault) - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault build() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault result = new build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault) - private static final build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2OneofIgnoreDefaultWithDefault 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.Proto2OneofIgnoreDefaultWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefaultOrBuilder.java deleted file mode 100644 index 264a2109..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreDefaultWithDefaultOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2OneofIgnoreDefaultWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto2OneofIgnoreDefaultWithDefault.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmpty.java deleted file mode 100644 index abc7ccd4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmpty.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreEmpty} - */ -public final class Proto2OneofIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2OneofIgnoreEmpty) - Proto2OneofIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2OneofIgnoreEmpty.class.getName()); - } - // Use Proto2OneofIgnoreEmpty.newBuilder() to construct. - private Proto2OneofIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2OneofIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto2OneofIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty 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.Proto2OneofIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty 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.Proto2OneofIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty 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.Proto2OneofIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty 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.Proto2OneofIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty 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.Proto2OneofIgnoreEmpty 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.Proto2OneofIgnoreEmpty 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.Proto2OneofIgnoreEmpty 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.Proto2OneofIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2OneofIgnoreEmpty) - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2OneofIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2OneofIgnoreEmpty 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.Proto2OneofIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyOrBuilder.java deleted file mode 100644 index c5fdad8a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2OneofIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2OneofIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmpty.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefault.java deleted file mode 100644 index 459b7082..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefault.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault} - */ -public final class Proto2OneofIgnoreEmptyWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault) - Proto2OneofIgnoreEmptyWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2OneofIgnoreEmptyWithDefault.class.getName()); - } - // Use Proto2OneofIgnoreEmptyWithDefault.newBuilder() to construct. - private Proto2OneofIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2OneofIgnoreEmptyWithDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto2OneofIgnoreEmptyWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault other = (build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault 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.Proto2OneofIgnoreEmptyWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault 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.Proto2OneofIgnoreEmptyWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault 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.Proto2OneofIgnoreEmptyWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault 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.Proto2OneofIgnoreEmptyWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault 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.Proto2OneofIgnoreEmptyWithDefault 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.Proto2OneofIgnoreEmptyWithDefault 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.Proto2OneofIgnoreEmptyWithDefault 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.Proto2OneofIgnoreEmptyWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault) - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault build() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault result = new build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault) - private static final build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2OneofIgnoreEmptyWithDefault 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.Proto2OneofIgnoreEmptyWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefaultOrBuilder.java deleted file mode 100644 index d45205c0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreEmptyWithDefaultOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2OneofIgnoreEmptyWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto2OneofIgnoreEmptyWithDefault.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecified.java deleted file mode 100644 index 646fdf6c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecified.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified} - */ -public final class Proto2OneofIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified) - Proto2OneofIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2OneofIgnoreUnspecified.class.getName()); - } - // Use Proto2OneofIgnoreUnspecified.newBuilder() to construct. - private Proto2OneofIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2OneofIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto2OneofIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified 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.Proto2OneofIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified 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.Proto2OneofIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified 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.Proto2OneofIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified 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.Proto2OneofIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified 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.Proto2OneofIgnoreUnspecified 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.Proto2OneofIgnoreUnspecified 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.Proto2OneofIgnoreUnspecified 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.Proto2OneofIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2OneofIgnoreUnspecified 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.Proto2OneofIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index f254218f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2OneofIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecified.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefault.java deleted file mode 100644 index 007ce4c7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefault.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault} - */ -public final class Proto2OneofIgnoreUnspecifiedWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault) - Proto2OneofIgnoreUnspecifiedWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2OneofIgnoreUnspecifiedWithDefault.class.getName()); - } - // Use Proto2OneofIgnoreUnspecifiedWithDefault.newBuilder() to construct. - private Proto2OneofIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2OneofIgnoreUnspecifiedWithDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto2OneofIgnoreUnspecifiedWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault other = (build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault 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.Proto2OneofIgnoreUnspecifiedWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault 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.Proto2OneofIgnoreUnspecifiedWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault 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.Proto2OneofIgnoreUnspecifiedWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault 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.Proto2OneofIgnoreUnspecifiedWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault 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.Proto2OneofIgnoreUnspecifiedWithDefault 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.Proto2OneofIgnoreUnspecifiedWithDefault 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.Proto2OneofIgnoreUnspecifiedWithDefault 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.Proto2OneofIgnoreUnspecifiedWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault) - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2OneofIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault build() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault result = new build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return -42; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault) - private static final build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2OneofIgnoreUnspecifiedWithDefault 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.Proto2OneofIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefaultOrBuilder.java deleted file mode 100644 index 3eef1ec7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2OneofIgnoreUnspecifiedWithDefaultOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2OneofIgnoreUnspecifiedWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto2OneofIgnoreUnspecifiedWithDefault.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreAlways.java deleted file mode 100644 index f29fe911..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreAlways.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways} - */ -public final class Proto2RepeatedIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways) - Proto2RepeatedIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2RepeatedIgnoreAlways.class.getName()); - } - // Use Proto2RepeatedIgnoreAlways.newBuilder() to construct. - private Proto2RepeatedIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2RepeatedIgnoreAlways() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.Proto2RepeatedIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways other = (build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways) 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.Proto2RepeatedIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways 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.Proto2RepeatedIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways 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.Proto2RepeatedIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways 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.Proto2RepeatedIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways 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.Proto2RepeatedIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways 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.Proto2RepeatedIgnoreAlways 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.Proto2RepeatedIgnoreAlways 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.Proto2RepeatedIgnoreAlways 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.Proto2RepeatedIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways) - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways result = new build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2RepeatedIgnoreAlways 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.Proto2RepeatedIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreAlwaysOrBuilder.java deleted file mode 100644 index c0fe3beb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2RepeatedIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2RepeatedIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefault.java deleted file mode 100644 index ebc9fd42..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefault.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault} - */ -public final class Proto2RepeatedIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault) - Proto2RepeatedIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2RepeatedIgnoreDefault.class.getName()); - } - // Use Proto2RepeatedIgnoreDefault.newBuilder() to construct. - private Proto2RepeatedIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2RepeatedIgnoreDefault() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.Proto2RepeatedIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault other = (build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault) 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.Proto2RepeatedIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault 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.Proto2RepeatedIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault 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.Proto2RepeatedIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault 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.Proto2RepeatedIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault 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.Proto2RepeatedIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault 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.Proto2RepeatedIgnoreDefault 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.Proto2RepeatedIgnoreDefault 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.Proto2RepeatedIgnoreDefault 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.Proto2RepeatedIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault) - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault result = new build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2RepeatedIgnoreDefault 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.Proto2RepeatedIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefaultOrBuilder.java deleted file mode 100644 index c420e54b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2RepeatedIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2RepeatedIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmpty.java deleted file mode 100644 index bd65981d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmpty.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty} - */ -public final class Proto2RepeatedIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty) - Proto2RepeatedIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2RepeatedIgnoreEmpty.class.getName()); - } - // Use Proto2RepeatedIgnoreEmpty.newBuilder() to construct. - private Proto2RepeatedIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2RepeatedIgnoreEmpty() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.Proto2RepeatedIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty) 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.Proto2RepeatedIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty 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.Proto2RepeatedIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty 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.Proto2RepeatedIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty 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.Proto2RepeatedIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty 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.Proto2RepeatedIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty 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.Proto2RepeatedIgnoreEmpty 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.Proto2RepeatedIgnoreEmpty 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.Proto2RepeatedIgnoreEmpty 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.Proto2RepeatedIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty) - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2RepeatedIgnoreEmpty 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.Proto2RepeatedIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmptyOrBuilder.java deleted file mode 100644 index 662bb159..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2RepeatedIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2RepeatedIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecified.java deleted file mode 100644 index 2c2ccbbd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecified.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified} - */ -public final class Proto2RepeatedIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified) - Proto2RepeatedIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2RepeatedIgnoreUnspecified.class.getName()); - } - // Use Proto2RepeatedIgnoreUnspecified.newBuilder() to construct. - private Proto2RepeatedIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2RepeatedIgnoreUnspecified() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.Proto2RepeatedIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified) 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.Proto2RepeatedIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified 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.Proto2RepeatedIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified 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.Proto2RepeatedIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified 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.Proto2RepeatedIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified 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.Proto2RepeatedIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified 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.Proto2RepeatedIgnoreUnspecified 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.Proto2RepeatedIgnoreUnspecified 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.Proto2RepeatedIgnoreUnspecified 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.Proto2RepeatedIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2RepeatedIgnoreUnspecified 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.Proto2RepeatedIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index b6fb0d2e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2RepeatedIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2RepeatedIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreAlways.java deleted file mode 100644 index 1a7a2f28..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreAlways.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways} - */ -public final class Proto2RepeatedItemIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways) - Proto2RepeatedItemIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2RepeatedItemIgnoreAlways.class.getName()); - } - // Use Proto2RepeatedItemIgnoreAlways.newBuilder() to construct. - private Proto2RepeatedItemIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2RepeatedItemIgnoreAlways() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.Proto2RepeatedItemIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways other = (build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways) 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.Proto2RepeatedItemIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways 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.Proto2RepeatedItemIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways 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.Proto2RepeatedItemIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways 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.Proto2RepeatedItemIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways 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.Proto2RepeatedItemIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways 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.Proto2RepeatedItemIgnoreAlways 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.Proto2RepeatedItemIgnoreAlways 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.Proto2RepeatedItemIgnoreAlways 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.Proto2RepeatedItemIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways) - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways result = new build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2RepeatedItemIgnoreAlways 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.Proto2RepeatedItemIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 59a9552d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2RepeatedItemIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefault.java deleted file mode 100644 index 545225d1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefault.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault} - */ -public final class Proto2RepeatedItemIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault) - Proto2RepeatedItemIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2RepeatedItemIgnoreDefault.class.getName()); - } - // Use Proto2RepeatedItemIgnoreDefault.newBuilder() to construct. - private Proto2RepeatedItemIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2RepeatedItemIgnoreDefault() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.Proto2RepeatedItemIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault other = (build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault) 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.Proto2RepeatedItemIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault 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.Proto2RepeatedItemIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault 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.Proto2RepeatedItemIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault 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.Proto2RepeatedItemIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault 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.Proto2RepeatedItemIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault 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.Proto2RepeatedItemIgnoreDefault 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.Proto2RepeatedItemIgnoreDefault 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.Proto2RepeatedItemIgnoreDefault 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.Proto2RepeatedItemIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault) - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault result = new build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2RepeatedItemIgnoreDefault 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.Proto2RepeatedItemIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefaultOrBuilder.java deleted file mode 100644 index c902289f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2RepeatedItemIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmpty.java deleted file mode 100644 index 2728a3bb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmpty.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty} - */ -public final class Proto2RepeatedItemIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty) - Proto2RepeatedItemIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2RepeatedItemIgnoreEmpty.class.getName()); - } - // Use Proto2RepeatedItemIgnoreEmpty.newBuilder() to construct. - private Proto2RepeatedItemIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2RepeatedItemIgnoreEmpty() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.Proto2RepeatedItemIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty) 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.Proto2RepeatedItemIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty 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.Proto2RepeatedItemIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty 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.Proto2RepeatedItemIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty 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.Proto2RepeatedItemIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty 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.Proto2RepeatedItemIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty 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.Proto2RepeatedItemIgnoreEmpty 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.Proto2RepeatedItemIgnoreEmpty 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.Proto2RepeatedItemIgnoreEmpty 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.Proto2RepeatedItemIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty) - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2RepeatedItemIgnoreEmpty 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.Proto2RepeatedItemIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmptyOrBuilder.java deleted file mode 100644 index f26e8cad..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2RepeatedItemIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecified.java deleted file mode 100644 index c11a3900..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecified.java +++ /dev/null @@ -1,529 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified} - */ -public final class Proto2RepeatedItemIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified) - Proto2RepeatedItemIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2RepeatedItemIgnoreUnspecified.class.getName()); - } - // Use Proto2RepeatedItemIgnoreUnspecified.newBuilder() to construct. - private Proto2RepeatedItemIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2RepeatedItemIgnoreUnspecified() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(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.writeInt32(1, val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.Proto2RepeatedItemIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified) 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.Proto2RepeatedItemIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified 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.Proto2RepeatedItemIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified 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.Proto2RepeatedItemIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified 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.Proto2RepeatedItemIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified 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.Proto2RepeatedItemIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified 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.Proto2RepeatedItemIgnoreUnspecified 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.Proto2RepeatedItemIgnoreUnspecified 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.Proto2RepeatedItemIgnoreUnspecified 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.Proto2RepeatedItemIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2RepeatedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2RepeatedItemIgnoreUnspecified 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.Proto2RepeatedItemIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index fc2c1792..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2RepeatedItemIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2RepeatedItemIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2RepeatedItemIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlways.java deleted file mode 100644 index d5ae9779..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlways.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways} - */ -public final class Proto2ScalarOptionalIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways) - Proto2ScalarOptionalIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarOptionalIgnoreAlways.class.getName()); - } - // Use Proto2ScalarOptionalIgnoreAlways.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarOptionalIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarOptionalIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways other = (build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways 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.Proto2ScalarOptionalIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways 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.Proto2ScalarOptionalIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways 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.Proto2ScalarOptionalIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways 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.Proto2ScalarOptionalIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways 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.Proto2ScalarOptionalIgnoreAlways 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.Proto2ScalarOptionalIgnoreAlways 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.Proto2ScalarOptionalIgnoreAlways 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.Proto2ScalarOptionalIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways) - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways result = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarOptionalIgnoreAlways 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.Proto2ScalarOptionalIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysOrBuilder.java deleted file mode 100644 index d201a993..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarOptionalIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysWithDefault.java deleted file mode 100644 index f8afc2bc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysWithDefault.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault} - */ -public final class Proto2ScalarOptionalIgnoreAlwaysWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault) - Proto2ScalarOptionalIgnoreAlwaysWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarOptionalIgnoreAlwaysWithDefault.class.getName()); - } - // Use Proto2ScalarOptionalIgnoreAlwaysWithDefault.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreAlwaysWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarOptionalIgnoreAlwaysWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarOptionalIgnoreAlwaysWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault other = (build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault 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.Proto2ScalarOptionalIgnoreAlwaysWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault 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.Proto2ScalarOptionalIgnoreAlwaysWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault 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.Proto2ScalarOptionalIgnoreAlwaysWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault 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.Proto2ScalarOptionalIgnoreAlwaysWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault 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.Proto2ScalarOptionalIgnoreAlwaysWithDefault 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.Proto2ScalarOptionalIgnoreAlwaysWithDefault 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.Proto2ScalarOptionalIgnoreAlwaysWithDefault 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.Proto2ScalarOptionalIgnoreAlwaysWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault) - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault build() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault result = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault) - private static final build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarOptionalIgnoreAlwaysWithDefault 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.Proto2ScalarOptionalIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysWithDefaultOrBuilder.java deleted file mode 100644 index c71337dd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreAlwaysWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarOptionalIgnoreAlwaysWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreAlwaysWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefault.java deleted file mode 100644 index cd23d58f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefault.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault} - */ -public final class Proto2ScalarOptionalIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault) - Proto2ScalarOptionalIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarOptionalIgnoreDefault.class.getName()); - } - // Use Proto2ScalarOptionalIgnoreDefault.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarOptionalIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarOptionalIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault other = (build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault 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.Proto2ScalarOptionalIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault 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.Proto2ScalarOptionalIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault 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.Proto2ScalarOptionalIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault 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.Proto2ScalarOptionalIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault 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.Proto2ScalarOptionalIgnoreDefault 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.Proto2ScalarOptionalIgnoreDefault 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.Proto2ScalarOptionalIgnoreDefault 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.Proto2ScalarOptionalIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault) - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault result = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarOptionalIgnoreDefault 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.Proto2ScalarOptionalIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultOrBuilder.java deleted file mode 100644 index b5ea0fc7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarOptionalIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefault.java deleted file mode 100644 index 8bd02e70..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefault.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault} - */ -public final class Proto2ScalarOptionalIgnoreDefaultWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault) - Proto2ScalarOptionalIgnoreDefaultWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarOptionalIgnoreDefaultWithDefault.class.getName()); - } - // Use Proto2ScalarOptionalIgnoreDefaultWithDefault.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarOptionalIgnoreDefaultWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarOptionalIgnoreDefaultWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault other = (build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault 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.Proto2ScalarOptionalIgnoreDefaultWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault 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.Proto2ScalarOptionalIgnoreDefaultWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault 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.Proto2ScalarOptionalIgnoreDefaultWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault 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.Proto2ScalarOptionalIgnoreDefaultWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault 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.Proto2ScalarOptionalIgnoreDefaultWithDefault 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.Proto2ScalarOptionalIgnoreDefaultWithDefault 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.Proto2ScalarOptionalIgnoreDefaultWithDefault 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.Proto2ScalarOptionalIgnoreDefaultWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault) - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault build() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault result = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault) - private static final build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarOptionalIgnoreDefaultWithDefault 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.Proto2ScalarOptionalIgnoreDefaultWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefaultOrBuilder.java deleted file mode 100644 index 4062ce49..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreDefaultWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarOptionalIgnoreDefaultWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreDefaultWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmpty.java deleted file mode 100644 index 8e1c8bf9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmpty.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty} - */ -public final class Proto2ScalarOptionalIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty) - Proto2ScalarOptionalIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarOptionalIgnoreEmpty.class.getName()); - } - // Use Proto2ScalarOptionalIgnoreEmpty.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarOptionalIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarOptionalIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty 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.Proto2ScalarOptionalIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty 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.Proto2ScalarOptionalIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty 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.Proto2ScalarOptionalIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty 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.Proto2ScalarOptionalIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty 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.Proto2ScalarOptionalIgnoreEmpty 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.Proto2ScalarOptionalIgnoreEmpty 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.Proto2ScalarOptionalIgnoreEmpty 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.Proto2ScalarOptionalIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty) - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarOptionalIgnoreEmpty 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.Proto2ScalarOptionalIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyOrBuilder.java deleted file mode 100644 index bfd67a6f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarOptionalIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefault.java deleted file mode 100644 index 3f1cf606..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefault.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault} - */ -public final class Proto2ScalarOptionalIgnoreEmptyWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault) - Proto2ScalarOptionalIgnoreEmptyWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarOptionalIgnoreEmptyWithDefault.class.getName()); - } - // Use Proto2ScalarOptionalIgnoreEmptyWithDefault.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarOptionalIgnoreEmptyWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarOptionalIgnoreEmptyWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault other = (build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault 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.Proto2ScalarOptionalIgnoreEmptyWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault 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.Proto2ScalarOptionalIgnoreEmptyWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault 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.Proto2ScalarOptionalIgnoreEmptyWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault 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.Proto2ScalarOptionalIgnoreEmptyWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault 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.Proto2ScalarOptionalIgnoreEmptyWithDefault 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.Proto2ScalarOptionalIgnoreEmptyWithDefault 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.Proto2ScalarOptionalIgnoreEmptyWithDefault 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.Proto2ScalarOptionalIgnoreEmptyWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault) - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault build() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault result = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault) - private static final build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarOptionalIgnoreEmptyWithDefault 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.Proto2ScalarOptionalIgnoreEmptyWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefaultOrBuilder.java deleted file mode 100644 index 46aaf5be..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreEmptyWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarOptionalIgnoreEmptyWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreEmptyWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecified.java deleted file mode 100644 index b823af96..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecified.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified} - */ -public final class Proto2ScalarOptionalIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified) - Proto2ScalarOptionalIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarOptionalIgnoreUnspecified.class.getName()); - } - // Use Proto2ScalarOptionalIgnoreUnspecified.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarOptionalIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarOptionalIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified 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.Proto2ScalarOptionalIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified 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.Proto2ScalarOptionalIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified 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.Proto2ScalarOptionalIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified 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.Proto2ScalarOptionalIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified 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.Proto2ScalarOptionalIgnoreUnspecified 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.Proto2ScalarOptionalIgnoreUnspecified 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.Proto2ScalarOptionalIgnoreUnspecified 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.Proto2ScalarOptionalIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarOptionalIgnoreUnspecified 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.Proto2ScalarOptionalIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 396d5cee..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarOptionalIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.java deleted file mode 100644 index d2041f41..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault} - */ -public final class Proto2ScalarOptionalIgnoreUnspecifiedWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault) - Proto2ScalarOptionalIgnoreUnspecifiedWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.class.getName()); - } - // Use Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.newBuilder() to construct. - private Proto2ScalarOptionalIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarOptionalIgnoreUnspecifiedWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault other = (build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault 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.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault 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.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault 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.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault 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.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault 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.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault 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.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault 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.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault 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.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault) - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarOptionalIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault build() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault result = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault) - private static final build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarOptionalIgnoreUnspecifiedWithDefault 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.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefaultOrBuilder.java deleted file mode 100644 index 6b018cde..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarOptionalIgnoreUnspecifiedWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarOptionalIgnoreUnspecifiedWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarOptionalIgnoreUnspecifiedWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlways.java deleted file mode 100644 index 4519b835..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlways.java +++ /dev/null @@ -1,463 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways} - */ -public final class Proto2ScalarRequiredIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways) - Proto2ScalarRequiredIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarRequiredIgnoreAlways.class.getName()); - } - // Use Proto2ScalarRequiredIgnoreAlways.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarRequiredIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarRequiredIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways other = (build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways 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.Proto2ScalarRequiredIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways 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.Proto2ScalarRequiredIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways 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.Proto2ScalarRequiredIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways 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.Proto2ScalarRequiredIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways 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.Proto2ScalarRequiredIgnoreAlways 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.Proto2ScalarRequiredIgnoreAlways 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.Proto2ScalarRequiredIgnoreAlways 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.Proto2ScalarRequiredIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways) - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways result = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarRequiredIgnoreAlways 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.Proto2ScalarRequiredIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 36c29a94..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarRequiredIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysWithDefault.java deleted file mode 100644 index afa21a16..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysWithDefault.java +++ /dev/null @@ -1,464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault} - */ -public final class Proto2ScalarRequiredIgnoreAlwaysWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault) - Proto2ScalarRequiredIgnoreAlwaysWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarRequiredIgnoreAlwaysWithDefault.class.getName()); - } - // Use Proto2ScalarRequiredIgnoreAlwaysWithDefault.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreAlwaysWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarRequiredIgnoreAlwaysWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarRequiredIgnoreAlwaysWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault other = (build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault 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.Proto2ScalarRequiredIgnoreAlwaysWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault 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.Proto2ScalarRequiredIgnoreAlwaysWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault 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.Proto2ScalarRequiredIgnoreAlwaysWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault 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.Proto2ScalarRequiredIgnoreAlwaysWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault 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.Proto2ScalarRequiredIgnoreAlwaysWithDefault 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.Proto2ScalarRequiredIgnoreAlwaysWithDefault 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.Proto2ScalarRequiredIgnoreAlwaysWithDefault 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.Proto2ScalarRequiredIgnoreAlwaysWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault) - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlwaysWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreAlwaysWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault build() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault result = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault) - private static final build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarRequiredIgnoreAlwaysWithDefault 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.Proto2ScalarRequiredIgnoreAlwaysWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysWithDefaultOrBuilder.java deleted file mode 100644 index 7c1e0a0e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreAlwaysWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarRequiredIgnoreAlwaysWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreAlwaysWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefault.java deleted file mode 100644 index 87ce6ffe..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefault.java +++ /dev/null @@ -1,463 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault} - */ -public final class Proto2ScalarRequiredIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault) - Proto2ScalarRequiredIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarRequiredIgnoreDefault.class.getName()); - } - // Use Proto2ScalarRequiredIgnoreDefault.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarRequiredIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarRequiredIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault other = (build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault 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.Proto2ScalarRequiredIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault 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.Proto2ScalarRequiredIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault 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.Proto2ScalarRequiredIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault 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.Proto2ScalarRequiredIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault 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.Proto2ScalarRequiredIgnoreDefault 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.Proto2ScalarRequiredIgnoreDefault 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.Proto2ScalarRequiredIgnoreDefault 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.Proto2ScalarRequiredIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault) - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault result = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarRequiredIgnoreDefault 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.Proto2ScalarRequiredIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultOrBuilder.java deleted file mode 100644 index 0624802a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarRequiredIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefault.java deleted file mode 100644 index dc2116cc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefault.java +++ /dev/null @@ -1,464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault} - */ -public final class Proto2ScalarRequiredIgnoreDefaultWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault) - Proto2ScalarRequiredIgnoreDefaultWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarRequiredIgnoreDefaultWithDefault.class.getName()); - } - // Use Proto2ScalarRequiredIgnoreDefaultWithDefault.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreDefaultWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarRequiredIgnoreDefaultWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarRequiredIgnoreDefaultWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault other = (build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault 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.Proto2ScalarRequiredIgnoreDefaultWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault 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.Proto2ScalarRequiredIgnoreDefaultWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault 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.Proto2ScalarRequiredIgnoreDefaultWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault 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.Proto2ScalarRequiredIgnoreDefaultWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault 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.Proto2ScalarRequiredIgnoreDefaultWithDefault 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.Proto2ScalarRequiredIgnoreDefaultWithDefault 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.Proto2ScalarRequiredIgnoreDefaultWithDefault 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.Proto2ScalarRequiredIgnoreDefaultWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault) - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreDefaultWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault build() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault result = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault) - private static final build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarRequiredIgnoreDefaultWithDefault 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.Proto2ScalarRequiredIgnoreDefaultWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefaultOrBuilder.java deleted file mode 100644 index d683218b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreDefaultWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarRequiredIgnoreDefaultWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreDefaultWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmpty.java deleted file mode 100644 index 6e6e4e5b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmpty.java +++ /dev/null @@ -1,463 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty} - */ -public final class Proto2ScalarRequiredIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty) - Proto2ScalarRequiredIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarRequiredIgnoreEmpty.class.getName()); - } - // Use Proto2ScalarRequiredIgnoreEmpty.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarRequiredIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarRequiredIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty 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.Proto2ScalarRequiredIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty 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.Proto2ScalarRequiredIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty 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.Proto2ScalarRequiredIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty 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.Proto2ScalarRequiredIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty 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.Proto2ScalarRequiredIgnoreEmpty 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.Proto2ScalarRequiredIgnoreEmpty 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.Proto2ScalarRequiredIgnoreEmpty 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.Proto2ScalarRequiredIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty) - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarRequiredIgnoreEmpty 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.Proto2ScalarRequiredIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyOrBuilder.java deleted file mode 100644 index ffdb9a2c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarRequiredIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefault.java deleted file mode 100644 index 7af7f681..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefault.java +++ /dev/null @@ -1,464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault} - */ -public final class Proto2ScalarRequiredIgnoreEmptyWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault) - Proto2ScalarRequiredIgnoreEmptyWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarRequiredIgnoreEmptyWithDefault.class.getName()); - } - // Use Proto2ScalarRequiredIgnoreEmptyWithDefault.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreEmptyWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarRequiredIgnoreEmptyWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarRequiredIgnoreEmptyWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault other = (build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault 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.Proto2ScalarRequiredIgnoreEmptyWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault 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.Proto2ScalarRequiredIgnoreEmptyWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault 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.Proto2ScalarRequiredIgnoreEmptyWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault 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.Proto2ScalarRequiredIgnoreEmptyWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault 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.Proto2ScalarRequiredIgnoreEmptyWithDefault 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.Proto2ScalarRequiredIgnoreEmptyWithDefault 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.Proto2ScalarRequiredIgnoreEmptyWithDefault 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.Proto2ScalarRequiredIgnoreEmptyWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault) - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreEmptyWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault build() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault result = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault) - private static final build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarRequiredIgnoreEmptyWithDefault 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.Proto2ScalarRequiredIgnoreEmptyWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefaultOrBuilder.java deleted file mode 100644 index 322902a6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreEmptyWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarRequiredIgnoreEmptyWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreEmptyWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecified.java deleted file mode 100644 index b5af8506..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecified.java +++ /dev/null @@ -1,463 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified} - */ -public final class Proto2ScalarRequiredIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified) - Proto2ScalarRequiredIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarRequiredIgnoreUnspecified.class.getName()); - } - // Use Proto2ScalarRequiredIgnoreUnspecified.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarRequiredIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarRequiredIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified 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.Proto2ScalarRequiredIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified 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.Proto2ScalarRequiredIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified 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.Proto2ScalarRequiredIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified 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.Proto2ScalarRequiredIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified 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.Proto2ScalarRequiredIgnoreUnspecified 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.Proto2ScalarRequiredIgnoreUnspecified 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.Proto2ScalarRequiredIgnoreUnspecified 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.Proto2ScalarRequiredIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarRequiredIgnoreUnspecified 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.Proto2ScalarRequiredIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 29ccfb53..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarRequiredIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.java deleted file mode 100644 index 83f2370c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.java +++ /dev/null @@ -1,464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault} - */ -public final class Proto2ScalarRequiredIgnoreUnspecifiedWithDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault) - Proto2ScalarRequiredIgnoreUnspecifiedWithDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.class.getName()); - } - // Use Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.newBuilder() to construct. - private Proto2ScalarRequiredIgnoreUnspecifiedWithDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto2ScalarRequiredIgnoreUnspecifiedWithDefault() { - val_ = -42; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = -42; - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault other = (build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault 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.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault 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.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault 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.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault 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.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault 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.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault 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.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault 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.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault 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.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault) - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.class, build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = -42; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto2Proto.internal_static_buf_validate_conformance_cases_Proto2ScalarRequiredIgnoreUnspecifiedWithDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault build() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault buildPartial() { - build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault result = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault other) { - if (other == build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = -42; - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = -42; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault) - private static final build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault(); - } - - public static build.buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto2ScalarRequiredIgnoreUnspecifiedWithDefault 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.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefaultOrBuilder.java deleted file mode 100644 index fc5ffc7f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto2ScalarRequiredIgnoreUnspecifiedWithDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto2ScalarRequiredIgnoreUnspecifiedWithDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto2ScalarRequiredIgnoreUnspecifiedWithDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required int32 val = 1 [default = -42, json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreAlways.java deleted file mode 100644 index c68cce30..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreAlways.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapIgnoreAlways} - */ -public final class Proto3MapIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapIgnoreAlways) - Proto3MapIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapIgnoreAlways.class.getName()); - } - // Use Proto3MapIgnoreAlways.newBuilder() to construct. - private Proto3MapIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3MapIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapIgnoreAlways other = (build.buf.validate.conformance.cases.Proto3MapIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreAlways 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.Proto3MapIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreAlways 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.Proto3MapIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreAlways 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.Proto3MapIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreAlways 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.Proto3MapIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreAlways 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.Proto3MapIgnoreAlways 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.Proto3MapIgnoreAlways 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.Proto3MapIgnoreAlways 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.Proto3MapIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapIgnoreAlways) - build.buf.validate.conformance.cases.Proto3MapIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3MapIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto3MapIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto3MapIgnoreAlways result = new build.buf.validate.conformance.cases.Proto3MapIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto3MapIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto3MapIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapIgnoreAlways 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.Proto3MapIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 40975c12..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefault.java deleted file mode 100644 index 7f31dffa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefault.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapIgnoreDefault} - */ -public final class Proto3MapIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapIgnoreDefault) - Proto3MapIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapIgnoreDefault.class.getName()); - } - // Use Proto3MapIgnoreDefault.newBuilder() to construct. - private Proto3MapIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3MapIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapIgnoreDefault other = (build.buf.validate.conformance.cases.Proto3MapIgnoreDefault) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreDefault 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.Proto3MapIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreDefault 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.Proto3MapIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreDefault 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.Proto3MapIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreDefault 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.Proto3MapIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreDefault 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.Proto3MapIgnoreDefault 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.Proto3MapIgnoreDefault 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.Proto3MapIgnoreDefault 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.Proto3MapIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapIgnoreDefault) - build.buf.validate.conformance.cases.Proto3MapIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3MapIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto3MapIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto3MapIgnoreDefault result = new build.buf.validate.conformance.cases.Proto3MapIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto3MapIgnoreDefault.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto3MapIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapIgnoreDefault 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.Proto3MapIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefaultOrBuilder.java deleted file mode 100644 index 454aaf30..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmpty.java deleted file mode 100644 index c87eb5aa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmpty.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapIgnoreEmpty} - */ -public final class Proto3MapIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapIgnoreEmpty) - Proto3MapIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapIgnoreEmpty.class.getName()); - } - // Use Proto3MapIgnoreEmpty.newBuilder() to construct. - private Proto3MapIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty 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.Proto3MapIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty 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.Proto3MapIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty 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.Proto3MapIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty 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.Proto3MapIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty 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.Proto3MapIgnoreEmpty 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.Proto3MapIgnoreEmpty 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.Proto3MapIgnoreEmpty 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.Proto3MapIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapIgnoreEmpty) - build.buf.validate.conformance.cases.Proto3MapIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapIgnoreEmpty 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.Proto3MapIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmptyOrBuilder.java deleted file mode 100644 index e8e3ea29..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecified.java deleted file mode 100644 index d0d6bb95..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecified.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapIgnoreUnspecified} - */ -public final class Proto3MapIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapIgnoreUnspecified) - Proto3MapIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapIgnoreUnspecified.class.getName()); - } - // Use Proto3MapIgnoreUnspecified.newBuilder() to construct. - private Proto3MapIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified 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.Proto3MapIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified 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.Proto3MapIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified 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.Proto3MapIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified 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.Proto3MapIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified 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.Proto3MapIgnoreUnspecified 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.Proto3MapIgnoreUnspecified 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.Proto3MapIgnoreUnspecified 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.Proto3MapIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto3MapIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapIgnoreUnspecified 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.Proto3MapIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 3cb4af09..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreAlways.java deleted file mode 100644 index aacd3ae3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreAlways.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways} - */ -public final class Proto3MapKeyIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways) - Proto3MapKeyIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapKeyIgnoreAlways.class.getName()); - } - // Use Proto3MapKeyIgnoreAlways.newBuilder() to construct. - private Proto3MapKeyIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapKeyIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapKeyIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways other = (build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways 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.Proto3MapKeyIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways 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.Proto3MapKeyIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways 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.Proto3MapKeyIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways 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.Proto3MapKeyIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways 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.Proto3MapKeyIgnoreAlways 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.Proto3MapKeyIgnoreAlways 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.Proto3MapKeyIgnoreAlways 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.Proto3MapKeyIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways) - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways result = new build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapKeyIgnoreAlways 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.Proto3MapKeyIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 2a1680b9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapKeyIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapKeyIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefault.java deleted file mode 100644 index d352292a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefault.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault} - */ -public final class Proto3MapKeyIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault) - Proto3MapKeyIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapKeyIgnoreDefault.class.getName()); - } - // Use Proto3MapKeyIgnoreDefault.newBuilder() to construct. - private Proto3MapKeyIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapKeyIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapKeyIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault other = (build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault 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.Proto3MapKeyIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault 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.Proto3MapKeyIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault 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.Proto3MapKeyIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault 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.Proto3MapKeyIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault 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.Proto3MapKeyIgnoreDefault 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.Proto3MapKeyIgnoreDefault 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.Proto3MapKeyIgnoreDefault 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.Proto3MapKeyIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault) - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault result = new build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapKeyIgnoreDefault 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.Proto3MapKeyIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefaultOrBuilder.java deleted file mode 100644 index 70affda4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapKeyIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapKeyIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmpty.java deleted file mode 100644 index 9072c4bc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmpty.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty} - */ -public final class Proto3MapKeyIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty) - Proto3MapKeyIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapKeyIgnoreEmpty.class.getName()); - } - // Use Proto3MapKeyIgnoreEmpty.newBuilder() to construct. - private Proto3MapKeyIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapKeyIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapKeyIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty 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.Proto3MapKeyIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty 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.Proto3MapKeyIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty 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.Proto3MapKeyIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty 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.Proto3MapKeyIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty 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.Proto3MapKeyIgnoreEmpty 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.Proto3MapKeyIgnoreEmpty 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.Proto3MapKeyIgnoreEmpty 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.Proto3MapKeyIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty) - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapKeyIgnoreEmpty 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.Proto3MapKeyIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmptyOrBuilder.java deleted file mode 100644 index c8e18af0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapKeyIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapKeyIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecified.java deleted file mode 100644 index 5c6474bf..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecified.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified} - */ -public final class Proto3MapKeyIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified) - Proto3MapKeyIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapKeyIgnoreUnspecified.class.getName()); - } - // Use Proto3MapKeyIgnoreUnspecified.newBuilder() to construct. - private Proto3MapKeyIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapKeyIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapKeyIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified 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.Proto3MapKeyIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified 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.Proto3MapKeyIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified 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.Proto3MapKeyIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified 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.Proto3MapKeyIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified 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.Proto3MapKeyIgnoreUnspecified 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.Proto3MapKeyIgnoreUnspecified 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.Proto3MapKeyIgnoreUnspecified 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.Proto3MapKeyIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapKeyIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapKeyIgnoreUnspecified 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.Proto3MapKeyIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 7924c3bc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapKeyIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapKeyIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapKeyIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreAlways.java deleted file mode 100644 index 4f041d19..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreAlways.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapValueIgnoreAlways} - */ -public final class Proto3MapValueIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapValueIgnoreAlways) - Proto3MapValueIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapValueIgnoreAlways.class.getName()); - } - // Use Proto3MapValueIgnoreAlways.newBuilder() to construct. - private Proto3MapValueIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapValueIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapValueIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways other = (build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways 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.Proto3MapValueIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways 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.Proto3MapValueIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways 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.Proto3MapValueIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways 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.Proto3MapValueIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways 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.Proto3MapValueIgnoreAlways 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.Proto3MapValueIgnoreAlways 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.Proto3MapValueIgnoreAlways 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.Proto3MapValueIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapValueIgnoreAlways) - build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways result = new build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapValueIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapValueIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapValueIgnoreAlways 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.Proto3MapValueIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 614a0c40..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapValueIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapValueIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefault.java deleted file mode 100644 index d5dbcb8f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefault.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapValueIgnoreDefault} - */ -public final class Proto3MapValueIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapValueIgnoreDefault) - Proto3MapValueIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapValueIgnoreDefault.class.getName()); - } - // Use Proto3MapValueIgnoreDefault.newBuilder() to construct. - private Proto3MapValueIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapValueIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapValueIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault other = (build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault 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.Proto3MapValueIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault 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.Proto3MapValueIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault 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.Proto3MapValueIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault 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.Proto3MapValueIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault 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.Proto3MapValueIgnoreDefault 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.Proto3MapValueIgnoreDefault 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.Proto3MapValueIgnoreDefault 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.Proto3MapValueIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapValueIgnoreDefault) - build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault result = new build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapValueIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapValueIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapValueIgnoreDefault 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.Proto3MapValueIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefaultOrBuilder.java deleted file mode 100644 index f200b56a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapValueIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapValueIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmpty.java deleted file mode 100644 index 5d1579cf..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmpty.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty} - */ -public final class Proto3MapValueIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty) - Proto3MapValueIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapValueIgnoreEmpty.class.getName()); - } - // Use Proto3MapValueIgnoreEmpty.newBuilder() to construct. - private Proto3MapValueIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapValueIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapValueIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty 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.Proto3MapValueIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty 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.Proto3MapValueIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty 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.Proto3MapValueIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty 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.Proto3MapValueIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty 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.Proto3MapValueIgnoreEmpty 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.Proto3MapValueIgnoreEmpty 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.Proto3MapValueIgnoreEmpty 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.Proto3MapValueIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty) - build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapValueIgnoreEmpty 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.Proto3MapValueIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmptyOrBuilder.java deleted file mode 100644 index 88edd0c2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapValueIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapValueIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecified.java deleted file mode 100644 index cf17299e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecified.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified} - */ -public final class Proto3MapValueIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified) - Proto3MapValueIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MapValueIgnoreUnspecified.class.getName()); - } - // Use Proto3MapValueIgnoreUnspecified.newBuilder() to construct. - private Proto3MapValueIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MapValueIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.Proto3MapValueIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified 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.Proto3MapValueIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified 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.Proto3MapValueIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified 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.Proto3MapValueIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified 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.Proto3MapValueIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified 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.Proto3MapValueIgnoreUnspecified 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.Proto3MapValueIgnoreUnspecified 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.Proto3MapValueIgnoreUnspecified 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.Proto3MapValueIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MapValueIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MapValueIgnoreUnspecified 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.Proto3MapValueIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 286da8f5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MapValueIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MapValueIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MapValueIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreAlways.java deleted file mode 100644 index 64c46116..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreAlways.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreAlways} - */ -public final class Proto3MessageIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageIgnoreAlways) - Proto3MessageIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MessageIgnoreAlways.class.getName()); - } - // Use Proto3MessageIgnoreAlways.newBuilder() to construct. - private Proto3MessageIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MessageIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto3MessageIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg 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.Proto3MessageIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg 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.Proto3MessageIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg 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.Proto3MessageIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg 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.Proto3MessageIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg 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.Proto3MessageIgnoreAlways.Msg 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.Proto3MessageIgnoreAlways.Msg 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.Proto3MessageIgnoreAlways.Msg 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.Proto3MessageIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg) - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto3MessageIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val_; - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto3MessageIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways other = (build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways 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.Proto3MessageIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways 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.Proto3MessageIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways 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.Proto3MessageIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways 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.Proto3MessageIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways 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.Proto3MessageIgnoreAlways 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.Proto3MessageIgnoreAlways 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.Proto3MessageIgnoreAlways 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.Proto3MessageIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageIgnoreAlways) - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways result = new build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MessageIgnoreAlways 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.Proto3MessageIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 7cb20ead..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MessageIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg getVal(); - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto3MessageIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefault.java deleted file mode 100644 index 7ea67124..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefault.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreDefault} - */ -public final class Proto3MessageIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageIgnoreDefault) - Proto3MessageIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MessageIgnoreDefault.class.getName()); - } - // Use Proto3MessageIgnoreDefault.newBuilder() to construct. - private Proto3MessageIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MessageIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto3MessageIgnoreDefault.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg other = (build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg 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.Proto3MessageIgnoreDefault.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg 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.Proto3MessageIgnoreDefault.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg 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.Proto3MessageIgnoreDefault.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg 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.Proto3MessageIgnoreDefault.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg 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.Proto3MessageIgnoreDefault.Msg 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.Proto3MessageIgnoreDefault.Msg 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.Proto3MessageIgnoreDefault.Msg 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.Proto3MessageIgnoreDefault.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg) - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg build() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg result = new build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg) - private static final build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto3MessageIgnoreDefault.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val_; - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto3MessageIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault other = (build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault 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.Proto3MessageIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault 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.Proto3MessageIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault 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.Proto3MessageIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault 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.Proto3MessageIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault 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.Proto3MessageIgnoreDefault 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.Proto3MessageIgnoreDefault 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.Proto3MessageIgnoreDefault 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.Proto3MessageIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageIgnoreDefault) - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault result = new build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MessageIgnoreDefault 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.Proto3MessageIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefaultOrBuilder.java deleted file mode 100644 index 2e3a82c7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MessageIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg getVal(); - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto3MessageIgnoreDefault.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmpty.java deleted file mode 100644 index e333e099..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmpty.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreEmpty} - */ -public final class Proto3MessageIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty) - Proto3MessageIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MessageIgnoreEmpty.class.getName()); - } - // Use Proto3MessageIgnoreEmpty.newBuilder() to construct. - private Proto3MessageIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MessageIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto3MessageIgnoreEmpty.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg other = (build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg 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.Proto3MessageIgnoreEmpty.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg 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.Proto3MessageIgnoreEmpty.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg 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.Proto3MessageIgnoreEmpty.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg 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.Proto3MessageIgnoreEmpty.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg 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.Proto3MessageIgnoreEmpty.Msg 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.Proto3MessageIgnoreEmpty.Msg 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.Proto3MessageIgnoreEmpty.Msg 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.Proto3MessageIgnoreEmpty.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg) - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg build() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg result = new build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg) - private static final build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto3MessageIgnoreEmpty.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val_; - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto3MessageIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty 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.Proto3MessageIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty 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.Proto3MessageIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty 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.Proto3MessageIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty 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.Proto3MessageIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty 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.Proto3MessageIgnoreEmpty 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.Proto3MessageIgnoreEmpty 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.Proto3MessageIgnoreEmpty 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.Proto3MessageIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty) - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MessageIgnoreEmpty 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.Proto3MessageIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmptyOrBuilder.java deleted file mode 100644 index 09b3ad60..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MessageIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg getVal(); - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto3MessageIgnoreEmpty.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecified.java deleted file mode 100644 index 6b90d497..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecified.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified} - */ -public final class Proto3MessageIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified) - Proto3MessageIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MessageIgnoreUnspecified.class.getName()); - } - // Use Proto3MessageIgnoreUnspecified.newBuilder() to construct. - private Proto3MessageIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MessageIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto3MessageIgnoreUnspecified.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg other = (build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg 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.Proto3MessageIgnoreUnspecified.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg 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.Proto3MessageIgnoreUnspecified.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg 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.Proto3MessageIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg 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.Proto3MessageIgnoreUnspecified.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg 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.Proto3MessageIgnoreUnspecified.Msg 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.Proto3MessageIgnoreUnspecified.Msg 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.Proto3MessageIgnoreUnspecified.Msg 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.Proto3MessageIgnoreUnspecified.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg) - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg build() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg result = new build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg) - private static final build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto3MessageIgnoreUnspecified.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val_; - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto3MessageIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified 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.Proto3MessageIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified 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.Proto3MessageIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified 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.Proto3MessageIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified 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.Proto3MessageIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified 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.Proto3MessageIgnoreUnspecified 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.Proto3MessageIgnoreUnspecified 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.Proto3MessageIgnoreUnspecified 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.Proto3MessageIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MessageIgnoreUnspecified 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.Proto3MessageIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index dcab1c68..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MessageIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg getVal(); - /** - * .buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto3MessageIgnoreUnspecified.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreAlways.java deleted file mode 100644 index 0be68970..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreAlways.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways} - */ -public final class Proto3MessageOptionalIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways) - Proto3MessageOptionalIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MessageOptionalIgnoreAlways.class.getName()); - } - // Use Proto3MessageOptionalIgnoreAlways.newBuilder() to construct. - private Proto3MessageOptionalIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MessageOptionalIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto3MessageOptionalIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg 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.Proto3MessageOptionalIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg 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.Proto3MessageOptionalIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg 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.Proto3MessageOptionalIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg 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.Proto3MessageOptionalIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg 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.Proto3MessageOptionalIgnoreAlways.Msg 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.Proto3MessageOptionalIgnoreAlways.Msg 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.Proto3MessageOptionalIgnoreAlways.Msg 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.Proto3MessageOptionalIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg) - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto3MessageOptionalIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val_; - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto3MessageOptionalIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways other = (build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways 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.Proto3MessageOptionalIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways 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.Proto3MessageOptionalIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways 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.Proto3MessageOptionalIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways 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.Proto3MessageOptionalIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways 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.Proto3MessageOptionalIgnoreAlways 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.Proto3MessageOptionalIgnoreAlways 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.Proto3MessageOptionalIgnoreAlways 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.Proto3MessageOptionalIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways) - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways result = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MessageOptionalIgnoreAlways 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.Proto3MessageOptionalIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 2ab7d373..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MessageOptionalIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefault.java deleted file mode 100644 index babdb6df..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefault.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault} - */ -public final class Proto3MessageOptionalIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault) - Proto3MessageOptionalIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MessageOptionalIgnoreDefault.class.getName()); - } - // Use Proto3MessageOptionalIgnoreDefault.newBuilder() to construct. - private Proto3MessageOptionalIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MessageOptionalIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto3MessageOptionalIgnoreDefault.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg other = (build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg 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.Proto3MessageOptionalIgnoreDefault.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg 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.Proto3MessageOptionalIgnoreDefault.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg 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.Proto3MessageOptionalIgnoreDefault.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg 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.Proto3MessageOptionalIgnoreDefault.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg 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.Proto3MessageOptionalIgnoreDefault.Msg 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.Proto3MessageOptionalIgnoreDefault.Msg 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.Proto3MessageOptionalIgnoreDefault.Msg 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.Proto3MessageOptionalIgnoreDefault.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg) - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg build() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg result = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg) - private static final build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto3MessageOptionalIgnoreDefault.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val_; - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto3MessageOptionalIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault other = (build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault 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.Proto3MessageOptionalIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault 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.Proto3MessageOptionalIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault 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.Proto3MessageOptionalIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault 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.Proto3MessageOptionalIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault 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.Proto3MessageOptionalIgnoreDefault 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.Proto3MessageOptionalIgnoreDefault 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.Proto3MessageOptionalIgnoreDefault 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.Proto3MessageOptionalIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault) - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault result = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MessageOptionalIgnoreDefault 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.Proto3MessageOptionalIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefaultOrBuilder.java deleted file mode 100644 index 44e0f817..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MessageOptionalIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreDefault.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmpty.java deleted file mode 100644 index 52724ac1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmpty.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty} - */ -public final class Proto3MessageOptionalIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty) - Proto3MessageOptionalIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MessageOptionalIgnoreEmpty.class.getName()); - } - // Use Proto3MessageOptionalIgnoreEmpty.newBuilder() to construct. - private Proto3MessageOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MessageOptionalIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto3MessageOptionalIgnoreEmpty.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg other = (build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg 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.Proto3MessageOptionalIgnoreEmpty.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg 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.Proto3MessageOptionalIgnoreEmpty.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg 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.Proto3MessageOptionalIgnoreEmpty.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg 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.Proto3MessageOptionalIgnoreEmpty.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg 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.Proto3MessageOptionalIgnoreEmpty.Msg 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.Proto3MessageOptionalIgnoreEmpty.Msg 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.Proto3MessageOptionalIgnoreEmpty.Msg 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.Proto3MessageOptionalIgnoreEmpty.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg) - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg build() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg result = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg) - private static final build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto3MessageOptionalIgnoreEmpty.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val_; - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto3MessageOptionalIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty 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.Proto3MessageOptionalIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty 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.Proto3MessageOptionalIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty 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.Proto3MessageOptionalIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty 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.Proto3MessageOptionalIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty 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.Proto3MessageOptionalIgnoreEmpty 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.Proto3MessageOptionalIgnoreEmpty 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.Proto3MessageOptionalIgnoreEmpty 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.Proto3MessageOptionalIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty) - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MessageOptionalIgnoreEmpty 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.Proto3MessageOptionalIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmptyOrBuilder.java deleted file mode 100644 index ea25b833..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MessageOptionalIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreEmpty.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecified.java deleted file mode 100644 index d2434c33..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecified.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified} - */ -public final class Proto3MessageOptionalIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified) - Proto3MessageOptionalIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3MessageOptionalIgnoreUnspecified.class.getName()); - } - // Use Proto3MessageOptionalIgnoreUnspecified.newBuilder() to construct. - private Proto3MessageOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3MessageOptionalIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.Proto3MessageOptionalIgnoreUnspecified.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg other = (build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg 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.Proto3MessageOptionalIgnoreUnspecified.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg 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.Proto3MessageOptionalIgnoreUnspecified.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg 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.Proto3MessageOptionalIgnoreUnspecified.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg 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.Proto3MessageOptionalIgnoreUnspecified.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg 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.Proto3MessageOptionalIgnoreUnspecified.Msg 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.Proto3MessageOptionalIgnoreUnspecified.Msg 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.Proto3MessageOptionalIgnoreUnspecified.Msg 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.Proto3MessageOptionalIgnoreUnspecified.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg) - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg build() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg result = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg) - private static final build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.Proto3MessageOptionalIgnoreUnspecified.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val_; - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.Proto3MessageOptionalIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified 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.Proto3MessageOptionalIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified 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.Proto3MessageOptionalIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified 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.Proto3MessageOptionalIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified 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.Proto3MessageOptionalIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified 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.Proto3MessageOptionalIgnoreUnspecified 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.Proto3MessageOptionalIgnoreUnspecified 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.Proto3MessageOptionalIgnoreUnspecified 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.Proto3MessageOptionalIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3MessageOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg.Builder, build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3MessageOptionalIgnoreUnspecified 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.Proto3MessageOptionalIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index a09bd415..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3MessageOptionalIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3MessageOptionalIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Proto3MessageOptionalIgnoreUnspecified.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreAlways.java deleted file mode 100644 index e598b2b2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreAlways.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3OneofIgnoreAlways} - */ -public final class Proto3OneofIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3OneofIgnoreAlways) - Proto3OneofIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3OneofIgnoreAlways.class.getName()); - } - // Use Proto3OneofIgnoreAlways.newBuilder() to construct. - private Proto3OneofIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3OneofIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto3OneofIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways other = (build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways 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.Proto3OneofIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways 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.Proto3OneofIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways 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.Proto3OneofIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways 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.Proto3OneofIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways 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.Proto3OneofIgnoreAlways 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.Proto3OneofIgnoreAlways 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.Proto3OneofIgnoreAlways 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.Proto3OneofIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3OneofIgnoreAlways) - build.buf.validate.conformance.cases.Proto3OneofIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways result = new build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3OneofIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3OneofIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3OneofIgnoreAlways 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.Proto3OneofIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreAlwaysOrBuilder.java deleted file mode 100644 index fa92d3f4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3OneofIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3OneofIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto3OneofIgnoreAlways.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefault.java deleted file mode 100644 index c4bc97ba..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefault.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3OneofIgnoreDefault} - */ -public final class Proto3OneofIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3OneofIgnoreDefault) - Proto3OneofIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3OneofIgnoreDefault.class.getName()); - } - // Use Proto3OneofIgnoreDefault.newBuilder() to construct. - private Proto3OneofIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3OneofIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto3OneofIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault other = (build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault 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.Proto3OneofIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault 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.Proto3OneofIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault 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.Proto3OneofIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault 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.Proto3OneofIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault 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.Proto3OneofIgnoreDefault 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.Proto3OneofIgnoreDefault 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.Proto3OneofIgnoreDefault 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.Proto3OneofIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3OneofIgnoreDefault) - build.buf.validate.conformance.cases.Proto3OneofIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault result = new build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3OneofIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3OneofIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3OneofIgnoreDefault 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.Proto3OneofIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefaultOrBuilder.java deleted file mode 100644 index fc59ed4e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3OneofIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3OneofIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto3OneofIgnoreDefault.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmpty.java deleted file mode 100644 index ba24a750..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmpty.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3OneofIgnoreEmpty} - */ -public final class Proto3OneofIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3OneofIgnoreEmpty) - Proto3OneofIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3OneofIgnoreEmpty.class.getName()); - } - // Use Proto3OneofIgnoreEmpty.newBuilder() to construct. - private Proto3OneofIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3OneofIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto3OneofIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty 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.Proto3OneofIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty 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.Proto3OneofIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty 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.Proto3OneofIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty 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.Proto3OneofIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty 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.Proto3OneofIgnoreEmpty 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.Proto3OneofIgnoreEmpty 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.Proto3OneofIgnoreEmpty 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.Proto3OneofIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3OneofIgnoreEmpty) - build.buf.validate.conformance.cases.Proto3OneofIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3OneofIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3OneofIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3OneofIgnoreEmpty 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.Proto3OneofIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmptyOrBuilder.java deleted file mode 100644 index 157c6bf6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3OneofIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3OneofIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto3OneofIgnoreEmpty.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecified.java deleted file mode 100644 index 0d36d8df..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecified.java +++ /dev/null @@ -1,531 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified} - */ -public final class Proto3OneofIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified) - Proto3OneofIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3OneofIgnoreUnspecified.class.getName()); - } - // Use Proto3OneofIgnoreUnspecified.newBuilder() to construct. - private Proto3OneofIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3OneofIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified.Builder.class); - } - - private int oCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object o_; - public enum OCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VAL(1), - O_NOT_SET(0); - private final int value; - private OCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OCase valueOf(int value) { - return forNumber(value); - } - - public static OCase forNumber(int value) { - switch (value) { - case 1: return VAL; - case 0: return O_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public static final int VAL_FIELD_NUMBER = 1; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - - 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 { - if (oCase_ == 1) { - output.writeInt32( - 1, (int)((java.lang.Integer) o_)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 1, (int)((java.lang.Integer) o_)); - } - 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.Proto3OneofIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified) obj; - - if (!getOCase().equals(other.getOCase())) return false; - switch (oCase_) { - case 1: - if (getVal() - != other.getVal()) return false; - break; - case 0: - default: - } - 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(); - switch (oCase_) { - case 1: - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified 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.Proto3OneofIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified 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.Proto3OneofIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified 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.Proto3OneofIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified 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.Proto3OneofIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified 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.Proto3OneofIgnoreUnspecified 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.Proto3OneofIgnoreUnspecified 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.Proto3OneofIgnoreUnspecified 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.Proto3OneofIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oCase_ = 0; - o_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3OneofIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified result) { - result.oCase_ = oCase_; - result.o_ = this.o_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified.getDefaultInstance()) return this; - switch (other.getOCase()) { - case VAL: { - setVal(other.getVal()); - break; - } - case O_NOT_SET: { - break; - } - } - 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 8: { - o_ = input.readInt32(); - oCase_ = 1; - break; - } // case 8 - 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 oCase_ = 0; - private java.lang.Object o_; - public OCase - getOCase() { - return OCase.forNumber( - oCase_); - } - - public Builder clearO() { - oCase_ = 0; - o_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return oCase_ == 1; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public int getVal() { - if (oCase_ == 1) { - return (java.lang.Integer) o_; - } - return 0; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - oCase_ = 1; - o_ = value; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - if (oCase_ == 1) { - oCase_ = 0; - o_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3OneofIgnoreUnspecified 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.Proto3OneofIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 5e171acd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3OneofIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3OneofIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); - - build.buf.validate.conformance.cases.Proto3OneofIgnoreUnspecified.OCase getOCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreAlways.java deleted file mode 100644 index 2f2f5195..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreAlways.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways} - */ -public final class Proto3RepeatedIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways) - Proto3RepeatedIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3RepeatedIgnoreAlways.class.getName()); - } - // Use Proto3RepeatedIgnoreAlways.newBuilder() to construct. - private Proto3RepeatedIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3RepeatedIgnoreAlways() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.Proto3RepeatedIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways other = (build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways) 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.Proto3RepeatedIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways 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.Proto3RepeatedIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways 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.Proto3RepeatedIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways 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.Proto3RepeatedIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways 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.Proto3RepeatedIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways 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.Proto3RepeatedIgnoreAlways 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.Proto3RepeatedIgnoreAlways 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.Proto3RepeatedIgnoreAlways 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.Proto3RepeatedIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways) - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways result = new build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3RepeatedIgnoreAlways 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.Proto3RepeatedIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreAlwaysOrBuilder.java deleted file mode 100644 index e6068932..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3RepeatedIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3RepeatedIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefault.java deleted file mode 100644 index ba8bcdfa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefault.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault} - */ -public final class Proto3RepeatedIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault) - Proto3RepeatedIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3RepeatedIgnoreDefault.class.getName()); - } - // Use Proto3RepeatedIgnoreDefault.newBuilder() to construct. - private Proto3RepeatedIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3RepeatedIgnoreDefault() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.Proto3RepeatedIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault other = (build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault) 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.Proto3RepeatedIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault 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.Proto3RepeatedIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault 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.Proto3RepeatedIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault 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.Proto3RepeatedIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault 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.Proto3RepeatedIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault 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.Proto3RepeatedIgnoreDefault 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.Proto3RepeatedIgnoreDefault 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.Proto3RepeatedIgnoreDefault 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.Proto3RepeatedIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault) - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault result = new build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3RepeatedIgnoreDefault 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.Proto3RepeatedIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefaultOrBuilder.java deleted file mode 100644 index bc791cf3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3RepeatedIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3RepeatedIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmpty.java deleted file mode 100644 index a7188335..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmpty.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty} - */ -public final class Proto3RepeatedIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty) - Proto3RepeatedIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3RepeatedIgnoreEmpty.class.getName()); - } - // Use Proto3RepeatedIgnoreEmpty.newBuilder() to construct. - private Proto3RepeatedIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3RepeatedIgnoreEmpty() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.Proto3RepeatedIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty) 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.Proto3RepeatedIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty 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.Proto3RepeatedIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty 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.Proto3RepeatedIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty 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.Proto3RepeatedIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty 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.Proto3RepeatedIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty 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.Proto3RepeatedIgnoreEmpty 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.Proto3RepeatedIgnoreEmpty 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.Proto3RepeatedIgnoreEmpty 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.Proto3RepeatedIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty) - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3RepeatedIgnoreEmpty 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.Proto3RepeatedIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmptyOrBuilder.java deleted file mode 100644 index e3cddd94..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3RepeatedIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3RepeatedIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecified.java deleted file mode 100644 index 50cdcb00..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecified.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified} - */ -public final class Proto3RepeatedIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified) - Proto3RepeatedIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3RepeatedIgnoreUnspecified.class.getName()); - } - // Use Proto3RepeatedIgnoreUnspecified.newBuilder() to construct. - private Proto3RepeatedIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3RepeatedIgnoreUnspecified() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.Proto3RepeatedIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified) 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.Proto3RepeatedIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified 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.Proto3RepeatedIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified 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.Proto3RepeatedIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified 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.Proto3RepeatedIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified 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.Proto3RepeatedIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified 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.Proto3RepeatedIgnoreUnspecified 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.Proto3RepeatedIgnoreUnspecified 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.Proto3RepeatedIgnoreUnspecified 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.Proto3RepeatedIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3RepeatedIgnoreUnspecified 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.Proto3RepeatedIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 99601a0b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3RepeatedIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3RepeatedIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreAlways.java deleted file mode 100644 index 1b33d791..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreAlways.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways} - */ -public final class Proto3RepeatedItemIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways) - Proto3RepeatedItemIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3RepeatedItemIgnoreAlways.class.getName()); - } - // Use Proto3RepeatedItemIgnoreAlways.newBuilder() to construct. - private Proto3RepeatedItemIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3RepeatedItemIgnoreAlways() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.Proto3RepeatedItemIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways other = (build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways) 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.Proto3RepeatedItemIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways 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.Proto3RepeatedItemIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways 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.Proto3RepeatedItemIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways 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.Proto3RepeatedItemIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways 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.Proto3RepeatedItemIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways 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.Proto3RepeatedItemIgnoreAlways 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.Proto3RepeatedItemIgnoreAlways 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.Proto3RepeatedItemIgnoreAlways 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.Proto3RepeatedItemIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways) - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways result = new build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3RepeatedItemIgnoreAlways 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.Proto3RepeatedItemIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 9ec14dfc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3RepeatedItemIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefault.java deleted file mode 100644 index 1450ce4a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefault.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault} - */ -public final class Proto3RepeatedItemIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault) - Proto3RepeatedItemIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3RepeatedItemIgnoreDefault.class.getName()); - } - // Use Proto3RepeatedItemIgnoreDefault.newBuilder() to construct. - private Proto3RepeatedItemIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3RepeatedItemIgnoreDefault() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.Proto3RepeatedItemIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault other = (build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault) 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.Proto3RepeatedItemIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault 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.Proto3RepeatedItemIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault 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.Proto3RepeatedItemIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault 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.Proto3RepeatedItemIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault 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.Proto3RepeatedItemIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault 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.Proto3RepeatedItemIgnoreDefault 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.Proto3RepeatedItemIgnoreDefault 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.Proto3RepeatedItemIgnoreDefault 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.Proto3RepeatedItemIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault) - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault result = new build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3RepeatedItemIgnoreDefault 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.Proto3RepeatedItemIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefaultOrBuilder.java deleted file mode 100644 index 568dcf22..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3RepeatedItemIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmpty.java deleted file mode 100644 index 379d1b58..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmpty.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty} - */ -public final class Proto3RepeatedItemIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty) - Proto3RepeatedItemIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3RepeatedItemIgnoreEmpty.class.getName()); - } - // Use Proto3RepeatedItemIgnoreEmpty.newBuilder() to construct. - private Proto3RepeatedItemIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3RepeatedItemIgnoreEmpty() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.Proto3RepeatedItemIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty) 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.Proto3RepeatedItemIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty 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.Proto3RepeatedItemIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty 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.Proto3RepeatedItemIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty 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.Proto3RepeatedItemIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty 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.Proto3RepeatedItemIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty 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.Proto3RepeatedItemIgnoreEmpty 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.Proto3RepeatedItemIgnoreEmpty 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.Proto3RepeatedItemIgnoreEmpty 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.Proto3RepeatedItemIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty) - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3RepeatedItemIgnoreEmpty 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.Proto3RepeatedItemIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmptyOrBuilder.java deleted file mode 100644 index 099d0dbc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3RepeatedItemIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecified.java deleted file mode 100644 index 228a654c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecified.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified} - */ -public final class Proto3RepeatedItemIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified) - Proto3RepeatedItemIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3RepeatedItemIgnoreUnspecified.class.getName()); - } - // Use Proto3RepeatedItemIgnoreUnspecified.newBuilder() to construct. - private Proto3RepeatedItemIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3RepeatedItemIgnoreUnspecified() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.Proto3RepeatedItemIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified) 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.Proto3RepeatedItemIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified 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.Proto3RepeatedItemIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified 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.Proto3RepeatedItemIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified 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.Proto3RepeatedItemIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified 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.Proto3RepeatedItemIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified 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.Proto3RepeatedItemIgnoreUnspecified 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.Proto3RepeatedItemIgnoreUnspecified 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.Proto3RepeatedItemIgnoreUnspecified 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.Proto3RepeatedItemIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3RepeatedItemIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3RepeatedItemIgnoreUnspecified 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.Proto3RepeatedItemIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 74fddde8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3RepeatedItemIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3RepeatedItemIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3RepeatedItemIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreAlways.java deleted file mode 100644 index 3c94060e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreAlways.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarIgnoreAlways} - */ -public final class Proto3ScalarIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3ScalarIgnoreAlways) - Proto3ScalarIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3ScalarIgnoreAlways.class.getName()); - } - // Use Proto3ScalarIgnoreAlways.newBuilder() to construct. - private Proto3ScalarIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3ScalarIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto3ScalarIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways other = (build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways 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.Proto3ScalarIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways 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.Proto3ScalarIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways 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.Proto3ScalarIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways 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.Proto3ScalarIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways 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.Proto3ScalarIgnoreAlways 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.Proto3ScalarIgnoreAlways 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.Proto3ScalarIgnoreAlways 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.Proto3ScalarIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3ScalarIgnoreAlways) - build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways result = new build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3ScalarIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3ScalarIgnoreAlways 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.Proto3ScalarIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 396af2ce..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3ScalarIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3ScalarIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefault.java deleted file mode 100644 index 2c388b5f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefault.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarIgnoreDefault} - */ -public final class Proto3ScalarIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3ScalarIgnoreDefault) - Proto3ScalarIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3ScalarIgnoreDefault.class.getName()); - } - // Use Proto3ScalarIgnoreDefault.newBuilder() to construct. - private Proto3ScalarIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3ScalarIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto3ScalarIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault other = (build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault 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.Proto3ScalarIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault 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.Proto3ScalarIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault 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.Proto3ScalarIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault 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.Proto3ScalarIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault 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.Proto3ScalarIgnoreDefault 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.Proto3ScalarIgnoreDefault 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.Proto3ScalarIgnoreDefault 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.Proto3ScalarIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3ScalarIgnoreDefault) - build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault result = new build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3ScalarIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3ScalarIgnoreDefault 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.Proto3ScalarIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefaultOrBuilder.java deleted file mode 100644 index 26f908ca..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3ScalarIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3ScalarIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmpty.java deleted file mode 100644 index b8d1ff05..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmpty.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty} - */ -public final class Proto3ScalarIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty) - Proto3ScalarIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3ScalarIgnoreEmpty.class.getName()); - } - // Use Proto3ScalarIgnoreEmpty.newBuilder() to construct. - private Proto3ScalarIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3ScalarIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto3ScalarIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty 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.Proto3ScalarIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty 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.Proto3ScalarIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty 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.Proto3ScalarIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty 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.Proto3ScalarIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty 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.Proto3ScalarIgnoreEmpty 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.Proto3ScalarIgnoreEmpty 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.Proto3ScalarIgnoreEmpty 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.Proto3ScalarIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty) - build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3ScalarIgnoreEmpty 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.Proto3ScalarIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmptyOrBuilder.java deleted file mode 100644 index 88981499..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3ScalarIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3ScalarIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecified.java deleted file mode 100644 index fc32a515..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecified.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified} - */ -public final class Proto3ScalarIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified) - Proto3ScalarIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3ScalarIgnoreUnspecified.class.getName()); - } - // Use Proto3ScalarIgnoreUnspecified.newBuilder() to construct. - private Proto3ScalarIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3ScalarIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto3ScalarIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified 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.Proto3ScalarIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified 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.Proto3ScalarIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified 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.Proto3ScalarIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified 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.Proto3ScalarIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified 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.Proto3ScalarIgnoreUnspecified 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.Proto3ScalarIgnoreUnspecified 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.Proto3ScalarIgnoreUnspecified 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.Proto3ScalarIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3ScalarIgnoreUnspecified 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.Proto3ScalarIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index 3040769e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3ScalarIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3ScalarIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreAlways.java deleted file mode 100644 index 639fd5c5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreAlways.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways} - */ -public final class Proto3ScalarOptionalIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways) - Proto3ScalarOptionalIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3ScalarOptionalIgnoreAlways.class.getName()); - } - // Use Proto3ScalarOptionalIgnoreAlways.newBuilder() to construct. - private Proto3ScalarOptionalIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3ScalarOptionalIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto3ScalarOptionalIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways other = (build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways 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.Proto3ScalarOptionalIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways 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.Proto3ScalarOptionalIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways 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.Proto3ScalarOptionalIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways 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.Proto3ScalarOptionalIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways 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.Proto3ScalarOptionalIgnoreAlways 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.Proto3ScalarOptionalIgnoreAlways 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.Proto3ScalarOptionalIgnoreAlways 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.Proto3ScalarOptionalIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways) - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways.class, build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways build() { - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways result = new build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways) - private static final build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3ScalarOptionalIgnoreAlways 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.Proto3ScalarOptionalIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreAlwaysOrBuilder.java deleted file mode 100644 index fba1e021..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3ScalarOptionalIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefault.java deleted file mode 100644 index ae5b05cc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefault.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault} - */ -public final class Proto3ScalarOptionalIgnoreDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault) - Proto3ScalarOptionalIgnoreDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3ScalarOptionalIgnoreDefault.class.getName()); - } - // Use Proto3ScalarOptionalIgnoreDefault.newBuilder() to construct. - private Proto3ScalarOptionalIgnoreDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3ScalarOptionalIgnoreDefault() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto3ScalarOptionalIgnoreDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault other = (build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault 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.Proto3ScalarOptionalIgnoreDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault 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.Proto3ScalarOptionalIgnoreDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault 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.Proto3ScalarOptionalIgnoreDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault 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.Proto3ScalarOptionalIgnoreDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault 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.Proto3ScalarOptionalIgnoreDefault 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.Proto3ScalarOptionalIgnoreDefault 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.Proto3ScalarOptionalIgnoreDefault 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.Proto3ScalarOptionalIgnoreDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault) - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault.class, build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault build() { - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault buildPartial() { - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault result = new build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault other) { - if (other == build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault) - private static final build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault(); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3ScalarOptionalIgnoreDefault 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.Proto3ScalarOptionalIgnoreDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefaultOrBuilder.java deleted file mode 100644 index f8357600..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreDefaultOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3ScalarOptionalIgnoreDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmpty.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmpty.java deleted file mode 100644 index 23559465..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmpty.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty} - */ -public final class Proto3ScalarOptionalIgnoreEmpty extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty) - Proto3ScalarOptionalIgnoreEmptyOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3ScalarOptionalIgnoreEmpty.class.getName()); - } - // Use Proto3ScalarOptionalIgnoreEmpty.newBuilder() to construct. - private Proto3ScalarOptionalIgnoreEmpty(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3ScalarOptionalIgnoreEmpty() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto3ScalarOptionalIgnoreEmpty)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty other = (build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty 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.Proto3ScalarOptionalIgnoreEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty 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.Proto3ScalarOptionalIgnoreEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty 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.Proto3ScalarOptionalIgnoreEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty 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.Proto3ScalarOptionalIgnoreEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty 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.Proto3ScalarOptionalIgnoreEmpty 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.Proto3ScalarOptionalIgnoreEmpty 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.Proto3ScalarOptionalIgnoreEmpty 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.Proto3ScalarOptionalIgnoreEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty) - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty.class, build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreEmpty_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty build() { - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty buildPartial() { - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty result = new build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty other) { - if (other == build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty) - private static final build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty(); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3ScalarOptionalIgnoreEmpty 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.Proto3ScalarOptionalIgnoreEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmptyOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmptyOrBuilder.java deleted file mode 100644 index c8a87c3c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreEmptyOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3ScalarOptionalIgnoreEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreEmpty) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecified.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecified.java deleted file mode 100644 index a1317fbc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecified.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified} - */ -public final class Proto3ScalarOptionalIgnoreUnspecified extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified) - Proto3ScalarOptionalIgnoreUnspecifiedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Proto3ScalarOptionalIgnoreUnspecified.class.getName()); - } - // Use Proto3ScalarOptionalIgnoreUnspecified.newBuilder() to construct. - private Proto3ScalarOptionalIgnoreUnspecified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Proto3ScalarOptionalIgnoreUnspecified() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.Proto3ScalarOptionalIgnoreUnspecified)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified other = (build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified 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.Proto3ScalarOptionalIgnoreUnspecified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified 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.Proto3ScalarOptionalIgnoreUnspecified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified 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.Proto3ScalarOptionalIgnoreUnspecified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified 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.Proto3ScalarOptionalIgnoreUnspecified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified 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.Proto3ScalarOptionalIgnoreUnspecified 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.Proto3ScalarOptionalIgnoreUnspecified 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.Proto3ScalarOptionalIgnoreUnspecified 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.Proto3ScalarOptionalIgnoreUnspecified} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified) - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified.class, build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.IgnoreProto3Proto.internal_static_buf_validate_conformance_cases_Proto3ScalarOptionalIgnoreUnspecified_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified build() { - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified buildPartial() { - build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified result = new build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified) { - return mergeFrom((build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified other) { - if (other == build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified) - private static final build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified(); - } - - public static build.buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Proto3ScalarOptionalIgnoreUnspecified 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.Proto3ScalarOptionalIgnoreUnspecified getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecifiedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecifiedOrBuilder.java deleted file mode 100644 index c94e6611..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/Proto3ScalarOptionalIgnoreUnspecifiedOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/ignore_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface Proto3ScalarOptionalIgnoreUnspecifiedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.Proto3ScalarOptionalIgnoreUnspecified) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyIn.java deleted file mode 100644 index 32d13f77..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyIn.java +++ /dev/null @@ -1,719 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedAnyIn} - */ -public final class RepeatedAnyIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedAnyIn) - RepeatedAnyInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedAnyIn.class.getName()); - } - // Use RepeatedAnyIn.newBuilder() to construct. - private RepeatedAnyIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedAnyIn() { - val_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedAnyIn.class, build.buf.validate.conformance.cases.RepeatedAnyIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Any getVal(int index) { - return val_.get(index); - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder 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.RepeatedAnyIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedAnyIn other = (build.buf.validate.conformance.cases.RepeatedAnyIn) 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.RepeatedAnyIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedAnyIn 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.RepeatedAnyIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedAnyIn 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.RepeatedAnyIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedAnyIn 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.RepeatedAnyIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedAnyIn 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.RepeatedAnyIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedAnyIn 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.RepeatedAnyIn 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.RepeatedAnyIn 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.RepeatedAnyIn 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.RepeatedAnyIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedAnyIn) - build.buf.validate.conformance.cases.RepeatedAnyInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedAnyIn.class, build.buf.validate.conformance.cases.RepeatedAnyIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedAnyIn.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.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedAnyIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedAnyIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedAnyIn build() { - build.buf.validate.conformance.cases.RepeatedAnyIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedAnyIn buildPartial() { - build.buf.validate.conformance.cases.RepeatedAnyIn result = new build.buf.validate.conformance.cases.RepeatedAnyIn(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedAnyIn 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.RepeatedAnyIn result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedAnyIn) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedAnyIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedAnyIn other) { - if (other == build.buf.validate.conformance.cases.RepeatedAnyIn.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 ? - internalGetValFieldBuilder() : 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.Any m = - input.readMessage( - com.google.protobuf.Any.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.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valBuilder_; - - /** - * repeated .google.protobuf.Any 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.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.Any 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.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(com.google.protobuf.Any value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.Any 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.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - com.google.protobuf.Any.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.Any 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.Any 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.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.AnyOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedAnyIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedAnyIn) - private static final build.buf.validate.conformance.cases.RepeatedAnyIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedAnyIn(); - } - - public static build.buf.validate.conformance.cases.RepeatedAnyIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedAnyIn 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.RepeatedAnyIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyInOrBuilder.java deleted file mode 100644 index c6db452e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyInOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedAnyInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedAnyIn) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Any getVal(int index); - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.AnyOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotIn.java deleted file mode 100644 index af6dade5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotIn.java +++ /dev/null @@ -1,719 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedAnyNotIn} - */ -public final class RepeatedAnyNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedAnyNotIn) - RepeatedAnyNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedAnyNotIn.class.getName()); - } - // Use RepeatedAnyNotIn.newBuilder() to construct. - private RepeatedAnyNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedAnyNotIn() { - val_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedAnyNotIn.class, build.buf.validate.conformance.cases.RepeatedAnyNotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Any getVal(int index) { - return val_.get(index); - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder 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.RepeatedAnyNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedAnyNotIn other = (build.buf.validate.conformance.cases.RepeatedAnyNotIn) 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.RepeatedAnyNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedAnyNotIn 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.RepeatedAnyNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedAnyNotIn 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.RepeatedAnyNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedAnyNotIn 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.RepeatedAnyNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedAnyNotIn 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.RepeatedAnyNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedAnyNotIn 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.RepeatedAnyNotIn 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.RepeatedAnyNotIn 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.RepeatedAnyNotIn 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.RepeatedAnyNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedAnyNotIn) - build.buf.validate.conformance.cases.RepeatedAnyNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedAnyNotIn.class, build.buf.validate.conformance.cases.RepeatedAnyNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedAnyNotIn.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.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedAnyNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedAnyNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedAnyNotIn build() { - build.buf.validate.conformance.cases.RepeatedAnyNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedAnyNotIn buildPartial() { - build.buf.validate.conformance.cases.RepeatedAnyNotIn result = new build.buf.validate.conformance.cases.RepeatedAnyNotIn(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedAnyNotIn 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.RepeatedAnyNotIn result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedAnyNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedAnyNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedAnyNotIn other) { - if (other == build.buf.validate.conformance.cases.RepeatedAnyNotIn.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 ? - internalGetValFieldBuilder() : 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.Any m = - input.readMessage( - com.google.protobuf.Any.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.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valBuilder_; - - /** - * repeated .google.protobuf.Any 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.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.Any 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.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(com.google.protobuf.Any value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.Any 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.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - com.google.protobuf.Any.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.Any 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.Any 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.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.AnyOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Any.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedAnyNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedAnyNotIn) - private static final build.buf.validate.conformance.cases.RepeatedAnyNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedAnyNotIn(); - } - - public static build.buf.validate.conformance.cases.RepeatedAnyNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedAnyNotIn 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.RepeatedAnyNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotInOrBuilder.java deleted file mode 100644 index 7cfb92c3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedAnyNotInOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedAnyNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedAnyNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Any getVal(int index); - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .google.protobuf.Any val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.AnyOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDuration.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDuration.java deleted file mode 100644 index 29071a59..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDuration.java +++ /dev/null @@ -1,719 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedDuration} - */ -public final class RepeatedDuration extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedDuration) - RepeatedDurationOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedDuration.class.getName()); - } - // Use RepeatedDuration.newBuilder() to construct. - private RepeatedDuration(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedDuration() { - val_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedDuration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedDuration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedDuration.class, build.buf.validate.conformance.cases.RepeatedDuration.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Duration getVal(int index) { - return val_.get(index); - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder 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.RepeatedDuration)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedDuration other = (build.buf.validate.conformance.cases.RepeatedDuration) 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.RepeatedDuration parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedDuration 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.RepeatedDuration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedDuration 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.RepeatedDuration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedDuration 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.RepeatedDuration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedDuration 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.RepeatedDuration parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedDuration 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.RepeatedDuration 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.RepeatedDuration 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.RepeatedDuration 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.RepeatedDuration} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedDuration) - build.buf.validate.conformance.cases.RepeatedDurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedDuration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedDuration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedDuration.class, build.buf.validate.conformance.cases.RepeatedDuration.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedDuration.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.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedDuration_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedDuration getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedDuration.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedDuration build() { - build.buf.validate.conformance.cases.RepeatedDuration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedDuration buildPartial() { - build.buf.validate.conformance.cases.RepeatedDuration result = new build.buf.validate.conformance.cases.RepeatedDuration(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedDuration 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.RepeatedDuration result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedDuration) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedDuration)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedDuration other) { - if (other == build.buf.validate.conformance.cases.RepeatedDuration.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 ? - internalGetValFieldBuilder() : 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.Duration m = - input.readMessage( - com.google.protobuf.Duration.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.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> valBuilder_; - - /** - * repeated .google.protobuf.Duration 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.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.Duration 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.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(com.google.protobuf.Duration value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.Duration 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.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, com.google.protobuf.Duration.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.Duration 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.Duration 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.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - com.google.protobuf.Duration.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Duration.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, com.google.protobuf.Duration.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedDuration) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedDuration) - private static final build.buf.validate.conformance.cases.RepeatedDuration DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedDuration(); - } - - public static build.buf.validate.conformance.cases.RepeatedDuration getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedDuration 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.RepeatedDuration getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDurationOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDurationOrBuilder.java deleted file mode 100644 index 20f55ac8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedDurationOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedDurationOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedDuration) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Duration getVal(int index); - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .google.protobuf.Duration val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DurationOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNone.java deleted file mode 100644 index b3a4872d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNone.java +++ /dev/null @@ -1,719 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone} - */ -public final class RepeatedEmbedCrossPackageNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone) - RepeatedEmbedCrossPackageNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedEmbedCrossPackageNone.class.getName()); - } - // Use RepeatedEmbedCrossPackageNone.newBuilder() to construct. - private RepeatedEmbedCrossPackageNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedEmbedCrossPackageNone() { - val_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone.class, build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed getVal(int index) { - return val_.get(index); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.EmbedOrBuilder 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.RepeatedEmbedCrossPackageNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone other = (build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone) 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.RepeatedEmbedCrossPackageNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone 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.RepeatedEmbedCrossPackageNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone 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.RepeatedEmbedCrossPackageNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone 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.RepeatedEmbedCrossPackageNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone 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.RepeatedEmbedCrossPackageNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone 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.RepeatedEmbedCrossPackageNone 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.RepeatedEmbedCrossPackageNone 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.RepeatedEmbedCrossPackageNone 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.RepeatedEmbedCrossPackageNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone) - build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone.class, build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone.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.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone build() { - build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone buildPartial() { - build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone result = new build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone 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.RepeatedEmbedCrossPackageNone result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone other) { - if (other == build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone.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 ? - internalGetValFieldBuilder() : 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: { - build.buf.validate.conformance.cases.other_package.Embed m = - input.readMessage( - build.buf.validate.conformance.cases.other_package.Embed.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< - build.buf.validate.conformance.cases.other_package.Embed, build.buf.validate.conformance.cases.other_package.Embed.Builder, build.buf.validate.conformance.cases.other_package.EmbedOrBuilder> valBuilder_; - - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public java.util.List getValList() { - if (valBuilder_ == null) { - return java.util.Collections.unmodifiableList(val_); - } else { - return valBuilder_.getMessageList(); - } - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.other_package.Embed getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.other_package.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.set(index, value); - onChanged(); - } else { - valBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.other_package.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder addVal(build.buf.validate.conformance.cases.other_package.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.other_package.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(index, value); - onChanged(); - } else { - valBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder addVal( - build.buf.validate.conformance.cases.other_package.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.other_package.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder clearVal() { - if (valBuilder_ == null) { - val_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - valBuilder_.clear(); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public Builder removeVal(int index) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.remove(index); - onChanged(); - } else { - valBuilder_.remove(index); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.other_package.Embed.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.other_package.EmbedOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.other_package.Embed.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - build.buf.validate.conformance.cases.other_package.Embed.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.other_package.Embed.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, build.buf.validate.conformance.cases.other_package.Embed.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.other_package.Embed, build.buf.validate.conformance.cases.other_package.Embed.Builder, build.buf.validate.conformance.cases.other_package.EmbedOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.other_package.Embed, build.buf.validate.conformance.cases.other_package.Embed.Builder, build.buf.validate.conformance.cases.other_package.EmbedOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone) - private static final build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone(); - } - - public static build.buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedEmbedCrossPackageNone 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.RepeatedEmbedCrossPackageNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNoneOrBuilder.java deleted file mode 100644 index 5c7454a1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedCrossPackageNoneOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedEmbedCrossPackageNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedEmbedCrossPackageNone) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - java.util.List - getValList(); - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - build.buf.validate.conformance.cases.other_package.Embed getVal(int index); - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .buf.validate.conformance.cases.other_package.Embed val = 1 [json_name = "val"]; - */ - build.buf.validate.conformance.cases.other_package.EmbedOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNone.java deleted file mode 100644 index 40059af8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNone.java +++ /dev/null @@ -1,719 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbedNone} - */ -public final class RepeatedEmbedNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedEmbedNone) - RepeatedEmbedNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedEmbedNone.class.getName()); - } - // Use RepeatedEmbedNone.newBuilder() to construct. - private RepeatedEmbedNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedEmbedNone() { - val_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEmbedNone.class, build.buf.validate.conformance.cases.RepeatedEmbedNone.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Embed getVal(int index) { - return val_.get(index); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EmbedOrBuilder 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.RepeatedEmbedNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedEmbedNone other = (build.buf.validate.conformance.cases.RepeatedEmbedNone) 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.RepeatedEmbedNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedNone 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.RepeatedEmbedNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedNone 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.RepeatedEmbedNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedNone 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.RepeatedEmbedNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedNone 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.RepeatedEmbedNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedEmbedNone 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.RepeatedEmbedNone 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.RepeatedEmbedNone 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.RepeatedEmbedNone 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.RepeatedEmbedNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedEmbedNone) - build.buf.validate.conformance.cases.RepeatedEmbedNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEmbedNone.class, build.buf.validate.conformance.cases.RepeatedEmbedNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedEmbedNone.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.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbedNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedEmbedNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbedNone build() { - build.buf.validate.conformance.cases.RepeatedEmbedNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbedNone buildPartial() { - build.buf.validate.conformance.cases.RepeatedEmbedNone result = new build.buf.validate.conformance.cases.RepeatedEmbedNone(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedEmbedNone 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.RepeatedEmbedNone result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedEmbedNone) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedEmbedNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedEmbedNone other) { - if (other == build.buf.validate.conformance.cases.RepeatedEmbedNone.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 ? - internalGetValFieldBuilder() : 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: { - build.buf.validate.conformance.cases.Embed m = - input.readMessage( - build.buf.validate.conformance.cases.Embed.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< - build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder> valBuilder_; - - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public java.util.List getValList() { - if (valBuilder_ == null) { - return java.util.Collections.unmodifiableList(val_); - } else { - return valBuilder_.getMessageList(); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.Embed getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.set(index, value); - onChanged(); - } else { - valBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public Builder addVal(build.buf.validate.conformance.cases.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(index, value); - onChanged(); - } else { - valBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public Builder addVal( - build.buf.validate.conformance.cases.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public Builder clearVal() { - if (valBuilder_ == null) { - val_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - valBuilder_.clear(); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public Builder removeVal(int index) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.remove(index); - onChanged(); - } else { - valBuilder_.remove(index); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.Embed.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.EmbedOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.Embed.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - build.buf.validate.conformance.cases.Embed.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public build.buf.validate.conformance.cases.Embed.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, build.buf.validate.conformance.cases.Embed.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEmbedNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedEmbedNone) - private static final build.buf.validate.conformance.cases.RepeatedEmbedNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedEmbedNone(); - } - - public static build.buf.validate.conformance.cases.RepeatedEmbedNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedEmbedNone 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.RepeatedEmbedNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNoneOrBuilder.java deleted file mode 100644 index 4411d73b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedNoneOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedEmbedNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedEmbedNone) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - java.util.List - getValList(); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - build.buf.validate.conformance.cases.Embed getVal(int index); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val"]; - */ - build.buf.validate.conformance.cases.EmbedOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkip.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkip.java deleted file mode 100644 index 90f747c2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkip.java +++ /dev/null @@ -1,719 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbedSkip} - */ -public final class RepeatedEmbedSkip extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedEmbedSkip) - RepeatedEmbedSkipOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedEmbedSkip.class.getName()); - } - // Use RepeatedEmbedSkip.newBuilder() to construct. - private RepeatedEmbedSkip(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedEmbedSkip() { - val_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEmbedSkip.class, build.buf.validate.conformance.cases.RepeatedEmbedSkip.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Embed getVal(int index) { - return val_.get(index); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EmbedOrBuilder 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.RepeatedEmbedSkip)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedEmbedSkip other = (build.buf.validate.conformance.cases.RepeatedEmbedSkip) 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.RepeatedEmbedSkip parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedSkip 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.RepeatedEmbedSkip parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedSkip 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.RepeatedEmbedSkip parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedSkip 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.RepeatedEmbedSkip parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedEmbedSkip 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.RepeatedEmbedSkip parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedEmbedSkip 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.RepeatedEmbedSkip 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.RepeatedEmbedSkip 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.RepeatedEmbedSkip 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.RepeatedEmbedSkip} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedEmbedSkip) - build.buf.validate.conformance.cases.RepeatedEmbedSkipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEmbedSkip.class, build.buf.validate.conformance.cases.RepeatedEmbedSkip.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedEmbedSkip.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.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbedSkip getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedEmbedSkip.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbedSkip build() { - build.buf.validate.conformance.cases.RepeatedEmbedSkip result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbedSkip buildPartial() { - build.buf.validate.conformance.cases.RepeatedEmbedSkip result = new build.buf.validate.conformance.cases.RepeatedEmbedSkip(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedEmbedSkip 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.RepeatedEmbedSkip result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedEmbedSkip) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedEmbedSkip)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedEmbedSkip other) { - if (other == build.buf.validate.conformance.cases.RepeatedEmbedSkip.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 ? - internalGetValFieldBuilder() : 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: { - build.buf.validate.conformance.cases.Embed m = - input.readMessage( - build.buf.validate.conformance.cases.Embed.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< - build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder> valBuilder_; - - /** - * repeated .buf.validate.conformance.cases.Embed 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 .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Embed getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.set(index, value); - onChanged(); - } else { - valBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(build.buf.validate.conformance.cases.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(index, value); - onChanged(); - } else { - valBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - build.buf.validate.conformance.cases.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed 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 .buf.validate.conformance.cases.Embed 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 .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Embed.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.EmbedOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Embed.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - build.buf.validate.conformance.cases.Embed.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Embed.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, build.buf.validate.conformance.cases.Embed.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEmbedSkip) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedEmbedSkip) - private static final build.buf.validate.conformance.cases.RepeatedEmbedSkip DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedEmbedSkip(); - } - - public static build.buf.validate.conformance.cases.RepeatedEmbedSkip getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedEmbedSkip 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.RepeatedEmbedSkip getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkipOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkipOrBuilder.java deleted file mode 100644 index a0426dc0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbedSkipOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedEmbedSkipOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedEmbedSkip) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Embed getVal(int index); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.EmbedOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumIn.java deleted file mode 100644 index 8d72e96f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumIn.java +++ /dev/null @@ -1,753 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbeddedEnumIn} - */ -public final class RepeatedEmbeddedEnumIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedEmbeddedEnumIn) - RepeatedEmbeddedEnumInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedEmbeddedEnumIn.class.getName()); - } - // Use RepeatedEmbeddedEnumIn.newBuilder() to construct. - private RepeatedEmbeddedEnumIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedEmbeddedEnumIn() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.class, build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.Builder.class); - } - - /** - * Protobuf enum {@code buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum} - */ - public enum AnotherInEnum - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ANOTHER_IN_ENUM_UNSPECIFIED = 0; - */ - ANOTHER_IN_ENUM_UNSPECIFIED(0), - /** - * ANOTHER_IN_ENUM_A = 1; - */ - ANOTHER_IN_ENUM_A(1), - /** - * ANOTHER_IN_ENUM_B = 2; - */ - ANOTHER_IN_ENUM_B(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - AnotherInEnum.class.getName()); - } - /** - * ANOTHER_IN_ENUM_UNSPECIFIED = 0; - */ - public static final int ANOTHER_IN_ENUM_UNSPECIFIED_VALUE = 0; - /** - * ANOTHER_IN_ENUM_A = 1; - */ - public static final int ANOTHER_IN_ENUM_A_VALUE = 1; - /** - * ANOTHER_IN_ENUM_B = 2; - */ - public static final int ANOTHER_IN_ENUM_B_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AnotherInEnum valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static AnotherInEnum forNumber(int value) { - switch (value) { - case 0: return ANOTHER_IN_ENUM_UNSPECIFIED; - case 1: return ANOTHER_IN_ENUM_A; - case 2: return ANOTHER_IN_ENUM_B; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AnotherInEnum> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AnotherInEnum findValueByNumber(int number) { - return AnotherInEnum.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.getDescriptor().getEnumTypes().get(0); - } - - private static final AnotherInEnum[] VALUES = values(); - - public static AnotherInEnum valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AnotherInEnum(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum) - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_; - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum> val_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum>() { - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum convert(int from) { - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum result = build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum.forNumber(from); - return result == null ? build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum.UNRECOGNIZED : result; - } - }; - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - @java.lang.Override - public java.util.List - getValValueList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - @java.lang.Override - public int getValValue(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeEnumNoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }valMemoizedSerializedSize = dataSize; - } - 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.RepeatedEmbeddedEnumIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn other = (build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn) obj; - - if (!val_.equals(other.val_)) 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) + val_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn 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.RepeatedEmbeddedEnumIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn 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.RepeatedEmbeddedEnumIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn 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.RepeatedEmbeddedEnumIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn 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.RepeatedEmbeddedEnumIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn 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.RepeatedEmbeddedEnumIn 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.RepeatedEmbeddedEnumIn 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.RepeatedEmbeddedEnumIn 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.RepeatedEmbeddedEnumIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedEmbeddedEnumIn) - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.class, build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn build() { - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn buildPartial() { - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn result = new build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn result) { - if (((bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.val_ = val_; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn other) { - if (other == build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - } - input.popLimit(oldLimit); - 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 com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - private void ensureValIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - val_ = makeMutableCopy(val_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.addInt(value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - for (build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum value : values) { - val_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - public java.util.List - getValValueList() { - return java.util.Collections.unmodifiableList(val_); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - public int getValValue(int index) { - return val_.getInt(index); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue( - int index, int value) { - ensureValIsMutable(); - val_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addValValue(int value) { - ensureValIsMutable(); - val_.addInt(value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The enum numeric values on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addAllValValue( - java.lang.Iterable values) { - ensureValIsMutable(); - for (int value : values) { - val_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEmbeddedEnumIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedEmbeddedEnumIn) - private static final build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn(); - } - - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedEmbeddedEnumIn 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.RepeatedEmbeddedEnumIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumInOrBuilder.java deleted file mode 100644 index 44c16293..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumInOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedEmbeddedEnumInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedEmbeddedEnumIn) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum getVal(int index); - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - java.util.List - getValValueList(); - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumIn.AnotherInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - int getValValue(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotIn.java deleted file mode 100644 index eea2d214..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotIn.java +++ /dev/null @@ -1,753 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn} - */ -public final class RepeatedEmbeddedEnumNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn) - RepeatedEmbeddedEnumNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedEmbeddedEnumNotIn.class.getName()); - } - // Use RepeatedEmbeddedEnumNotIn.newBuilder() to construct. - private RepeatedEmbeddedEnumNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedEmbeddedEnumNotIn() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.class, build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.Builder.class); - } - - /** - * Protobuf enum {@code buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum} - */ - public enum AnotherNotInEnum - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ANOTHER_NOT_IN_ENUM_UNSPECIFIED = 0; - */ - ANOTHER_NOT_IN_ENUM_UNSPECIFIED(0), - /** - * ANOTHER_NOT_IN_ENUM_A = 1; - */ - ANOTHER_NOT_IN_ENUM_A(1), - /** - * ANOTHER_NOT_IN_ENUM_B = 2; - */ - ANOTHER_NOT_IN_ENUM_B(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - AnotherNotInEnum.class.getName()); - } - /** - * ANOTHER_NOT_IN_ENUM_UNSPECIFIED = 0; - */ - public static final int ANOTHER_NOT_IN_ENUM_UNSPECIFIED_VALUE = 0; - /** - * ANOTHER_NOT_IN_ENUM_A = 1; - */ - public static final int ANOTHER_NOT_IN_ENUM_A_VALUE = 1; - /** - * ANOTHER_NOT_IN_ENUM_B = 2; - */ - public static final int ANOTHER_NOT_IN_ENUM_B_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AnotherNotInEnum valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static AnotherNotInEnum forNumber(int value) { - switch (value) { - case 0: return ANOTHER_NOT_IN_ENUM_UNSPECIFIED; - case 1: return ANOTHER_NOT_IN_ENUM_A; - case 2: return ANOTHER_NOT_IN_ENUM_B; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AnotherNotInEnum> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AnotherNotInEnum findValueByNumber(int number) { - return AnotherNotInEnum.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.getDescriptor().getEnumTypes().get(0); - } - - private static final AnotherNotInEnum[] VALUES = values(); - - public static AnotherNotInEnum valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AnotherNotInEnum(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum) - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_; - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum> val_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum>() { - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum convert(int from) { - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum result = build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum.forNumber(from); - return result == null ? build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum.UNRECOGNIZED : result; - } - }; - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - @java.lang.Override - public java.util.List - getValValueList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - @java.lang.Override - public int getValValue(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeEnumNoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }valMemoizedSerializedSize = dataSize; - } - 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.RepeatedEmbeddedEnumNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn other = (build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn) obj; - - if (!val_.equals(other.val_)) 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) + val_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn 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.RepeatedEmbeddedEnumNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn 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.RepeatedEmbeddedEnumNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn 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.RepeatedEmbeddedEnumNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn 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.RepeatedEmbeddedEnumNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn 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.RepeatedEmbeddedEnumNotIn 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.RepeatedEmbeddedEnumNotIn 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.RepeatedEmbeddedEnumNotIn 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.RepeatedEmbeddedEnumNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn) - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.class, build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn build() { - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn buildPartial() { - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn result = new build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn result) { - if (((bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.val_ = val_; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn other) { - if (other == build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - } - input.popLimit(oldLimit); - 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 com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - private void ensureValIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - val_ = makeMutableCopy(val_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.addInt(value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - for (build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum value : values) { - val_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - public java.util.List - getValValueList() { - return java.util.Collections.unmodifiableList(val_); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - public int getValValue(int index) { - return val_.getInt(index); - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue( - int index, int value) { - ensureValIsMutable(); - val_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addValValue(int value) { - ensureValIsMutable(); - val_.addInt(value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The enum numeric values on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addAllValValue( - java.lang.Iterable values) { - ensureValIsMutable(); - for (int value : values) { - val_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn) - private static final build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn(); - } - - public static build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedEmbeddedEnumNotIn 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.RepeatedEmbeddedEnumNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotInOrBuilder.java deleted file mode 100644 index abc4ab8a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEmbeddedEnumNotInOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedEmbeddedEnumNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - build.buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum getVal(int index); - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - java.util.List - getValValueList(); - /** - * repeated .buf.validate.conformance.cases.RepeatedEmbeddedEnumNotIn.AnotherNotInEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - int getValValue(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefined.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefined.java deleted file mode 100644 index 74fa73d2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefined.java +++ /dev/null @@ -1,627 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedEnumDefined} - */ -public final class RepeatedEnumDefined extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedEnumDefined) - RepeatedEnumDefinedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedEnumDefined.class.getName()); - } - // Use RepeatedEnumDefined.newBuilder() to construct. - private RepeatedEnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedEnumDefined() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEnumDefined.class, build.buf.validate.conformance.cases.RepeatedEnumDefined.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_; - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.TestEnum> val_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.TestEnum>() { - public build.buf.validate.conformance.cases.TestEnum convert(int from) { - build.buf.validate.conformance.cases.TestEnum result = build.buf.validate.conformance.cases.TestEnum.forNumber(from); - return result == null ? build.buf.validate.conformance.cases.TestEnum.UNRECOGNIZED : result; - } - }; - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.TestEnum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestEnum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - @java.lang.Override - public java.util.List - getValValueList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - @java.lang.Override - public int getValValue(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeEnumNoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }valMemoizedSerializedSize = dataSize; - } - 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.RepeatedEnumDefined)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedEnumDefined other = (build.buf.validate.conformance.cases.RepeatedEnumDefined) obj; - - if (!val_.equals(other.val_)) 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) + val_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RepeatedEnumDefined parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEnumDefined 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.RepeatedEnumDefined parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEnumDefined 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.RepeatedEnumDefined parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEnumDefined 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.RepeatedEnumDefined parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedEnumDefined 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.RepeatedEnumDefined parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedEnumDefined 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.RepeatedEnumDefined 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.RepeatedEnumDefined 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.RepeatedEnumDefined 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.RepeatedEnumDefined} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedEnumDefined) - build.buf.validate.conformance.cases.RepeatedEnumDefinedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEnumDefined.class, build.buf.validate.conformance.cases.RepeatedEnumDefined.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedEnumDefined.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedEnumDefined_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEnumDefined getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedEnumDefined.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEnumDefined build() { - build.buf.validate.conformance.cases.RepeatedEnumDefined result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEnumDefined buildPartial() { - build.buf.validate.conformance.cases.RepeatedEnumDefined result = new build.buf.validate.conformance.cases.RepeatedEnumDefined(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedEnumDefined result) { - if (((bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.val_ = val_; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEnumDefined result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedEnumDefined) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedEnumDefined)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedEnumDefined other) { - if (other == build.buf.validate.conformance.cases.RepeatedEnumDefined.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - } - input.popLimit(oldLimit); - 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 com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - private void ensureValIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - val_ = makeMutableCopy(val_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.TestEnum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public build.buf.validate.conformance.cases.TestEnum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.TestEnum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(build.buf.validate.conformance.cases.TestEnum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.addInt(value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - for (build.buf.validate.conformance.cases.TestEnum value : values) { - val_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - public java.util.List - getValValueList() { - return java.util.Collections.unmodifiableList(val_); - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - public int getValValue(int index) { - return val_.getInt(index); - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue( - int index, int value) { - ensureValIsMutable(); - val_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addValValue(int value) { - ensureValIsMutable(); - val_.addInt(value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The enum numeric values on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addAllValValue( - java.lang.Iterable values) { - ensureValIsMutable(); - for (int value : values) { - val_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEnumDefined) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedEnumDefined) - private static final build.buf.validate.conformance.cases.RepeatedEnumDefined DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedEnumDefined(); - } - - public static build.buf.validate.conformance.cases.RepeatedEnumDefined getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedEnumDefined 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.RepeatedEnumDefined getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefinedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefinedOrBuilder.java deleted file mode 100644 index 1e223277..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumDefinedOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedEnumDefinedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedEnumDefined) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - build.buf.validate.conformance.cases.TestEnum getVal(int index); - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - java.util.List - getValValueList(); - /** - * repeated .buf.validate.conformance.cases.TestEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - int getValValue(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumIn.java deleted file mode 100644 index a5084e29..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumIn.java +++ /dev/null @@ -1,627 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedEnumIn} - */ -public final class RepeatedEnumIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedEnumIn) - RepeatedEnumInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedEnumIn.class.getName()); - } - // Use RepeatedEnumIn.newBuilder() to construct. - private RepeatedEnumIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedEnumIn() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEnumIn.class, build.buf.validate.conformance.cases.RepeatedEnumIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_; - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.AnEnum> val_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.AnEnum>() { - public build.buf.validate.conformance.cases.AnEnum convert(int from) { - build.buf.validate.conformance.cases.AnEnum result = build.buf.validate.conformance.cases.AnEnum.forNumber(from); - return result == null ? build.buf.validate.conformance.cases.AnEnum.UNRECOGNIZED : result; - } - }; - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.AnEnum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.AnEnum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - @java.lang.Override - public java.util.List - getValValueList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - @java.lang.Override - public int getValValue(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeEnumNoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }valMemoizedSerializedSize = dataSize; - } - 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.RepeatedEnumIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedEnumIn other = (build.buf.validate.conformance.cases.RepeatedEnumIn) obj; - - if (!val_.equals(other.val_)) 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) + val_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RepeatedEnumIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEnumIn 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.RepeatedEnumIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEnumIn 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.RepeatedEnumIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEnumIn 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.RepeatedEnumIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedEnumIn 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.RepeatedEnumIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedEnumIn 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.RepeatedEnumIn 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.RepeatedEnumIn 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.RepeatedEnumIn 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.RepeatedEnumIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedEnumIn) - build.buf.validate.conformance.cases.RepeatedEnumInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEnumIn.class, build.buf.validate.conformance.cases.RepeatedEnumIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedEnumIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEnumIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedEnumIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEnumIn build() { - build.buf.validate.conformance.cases.RepeatedEnumIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEnumIn buildPartial() { - build.buf.validate.conformance.cases.RepeatedEnumIn result = new build.buf.validate.conformance.cases.RepeatedEnumIn(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedEnumIn result) { - if (((bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.val_ = val_; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEnumIn result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedEnumIn) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedEnumIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedEnumIn other) { - if (other == build.buf.validate.conformance.cases.RepeatedEnumIn.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - } - input.popLimit(oldLimit); - 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 com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - private void ensureValIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - val_ = makeMutableCopy(val_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.AnEnum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public build.buf.validate.conformance.cases.AnEnum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.AnEnum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(build.buf.validate.conformance.cases.AnEnum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.addInt(value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - for (build.buf.validate.conformance.cases.AnEnum value : values) { - val_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - public java.util.List - getValValueList() { - return java.util.Collections.unmodifiableList(val_); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - public int getValValue(int index) { - return val_.getInt(index); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue( - int index, int value) { - ensureValIsMutable(); - val_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addValValue(int value) { - ensureValIsMutable(); - val_.addInt(value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The enum numeric values on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addAllValValue( - java.lang.Iterable values) { - ensureValIsMutable(); - for (int value : values) { - val_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEnumIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedEnumIn) - private static final build.buf.validate.conformance.cases.RepeatedEnumIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedEnumIn(); - } - - public static build.buf.validate.conformance.cases.RepeatedEnumIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedEnumIn 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.RepeatedEnumIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumInOrBuilder.java deleted file mode 100644 index 550578e3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumInOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedEnumInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedEnumIn) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - build.buf.validate.conformance.cases.AnEnum getVal(int index); - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - java.util.List - getValValueList(); - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - int getValValue(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotIn.java deleted file mode 100644 index bc987baa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotIn.java +++ /dev/null @@ -1,627 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedEnumNotIn} - */ -public final class RepeatedEnumNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedEnumNotIn) - RepeatedEnumNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedEnumNotIn.class.getName()); - } - // Use RepeatedEnumNotIn.newBuilder() to construct. - private RepeatedEnumNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedEnumNotIn() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEnumNotIn.class, build.buf.validate.conformance.cases.RepeatedEnumNotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_; - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.AnEnum> val_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.AnEnum>() { - public build.buf.validate.conformance.cases.AnEnum convert(int from) { - build.buf.validate.conformance.cases.AnEnum result = build.buf.validate.conformance.cases.AnEnum.forNumber(from); - return result == null ? build.buf.validate.conformance.cases.AnEnum.UNRECOGNIZED : result; - } - }; - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.AnEnum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.AnEnum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - @java.lang.Override - public java.util.List - getValValueList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - @java.lang.Override - public int getValValue(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeEnumNoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }valMemoizedSerializedSize = dataSize; - } - 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.RepeatedEnumNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedEnumNotIn other = (build.buf.validate.conformance.cases.RepeatedEnumNotIn) obj; - - if (!val_.equals(other.val_)) 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) + val_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RepeatedEnumNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEnumNotIn 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.RepeatedEnumNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEnumNotIn 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.RepeatedEnumNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedEnumNotIn 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.RepeatedEnumNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedEnumNotIn 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.RepeatedEnumNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedEnumNotIn 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.RepeatedEnumNotIn 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.RepeatedEnumNotIn 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.RepeatedEnumNotIn 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.RepeatedEnumNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedEnumNotIn) - build.buf.validate.conformance.cases.RepeatedEnumNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedEnumNotIn.class, build.buf.validate.conformance.cases.RepeatedEnumNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedEnumNotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEnumNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedEnumNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEnumNotIn build() { - build.buf.validate.conformance.cases.RepeatedEnumNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedEnumNotIn buildPartial() { - build.buf.validate.conformance.cases.RepeatedEnumNotIn result = new build.buf.validate.conformance.cases.RepeatedEnumNotIn(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedEnumNotIn result) { - if (((bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.val_ = val_; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedEnumNotIn result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedEnumNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedEnumNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedEnumNotIn other) { - if (other == build.buf.validate.conformance.cases.RepeatedEnumNotIn.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - } - input.popLimit(oldLimit); - 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 com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - private void ensureValIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - val_ = makeMutableCopy(val_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.AnEnum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public build.buf.validate.conformance.cases.AnEnum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.AnEnum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(build.buf.validate.conformance.cases.AnEnum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.addInt(value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - for (build.buf.validate.conformance.cases.AnEnum value : values) { - val_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - public java.util.List - getValValueList() { - return java.util.Collections.unmodifiableList(val_); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - public int getValValue(int index) { - return val_.getInt(index); - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue( - int index, int value) { - ensureValIsMutable(); - val_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addValValue(int value) { - ensureValIsMutable(); - val_.addInt(value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The enum numeric values on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addAllValValue( - java.lang.Iterable values) { - ensureValIsMutable(); - for (int value : values) { - val_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedEnumNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedEnumNotIn) - private static final build.buf.validate.conformance.cases.RepeatedEnumNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedEnumNotIn(); - } - - public static build.buf.validate.conformance.cases.RepeatedEnumNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedEnumNotIn 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.RepeatedEnumNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotInOrBuilder.java deleted file mode 100644 index 458ac818..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedEnumNotInOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedEnumNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedEnumNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - build.buf.validate.conformance.cases.AnEnum getVal(int index); - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - java.util.List - getValValueList(); - /** - * repeated .buf.validate.conformance.cases.AnEnum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - int getValValue(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExact.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExact.java deleted file mode 100644 index 4a1ce3dc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExact.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedExact} - */ -public final class RepeatedExact extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedExact) - RepeatedExactOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedExact.class.getName()); - } - // Use RepeatedExact.newBuilder() to construct. - private RepeatedExact(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedExact() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedExact.class, build.buf.validate.conformance.cases.RepeatedExact.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeUInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.RepeatedExact)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedExact other = (build.buf.validate.conformance.cases.RepeatedExact) 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.RepeatedExact parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedExact 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.RepeatedExact parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedExact 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.RepeatedExact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedExact 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.RepeatedExact parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedExact 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.RepeatedExact parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedExact 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.RepeatedExact 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.RepeatedExact 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.RepeatedExact 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.RepeatedExact} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedExact) - build.buf.validate.conformance.cases.RepeatedExactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedExact.class, build.buf.validate.conformance.cases.RepeatedExact.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedExact.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExact_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedExact getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedExact.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedExact build() { - build.buf.validate.conformance.cases.RepeatedExact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedExact buildPartial() { - build.buf.validate.conformance.cases.RepeatedExact result = new build.buf.validate.conformance.cases.RepeatedExact(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedExact result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedExact) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedExact)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedExact other) { - if (other == build.buf.validate.conformance.cases.RepeatedExact.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readUInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readUInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedExact) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedExact) - private static final build.buf.validate.conformance.cases.RepeatedExact DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedExact(); - } - - public static build.buf.validate.conformance.cases.RepeatedExact getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedExact 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.RepeatedExact getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnore.java deleted file mode 100644 index 2e485e95..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnore.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedExactIgnore} - */ -public final class RepeatedExactIgnore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedExactIgnore) - RepeatedExactIgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedExactIgnore.class.getName()); - } - // Use RepeatedExactIgnore.newBuilder() to construct. - private RepeatedExactIgnore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedExactIgnore() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedExactIgnore.class, build.buf.validate.conformance.cases.RepeatedExactIgnore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeUInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.RepeatedExactIgnore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedExactIgnore other = (build.buf.validate.conformance.cases.RepeatedExactIgnore) 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.RepeatedExactIgnore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedExactIgnore 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.RepeatedExactIgnore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedExactIgnore 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.RepeatedExactIgnore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedExactIgnore 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.RepeatedExactIgnore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedExactIgnore 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.RepeatedExactIgnore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedExactIgnore 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.RepeatedExactIgnore 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.RepeatedExactIgnore 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.RepeatedExactIgnore 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.RepeatedExactIgnore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedExactIgnore) - build.buf.validate.conformance.cases.RepeatedExactIgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedExactIgnore.class, build.buf.validate.conformance.cases.RepeatedExactIgnore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedExactIgnore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedExactIgnore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedExactIgnore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedExactIgnore build() { - build.buf.validate.conformance.cases.RepeatedExactIgnore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedExactIgnore buildPartial() { - build.buf.validate.conformance.cases.RepeatedExactIgnore result = new build.buf.validate.conformance.cases.RepeatedExactIgnore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedExactIgnore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedExactIgnore) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedExactIgnore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedExactIgnore other) { - if (other == build.buf.validate.conformance.cases.RepeatedExactIgnore.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readUInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readUInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedExactIgnore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedExactIgnore) - private static final build.buf.validate.conformance.cases.RepeatedExactIgnore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedExactIgnore(); - } - - public static build.buf.validate.conformance.cases.RepeatedExactIgnore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedExactIgnore 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.RepeatedExactIgnore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnoreOrBuilder.java deleted file mode 100644 index 012b47c5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactIgnoreOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedExactIgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedExactIgnore) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactOrBuilder.java deleted file mode 100644 index 5afd0d95..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExactOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedExactOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedExact) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefined.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefined.java deleted file mode 100644 index bbae7224..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefined.java +++ /dev/null @@ -1,627 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedExternalEnumDefined} - */ -public final class RepeatedExternalEnumDefined extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedExternalEnumDefined) - RepeatedExternalEnumDefinedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedExternalEnumDefined.class.getName()); - } - // Use RepeatedExternalEnumDefined.newBuilder() to construct. - private RepeatedExternalEnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedExternalEnumDefined() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedExternalEnumDefined.class, build.buf.validate.conformance.cases.RepeatedExternalEnumDefined.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_; - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.other_package.Embed.Enumerated> val_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.other_package.Embed.Enumerated>() { - public build.buf.validate.conformance.cases.other_package.Embed.Enumerated convert(int from) { - build.buf.validate.conformance.cases.other_package.Embed.Enumerated result = build.buf.validate.conformance.cases.other_package.Embed.Enumerated.forNumber(from); - return result == null ? build.buf.validate.conformance.cases.other_package.Embed.Enumerated.UNRECOGNIZED : result; - } - }; - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.other_package.Embed.Enumerated>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed.Enumerated getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - @java.lang.Override - public java.util.List - getValValueList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - @java.lang.Override - public int getValValue(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeEnumNoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }valMemoizedSerializedSize = dataSize; - } - 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.RepeatedExternalEnumDefined)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedExternalEnumDefined other = (build.buf.validate.conformance.cases.RepeatedExternalEnumDefined) obj; - - if (!val_.equals(other.val_)) 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) + val_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RepeatedExternalEnumDefined parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedExternalEnumDefined 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.RepeatedExternalEnumDefined parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedExternalEnumDefined 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.RepeatedExternalEnumDefined parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedExternalEnumDefined 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.RepeatedExternalEnumDefined parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedExternalEnumDefined 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.RepeatedExternalEnumDefined parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedExternalEnumDefined 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.RepeatedExternalEnumDefined 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.RepeatedExternalEnumDefined 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.RepeatedExternalEnumDefined 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.RepeatedExternalEnumDefined} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedExternalEnumDefined) - build.buf.validate.conformance.cases.RepeatedExternalEnumDefinedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedExternalEnumDefined.class, build.buf.validate.conformance.cases.RepeatedExternalEnumDefined.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedExternalEnumDefined.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedExternalEnumDefined_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedExternalEnumDefined getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedExternalEnumDefined.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedExternalEnumDefined build() { - build.buf.validate.conformance.cases.RepeatedExternalEnumDefined result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedExternalEnumDefined buildPartial() { - build.buf.validate.conformance.cases.RepeatedExternalEnumDefined result = new build.buf.validate.conformance.cases.RepeatedExternalEnumDefined(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedExternalEnumDefined result) { - if (((bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.val_ = val_; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedExternalEnumDefined result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedExternalEnumDefined) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedExternalEnumDefined)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedExternalEnumDefined other) { - if (other == build.buf.validate.conformance.cases.RepeatedExternalEnumDefined.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - } - input.popLimit(oldLimit); - 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 com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - private void ensureValIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - val_ = makeMutableCopy(val_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.other_package.Embed.Enumerated>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public build.buf.validate.conformance.cases.other_package.Embed.Enumerated getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.other_package.Embed.Enumerated value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(build.buf.validate.conformance.cases.other_package.Embed.Enumerated value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.addInt(value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - for (build.buf.validate.conformance.cases.other_package.Embed.Enumerated value : values) { - val_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - public java.util.List - getValValueList() { - return java.util.Collections.unmodifiableList(val_); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - public int getValValue(int index) { - return val_.getInt(index); - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue( - int index, int value) { - ensureValIsMutable(); - val_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addValValue(int value) { - ensureValIsMutable(); - val_.addInt(value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The enum numeric values on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addAllValValue( - java.lang.Iterable values) { - ensureValIsMutable(); - for (int value : values) { - val_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedExternalEnumDefined) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedExternalEnumDefined) - private static final build.buf.validate.conformance.cases.RepeatedExternalEnumDefined DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedExternalEnumDefined(); - } - - public static build.buf.validate.conformance.cases.RepeatedExternalEnumDefined getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedExternalEnumDefined 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.RepeatedExternalEnumDefined getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefinedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefinedOrBuilder.java deleted file mode 100644 index 40aaf997..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedExternalEnumDefinedOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedExternalEnumDefinedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedExternalEnumDefined) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - build.buf.validate.conformance.cases.other_package.Embed.Enumerated getVal(int index); - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - java.util.List - getValValueList(); - /** - * repeated .buf.validate.conformance.cases.other_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - int getValValue(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemIn.java deleted file mode 100644 index 5174c4af..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemIn.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemIn} - */ -public final class RepeatedItemIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedItemIn) - RepeatedItemInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedItemIn.class.getName()); - } - // Use RepeatedItemIn.newBuilder() to construct. - private RepeatedItemIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedItemIn() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedItemIn.class, build.buf.validate.conformance.cases.RepeatedItemIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RepeatedItemIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedItemIn other = (build.buf.validate.conformance.cases.RepeatedItemIn) 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.RepeatedItemIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemIn 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.RepeatedItemIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemIn 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.RepeatedItemIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemIn 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.RepeatedItemIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedItemIn 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.RepeatedItemIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedItemIn 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.RepeatedItemIn 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.RepeatedItemIn 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.RepeatedItemIn 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.RepeatedItemIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedItemIn) - build.buf.validate.conformance.cases.RepeatedItemInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedItemIn.class, build.buf.validate.conformance.cases.RepeatedItemIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedItemIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedItemIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemIn build() { - build.buf.validate.conformance.cases.RepeatedItemIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemIn buildPartial() { - build.buf.validate.conformance.cases.RepeatedItemIn result = new build.buf.validate.conformance.cases.RepeatedItemIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedItemIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedItemIn) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedItemIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedItemIn other) { - if (other == build.buf.validate.conformance.cases.RepeatedItemIn.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedItemIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedItemIn) - private static final build.buf.validate.conformance.cases.RepeatedItemIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedItemIn(); - } - - public static build.buf.validate.conformance.cases.RepeatedItemIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedItemIn 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.RepeatedItemIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemInOrBuilder.java deleted file mode 100644 index c52f0999..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemInOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedItemInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedItemIn) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotIn.java deleted file mode 100644 index fe23e324..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotIn.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemNotIn} - */ -public final class RepeatedItemNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedItemNotIn) - RepeatedItemNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedItemNotIn.class.getName()); - } - // Use RepeatedItemNotIn.newBuilder() to construct. - private RepeatedItemNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedItemNotIn() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedItemNotIn.class, build.buf.validate.conformance.cases.RepeatedItemNotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RepeatedItemNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedItemNotIn other = (build.buf.validate.conformance.cases.RepeatedItemNotIn) 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.RepeatedItemNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemNotIn 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.RepeatedItemNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemNotIn 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.RepeatedItemNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemNotIn 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.RepeatedItemNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedItemNotIn 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.RepeatedItemNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedItemNotIn 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.RepeatedItemNotIn 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.RepeatedItemNotIn 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.RepeatedItemNotIn 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.RepeatedItemNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedItemNotIn) - build.buf.validate.conformance.cases.RepeatedItemNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedItemNotIn.class, build.buf.validate.conformance.cases.RepeatedItemNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedItemNotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedItemNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemNotIn build() { - build.buf.validate.conformance.cases.RepeatedItemNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemNotIn buildPartial() { - build.buf.validate.conformance.cases.RepeatedItemNotIn result = new build.buf.validate.conformance.cases.RepeatedItemNotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedItemNotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedItemNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedItemNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedItemNotIn other) { - if (other == build.buf.validate.conformance.cases.RepeatedItemNotIn.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedItemNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedItemNotIn) - private static final build.buf.validate.conformance.cases.RepeatedItemNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedItemNotIn(); - } - - public static build.buf.validate.conformance.cases.RepeatedItemNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedItemNotIn 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.RepeatedItemNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotInOrBuilder.java deleted file mode 100644 index 7025c705..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemNotInOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedItemNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedItemNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPattern.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPattern.java deleted file mode 100644 index c1e38c67..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPattern.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemPattern} - */ -public final class RepeatedItemPattern extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedItemPattern) - RepeatedItemPatternOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedItemPattern.class.getName()); - } - // Use RepeatedItemPattern.newBuilder() to construct. - private RepeatedItemPattern(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedItemPattern() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemPattern_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedItemPattern.class, build.buf.validate.conformance.cases.RepeatedItemPattern.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RepeatedItemPattern)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedItemPattern other = (build.buf.validate.conformance.cases.RepeatedItemPattern) 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.RepeatedItemPattern parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemPattern 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.RepeatedItemPattern parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemPattern 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.RepeatedItemPattern parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemPattern 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.RepeatedItemPattern parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedItemPattern 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.RepeatedItemPattern parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedItemPattern 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.RepeatedItemPattern 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.RepeatedItemPattern 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.RepeatedItemPattern 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.RepeatedItemPattern} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedItemPattern) - build.buf.validate.conformance.cases.RepeatedItemPatternOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemPattern_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedItemPattern.class, build.buf.validate.conformance.cases.RepeatedItemPattern.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedItemPattern.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemPattern_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemPattern getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedItemPattern.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemPattern build() { - build.buf.validate.conformance.cases.RepeatedItemPattern result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemPattern buildPartial() { - build.buf.validate.conformance.cases.RepeatedItemPattern result = new build.buf.validate.conformance.cases.RepeatedItemPattern(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedItemPattern result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedItemPattern) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedItemPattern)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedItemPattern other) { - if (other == build.buf.validate.conformance.cases.RepeatedItemPattern.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedItemPattern) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedItemPattern) - private static final build.buf.validate.conformance.cases.RepeatedItemPattern DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedItemPattern(); - } - - public static build.buf.validate.conformance.cases.RepeatedItemPattern getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedItemPattern 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.RepeatedItemPattern getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPatternOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPatternOrBuilder.java deleted file mode 100644 index bef6edde..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemPatternOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedItemPatternOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedItemPattern) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRule.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRule.java deleted file mode 100644 index f0c1687e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRule.java +++ /dev/null @@ -1,544 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedItemRule} - */ -public final class RepeatedItemRule extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedItemRule) - RepeatedItemRuleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedItemRule.class.getName()); - } - // Use RepeatedItemRule.newBuilder() to construct. - private RepeatedItemRule(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedItemRule() { - val_ = emptyFloatList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemRule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemRule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedItemRule.class, build.buf.validate.conformance.cases.RepeatedItemRule.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.FloatList val_ = - emptyFloatList(); - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public float getVal(int index) { - return val_.getFloat(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeFloatNoTag(val_.getFloat(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - dataSize = 4 * getValList().size(); - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.RepeatedItemRule)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedItemRule other = (build.buf.validate.conformance.cases.RepeatedItemRule) 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.RepeatedItemRule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemRule 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.RepeatedItemRule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemRule 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.RepeatedItemRule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedItemRule 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.RepeatedItemRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedItemRule 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.RepeatedItemRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedItemRule 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.RepeatedItemRule 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.RepeatedItemRule 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.RepeatedItemRule 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.RepeatedItemRule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedItemRule) - build.buf.validate.conformance.cases.RepeatedItemRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemRule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemRule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedItemRule.class, build.buf.validate.conformance.cases.RepeatedItemRule.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedItemRule.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyFloatList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedItemRule_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemRule getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedItemRule.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemRule build() { - build.buf.validate.conformance.cases.RepeatedItemRule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedItemRule buildPartial() { - build.buf.validate.conformance.cases.RepeatedItemRule result = new build.buf.validate.conformance.cases.RepeatedItemRule(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedItemRule result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedItemRule) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedItemRule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedItemRule other) { - if (other == build.buf.validate.conformance.cases.RepeatedItemRule.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 13: { - float v = input.readFloat(); - ensureValIsMutable(); - val_.addFloat(v); - break; - } // case 13 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureValIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - val_.addFloat(input.readFloat()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.FloatList val_ = emptyFloatList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - private void ensureValIsMutable(int capacity) { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_, capacity); - } - bitField0_ |= 0x00000001; - } - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public float getVal(int index) { - return val_.getFloat(index); - } - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, float value) { - - ensureValIsMutable(); - val_.setFloat(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(float value) { - - ensureValIsMutable(); - val_.addFloat(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedItemRule) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedItemRule) - private static final build.buf.validate.conformance.cases.RepeatedItemRule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedItemRule(); - } - - public static build.buf.validate.conformance.cases.RepeatedItemRule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedItemRule 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.RepeatedItemRule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRuleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRuleOrBuilder.java deleted file mode 100644 index fac3e5d7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedItemRuleOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedItemRuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedItemRule) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated float val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - float getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMax.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMax.java deleted file mode 100644 index 6b79439a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMax.java +++ /dev/null @@ -1,544 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedMax} - */ -public final class RepeatedMax extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedMax) - RepeatedMaxOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedMax.class.getName()); - } - // Use RepeatedMax.newBuilder() to construct. - private RepeatedMax(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedMax() { - val_ = emptyDoubleList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMax_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMax_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMax.class, build.buf.validate.conformance.cases.RepeatedMax.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.DoubleList val_ = - emptyDoubleList(); - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public double getVal(int index) { - return val_.getDouble(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeDoubleNoTag(val_.getDouble(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - dataSize = 8 * getValList().size(); - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.RepeatedMax)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedMax other = (build.buf.validate.conformance.cases.RepeatedMax) 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.RepeatedMax parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMax 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.RepeatedMax parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMax 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.RepeatedMax parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMax 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.RepeatedMax parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedMax 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.RepeatedMax parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedMax 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.RepeatedMax 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.RepeatedMax 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.RepeatedMax 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.RepeatedMax} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedMax) - build.buf.validate.conformance.cases.RepeatedMaxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMax_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMax_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMax.class, build.buf.validate.conformance.cases.RepeatedMax.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedMax.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyDoubleList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMax_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMax getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedMax.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMax build() { - build.buf.validate.conformance.cases.RepeatedMax result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMax buildPartial() { - build.buf.validate.conformance.cases.RepeatedMax result = new build.buf.validate.conformance.cases.RepeatedMax(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedMax result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedMax) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedMax)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedMax other) { - if (other == build.buf.validate.conformance.cases.RepeatedMax.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 9: { - double v = input.readDouble(); - ensureValIsMutable(); - val_.addDouble(v); - break; - } // case 9 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureValIsMutable(alloc / 8); - while (input.getBytesUntilLimit() > 0) { - val_.addDouble(input.readDouble()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.DoubleList val_ = emptyDoubleList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - private void ensureValIsMutable(int capacity) { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_, capacity); - } - bitField0_ |= 0x00000001; - } - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public double getVal(int index) { - return val_.getDouble(index); - } - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, double value) { - - ensureValIsMutable(); - val_.setDouble(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(double value) { - - ensureValIsMutable(); - val_.addDouble(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMax) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedMax) - private static final build.buf.validate.conformance.cases.RepeatedMax DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedMax(); - } - - public static build.buf.validate.conformance.cases.RepeatedMax getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedMax 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.RepeatedMax getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMaxOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMaxOrBuilder.java deleted file mode 100644 index 0022e844..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMaxOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedMaxOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedMax) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated double val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - double getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMin.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMin.java deleted file mode 100644 index 363c3d1a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMin.java +++ /dev/null @@ -1,719 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedMin} - */ -public final class RepeatedMin extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedMin) - RepeatedMinOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedMin.class.getName()); - } - // Use RepeatedMin.newBuilder() to construct. - private RepeatedMin(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedMin() { - val_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMin.class, build.buf.validate.conformance.cases.RepeatedMin.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.Embed getVal(int index) { - return val_.get(index); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.EmbedOrBuilder 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.RepeatedMin)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedMin other = (build.buf.validate.conformance.cases.RepeatedMin) 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.RepeatedMin parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMin 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.RepeatedMin parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMin 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.RepeatedMin parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMin 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.RepeatedMin parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedMin 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.RepeatedMin parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedMin 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.RepeatedMin 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.RepeatedMin 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.RepeatedMin 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.RepeatedMin} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedMin) - build.buf.validate.conformance.cases.RepeatedMinOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMin.class, build.buf.validate.conformance.cases.RepeatedMin.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedMin.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.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMin_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMin getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedMin.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMin build() { - build.buf.validate.conformance.cases.RepeatedMin result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMin buildPartial() { - build.buf.validate.conformance.cases.RepeatedMin result = new build.buf.validate.conformance.cases.RepeatedMin(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedMin 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.RepeatedMin result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedMin) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedMin)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedMin other) { - if (other == build.buf.validate.conformance.cases.RepeatedMin.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 ? - internalGetValFieldBuilder() : 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: { - build.buf.validate.conformance.cases.Embed m = - input.readMessage( - build.buf.validate.conformance.cases.Embed.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< - build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder> valBuilder_; - - /** - * repeated .buf.validate.conformance.cases.Embed 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 .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Embed getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.set(index, value); - onChanged(); - } else { - valBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(build.buf.validate.conformance.cases.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.Embed value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(index, value); - onChanged(); - } else { - valBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - build.buf.validate.conformance.cases.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.Embed.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.Embed 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 .buf.validate.conformance.cases.Embed 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 .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Embed.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.EmbedOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Embed.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - build.buf.validate.conformance.cases.Embed.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.Embed.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, build.buf.validate.conformance.cases.Embed.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.Embed, build.buf.validate.conformance.cases.Embed.Builder, build.buf.validate.conformance.cases.EmbedOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMin) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedMin) - private static final build.buf.validate.conformance.cases.RepeatedMin DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedMin(); - } - - public static build.buf.validate.conformance.cases.RepeatedMin getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedMin 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.RepeatedMin getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLen.java deleted file mode 100644 index 838df30b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLen.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedMinAndItemLen} - */ -public final class RepeatedMinAndItemLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedMinAndItemLen) - RepeatedMinAndItemLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedMinAndItemLen.class.getName()); - } - // Use RepeatedMinAndItemLen.newBuilder() to construct. - private RepeatedMinAndItemLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedMinAndItemLen() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMinAndItemLen.class, build.buf.validate.conformance.cases.RepeatedMinAndItemLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RepeatedMinAndItemLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedMinAndItemLen other = (build.buf.validate.conformance.cases.RepeatedMinAndItemLen) 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.RepeatedMinAndItemLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMinAndItemLen 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.RepeatedMinAndItemLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMinAndItemLen 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.RepeatedMinAndItemLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMinAndItemLen 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.RepeatedMinAndItemLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedMinAndItemLen 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.RepeatedMinAndItemLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedMinAndItemLen 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.RepeatedMinAndItemLen 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.RepeatedMinAndItemLen 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.RepeatedMinAndItemLen 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.RepeatedMinAndItemLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedMinAndItemLen) - build.buf.validate.conformance.cases.RepeatedMinAndItemLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMinAndItemLen.class, build.buf.validate.conformance.cases.RepeatedMinAndItemLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedMinAndItemLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMinAndItemLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedMinAndItemLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMinAndItemLen build() { - build.buf.validate.conformance.cases.RepeatedMinAndItemLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMinAndItemLen buildPartial() { - build.buf.validate.conformance.cases.RepeatedMinAndItemLen result = new build.buf.validate.conformance.cases.RepeatedMinAndItemLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedMinAndItemLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedMinAndItemLen) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedMinAndItemLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedMinAndItemLen other) { - if (other == build.buf.validate.conformance.cases.RepeatedMinAndItemLen.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMinAndItemLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedMinAndItemLen) - private static final build.buf.validate.conformance.cases.RepeatedMinAndItemLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedMinAndItemLen(); - } - - public static build.buf.validate.conformance.cases.RepeatedMinAndItemLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedMinAndItemLen 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.RepeatedMinAndItemLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLenOrBuilder.java deleted file mode 100644 index bf8de07b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndItemLenOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedMinAndItemLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedMinAndItemLen) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLen.java deleted file mode 100644 index 37d6a4f2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLen.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedMinAndMaxItemLen} - */ -public final class RepeatedMinAndMaxItemLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedMinAndMaxItemLen) - RepeatedMinAndMaxItemLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedMinAndMaxItemLen.class.getName()); - } - // Use RepeatedMinAndMaxItemLen.newBuilder() to construct. - private RepeatedMinAndMaxItemLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedMinAndMaxItemLen() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen.class, build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RepeatedMinAndMaxItemLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen other = (build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen) 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.RepeatedMinAndMaxItemLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen 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.RepeatedMinAndMaxItemLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen 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.RepeatedMinAndMaxItemLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen 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.RepeatedMinAndMaxItemLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen 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.RepeatedMinAndMaxItemLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen 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.RepeatedMinAndMaxItemLen 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.RepeatedMinAndMaxItemLen 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.RepeatedMinAndMaxItemLen 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.RepeatedMinAndMaxItemLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedMinAndMaxItemLen) - build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen.class, build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen build() { - build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen buildPartial() { - build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen result = new build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen other) { - if (other == build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMinAndMaxItemLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedMinAndMaxItemLen) - private static final build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen(); - } - - public static build.buf.validate.conformance.cases.RepeatedMinAndMaxItemLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedMinAndMaxItemLen 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.RepeatedMinAndMaxItemLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLenOrBuilder.java deleted file mode 100644 index 1752d32f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinAndMaxItemLenOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedMinAndMaxItemLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedMinAndMaxItemLen) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMax.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMax.java deleted file mode 100644 index f3be28bc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMax.java +++ /dev/null @@ -1,544 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedMinMax} - */ -public final class RepeatedMinMax extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedMinMax) - RepeatedMinMaxOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedMinMax.class.getName()); - } - // Use RepeatedMinMax.newBuilder() to construct. - private RepeatedMinMax(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedMinMax() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinMax_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinMax_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMinMax.class, build.buf.validate.conformance.cases.RepeatedMinMax.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeSFixed32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - dataSize = 4 * getValList().size(); - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.RepeatedMinMax)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedMinMax other = (build.buf.validate.conformance.cases.RepeatedMinMax) 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.RepeatedMinMax parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMinMax 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.RepeatedMinMax parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMinMax 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.RepeatedMinMax parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMinMax 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.RepeatedMinMax parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedMinMax 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.RepeatedMinMax parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedMinMax 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.RepeatedMinMax 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.RepeatedMinMax 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.RepeatedMinMax 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.RepeatedMinMax} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedMinMax) - build.buf.validate.conformance.cases.RepeatedMinMaxOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinMax_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinMax_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMinMax.class, build.buf.validate.conformance.cases.RepeatedMinMax.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedMinMax.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMinMax_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMinMax getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedMinMax.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMinMax build() { - build.buf.validate.conformance.cases.RepeatedMinMax result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMinMax buildPartial() { - build.buf.validate.conformance.cases.RepeatedMinMax result = new build.buf.validate.conformance.cases.RepeatedMinMax(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedMinMax result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedMinMax) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedMinMax)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedMinMax other) { - if (other == build.buf.validate.conformance.cases.RepeatedMinMax.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 13: { - int v = input.readSFixed32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 13 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureValIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readSFixed32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - private void ensureValIsMutable(int capacity) { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_, capacity); - } - bitField0_ |= 0x00000001; - } - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMinMax) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedMinMax) - private static final build.buf.validate.conformance.cases.RepeatedMinMax DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedMinMax(); - } - - public static build.buf.validate.conformance.cases.RepeatedMinMax getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedMinMax 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.RepeatedMinMax getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMaxOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMaxOrBuilder.java deleted file mode 100644 index ae446b9e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinMaxOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedMinMaxOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedMinMax) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinOrBuilder.java deleted file mode 100644 index 4547b785..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMinOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedMinOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedMin) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.Embed getVal(int index); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .buf.validate.conformance.cases.Embed val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.EmbedOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUnique.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUnique.java deleted file mode 100644 index 0aa1f621..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUnique.java +++ /dev/null @@ -1,729 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedMultipleUnique} - */ -public final class RepeatedMultipleUnique extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedMultipleUnique) - RepeatedMultipleUniqueOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedMultipleUnique.class.getName()); - } - // Use RepeatedMultipleUnique.newBuilder() to construct. - private RepeatedMultipleUnique(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedMultipleUnique() { - a_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - b_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMultipleUnique.class, build.buf.validate.conformance.cases.RepeatedMultipleUnique.Builder.class); - } - - public static final int A_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList a_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return A list containing the a. - */ - public com.google.protobuf.ProtocolStringList - getAList() { - return a_; - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The count of a. - */ - public int getACount() { - return a_.size(); - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The a at the given index. - */ - public java.lang.String getA(int index) { - return a_.get(index); - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the a at the given index. - */ - public com.google.protobuf.ByteString - getABytes(int index) { - return a_.getByteString(index); - } - - public static final int B_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList b_ = - emptyIntList(); - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return A list containing the b. - */ - @java.lang.Override - public java.util.List - getBList() { - return b_; - } - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The count of b. - */ - public int getBCount() { - return b_.size(); - } - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The b at the given index. - */ - public int getB(int index) { - return b_.getInt(index); - } - private int bMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - for (int i = 0; i < a_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, a_.getRaw(i)); - } - if (getBList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(bMemoizedSerializedSize); - } - for (int i = 0; i < b_.size(); i++) { - output.writeInt32NoTag(b_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < a_.size(); i++) { - dataSize += computeStringSizeNoTag(a_.getRaw(i)); - } - size += dataSize; - size += 1 * getAList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < b_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(b_.getInt(i)); - } - size += dataSize; - if (!getBList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - bMemoizedSerializedSize = dataSize; - } - 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.RepeatedMultipleUnique)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedMultipleUnique other = (build.buf.validate.conformance.cases.RepeatedMultipleUnique) obj; - - if (!getAList() - .equals(other.getAList())) return false; - if (!getBList() - .equals(other.getBList())) 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 (getACount() > 0) { - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getAList().hashCode(); - } - if (getBCount() > 0) { - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getBList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RepeatedMultipleUnique parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMultipleUnique 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.RepeatedMultipleUnique parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMultipleUnique 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.RepeatedMultipleUnique parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedMultipleUnique 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.RepeatedMultipleUnique parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedMultipleUnique 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.RepeatedMultipleUnique parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedMultipleUnique 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.RepeatedMultipleUnique 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.RepeatedMultipleUnique 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.RepeatedMultipleUnique 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.RepeatedMultipleUnique} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedMultipleUnique) - build.buf.validate.conformance.cases.RepeatedMultipleUniqueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedMultipleUnique.class, build.buf.validate.conformance.cases.RepeatedMultipleUnique.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedMultipleUnique.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - b_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMultipleUnique getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedMultipleUnique.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMultipleUnique build() { - build.buf.validate.conformance.cases.RepeatedMultipleUnique result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedMultipleUnique buildPartial() { - build.buf.validate.conformance.cases.RepeatedMultipleUnique result = new build.buf.validate.conformance.cases.RepeatedMultipleUnique(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedMultipleUnique result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - a_.makeImmutable(); - result.a_ = a_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - b_.makeImmutable(); - result.b_ = b_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedMultipleUnique) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedMultipleUnique)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedMultipleUnique other) { - if (other == build.buf.validate.conformance.cases.RepeatedMultipleUnique.getDefaultInstance()) return this; - if (!other.a_.isEmpty()) { - if (a_.isEmpty()) { - a_ = other.a_; - bitField0_ |= 0x00000001; - } else { - ensureAIsMutable(); - a_.addAll(other.a_); - } - onChanged(); - } - if (!other.b_.isEmpty()) { - if (b_.isEmpty()) { - b_ = other.b_; - b_.makeImmutable(); - bitField0_ |= 0x00000002; - } else { - ensureBIsMutable(); - b_.addAll(other.b_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAIsMutable(); - a_.add(s); - break; - } // case 10 - case 16: { - int v = input.readInt32(); - ensureBIsMutable(); - b_.addInt(v); - break; - } // case 16 - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureBIsMutable(); - while (input.getBytesUntilLimit() > 0) { - b_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 18 - 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 com.google.protobuf.LazyStringArrayList a_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureAIsMutable() { - if (!a_.isModifiable()) { - a_ = new com.google.protobuf.LazyStringArrayList(a_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return A list containing the a. - */ - public com.google.protobuf.ProtocolStringList - getAList() { - a_.makeImmutable(); - return a_; - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The count of a. - */ - public int getACount() { - return a_.size(); - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The a at the given index. - */ - public java.lang.String getA(int index) { - return a_.get(index); - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the a at the given index. - */ - public com.google.protobuf.ByteString - getABytes(int index) { - return a_.getByteString(index); - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureAIsMutable(); - a_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to add. - * @return This builder for chaining. - */ - public Builder addA( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureAIsMutable(); - a_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param values The a to add. - * @return This builder for chaining. - */ - public Builder addAllA( - java.lang.Iterable values) { - ensureAIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, a_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - a_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The bytes of the a to add. - * @return This builder for chaining. - */ - public Builder addABytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureAIsMutable(); - a_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList b_ = emptyIntList(); - private void ensureBIsMutable() { - if (!b_.isModifiable()) { - b_ = makeMutableCopy(b_); - } - bitField0_ |= 0x00000002; - } - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return A list containing the b. - */ - public java.util.List - getBList() { - b_.makeImmutable(); - return b_; - } - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The count of b. - */ - public int getBCount() { - return b_.size(); - } - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The b at the given index. - */ - public int getB(int index) { - return b_.getInt(index); - } - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The b to set. - * @return This builder for chaining. - */ - public Builder setB( - int index, int value) { - - ensureBIsMutable(); - b_.setInt(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @param value The b to add. - * @return This builder for chaining. - */ - public Builder addB(int value) { - - ensureBIsMutable(); - b_.addInt(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @param values The b to add. - * @return This builder for chaining. - */ - public Builder addAllB( - java.lang.Iterable values) { - ensureBIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, b_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearB() { - b_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedMultipleUnique) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedMultipleUnique) - private static final build.buf.validate.conformance.cases.RepeatedMultipleUnique DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedMultipleUnique(); - } - - public static build.buf.validate.conformance.cases.RepeatedMultipleUnique getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedMultipleUnique 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.RepeatedMultipleUnique getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUniqueOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUniqueOrBuilder.java deleted file mode 100644 index 11556930..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedMultipleUniqueOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedMultipleUniqueOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedMultipleUnique) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return A list containing the a. - */ - java.util.List - getAList(); - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The count of a. - */ - int getACount(); - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The a at the given index. - */ - java.lang.String getA(int index); - /** - * repeated string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the a at the given index. - */ - com.google.protobuf.ByteString - getABytes(int index); - - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return A list containing the b. - */ - java.util.List getBList(); - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @return The count of b. - */ - int getBCount(); - /** - * repeated int32 b = 2 [json_name = "b", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The b at the given index. - */ - int getB(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNone.java deleted file mode 100644 index c618e135..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNone.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedNone} - */ -public final class RepeatedNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedNone) - RepeatedNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedNone.class.getName()); - } - // Use RepeatedNone.newBuilder() to construct. - private RepeatedNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedNone() { - val_ = emptyLongList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedNone.class, build.buf.validate.conformance.cases.RepeatedNone.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList val_ = - emptyLongList(); - /** - * repeated int64 val = 1 [json_name = "val"]; - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int64 val = 1 [json_name = "val"]; - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int64 val = 1 [json_name = "val"]; - * @param index The index of the element to return. - * @return The val at the given index. - */ - public long getVal(int index) { - return val_.getLong(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt64NoTag(val_.getLong(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(val_.getLong(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.RepeatedNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedNone other = (build.buf.validate.conformance.cases.RepeatedNone) 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.RepeatedNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedNone 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.RepeatedNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedNone 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.RepeatedNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedNone 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.RepeatedNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedNone 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.RepeatedNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedNone 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.RepeatedNone 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.RepeatedNone 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.RepeatedNone 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.RepeatedNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedNone) - build.buf.validate.conformance.cases.RepeatedNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedNone.class, build.buf.validate.conformance.cases.RepeatedNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedNone.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyLongList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedNone build() { - build.buf.validate.conformance.cases.RepeatedNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedNone buildPartial() { - build.buf.validate.conformance.cases.RepeatedNone result = new build.buf.validate.conformance.cases.RepeatedNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedNone result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedNone) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedNone other) { - if (other == build.buf.validate.conformance.cases.RepeatedNone.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - long v = input.readInt64(); - ensureValIsMutable(); - val_.addLong(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addLong(input.readInt64()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.LongList val_ = emptyLongList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int64 val = 1 [json_name = "val"]; - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int64 val = 1 [json_name = "val"]; - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int64 val = 1 [json_name = "val"]; - * @param index The index of the element to return. - * @return The val at the given index. - */ - public long getVal(int index) { - return val_.getLong(index); - } - /** - * repeated int64 val = 1 [json_name = "val"]; - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, long value) { - - ensureValIsMutable(); - val_.setLong(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int64 val = 1 [json_name = "val"]; - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(long value) { - - ensureValIsMutable(); - val_.addLong(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int64 val = 1 [json_name = "val"]; - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int64 val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedNone) - private static final build.buf.validate.conformance.cases.RepeatedNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedNone(); - } - - public static build.buf.validate.conformance.cases.RepeatedNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedNone 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.RepeatedNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNoneOrBuilder.java deleted file mode 100644 index 848c039c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNoneOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedNone) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int64 val = 1 [json_name = "val"]; - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int64 val = 1 [json_name = "val"]; - * @return The count of val. - */ - int getValCount(); - /** - * repeated int64 val = 1 [json_name = "val"]; - * @param index The index of the element to return. - * @return The val at the given index. - */ - long getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNotUnique.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNotUnique.java deleted file mode 100644 index 7af18b30..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNotUnique.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedNotUnique} - */ -public final class RepeatedNotUnique extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedNotUnique) - RepeatedNotUniqueOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedNotUnique.class.getName()); - } - // Use RepeatedNotUnique.newBuilder() to construct. - private RepeatedNotUnique(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedNotUnique() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNotUnique_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNotUnique_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedNotUnique.class, build.buf.validate.conformance.cases.RepeatedNotUnique.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RepeatedNotUnique)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedNotUnique other = (build.buf.validate.conformance.cases.RepeatedNotUnique) 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.RepeatedNotUnique parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedNotUnique 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.RepeatedNotUnique parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedNotUnique 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.RepeatedNotUnique parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedNotUnique 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.RepeatedNotUnique parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedNotUnique 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.RepeatedNotUnique parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedNotUnique 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.RepeatedNotUnique 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.RepeatedNotUnique 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.RepeatedNotUnique 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.RepeatedNotUnique} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedNotUnique) - build.buf.validate.conformance.cases.RepeatedNotUniqueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNotUnique_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNotUnique_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedNotUnique.class, build.buf.validate.conformance.cases.RepeatedNotUnique.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedNotUnique.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedNotUnique_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedNotUnique getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedNotUnique.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedNotUnique build() { - build.buf.validate.conformance.cases.RepeatedNotUnique result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedNotUnique buildPartial() { - build.buf.validate.conformance.cases.RepeatedNotUnique result = new build.buf.validate.conformance.cases.RepeatedNotUnique(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedNotUnique result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedNotUnique) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedNotUnique)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedNotUnique other) { - if (other == build.buf.validate.conformance.cases.RepeatedNotUnique.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedNotUnique) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedNotUnique) - private static final build.buf.validate.conformance.cases.RepeatedNotUnique DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedNotUnique(); - } - - public static build.buf.validate.conformance.cases.RepeatedNotUnique getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedNotUnique 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.RepeatedNotUnique getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNotUniqueOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNotUniqueOrBuilder.java deleted file mode 100644 index fe92e3dd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedNotUniqueOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedNotUniqueOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedNotUnique) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedProto.java deleted file mode 100644 index c7a95736..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedProto.java +++ /dev/null @@ -1,412 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class RepeatedProto { - private RepeatedProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_Embed_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_Embed_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedMin_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedMin_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedMax_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedMax_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedMinMax_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedMinMax_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedExact_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedExact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedUnique_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedUnique_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedNotUnique_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedNotUnique_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedItemRule_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedItemRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedItemPattern_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedItemPattern_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedItemIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedItemIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedEnumIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedEnumIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedAnyIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedAnyIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedDuration_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedDuration_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-buf/validate/conformance/cases/repeate" + - "d.proto\022\036buf.validate.conformance.cases\032" + - "8buf/validate/conformance/cases/other_pa" + - "ckage/embed.proto\032\033buf/validate/validate" + - ".proto\032\031google/protobuf/any.proto\032\036googl" + - "e/protobuf/duration.proto\"\"\n\005Embed\022\031\n\003va" + - "l\030\001 \001(\003B\007\272H\004\"\002 \000R\003val\" \n\014RepeatedNone\022\020\n" + - "\003val\030\001 \003(\003R\003val\"L\n\021RepeatedEmbedNone\0227\n\003" + - "val\030\001 \003(\0132%.buf.validate.conformance.cas" + - "es.EmbedR\003val\"f\n\035RepeatedEmbedCrossPacka" + - "geNone\022E\n\003val\030\001 \003(\01323.buf.validate.confo" + - "rmance.cases.other_package.EmbedR\003val\"P\n" + - "\013RepeatedMin\022A\n\003val\030\001 \003(\0132%.buf.validate" + - ".conformance.cases.EmbedB\010\272H\005\222\001\002\010\002R\003val\"" + - ")\n\013RepeatedMax\022\032\n\003val\030\001 \003(\001B\010\272H\005\222\001\002\020\003R\003v" + - "al\".\n\016RepeatedMinMax\022\034\n\003val\030\001 \003(\017B\n\272H\007\222\001" + - "\004\010\002\020\004R\003val\"-\n\rRepeatedExact\022\034\n\003val\030\001 \003(\r" + - "B\n\272H\007\222\001\004\010\003\020\003R\003val\",\n\016RepeatedUnique\022\032\n\003v" + - "al\030\001 \003(\tB\010\272H\005\222\001\002\030\001R\003val\"/\n\021RepeatedNotUn" + - "ique\022\032\n\003val\030\001 \003(\tB\010\272H\005\222\001\002\030\000R\003val\"H\n\026Repe" + - "atedMultipleUnique\022\026\n\001a\030\001 \003(\tB\010\272H\005\222\001\002\030\001R" + - "\001a\022\026\n\001b\030\002 \003(\005B\010\272H\005\222\001\002\030\001R\001b\"5\n\020RepeatedIt" + - "emRule\022!\n\003val\030\001 \003(\002B\017\272H\014\222\001\t\"\007\n\005%\000\000\000\000R\003va" + - "l\"D\n\023RepeatedItemPattern\022-\n\003val\030\001 \003(\tB\033\272" + - "H\030\222\001\025\"\023r\0212\017(?i)^[a-z0-9]+$R\003val\"Y\n\021Repea" + - "tedEmbedSkip\022D\n\003val\030\001 \003(\0132%.buf.validate" + - ".conformance.cases.EmbedB\013\272H\010\222\001\005\"\003\330\001\003R\003v" + - "al\"8\n\016RepeatedItemIn\022&\n\003val\030\001 \003(\tB\024\272H\021\222\001" + - "\016\"\014r\nR\003fooR\003barR\003val\";\n\021RepeatedItemNotI" + - "n\022&\n\003val\030\001 \003(\tB\024\272H\021\222\001\016\"\014r\nZ\003fooZ\003barR\003va" + - "l\"Y\n\016RepeatedEnumIn\022G\n\003val\030\001 \003(\0162&.buf.v" + - "alidate.conformance.cases.AnEnumB\r\272H\n\222\001\007" + - "\"\005\202\001\002\030\000R\003val\"\\\n\021RepeatedEnumNotIn\022G\n\003val" + - "\030\001 \003(\0162&.buf.validate.conformance.cases." + - "AnEnumB\r\272H\n\222\001\007\"\005\202\001\002 \000R\003val\"\337\001\n\026RepeatedE" + - "mbeddedEnumIn\022e\n\003val\030\001 \003(\0162D.buf.validat" + - "e.conformance.cases.RepeatedEmbeddedEnum" + - "In.AnotherInEnumB\r\272H\n\222\001\007\"\005\202\001\002\030\000R\003val\"^\n\r" + - "AnotherInEnum\022\037\n\033ANOTHER_IN_ENUM_UNSPECI" + - "FIED\020\000\022\025\n\021ANOTHER_IN_ENUM_A\020\001\022\025\n\021ANOTHER" + - "_IN_ENUM_B\020\002\"\367\001\n\031RepeatedEmbeddedEnumNot" + - "In\022k\n\003val\030\001 \003(\0162J.buf.validate.conforman" + - "ce.cases.RepeatedEmbeddedEnumNotIn.Anoth" + - "erNotInEnumB\r\272H\n\222\001\007\"\005\202\001\002 \000R\003val\"m\n\020Anoth" + - "erNotInEnum\022#\n\037ANOTHER_NOT_IN_ENUM_UNSPE" + - "CIFIED\020\000\022\031\n\025ANOTHER_NOT_IN_ENUM_A\020\001\022\031\n\025A" + - "NOTHER_NOT_IN_ENUM_B\020\002\"r\n\rRepeatedAnyIn\022" + - "a\n\003val\030\001 \003(\0132\024.google.protobuf.AnyB9\272H6\222" + - "\0013\"1\242\001.\022,type.googleapis.com/google.prot" + - "obuf.DurationR\003val\"v\n\020RepeatedAnyNotIn\022b" + - "\n\003val\030\001 \003(\0132\024.google.protobuf.AnyB:\272H7\222\001" + - "4\"2\242\001/\032-type.googleapis.com/google.proto" + - "buf.TimestampR\003val\":\n\025RepeatedMinAndItem" + - "Len\022!\n\003val\030\001 \003(\tB\017\272H\014\222\001\t\010\001\"\005r\003\230\001\003R\003val\"8" + - "\n\030RepeatedMinAndMaxItemLen\022\034\n\003val\030\001 \003(\tB" + - "\n\272H\007\222\001\004\010\001\020\003R\003val\"R\n\020RepeatedDuration\022>\n\003" + - "val\030\001 \003(\0132\031.google.protobuf.DurationB\021\272H" + - "\016\222\001\013\"\t\252\001\0062\004\020\300\204=R\003val\"6\n\023RepeatedExactIgn" + - "ore\022\037\n\003val\030\001 \003(\rB\r\272H\n\222\001\004\010\003\020\003\330\001\001R\003val*?\n\006" + - "AnEnum\022\027\n\023AN_ENUM_UNSPECIFIED\020\000\022\r\n\tAN_EN" + - "UM_X\020\001\022\r\n\tAN_ENUM_Y\020\002B\321\001\n$build.buf.vali" + - "date.conformance.casesB\rRepeatedProtoP\001\242" + - "\002\004BVCC\252\002\036Buf.Validate.Conformance.Cases\312" + - "\002\036Buf\\Validate\\Conformance\\Cases\342\002*Buf\\V" + - "alidate\\Conformance\\Cases\\GPBMetadata\352\002!" + - "Buf::Validate::Conformance::Casesb\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.conformance.cases.other_package.EmbedProto.getDescriptor(), - build.buf.validate.ValidateProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_Embed_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_Embed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_Embed_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedNone_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_RepeatedNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedEmbedNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedEmbedCrossPackageNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedMin_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_RepeatedMin_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedMin_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedMax_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_RepeatedMax_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedMax_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedMinMax_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_RepeatedMinMax_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedMinMax_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedExact_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_RepeatedExact_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedExact_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedUnique_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_RepeatedUnique_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedUnique_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedNotUnique_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_RepeatedNotUnique_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedNotUnique_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedMultipleUnique_descriptor, - new java.lang.String[] { "A", "B", }); - internal_static_buf_validate_conformance_cases_RepeatedItemRule_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_RepeatedItemRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedItemRule_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedItemPattern_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_RepeatedItemPattern_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedItemPattern_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedEmbedSkip_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedItemIn_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_conformance_cases_RepeatedItemIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedItemIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedItemNotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedEnumIn_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_conformance_cases_RepeatedEnumIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedEnumIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedEnumNotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedEmbeddedEnumNotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedAnyIn_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_buf_validate_conformance_cases_RepeatedAnyIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedAnyIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedAnyNotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedMinAndItemLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedMinAndMaxItemLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedDuration_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_buf_validate_conformance_cases_RepeatedDuration_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedDuration_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RepeatedExactIgnore_descriptor, - new java.lang.String[] { "Val", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.conformance.cases.other_package.EmbedProto.getDescriptor(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUnique.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUnique.java deleted file mode 100644 index 98fdf37c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUnique.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedUnique} - */ -public final class RepeatedUnique extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedUnique) - RepeatedUniqueOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedUnique.class.getName()); - } - // Use RepeatedUnique.newBuilder() to construct. - private RepeatedUnique(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedUnique() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedUnique_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedUnique_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedUnique.class, build.buf.validate.conformance.cases.RepeatedUnique.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RepeatedUnique)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedUnique other = (build.buf.validate.conformance.cases.RepeatedUnique) 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.RepeatedUnique parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedUnique 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.RepeatedUnique parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedUnique 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.RepeatedUnique parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedUnique 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.RepeatedUnique parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedUnique 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.RepeatedUnique parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedUnique 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.RepeatedUnique 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.RepeatedUnique 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.RepeatedUnique 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.RepeatedUnique} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedUnique) - build.buf.validate.conformance.cases.RepeatedUniqueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedUnique_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedUnique_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedUnique.class, build.buf.validate.conformance.cases.RepeatedUnique.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedUnique.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RepeatedProto.internal_static_buf_validate_conformance_cases_RepeatedUnique_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedUnique getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedUnique.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedUnique build() { - build.buf.validate.conformance.cases.RepeatedUnique result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedUnique buildPartial() { - build.buf.validate.conformance.cases.RepeatedUnique result = new build.buf.validate.conformance.cases.RepeatedUnique(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedUnique result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedUnique) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedUnique)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedUnique other) { - if (other == build.buf.validate.conformance.cases.RepeatedUnique.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedUnique) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedUnique) - private static final build.buf.validate.conformance.cases.RepeatedUnique DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedUnique(); - } - - public static build.buf.validate.conformance.cases.RepeatedUnique getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedUnique 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.RepeatedUnique getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUniqueOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUniqueOrBuilder.java deleted file mode 100644 index 20f82577..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedUniqueOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/repeated.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedUniqueOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedUnique) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefined.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefined.java deleted file mode 100644 index 35167f65..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefined.java +++ /dev/null @@ -1,627 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined} - */ -public final class RepeatedYetAnotherExternalEnumDefined extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined) - RepeatedYetAnotherExternalEnumDefinedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedYetAnotherExternalEnumDefined.class.getName()); - } - // Use RepeatedYetAnotherExternalEnumDefined.newBuilder() to construct. - private RepeatedYetAnotherExternalEnumDefined(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RepeatedYetAnotherExternalEnumDefined() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined.class, build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_; - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated> val_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated>() { - public build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated convert(int from) { - build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated result = build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated.forNumber(from); - return result == null ? build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated.UNRECOGNIZED : result; - } - }; - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - @java.lang.Override - public java.util.List - getValValueList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - @java.lang.Override - public int getValValue(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeEnumNoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }valMemoizedSerializedSize = dataSize; - } - 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.RepeatedYetAnotherExternalEnumDefined)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined other = (build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined) obj; - - if (!val_.equals(other.val_)) 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) + val_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined 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.RepeatedYetAnotherExternalEnumDefined parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined 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.RepeatedYetAnotherExternalEnumDefined parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined 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.RepeatedYetAnotherExternalEnumDefined parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined 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.RepeatedYetAnotherExternalEnumDefined parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined 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.RepeatedYetAnotherExternalEnumDefined 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.RepeatedYetAnotherExternalEnumDefined 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.RepeatedYetAnotherExternalEnumDefined 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.RepeatedYetAnotherExternalEnumDefined} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined) - build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefinedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined.class, build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.EnumsProto.internal_static_buf_validate_conformance_cases_RepeatedYetAnotherExternalEnumDefined_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined build() { - build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined buildPartial() { - build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined result = new build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined result) { - if (((bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.val_ = val_; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined) { - return mergeFrom((build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined other) { - if (other == build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - } - input.popLimit(oldLimit); - 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 com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - private void ensureValIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - val_ = makeMutableCopy(val_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.addInt(value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - for (build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated value : values) { - val_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - public java.util.List - getValValueList() { - return java.util.Collections.unmodifiableList(val_); - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - public int getValValue(int index) { - return val_.getInt(index); - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue( - int index, int value) { - ensureValIsMutable(); - val_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addValValue(int value) { - ensureValIsMutable(); - val_.addInt(value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The enum numeric values on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addAllValValue( - java.lang.Iterable values) { - ensureValIsMutable(); - for (int value : values) { - val_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined) - private static final build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined(); - } - - public static build.buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedYetAnotherExternalEnumDefined 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.RepeatedYetAnotherExternalEnumDefined getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefinedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefinedOrBuilder.java deleted file mode 100644 index 97f32a73..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RepeatedYetAnotherExternalEnumDefinedOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RepeatedYetAnotherExternalEnumDefinedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RepeatedYetAnotherExternalEnumDefined) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - build.buf.validate.conformance.cases.yet_another_package.Embed.Enumerated getVal(int index); - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - java.util.List - getValValueList(); - /** - * repeated .buf.validate.conformance.cases.yet_another_package.Embed.Enumerated val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - int getValValue(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMap.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMap.java deleted file mode 100644 index c98cf1e3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMap.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMap} - */ -public final class RequiredEditionsMap extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMap) - RequiredEditionsMapOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsMap.class.getName()); - } - // Use RequiredEditionsMap.newBuilder() to construct. - private RequiredEditionsMap(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsMap() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMap.class, build.buf.validate.conformance.cases.RequiredEditionsMap.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMap_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.RequiredEditionsMap)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMap other = (build.buf.validate.conformance.cases.RequiredEditionsMap) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMap 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.RequiredEditionsMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMap 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.RequiredEditionsMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMap 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.RequiredEditionsMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMap 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.RequiredEditionsMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMap 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.RequiredEditionsMap 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.RequiredEditionsMap 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.RequiredEditionsMap 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.RequiredEditionsMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMap) - build.buf.validate.conformance.cases.RequiredEditionsMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMap.class, build.buf.validate.conformance.cases.RequiredEditionsMap.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMap.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMap_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMap getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMap.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMap build() { - build.buf.validate.conformance.cases.RequiredEditionsMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMap buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMap result = new build.buf.validate.conformance.cases.RequiredEditionsMap(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMap result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMap) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMap other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMap.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMap) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMap) - private static final build.buf.validate.conformance.cases.RequiredEditionsMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMap(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsMap 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.RequiredEditionsMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapIgnoreAlways.java deleted file mode 100644 index 7c5e4e1a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapIgnoreAlways.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways} - */ -public final class RequiredEditionsMapIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways) - RequiredEditionsMapIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsMapIgnoreAlways.class.getName()); - } - // Use RequiredEditionsMapIgnoreAlways.newBuilder() to construct. - private RequiredEditionsMapIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsMapIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMapIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.RequiredEditionsMapIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways 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.RequiredEditionsMapIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways 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.RequiredEditionsMapIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways 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.RequiredEditionsMapIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways 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.RequiredEditionsMapIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways 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.RequiredEditionsMapIgnoreAlways 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.RequiredEditionsMapIgnoreAlways 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.RequiredEditionsMapIgnoreAlways 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.RequiredEditionsMapIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways) - build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMapIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsMapIgnoreAlways 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.RequiredEditionsMapIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 0899f839..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsMapIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMapIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapOrBuilder.java deleted file mode 100644 index aee1b97a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMapOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMap) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresence.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresence.java deleted file mode 100644 index df6fffcd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresence.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence} - */ -public final class RequiredEditionsMessageExplicitPresence extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence) - RequiredEditionsMessageExplicitPresenceOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsMessageExplicitPresence.class.getName()); - } - // Use RequiredEditionsMessageExplicitPresence.newBuilder() to construct. - private RequiredEditionsMessageExplicitPresence(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsMessageExplicitPresence() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsMessageExplicitPresence.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg other = (build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg 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.RequiredEditionsMessageExplicitPresence.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg 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.RequiredEditionsMessageExplicitPresence.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg 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.RequiredEditionsMessageExplicitPresence.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg 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.RequiredEditionsMessageExplicitPresence.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg 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.RequiredEditionsMessageExplicitPresence.Msg 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.RequiredEditionsMessageExplicitPresence.Msg 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.RequiredEditionsMessageExplicitPresence.Msg 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.RequiredEditionsMessageExplicitPresence.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg) - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg result = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.RequiredEditionsMessageExplicitPresence.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.RequiredEditionsMessageExplicitPresence)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence other = (build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence 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.RequiredEditionsMessageExplicitPresence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence 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.RequiredEditionsMessageExplicitPresence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence 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.RequiredEditionsMessageExplicitPresence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence 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.RequiredEditionsMessageExplicitPresence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence 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.RequiredEditionsMessageExplicitPresence 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.RequiredEditionsMessageExplicitPresence 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.RequiredEditionsMessageExplicitPresence 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.RequiredEditionsMessageExplicitPresence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence) - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence result = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsMessageExplicitPresence 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.RequiredEditionsMessageExplicitPresence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimited.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimited.java deleted file mode 100644 index fd19bdab..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimited.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited} - */ -public final class RequiredEditionsMessageExplicitPresenceDelimited extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited) - RequiredEditionsMessageExplicitPresenceDelimitedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsMessageExplicitPresenceDelimited.class.getName()); - } - // Use RequiredEditionsMessageExplicitPresenceDelimited.newBuilder() to construct. - private RequiredEditionsMessageExplicitPresenceDelimited(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsMessageExplicitPresenceDelimited() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsMessageExplicitPresenceDelimited.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg other = (build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg 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.RequiredEditionsMessageExplicitPresenceDelimited.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg 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.RequiredEditionsMessageExplicitPresenceDelimited.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg 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.RequiredEditionsMessageExplicitPresenceDelimited.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg 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.RequiredEditionsMessageExplicitPresenceDelimited.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg 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.RequiredEditionsMessageExplicitPresenceDelimited.Msg 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.RequiredEditionsMessageExplicitPresenceDelimited.Msg 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.RequiredEditionsMessageExplicitPresenceDelimited.Msg 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.RequiredEditionsMessageExplicitPresenceDelimited.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg) - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg result = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.RequiredEditionsMessageExplicitPresenceDelimited.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.RequiredEditionsMessageExplicitPresenceDelimited)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited other = (build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited 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.RequiredEditionsMessageExplicitPresenceDelimited parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited 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.RequiredEditionsMessageExplicitPresenceDelimited parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited 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.RequiredEditionsMessageExplicitPresenceDelimited parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited 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.RequiredEditionsMessageExplicitPresenceDelimited parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited 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.RequiredEditionsMessageExplicitPresenceDelimited 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.RequiredEditionsMessageExplicitPresenceDelimited 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.RequiredEditionsMessageExplicitPresenceDelimited 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.RequiredEditionsMessageExplicitPresenceDelimited} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited) - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited result = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsMessageExplicitPresenceDelimited 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.RequiredEditionsMessageExplicitPresenceDelimited getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.java deleted file mode 100644 index c288bbf6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways} - */ -public final class RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways) - RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.class.getName()); - } - // Use RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.newBuilder() to construct. - private RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways) - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 702ba39e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg getVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedOrBuilder.java deleted file mode 100644 index 40fa4e26..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceDelimitedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsMessageExplicitPresenceDelimitedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg getVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceDelimited.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceIgnoreAlways.java deleted file mode 100644 index 406320fa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceIgnoreAlways.java +++ /dev/null @@ -1,1097 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways} - */ -public final class RequiredEditionsMessageExplicitPresenceIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways) - RequiredEditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsMessageExplicitPresenceIgnoreAlways.class.getName()); - } - // Use RequiredEditionsMessageExplicitPresenceIgnoreAlways.newBuilder() to construct. - private RequiredEditionsMessageExplicitPresenceIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsMessageExplicitPresenceIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg) - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways) - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsMessageExplicitPresenceIgnoreAlways 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.RequiredEditionsMessageExplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 29c2087d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsMessageExplicitPresenceIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg getVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresenceIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceOrBuilder.java deleted file mode 100644 index 9ebf3ca9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageExplicitPresenceOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsMessageExplicitPresenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg getVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageExplicitPresence.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequired.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequired.java deleted file mode 100644 index 4db973cd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequired.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired} - */ -public final class RequiredEditionsMessageLegacyRequired extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired) - RequiredEditionsMessageLegacyRequiredOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsMessageLegacyRequired.class.getName()); - } - // Use RequiredEditionsMessageLegacyRequired.newBuilder() to construct. - private RequiredEditionsMessageLegacyRequired(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsMessageLegacyRequired() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.class, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsMessageLegacyRequired.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg other = (build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg 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.RequiredEditionsMessageLegacyRequired.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg 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.RequiredEditionsMessageLegacyRequired.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg 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.RequiredEditionsMessageLegacyRequired.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg 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.RequiredEditionsMessageLegacyRequired.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg 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.RequiredEditionsMessageLegacyRequired.Msg 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.RequiredEditionsMessageLegacyRequired.Msg 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.RequiredEditionsMessageLegacyRequired.Msg 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.RequiredEditionsMessageLegacyRequired.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg) - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg result = new build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.RequiredEditionsMessageLegacyRequired.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.RequiredEditionsMessageLegacyRequired)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired other = (build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired 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.RequiredEditionsMessageLegacyRequired parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired 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.RequiredEditionsMessageLegacyRequired parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired 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.RequiredEditionsMessageLegacyRequired parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired 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.RequiredEditionsMessageLegacyRequired parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired 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.RequiredEditionsMessageLegacyRequired 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.RequiredEditionsMessageLegacyRequired 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.RequiredEditionsMessageLegacyRequired 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.RequiredEditionsMessageLegacyRequired} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired) - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.class, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired result = new build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsMessageLegacyRequired 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.RequiredEditionsMessageLegacyRequired getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredDelimited.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredDelimited.java deleted file mode 100644 index e2d62e31..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredDelimited.java +++ /dev/null @@ -1,1104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited} - */ -public final class RequiredEditionsMessageLegacyRequiredDelimited extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited) - RequiredEditionsMessageLegacyRequiredDelimitedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsMessageLegacyRequiredDelimited.class.getName()); - } - // Use RequiredEditionsMessageLegacyRequiredDelimited.newBuilder() to construct. - private RequiredEditionsMessageLegacyRequiredDelimited(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsMessageLegacyRequiredDelimited() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.class, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsMessageLegacyRequiredDelimited.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg other = (build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg 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.RequiredEditionsMessageLegacyRequiredDelimited.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg 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.RequiredEditionsMessageLegacyRequiredDelimited.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg 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.RequiredEditionsMessageLegacyRequiredDelimited.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg 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.RequiredEditionsMessageLegacyRequiredDelimited.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg 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.RequiredEditionsMessageLegacyRequiredDelimited.Msg 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.RequiredEditionsMessageLegacyRequiredDelimited.Msg 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.RequiredEditionsMessageLegacyRequiredDelimited.Msg 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.RequiredEditionsMessageLegacyRequiredDelimited.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg) - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.class, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg result = new build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.RequiredEditionsMessageLegacyRequiredDelimited.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance() : val_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeGroup(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeGroupSize(1, getVal()); - } - 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.RequiredEditionsMessageLegacyRequiredDelimited)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited other = (build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited 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.RequiredEditionsMessageLegacyRequiredDelimited parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited 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.RequiredEditionsMessageLegacyRequiredDelimited parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited 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.RequiredEditionsMessageLegacyRequiredDelimited parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited 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.RequiredEditionsMessageLegacyRequiredDelimited parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited 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.RequiredEditionsMessageLegacyRequiredDelimited 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.RequiredEditionsMessageLegacyRequiredDelimited 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.RequiredEditionsMessageLegacyRequiredDelimited 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.RequiredEditionsMessageLegacyRequiredDelimited} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited) - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimitedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.class, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited build() { - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited result = new build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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 11: { - input.readGroup(1, - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 11 - 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 build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - public build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg.Builder, build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited) - private static final build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsMessageLegacyRequiredDelimited 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.RequiredEditionsMessageLegacyRequiredDelimited getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredDelimitedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredDelimitedOrBuilder.java deleted file mode 100644 index 7963a890..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredDelimitedOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsMessageLegacyRequiredDelimitedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg getVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequiredDelimited.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredOrBuilder.java deleted file mode 100644 index 3d52153c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsMessageLegacyRequiredOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsMessageLegacyRequiredOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg getVal(); - /** - * .buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.Msg val = 1 [json_name = "val", features = { ... } - */ - build.buf.validate.conformance.cases.RequiredEditionsMessageLegacyRequired.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneof.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneof.java deleted file mode 100644 index 5c8bae40..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneof.java +++ /dev/null @@ -1,786 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsOneof} - */ -public final class RequiredEditionsOneof extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsOneof) - RequiredEditionsOneofOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsOneof.class.getName()); - } - // Use RequiredEditionsOneof.newBuilder() to construct. - private RequiredEditionsOneof(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsOneof() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsOneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsOneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsOneof.class, build.buf.validate.conformance.cases.RequiredEditionsOneof.Builder.class); - } - - private int valCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object val_; - public enum ValCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - A(1), - B(2), - VAL_NOT_SET(0); - private final int value; - private ValCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValCase valueOf(int value) { - return forNumber(value); - } - - public static ValCase forNumber(int value) { - switch (value) { - case 1: return A; - case 2: return B; - case 0: return VAL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public static final int A_FIELD_NUMBER = 1; - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 1) { - val_ = s; - } - return s; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int B_FIELD_NUMBER = 2; - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (valCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - if (valCase_ == 2) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - if (valCase_ == 2) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, val_); - } - 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.RequiredEditionsOneof)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsOneof other = (build.buf.validate.conformance.cases.RequiredEditionsOneof) obj; - - if (!getValCase().equals(other.getValCase())) return false; - switch (valCase_) { - case 1: - if (!getA() - .equals(other.getA())) return false; - break; - case 2: - if (!getB() - .equals(other.getB())) return false; - break; - case 0: - default: - } - 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(); - switch (valCase_) { - case 1: - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA().hashCode(); - break; - case 2: - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsOneof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsOneof 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.RequiredEditionsOneof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsOneof 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.RequiredEditionsOneof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsOneof 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.RequiredEditionsOneof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsOneof 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.RequiredEditionsOneof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsOneof 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.RequiredEditionsOneof 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.RequiredEditionsOneof 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.RequiredEditionsOneof 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.RequiredEditionsOneof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsOneof) - build.buf.validate.conformance.cases.RequiredEditionsOneofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsOneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsOneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsOneof.class, build.buf.validate.conformance.cases.RequiredEditionsOneof.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsOneof.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - valCase_ = 0; - val_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsOneof_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsOneof getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsOneof.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsOneof build() { - build.buf.validate.conformance.cases.RequiredEditionsOneof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsOneof buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsOneof result = new build.buf.validate.conformance.cases.RequiredEditionsOneof(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsOneof result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.RequiredEditionsOneof result) { - result.valCase_ = valCase_; - result.val_ = this.val_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsOneof) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsOneof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsOneof other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsOneof.getDefaultInstance()) return this; - switch (other.getValCase()) { - case A: { - valCase_ = 1; - val_ = other.val_; - onChanged(); - break; - } - case B: { - valCase_ = 2; - val_ = other.val_; - onChanged(); - break; - } - case VAL_NOT_SET: { - break; - } - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - valCase_ = 1; - val_ = s; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - valCase_ = 2; - val_ = s; - break; - } // case 18 - 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 valCase_ = 0; - private java.lang.Object val_; - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public Builder clearVal() { - valCase_ = 0; - val_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 1) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The bytes for a to set. - * @return This builder for chaining. - */ - public Builder setABytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - @java.lang.Override - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @param value The b to set. - * @return This builder for chaining. - */ - public Builder setB( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @return This builder for chaining. - */ - public Builder clearB() { - if (valCase_ == 2) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @param value The bytes for b to set. - * @return This builder for chaining. - */ - public Builder setBBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsOneof) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsOneof) - private static final build.buf.validate.conformance.cases.RequiredEditionsOneof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsOneof(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsOneof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsOneof 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.RequiredEditionsOneof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofIgnoreAlways.java deleted file mode 100644 index d12db467..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofIgnoreAlways.java +++ /dev/null @@ -1,786 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways} - */ -public final class RequiredEditionsOneofIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways) - RequiredEditionsOneofIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsOneofIgnoreAlways.class.getName()); - } - // Use RequiredEditionsOneofIgnoreAlways.newBuilder() to construct. - private RequiredEditionsOneofIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsOneofIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsOneofIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsOneofIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways.Builder.class); - } - - private int valCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object val_; - public enum ValCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - A(1), - B(2), - VAL_NOT_SET(0); - private final int value; - private ValCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValCase valueOf(int value) { - return forNumber(value); - } - - public static ValCase forNumber(int value) { - switch (value) { - case 1: return A; - case 2: return B; - case 0: return VAL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public static final int A_FIELD_NUMBER = 1; - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 1) { - val_ = s; - } - return s; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int B_FIELD_NUMBER = 2; - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (valCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - if (valCase_ == 2) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - if (valCase_ == 2) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, val_); - } - 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.RequiredEditionsOneofIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways) obj; - - if (!getValCase().equals(other.getValCase())) return false; - switch (valCase_) { - case 1: - if (!getA() - .equals(other.getA())) return false; - break; - case 2: - if (!getB() - .equals(other.getB())) return false; - break; - case 0: - default: - } - 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(); - switch (valCase_) { - case 1: - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA().hashCode(); - break; - case 2: - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways 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.RequiredEditionsOneofIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways 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.RequiredEditionsOneofIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways 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.RequiredEditionsOneofIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways 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.RequiredEditionsOneofIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways 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.RequiredEditionsOneofIgnoreAlways 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.RequiredEditionsOneofIgnoreAlways 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.RequiredEditionsOneofIgnoreAlways 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.RequiredEditionsOneofIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways) - build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsOneofIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsOneofIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - valCase_ = 0; - val_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsOneofIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways result) { - result.valCase_ = valCase_; - result.val_ = this.val_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways.getDefaultInstance()) return this; - switch (other.getValCase()) { - case A: { - valCase_ = 1; - val_ = other.val_; - onChanged(); - break; - } - case B: { - valCase_ = 2; - val_ = other.val_; - onChanged(); - break; - } - case VAL_NOT_SET: { - break; - } - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - valCase_ = 1; - val_ = s; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - valCase_ = 2; - val_ = s; - break; - } // case 18 - 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 valCase_ = 0; - private java.lang.Object val_; - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public Builder clearVal() { - valCase_ = 0; - val_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 1) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The bytes for a to set. - * @return This builder for chaining. - */ - public Builder setABytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - @java.lang.Override - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @param value The b to set. - * @return This builder for chaining. - */ - public Builder setB( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @return This builder for chaining. - */ - public Builder clearB() { - if (valCase_ == 2) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @param value The bytes for b to set. - * @return This builder for chaining. - */ - public Builder setBBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsOneofIgnoreAlways 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.RequiredEditionsOneofIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 41f0ca3d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsOneofIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - boolean hasA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - java.lang.String getA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - com.google.protobuf.ByteString - getABytes(); - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - boolean hasB(); - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - java.lang.String getB(); - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - com.google.protobuf.ByteString - getBBytes(); - - build.buf.validate.conformance.cases.RequiredEditionsOneofIgnoreAlways.ValCase getValCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofOrBuilder.java deleted file mode 100644 index 45493d8c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsOneofOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsOneofOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsOneof) - com.google.protobuf.MessageOrBuilder { - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - boolean hasA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - java.lang.String getA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - com.google.protobuf.ByteString - getABytes(); - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - boolean hasB(); - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - java.lang.String getB(); - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - com.google.protobuf.ByteString - getBBytes(); - - build.buf.validate.conformance.cases.RequiredEditionsOneof.ValCase getValCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeated.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeated.java deleted file mode 100644 index ca61d265..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeated.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsRepeated} - */ -public final class RequiredEditionsRepeated extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsRepeated) - RequiredEditionsRepeatedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsRepeated.class.getName()); - } - // Use RequiredEditionsRepeated.newBuilder() to construct. - private RequiredEditionsRepeated(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsRepeated() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsRepeated.class, build.buf.validate.conformance.cases.RequiredEditionsRepeated.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RequiredEditionsRepeated)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsRepeated other = (build.buf.validate.conformance.cases.RequiredEditionsRepeated) 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.RequiredEditionsRepeated parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeated 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.RequiredEditionsRepeated parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeated 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.RequiredEditionsRepeated parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeated 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.RequiredEditionsRepeated parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeated 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.RequiredEditionsRepeated parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsRepeated 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.RequiredEditionsRepeated 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.RequiredEditionsRepeated 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.RequiredEditionsRepeated 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.RequiredEditionsRepeated} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsRepeated) - build.buf.validate.conformance.cases.RequiredEditionsRepeatedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsRepeated.class, build.buf.validate.conformance.cases.RequiredEditionsRepeated.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsRepeated.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeated_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeated getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsRepeated.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeated build() { - build.buf.validate.conformance.cases.RequiredEditionsRepeated result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeated buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsRepeated result = new build.buf.validate.conformance.cases.RequiredEditionsRepeated(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsRepeated result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsRepeated) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsRepeated)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsRepeated other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsRepeated.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsRepeated) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsRepeated) - private static final build.buf.validate.conformance.cases.RequiredEditionsRepeated DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsRepeated(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsRepeated getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsRepeated 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.RequiredEditionsRepeated getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpanded.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpanded.java deleted file mode 100644 index d880786e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpanded.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded} - */ -public final class RequiredEditionsRepeatedExpanded extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded) - RequiredEditionsRepeatedExpandedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsRepeatedExpanded.class.getName()); - } - // Use RequiredEditionsRepeatedExpanded.newBuilder() to construct. - private RequiredEditionsRepeatedExpanded(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsRepeatedExpanded() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpanded_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpanded_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded.class, build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RequiredEditionsRepeatedExpanded)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded other = (build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded) 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.RequiredEditionsRepeatedExpanded parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded 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.RequiredEditionsRepeatedExpanded parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded 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.RequiredEditionsRepeatedExpanded parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded 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.RequiredEditionsRepeatedExpanded parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded 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.RequiredEditionsRepeatedExpanded parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded 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.RequiredEditionsRepeatedExpanded 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.RequiredEditionsRepeatedExpanded 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.RequiredEditionsRepeatedExpanded 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.RequiredEditionsRepeatedExpanded} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded) - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpanded_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpanded_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded.class, build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpanded_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded build() { - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded result = new build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded) - private static final build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsRepeatedExpanded 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.RequiredEditionsRepeatedExpanded getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedIgnoreAlways.java deleted file mode 100644 index 8798e951..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedIgnoreAlways.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways} - */ -public final class RequiredEditionsRepeatedExpandedIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways) - RequiredEditionsRepeatedExpandedIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsRepeatedExpandedIgnoreAlways.class.getName()); - } - // Use RequiredEditionsRepeatedExpandedIgnoreAlways.newBuilder() to construct. - private RequiredEditionsRepeatedExpandedIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsRepeatedExpandedIgnoreAlways() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpandedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpandedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RequiredEditionsRepeatedExpandedIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways) 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.RequiredEditionsRepeatedExpandedIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways 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.RequiredEditionsRepeatedExpandedIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways 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.RequiredEditionsRepeatedExpandedIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways 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.RequiredEditionsRepeatedExpandedIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways 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.RequiredEditionsRepeatedExpandedIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways 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.RequiredEditionsRepeatedExpandedIgnoreAlways 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.RequiredEditionsRepeatedExpandedIgnoreAlways 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.RequiredEditionsRepeatedExpandedIgnoreAlways 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.RequiredEditionsRepeatedExpandedIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways) - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpandedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpandedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpandedIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsRepeatedExpandedIgnoreAlways 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.RequiredEditionsRepeatedExpandedIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 2b97b059..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsRepeatedExpandedIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsRepeatedExpandedIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedOrBuilder.java deleted file mode 100644 index 27e26f41..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedExpandedOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsRepeatedExpandedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsRepeatedExpanded) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", features = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedIgnoreAlways.java deleted file mode 100644 index c5fa5aef..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedIgnoreAlways.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways} - */ -public final class RequiredEditionsRepeatedIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways) - RequiredEditionsRepeatedIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsRepeatedIgnoreAlways.class.getName()); - } - // Use RequiredEditionsRepeatedIgnoreAlways.newBuilder() to construct. - private RequiredEditionsRepeatedIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsRepeatedIgnoreAlways() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RequiredEditionsRepeatedIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways) 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.RequiredEditionsRepeatedIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways 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.RequiredEditionsRepeatedIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways 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.RequiredEditionsRepeatedIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways 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.RequiredEditionsRepeatedIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways 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.RequiredEditionsRepeatedIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways 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.RequiredEditionsRepeatedIgnoreAlways 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.RequiredEditionsRepeatedIgnoreAlways 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.RequiredEditionsRepeatedIgnoreAlways 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.RequiredEditionsRepeatedIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways) - build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsRepeatedIgnoreAlways 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.RequiredEditionsRepeatedIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 1dbabebd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsRepeatedIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsRepeatedIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedOrBuilder.java deleted file mode 100644 index fad11a51..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsRepeatedOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsRepeatedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsRepeated) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresence.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresence.java deleted file mode 100644 index 8ebaba5a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresence.java +++ /dev/null @@ -1,525 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence} - */ -public final class RequiredEditionsScalarExplicitPresence extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence) - RequiredEditionsScalarExplicitPresenceOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsScalarExplicitPresence.class.getName()); - } - // Use RequiredEditionsScalarExplicitPresence.newBuilder() to construct. - private RequiredEditionsScalarExplicitPresence(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsScalarExplicitPresence() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence.class, build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsScalarExplicitPresence)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence other = (build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence 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.RequiredEditionsScalarExplicitPresence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence 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.RequiredEditionsScalarExplicitPresence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence 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.RequiredEditionsScalarExplicitPresence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence 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.RequiredEditionsScalarExplicitPresence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence 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.RequiredEditionsScalarExplicitPresence 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.RequiredEditionsScalarExplicitPresence 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.RequiredEditionsScalarExplicitPresence 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.RequiredEditionsScalarExplicitPresence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence) - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence.class, build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresence_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence build() { - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence result = new build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence) - private static final build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsScalarExplicitPresence 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.RequiredEditionsScalarExplicitPresence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefault.java deleted file mode 100644 index b65d112f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefault.java +++ /dev/null @@ -1,525 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault} - */ -public final class RequiredEditionsScalarExplicitPresenceDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault) - RequiredEditionsScalarExplicitPresenceDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsScalarExplicitPresenceDefault.class.getName()); - } - // Use RequiredEditionsScalarExplicitPresenceDefault.newBuilder() to construct. - private RequiredEditionsScalarExplicitPresenceDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsScalarExplicitPresenceDefault() { - val_ = "foo"; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault.class, build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = "foo"; - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsScalarExplicitPresenceDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault other = (build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault 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.RequiredEditionsScalarExplicitPresenceDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault 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.RequiredEditionsScalarExplicitPresenceDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault 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.RequiredEditionsScalarExplicitPresenceDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault 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.RequiredEditionsScalarExplicitPresenceDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault 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.RequiredEditionsScalarExplicitPresenceDefault 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.RequiredEditionsScalarExplicitPresenceDefault 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.RequiredEditionsScalarExplicitPresenceDefault 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.RequiredEditionsScalarExplicitPresenceDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault) - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault.class, build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = "foo"; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault build() { - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault result = new build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = "foo"; - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault) - private static final build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsScalarExplicitPresenceDefault 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.RequiredEditionsScalarExplicitPresenceDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.java deleted file mode 100644 index 9238bac2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.java +++ /dev/null @@ -1,525 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways} - */ -public final class RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways) - RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.class.getName()); - } - // Use RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.newBuilder() to construct. - private RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways() { - val_ = "foo"; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = "foo"; - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways) - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = "foo"; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = "foo"; - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 24f77e9e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultOrBuilder.java deleted file mode 100644 index fb2e1b9c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceDefaultOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsScalarExplicitPresenceDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceIgnoreAlways.java deleted file mode 100644 index eea1e4cf..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceIgnoreAlways.java +++ /dev/null @@ -1,525 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways} - */ -public final class RequiredEditionsScalarExplicitPresenceIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways) - RequiredEditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsScalarExplicitPresenceIgnoreAlways.class.getName()); - } - // Use RequiredEditionsScalarExplicitPresenceIgnoreAlways.newBuilder() to construct. - private RequiredEditionsScalarExplicitPresenceIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsScalarExplicitPresenceIgnoreAlways() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsScalarExplicitPresenceIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways) - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsScalarExplicitPresenceIgnoreAlways 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.RequiredEditionsScalarExplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder.java deleted file mode 100644 index e1e65f9c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsScalarExplicitPresenceIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresenceIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceOrBuilder.java deleted file mode 100644 index b3fbc4a4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarExplicitPresenceOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsScalarExplicitPresenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsScalarExplicitPresence) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresence.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresence.java deleted file mode 100644 index d4191579..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresence.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence} - */ -public final class RequiredEditionsScalarImplicitPresence extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence) - RequiredEditionsScalarImplicitPresenceOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsScalarImplicitPresence.class.getName()); - } - // Use RequiredEditionsScalarImplicitPresence.newBuilder() to construct. - private RequiredEditionsScalarImplicitPresence(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsScalarImplicitPresence() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence.class, build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsScalarImplicitPresence)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence other = (build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence 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.RequiredEditionsScalarImplicitPresence parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence 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.RequiredEditionsScalarImplicitPresence parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence 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.RequiredEditionsScalarImplicitPresence parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence 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.RequiredEditionsScalarImplicitPresence parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence 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.RequiredEditionsScalarImplicitPresence 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.RequiredEditionsScalarImplicitPresence 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.RequiredEditionsScalarImplicitPresence 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.RequiredEditionsScalarImplicitPresence} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence) - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresence_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresence_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence.class, build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresence_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence build() { - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence result = new build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence) - private static final build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsScalarImplicitPresence 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.RequiredEditionsScalarImplicitPresence getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceIgnoreAlways.java deleted file mode 100644 index d5abaffa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceIgnoreAlways.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways} - */ -public final class RequiredEditionsScalarImplicitPresenceIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways) - RequiredEditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsScalarImplicitPresenceIgnoreAlways.class.getName()); - } - // Use RequiredEditionsScalarImplicitPresenceIgnoreAlways.newBuilder() to construct. - private RequiredEditionsScalarImplicitPresenceIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsScalarImplicitPresenceIgnoreAlways() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsScalarImplicitPresenceIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways 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.RequiredEditionsScalarImplicitPresenceIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways 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.RequiredEditionsScalarImplicitPresenceIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways 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.RequiredEditionsScalarImplicitPresenceIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways 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.RequiredEditionsScalarImplicitPresenceIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways 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.RequiredEditionsScalarImplicitPresenceIgnoreAlways 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.RequiredEditionsScalarImplicitPresenceIgnoreAlways 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.RequiredEditionsScalarImplicitPresenceIgnoreAlways 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.RequiredEditionsScalarImplicitPresenceIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways) - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresenceIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresenceIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsScalarImplicitPresenceIgnoreAlways 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.RequiredEditionsScalarImplicitPresenceIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder.java deleted file mode 100644 index f27f598f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsScalarImplicitPresenceIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresenceIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceOrBuilder.java deleted file mode 100644 index 1b23305d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarImplicitPresenceOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsScalarImplicitPresenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsScalarImplicitPresence) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarLegacyRequired.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarLegacyRequired.java deleted file mode 100644 index 3479c96b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarLegacyRequired.java +++ /dev/null @@ -1,532 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired} - */ -public final class RequiredEditionsScalarLegacyRequired extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired) - RequiredEditionsScalarLegacyRequiredOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredEditionsScalarLegacyRequired.class.getName()); - } - // Use RequiredEditionsScalarLegacyRequired.newBuilder() to construct. - private RequiredEditionsScalarLegacyRequired(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredEditionsScalarLegacyRequired() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarLegacyRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarLegacyRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired.class, build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredEditionsScalarLegacyRequired)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired other = (build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired 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.RequiredEditionsScalarLegacyRequired parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired 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.RequiredEditionsScalarLegacyRequired parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired 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.RequiredEditionsScalarLegacyRequired parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired 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.RequiredEditionsScalarLegacyRequired parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired 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.RequiredEditionsScalarLegacyRequired 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.RequiredEditionsScalarLegacyRequired 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.RequiredEditionsScalarLegacyRequired 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.RequiredEditionsScalarLegacyRequired} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired) - build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequiredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarLegacyRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarLegacyRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired.class, build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProtoEditionsProto.internal_static_buf_validate_conformance_cases_RequiredEditionsScalarLegacyRequired_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired build() { - build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired buildPartial() { - build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired result = new build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired other) { - if (other == build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", features = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired) - private static final build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired(); - } - - public static build.buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredEditionsScalarLegacyRequired 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.RequiredEditionsScalarLegacyRequired getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarLegacyRequiredOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarLegacyRequiredOrBuilder.java deleted file mode 100644 index ee77aa26..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredEditionsScalarLegacyRequiredOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredEditionsScalarLegacyRequiredOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredEditionsScalarLegacyRequired) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", features = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", features = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto2Proto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto2Proto.java deleted file mode 100644 index 2c42cd9e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto2Proto.java +++ /dev/null @@ -1,281 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class RequiredFieldProto2Proto { - private RequiredFieldProto2Proto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredFieldProto2Proto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefaultIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefaultIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2Message_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2Message_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2OneofIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2OneofIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2RepeatedIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2RepeatedIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2Map_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2Map_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2Map_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2Map_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_ValEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:buf/validate/conformance/cases/require" + - "d_field_proto2.proto\022\036buf.validate.confo" + - "rmance.cases\032\033buf/validate/validate.prot" + - "o\"8\n\034RequiredProto2ScalarOptional\022\030\n\003val" + - "\030\001 \001(\tB\006\272H\003\310\001\001R\003val\"G\n(RequiredProto2Sca" + - "larOptionalIgnoreAlways\022\033\n\003val\030\001 \001(\tB\t\272H" + - "\006\310\001\001\330\001\003R\003val\"D\n#RequiredProto2ScalarOpti" + - "onalDefault\022\035\n\003val\030\001 \001(\t:\003fooB\006\272H\003\310\001\001R\003v" + - "al\"S\n/RequiredProto2ScalarOptionalDefaul" + - "tIgnoreAlways\022 \n\003val\030\001 \001(\t:\003fooB\t\272H\006\310\001\001\330" + - "\001\003R\003val\"8\n\034RequiredProto2ScalarRequired\022" + - "\030\n\003val\030\001 \002(\tB\006\272H\003\310\001\001R\003val\"\205\001\n\025RequiredPr" + - "oto2Message\022S\n\003val\030\001 \001(\01329.buf.validate." + - "conformance.cases.RequiredProto2Message." + - "MsgB\006\272H\003\310\001\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR\003va" + - "l\"\240\001\n!RequiredProto2MessageIgnoreAlways\022" + - "b\n\003val\030\001 \001(\0132E.buf.validate.conformance." + - "cases.RequiredProto2MessageIgnoreAlways." + - "MsgB\t\272H\006\310\001\001\330\001\003R\003val\032\027\n\003Msg\022\020\n\003val\030\001 \001(\tR" + - "\003val\"D\n\023RequiredProto2Oneof\022\026\n\001a\030\001 \001(\tB\006" + - "\272H\003\310\001\001H\000R\001a\022\016\n\001b\030\002 \001(\tH\000R\001bB\005\n\003val\"S\n\037Re" + - "quiredProto2OneofIgnoreAlways\022\031\n\001a\030\001 \001(\t" + - "B\t\272H\006\310\001\001\330\001\003H\000R\001a\022\016\n\001b\030\002 \001(\tH\000R\001bB\005\n\003val\"" + - "2\n\026RequiredProto2Repeated\022\030\n\003val\030\001 \003(\tB\006" + - "\272H\003\310\001\001R\003val\"A\n\"RequiredProto2RepeatedIgn" + - "oreAlways\022\033\n\003val\030\001 \003(\tB\t\272H\006\310\001\001\330\001\003R\003val\"\241" + - "\001\n\021RequiredProto2Map\022T\n\003val\030\001 \003(\0132:.buf." + - "validate.conformance.cases.RequiredProto" + - "2Map.ValEntryB\006\272H\003\310\001\001R\003val\0326\n\010ValEntry\022\020" + - "\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\002" + - "8\001\"\274\001\n\035RequiredProto2MapIgnoreAlways\022c\n\003" + - "val\030\001 \003(\0132F.buf.validate.conformance.cas" + - "es.RequiredProto2MapIgnoreAlways.ValEntr" + - "yB\t\272H\006\310\001\001\330\001\003R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001" + - "(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\334\001\n$bu" + - "ild.buf.validate.conformance.casesB\030Requ" + - "iredFieldProto2ProtoP\001\242\002\004BVCC\252\002\036Buf.Vali" + - "date.Conformance.Cases\312\002\036Buf\\Validate\\Co" + - "nformance\\Cases\342\002*Buf\\Validate\\Conforman" + - "ce\\Cases\\GPBMetadata\352\002!Buf::Validate::Co" + - "nformance::Cases" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefaultIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefaultIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefaultIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2Message_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_RequiredProto2Message_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2Message_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_descriptor = - internal_static_buf_validate_conformance_cases_RequiredProto2Message_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_Msg_descriptor = - internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_descriptor, - new java.lang.String[] { "A", "B", "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2OneofIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_RequiredProto2OneofIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2OneofIgnoreAlways_descriptor, - new java.lang.String[] { "A", "B", "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2RepeatedIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_RequiredProto2RepeatedIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2RepeatedIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2Map_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_RequiredProto2Map_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2Map_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2Map_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_RequiredProto2Map_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_RequiredProto2Map_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2Map_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto3Proto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto3Proto.java deleted file mode 100644 index 7fffbe89..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProto3Proto.java +++ /dev/null @@ -1,268 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class RequiredFieldProto3Proto { - private RequiredFieldProto3Proto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredFieldProto3Proto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3ScalarIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3ScalarIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalarIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalarIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3Message_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3Message_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3OneOfIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3OneOfIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3RepeatedIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3RepeatedIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3Map_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3Map_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3Map_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3Map_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_ValEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:buf/validate/conformance/cases/require" + - "d_field_proto3.proto\022\036buf.validate.confo" + - "rmance.cases\032\033buf/validate/validate.prot" + - "o\"0\n\024RequiredProto3Scalar\022\030\n\003val\030\001 \001(\tB\006" + - "\272H\003\310\001\001R\003val\"?\n RequiredProto3ScalarIgnor" + - "eAlways\022\033\n\003val\030\001 \001(\tB\t\272H\006\310\001\001\330\001\003R\003val\"E\n\034" + - "RequiredProto3OptionalScalar\022\035\n\003val\030\001 \001(" + - "\tB\006\272H\003\310\001\001H\000R\003val\210\001\001B\006\n\004_val\"T\n(RequiredP" + - "roto3OptionalScalarIgnoreAlways\022 \n\003val\030\001" + - " \001(\tB\t\272H\006\310\001\001\330\001\003H\000R\003val\210\001\001B\006\n\004_val\"\205\001\n\025Re" + - "quiredProto3Message\022S\n\003val\030\001 \001(\01329.buf.v" + - "alidate.conformance.cases.RequiredProto3" + - "Message.MsgB\006\272H\003\310\001\001R\003val\032\027\n\003Msg\022\020\n\003val\030\001" + - " \001(\tR\003val\"\240\001\n!RequiredProto3MessageIgnor" + - "eAlways\022b\n\003val\030\001 \001(\0132E.buf.validate.conf" + - "ormance.cases.RequiredProto3MessageIgnor" + - "eAlways.MsgB\t\272H\006\310\001\001\330\001\003R\003val\032\027\n\003Msg\022\020\n\003va" + - "l\030\001 \001(\tR\003val\"D\n\023RequiredProto3OneOf\022\026\n\001a" + - "\030\001 \001(\tB\006\272H\003\310\001\001H\000R\001a\022\016\n\001b\030\002 \001(\tH\000R\001bB\005\n\003v" + - "al\"S\n\037RequiredProto3OneOfIgnoreAlways\022\031\n" + - "\001a\030\001 \001(\tB\t\272H\006\310\001\001\330\001\003H\000R\001a\022\016\n\001b\030\002 \001(\tH\000R\001b" + - "B\005\n\003val\"2\n\026RequiredProto3Repeated\022\030\n\003val" + - "\030\001 \003(\tB\006\272H\003\310\001\001R\003val\"A\n\"RequiredProto3Rep" + - "eatedIgnoreAlways\022\033\n\003val\030\001 \003(\tB\t\272H\006\310\001\001\330\001" + - "\003R\003val\"\241\001\n\021RequiredProto3Map\022T\n\003val\030\001 \003(" + - "\0132:.buf.validate.conformance.cases.Requi" + - "redProto3Map.ValEntryB\006\272H\003\310\001\001R\003val\0326\n\010Va" + - "lEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR" + - "\005value:\0028\001\"\274\001\n\035RequiredProto3MapIgnoreAl" + - "ways\022c\n\003val\030\001 \003(\0132F.buf.validate.conform" + - "ance.cases.RequiredProto3MapIgnoreAlways" + - ".ValEntryB\t\272H\006\310\001\001\330\001\003R\003val\0326\n\010ValEntry\022\020\n" + - "\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028" + - "\001B\334\001\n$build.buf.validate.conformance.cas" + - "esB\030RequiredFieldProto3ProtoP\001\242\002\004BVCC\252\002\036" + - "Buf.Validate.Conformance.Cases\312\002\036Buf\\Val" + - "idate\\Conformance\\Cases\342\002*Buf\\Validate\\C" + - "onformance\\Cases\\GPBMetadata\352\002!Buf::Vali" + - "date::Conformance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3ScalarIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_RequiredProto3ScalarIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3ScalarIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalarIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalarIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalarIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3Message_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_RequiredProto3Message_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3Message_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_descriptor = - internal_static_buf_validate_conformance_cases_RequiredProto3Message_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_Msg_descriptor = - internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_Msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_Msg_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_descriptor, - new java.lang.String[] { "A", "B", "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3OneOfIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_RequiredProto3OneOfIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3OneOfIgnoreAlways_descriptor, - new java.lang.String[] { "A", "B", "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3RepeatedIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_RequiredProto3RepeatedIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3RepeatedIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3Map_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_RequiredProto3Map_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3Map_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3Map_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_RequiredProto3Map_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_RequiredProto3Map_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3Map_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_ValEntry_descriptor = - internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_ValEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_ValEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProtoEditionsProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProtoEditionsProto.java deleted file mode 100644 index f167ba4f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredFieldProtoEditionsProto.java +++ /dev/null @@ -1,444 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto_editions.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class RequiredFieldProtoEditionsProto { - private RequiredFieldProtoEditionsProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredFieldProtoEditionsProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresence_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefault_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefault_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarExplicitPresenceDefaultIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresence_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresenceIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarImplicitPresenceIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarLegacyRequired_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsScalarLegacyRequired_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresence_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimited_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageExplicitPresenceDelimitedIgnoreAlways_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequired_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMessageLegacyRequiredDelimited_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsOneof_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsOneof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsOneofIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsOneofIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsRepeated_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsRepeated_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpanded_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpanded_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpandedIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsRepeatedExpandedIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMap_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMap_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMap_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMap_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMapIgnoreAlways_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMapIgnoreAlways_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_RequiredEditionsMapIgnoreAlways_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_RequiredEditionsMapIgnoreAlways_ValEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nBbuf/validate/conformance/cases/require" + - "d_field_proto_editions.proto\022\036buf.valida" + - "te.conformance.cases\032\033buf/validate/valid" + - "ate.proto\"B\n&RequiredEditionsScalarExpli" + - "citPresence\022\030\n\003val\030\001 \001(\tB\006\272H\003\310\001\001R\003val\"Q\n" + - "2RequiredEditionsScalarExplicitPresenceI" + - "gnoreAlways\022\033\n\003val\030\001 \001(\tB\t\272H\006\310\001\001\330\001\003R\003val" + - "\"N\n-RequiredEditionsScalarExplicitPresen" + - "ceDefault\022\035\n\003val\030\001 \001(\t:\003fooB\006\272H\003\310\001\001R\003val" + - "\"]\n9RequiredEditionsScalarExplicitPresen" + - "ceDefaultIgnoreAlways\022 \n\003val\030\001 \001(\t:\003fooB" + - "\t\272H\006\310\001\001\330\001\003R\003val\"G\n&RequiredEditionsScala" + - "rImplicitPresence\022\035\n\003val\030\001 \001(\tB\013\252\001\002\010\002\272H\003" + - "\310\001\001R\003val\"V\n2RequiredEditionsScalarImplic" + - "itPresenceIgnoreAlways\022 \n\003val\030\001 \001(\tB\016\252\001\002" + - "\010\002\272H\006\310\001\001\330\001\003R\003val\"E\n$RequiredEditionsScal" + - "arLegacyRequired\022\035\n\003val\030\001 \001(\tB\013\252\001\002\010\003\272H\003\310" + - "\001\001R\003val\"\251\001\n\'RequiredEditionsMessageExpli" + - "citPresence\022e\n\003val\030\001 \001(\0132K.buf.validate." + - "conformance.cases.RequiredEditionsMessag" + - "eExplicitPresence.MsgB\006\272H\003\310\001\001R\003val\032\027\n\003Ms" + - "g\022\020\n\003val\030\001 \001(\tR\003val\"\304\001\n3RequiredEditions" + - "MessageExplicitPresenceIgnoreAlways\022t\n\003v" + - "al\030\001 \001(\0132W.buf.validate.conformance.case" + - "s.RequiredEditionsMessageExplicitPresenc" + - "eIgnoreAlways.MsgB\t\272H\006\310\001\001\330\001\003R\003val\032\027\n\003Msg" + - "\022\020\n\003val\030\001 \001(\tR\003val\"\300\001\n0RequiredEditionsM" + - "essageExplicitPresenceDelimited\022s\n\003val\030\001" + - " \001(\0132T.buf.validate.conformance.cases.Re" + - "quiredEditionsMessageExplicitPresenceDel" + - "imited.MsgB\013\252\001\002(\002\272H\003\310\001\001R\003val\032\027\n\003Msg\022\020\n\003v" + - "al\030\001 \001(\tR\003val\"\334\001\n builder) { - super(builder); - } - private RequiredProto2Map() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Map_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Map_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2Map.class, build.buf.validate.conformance.cases.RequiredProto2Map.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Map_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.RequiredProto2Map)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2Map other = (build.buf.validate.conformance.cases.RequiredProto2Map) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2Map parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Map 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.RequiredProto2Map parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Map 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.RequiredProto2Map parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Map 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.RequiredProto2Map parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2Map 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.RequiredProto2Map parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2Map 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.RequiredProto2Map 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.RequiredProto2Map 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.RequiredProto2Map 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.RequiredProto2Map} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2Map) - build.buf.validate.conformance.cases.RequiredProto2MapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Map_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Map_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2Map.class, build.buf.validate.conformance.cases.RequiredProto2Map.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2Map.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Map_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Map getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2Map.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Map build() { - build.buf.validate.conformance.cases.RequiredProto2Map result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Map buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2Map result = new build.buf.validate.conformance.cases.RequiredProto2Map(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Map result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2Map) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2Map)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2Map other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2Map.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2Map) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2Map) - private static final build.buf.validate.conformance.cases.RequiredProto2Map DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2Map(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2Map getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2Map 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.RequiredProto2Map getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapIgnoreAlways.java deleted file mode 100644 index 264f41d5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapIgnoreAlways.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways} - */ -public final class RequiredProto2MapIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways) - RequiredProto2MapIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2MapIgnoreAlways.class.getName()); - } - // Use RequiredProto2MapIgnoreAlways.newBuilder() to construct. - private RequiredProto2MapIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2MapIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.RequiredProto2MapIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways 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.RequiredProto2MapIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways 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.RequiredProto2MapIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways 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.RequiredProto2MapIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways 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.RequiredProto2MapIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways 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.RequiredProto2MapIgnoreAlways 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.RequiredProto2MapIgnoreAlways 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.RequiredProto2MapIgnoreAlways 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.RequiredProto2MapIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MapIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2MapIgnoreAlways 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.RequiredProto2MapIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapIgnoreAlwaysOrBuilder.java deleted file mode 100644 index f92add4c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2MapIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2MapIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapOrBuilder.java deleted file mode 100644 index a17b8853..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MapOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2MapOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2Map) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Message.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Message.java deleted file mode 100644 index 37a2d495..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Message.java +++ /dev/null @@ -1,1100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Message} - */ -public final class RequiredProto2Message extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2Message) - RequiredProto2MessageOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2Message.class.getName()); - } - // Use RequiredProto2Message.newBuilder() to construct. - private RequiredProto2Message(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2Message() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2Message.class, build.buf.validate.conformance.cases.RequiredProto2Message.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2Message.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Message.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2Message.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2Message.Msg.class, build.buf.validate.conformance.cases.RequiredProto2Message.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto2Message.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2Message.Msg other = (build.buf.validate.conformance.cases.RequiredProto2Message.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2Message.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Message.Msg 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.RequiredProto2Message.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Message.Msg 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.RequiredProto2Message.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Message.Msg 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.RequiredProto2Message.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2Message.Msg 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.RequiredProto2Message.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2Message.Msg 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.RequiredProto2Message.Msg 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.RequiredProto2Message.Msg 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.RequiredProto2Message.Msg 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.RequiredProto2Message.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2Message.Msg) - build.buf.validate.conformance.cases.RequiredProto2Message.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2Message.Msg.class, build.buf.validate.conformance.cases.RequiredProto2Message.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2Message.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Message.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2Message.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Message.Msg build() { - build.buf.validate.conformance.cases.RequiredProto2Message.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Message.Msg buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2Message.Msg result = new build.buf.validate.conformance.cases.RequiredProto2Message.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Message.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2Message.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2Message.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2Message.Msg other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2Message.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2Message.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2Message.Msg) - private static final build.buf.validate.conformance.cases.RequiredProto2Message.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2Message.Msg(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2Message.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.RequiredProto2Message.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.RequiredProto2Message.Msg val_; - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Message.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto2Message.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Message.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto2Message.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.RequiredProto2Message)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2Message other = (build.buf.validate.conformance.cases.RequiredProto2Message) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2Message parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Message 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.RequiredProto2Message parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Message 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.RequiredProto2Message parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Message 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.RequiredProto2Message parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2Message 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.RequiredProto2Message parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2Message 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.RequiredProto2Message 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.RequiredProto2Message 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.RequiredProto2Message 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.RequiredProto2Message} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2Message) - build.buf.validate.conformance.cases.RequiredProto2MessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2Message.class, build.buf.validate.conformance.cases.RequiredProto2Message.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2Message.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Message_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Message getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2Message.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Message build() { - build.buf.validate.conformance.cases.RequiredProto2Message result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Message buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2Message result = new build.buf.validate.conformance.cases.RequiredProto2Message(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Message result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2Message) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2Message)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2Message other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2Message.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.RequiredProto2Message.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto2Message.Msg, build.buf.validate.conformance.cases.RequiredProto2Message.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto2Message.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.RequiredProto2Message.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto2Message.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.RequiredProto2Message.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.RequiredProto2Message.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.RequiredProto2Message.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.RequiredProto2Message.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredProto2Message.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredProto2Message.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.RequiredProto2Message.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto2Message.Msg, build.buf.validate.conformance.cases.RequiredProto2Message.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto2Message.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto2Message.Msg, build.buf.validate.conformance.cases.RequiredProto2Message.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto2Message.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2Message) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2Message) - private static final build.buf.validate.conformance.cases.RequiredProto2Message DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2Message(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2Message getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2Message 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.RequiredProto2Message getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageIgnoreAlways.java deleted file mode 100644 index 09805917..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageIgnoreAlways.java +++ /dev/null @@ -1,1100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways} - */ -public final class RequiredProto2MessageIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways) - RequiredProto2MessageIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2MessageIgnoreAlways.class.getName()); - } - // Use RequiredProto2MessageIgnoreAlways.newBuilder() to construct. - private RequiredProto2MessageIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2MessageIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto2MessageIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg 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.RequiredProto2MessageIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg 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.RequiredProto2MessageIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg 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.RequiredProto2MessageIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg 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.RequiredProto2MessageIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg 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.RequiredProto2MessageIgnoreAlways.Msg 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.RequiredProto2MessageIgnoreAlways.Msg 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.RequiredProto2MessageIgnoreAlways.Msg 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.RequiredProto2MessageIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg) - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.RequiredProto2MessageIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val_; - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.RequiredProto2MessageIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways 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.RequiredProto2MessageIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways 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.RequiredProto2MessageIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways 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.RequiredProto2MessageIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways 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.RequiredProto2MessageIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways 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.RequiredProto2MessageIgnoreAlways 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.RequiredProto2MessageIgnoreAlways 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.RequiredProto2MessageIgnoreAlways 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.RequiredProto2MessageIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2MessageIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2MessageIgnoreAlways 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.RequiredProto2MessageIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageIgnoreAlwaysOrBuilder.java deleted file mode 100644 index ade0e016..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2MessageIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.RequiredProto2MessageIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageOrBuilder.java deleted file mode 100644 index f50d31dc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2MessageOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2MessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2Message) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.RequiredProto2Message.Msg getVal(); - /** - * optional .buf.validate.conformance.cases.RequiredProto2Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.RequiredProto2Message.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Oneof.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Oneof.java deleted file mode 100644 index 529adc25..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Oneof.java +++ /dev/null @@ -1,788 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Oneof} - */ -public final class RequiredProto2Oneof extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2Oneof) - RequiredProto2OneofOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2Oneof.class.getName()); - } - // Use RequiredProto2Oneof.newBuilder() to construct. - private RequiredProto2Oneof(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2Oneof() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2Oneof.class, build.buf.validate.conformance.cases.RequiredProto2Oneof.Builder.class); - } - - private int valCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object val_; - public enum ValCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - A(1), - B(2), - VAL_NOT_SET(0); - private final int value; - private ValCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValCase valueOf(int value) { - return forNumber(value); - } - - public static ValCase forNumber(int value) { - switch (value) { - case 1: return A; - case 2: return B; - case 0: return VAL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public static final int A_FIELD_NUMBER = 1; - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8() && (valCase_ == 1)) { - val_ = s; - } - return s; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int B_FIELD_NUMBER = 2; - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8() && (valCase_ == 2)) { - val_ = s; - } - return s; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (valCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - if (valCase_ == 2) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - if (valCase_ == 2) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, val_); - } - 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.RequiredProto2Oneof)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2Oneof other = (build.buf.validate.conformance.cases.RequiredProto2Oneof) obj; - - if (!getValCase().equals(other.getValCase())) return false; - switch (valCase_) { - case 1: - if (!getA() - .equals(other.getA())) return false; - break; - case 2: - if (!getB() - .equals(other.getB())) return false; - break; - case 0: - default: - } - 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(); - switch (valCase_) { - case 1: - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA().hashCode(); - break; - case 2: - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2Oneof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Oneof 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.RequiredProto2Oneof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Oneof 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.RequiredProto2Oneof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Oneof 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.RequiredProto2Oneof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2Oneof 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.RequiredProto2Oneof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2Oneof 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.RequiredProto2Oneof 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.RequiredProto2Oneof 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.RequiredProto2Oneof 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.RequiredProto2Oneof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2Oneof) - build.buf.validate.conformance.cases.RequiredProto2OneofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2Oneof.class, build.buf.validate.conformance.cases.RequiredProto2Oneof.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2Oneof.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - valCase_ = 0; - val_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Oneof_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Oneof getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2Oneof.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Oneof build() { - build.buf.validate.conformance.cases.RequiredProto2Oneof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Oneof buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2Oneof result = new build.buf.validate.conformance.cases.RequiredProto2Oneof(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Oneof result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.RequiredProto2Oneof result) { - result.valCase_ = valCase_; - result.val_ = this.val_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2Oneof) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2Oneof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2Oneof other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2Oneof.getDefaultInstance()) return this; - switch (other.getValCase()) { - case A: { - valCase_ = 1; - val_ = other.val_; - onChanged(); - break; - } - case B: { - valCase_ = 2; - val_ = other.val_; - onChanged(); - break; - } - case VAL_NOT_SET: { - break; - } - } - 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.ByteString bs = input.readBytes(); - valCase_ = 1; - val_ = bs; - break; - } // case 10 - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - valCase_ = 2; - val_ = bs; - break; - } // case 18 - 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 valCase_ = 0; - private java.lang.Object val_; - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public Builder clearVal() { - valCase_ = 0; - val_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 1) { - if (bs.isValidUtf8()) { - val_ = s; - } - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The bytes for a to set. - * @return This builder for chaining. - */ - public Builder setABytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - @java.lang.Override - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - if (bs.isValidUtf8()) { - val_ = s; - } - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @param value The b to set. - * @return This builder for chaining. - */ - public Builder setB( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @return This builder for chaining. - */ - public Builder clearB() { - if (valCase_ == 2) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @param value The bytes for b to set. - * @return This builder for chaining. - */ - public Builder setBBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2Oneof) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2Oneof) - private static final build.buf.validate.conformance.cases.RequiredProto2Oneof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2Oneof(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2Oneof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2Oneof 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.RequiredProto2Oneof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofIgnoreAlways.java deleted file mode 100644 index fba5048d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofIgnoreAlways.java +++ /dev/null @@ -1,788 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways} - */ -public final class RequiredProto2OneofIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways) - RequiredProto2OneofIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2OneofIgnoreAlways.class.getName()); - } - // Use RequiredProto2OneofIgnoreAlways.newBuilder() to construct. - private RequiredProto2OneofIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2OneofIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2OneofIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2OneofIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways.Builder.class); - } - - private int valCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object val_; - public enum ValCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - A(1), - B(2), - VAL_NOT_SET(0); - private final int value; - private ValCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValCase valueOf(int value) { - return forNumber(value); - } - - public static ValCase forNumber(int value) { - switch (value) { - case 1: return A; - case 2: return B; - case 0: return VAL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public static final int A_FIELD_NUMBER = 1; - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8() && (valCase_ == 1)) { - val_ = s; - } - return s; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int B_FIELD_NUMBER = 2; - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8() && (valCase_ == 2)) { - val_ = s; - } - return s; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (valCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - if (valCase_ == 2) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - if (valCase_ == 2) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, val_); - } - 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.RequiredProto2OneofIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways) obj; - - if (!getValCase().equals(other.getValCase())) return false; - switch (valCase_) { - case 1: - if (!getA() - .equals(other.getA())) return false; - break; - case 2: - if (!getB() - .equals(other.getB())) return false; - break; - case 0: - default: - } - 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(); - switch (valCase_) { - case 1: - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA().hashCode(); - break; - case 2: - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways 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.RequiredProto2OneofIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways 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.RequiredProto2OneofIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways 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.RequiredProto2OneofIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways 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.RequiredProto2OneofIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways 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.RequiredProto2OneofIgnoreAlways 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.RequiredProto2OneofIgnoreAlways 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.RequiredProto2OneofIgnoreAlways 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.RequiredProto2OneofIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2OneofIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2OneofIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - valCase_ = 0; - val_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2OneofIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways result) { - result.valCase_ = valCase_; - result.val_ = this.val_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways.getDefaultInstance()) return this; - switch (other.getValCase()) { - case A: { - valCase_ = 1; - val_ = other.val_; - onChanged(); - break; - } - case B: { - valCase_ = 2; - val_ = other.val_; - onChanged(); - break; - } - case VAL_NOT_SET: { - break; - } - } - 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.ByteString bs = input.readBytes(); - valCase_ = 1; - val_ = bs; - break; - } // case 10 - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - valCase_ = 2; - val_ = bs; - break; - } // case 18 - 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 valCase_ = 0; - private java.lang.Object val_; - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public Builder clearVal() { - valCase_ = 0; - val_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 1) { - if (bs.isValidUtf8()) { - val_ = s; - } - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The bytes for a to set. - * @return This builder for chaining. - */ - public Builder setABytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - @java.lang.Override - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - if (bs.isValidUtf8()) { - val_ = s; - } - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @param value The b to set. - * @return This builder for chaining. - */ - public Builder setB( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @return This builder for chaining. - */ - public Builder clearB() { - if (valCase_ == 2) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @param value The bytes for b to set. - * @return This builder for chaining. - */ - public Builder setBBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2OneofIgnoreAlways 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.RequiredProto2OneofIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 1b3a8c82..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2OneofIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - boolean hasA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - java.lang.String getA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - com.google.protobuf.ByteString - getABytes(); - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - boolean hasB(); - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - java.lang.String getB(); - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - com.google.protobuf.ByteString - getBBytes(); - - build.buf.validate.conformance.cases.RequiredProto2OneofIgnoreAlways.ValCase getValCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofOrBuilder.java deleted file mode 100644 index a1669717..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2OneofOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2OneofOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2Oneof) - com.google.protobuf.MessageOrBuilder { - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - boolean hasA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - java.lang.String getA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - com.google.protobuf.ByteString - getABytes(); - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - boolean hasB(); - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - java.lang.String getB(); - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - com.google.protobuf.ByteString - getBBytes(); - - build.buf.validate.conformance.cases.RequiredProto2Oneof.ValCase getValCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Repeated.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Repeated.java deleted file mode 100644 index 70148a4d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2Repeated.java +++ /dev/null @@ -1,553 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2Repeated} - */ -public final class RequiredProto2Repeated extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2Repeated) - RequiredProto2RepeatedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2Repeated.class.getName()); - } - // Use RequiredProto2Repeated.newBuilder() to construct. - private RequiredProto2Repeated(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2Repeated() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2Repeated.class, build.buf.validate.conformance.cases.RequiredProto2Repeated.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RequiredProto2Repeated)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2Repeated other = (build.buf.validate.conformance.cases.RequiredProto2Repeated) 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.RequiredProto2Repeated parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Repeated 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.RequiredProto2Repeated parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Repeated 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.RequiredProto2Repeated parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2Repeated 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.RequiredProto2Repeated parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2Repeated 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.RequiredProto2Repeated parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2Repeated 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.RequiredProto2Repeated 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.RequiredProto2Repeated 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.RequiredProto2Repeated 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.RequiredProto2Repeated} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2Repeated) - build.buf.validate.conformance.cases.RequiredProto2RepeatedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2Repeated.class, build.buf.validate.conformance.cases.RequiredProto2Repeated.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2Repeated.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2Repeated_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Repeated getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2Repeated.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Repeated build() { - build.buf.validate.conformance.cases.RequiredProto2Repeated result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2Repeated buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2Repeated result = new build.buf.validate.conformance.cases.RequiredProto2Repeated(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2Repeated result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2Repeated) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2Repeated)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2Repeated other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2Repeated.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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.ByteString bs = input.readBytes(); - ensureValIsMutable(); - val_.add(bs); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2Repeated) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2Repeated) - private static final build.buf.validate.conformance.cases.RequiredProto2Repeated DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2Repeated(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2Repeated getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2Repeated 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.RequiredProto2Repeated getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedIgnoreAlways.java deleted file mode 100644 index aae92f6e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedIgnoreAlways.java +++ /dev/null @@ -1,553 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways} - */ -public final class RequiredProto2RepeatedIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways) - RequiredProto2RepeatedIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2RepeatedIgnoreAlways.class.getName()); - } - // Use RequiredProto2RepeatedIgnoreAlways.newBuilder() to construct. - private RequiredProto2RepeatedIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2RepeatedIgnoreAlways() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2RepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RequiredProto2RepeatedIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways) 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.RequiredProto2RepeatedIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways 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.RequiredProto2RepeatedIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways 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.RequiredProto2RepeatedIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways 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.RequiredProto2RepeatedIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways 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.RequiredProto2RepeatedIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways 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.RequiredProto2RepeatedIgnoreAlways 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.RequiredProto2RepeatedIgnoreAlways 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.RequiredProto2RepeatedIgnoreAlways 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.RequiredProto2RepeatedIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2RepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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.ByteString bs = input.readBytes(); - ensureValIsMutable(); - val_.add(bs); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2RepeatedIgnoreAlways 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.RequiredProto2RepeatedIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 6fbfa852..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2RepeatedIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2RepeatedIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedOrBuilder.java deleted file mode 100644 index 68198345..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2RepeatedOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2RepeatedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2Repeated) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptional.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptional.java deleted file mode 100644 index bd0ad2dc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptional.java +++ /dev/null @@ -1,528 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2ScalarOptional} - */ -public final class RequiredProto2ScalarOptional extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2ScalarOptional) - RequiredProto2ScalarOptionalOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2ScalarOptional.class.getName()); - } - // Use RequiredProto2ScalarOptional.newBuilder() to construct. - private RequiredProto2ScalarOptional(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2ScalarOptional() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2ScalarOptional.class, build.buf.validate.conformance.cases.RequiredProto2ScalarOptional.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto2ScalarOptional)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2ScalarOptional other = (build.buf.validate.conformance.cases.RequiredProto2ScalarOptional) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptional parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptional 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.RequiredProto2ScalarOptional parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptional 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.RequiredProto2ScalarOptional parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptional 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.RequiredProto2ScalarOptional parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptional 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.RequiredProto2ScalarOptional parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptional 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.RequiredProto2ScalarOptional 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.RequiredProto2ScalarOptional 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.RequiredProto2ScalarOptional 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.RequiredProto2ScalarOptional} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2ScalarOptional) - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2ScalarOptional.class, build.buf.validate.conformance.cases.RequiredProto2ScalarOptional.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2ScalarOptional.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptional_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptional getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2ScalarOptional.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptional build() { - build.buf.validate.conformance.cases.RequiredProto2ScalarOptional result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptional buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2ScalarOptional result = new build.buf.validate.conformance.cases.RequiredProto2ScalarOptional(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2ScalarOptional result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2ScalarOptional) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2ScalarOptional)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2ScalarOptional other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2ScalarOptional.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2ScalarOptional) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2ScalarOptional) - private static final build.buf.validate.conformance.cases.RequiredProto2ScalarOptional DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2ScalarOptional(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptional getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2ScalarOptional 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.RequiredProto2ScalarOptional getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefault.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefault.java deleted file mode 100644 index d9186f92..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefault.java +++ /dev/null @@ -1,528 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault} - */ -public final class RequiredProto2ScalarOptionalDefault extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault) - RequiredProto2ScalarOptionalDefaultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2ScalarOptionalDefault.class.getName()); - } - // Use RequiredProto2ScalarOptionalDefault.newBuilder() to construct. - private RequiredProto2ScalarOptionalDefault(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2ScalarOptionalDefault() { - val_ = "foo"; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault.class, build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = "foo"; - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto2ScalarOptionalDefault)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault other = (build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault 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.RequiredProto2ScalarOptionalDefault parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault 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.RequiredProto2ScalarOptionalDefault parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault 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.RequiredProto2ScalarOptionalDefault parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault 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.RequiredProto2ScalarOptionalDefault parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault 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.RequiredProto2ScalarOptionalDefault 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.RequiredProto2ScalarOptionalDefault 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.RequiredProto2ScalarOptionalDefault 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.RequiredProto2ScalarOptionalDefault} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault) - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault.class, build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = "foo"; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefault_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault build() { - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault result = new build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = "foo"; - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault) - private static final build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2ScalarOptionalDefault 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.RequiredProto2ScalarOptionalDefault getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultIgnoreAlways.java deleted file mode 100644 index 6fee8fbd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultIgnoreAlways.java +++ /dev/null @@ -1,528 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways} - */ -public final class RequiredProto2ScalarOptionalDefaultIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways) - RequiredProto2ScalarOptionalDefaultIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2ScalarOptionalDefaultIgnoreAlways.class.getName()); - } - // Use RequiredProto2ScalarOptionalDefaultIgnoreAlways.newBuilder() to construct. - private RequiredProto2ScalarOptionalDefaultIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2ScalarOptionalDefaultIgnoreAlways() { - val_ = "foo"; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefaultIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefaultIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = "foo"; - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto2ScalarOptionalDefaultIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways 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.RequiredProto2ScalarOptionalDefaultIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways 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.RequiredProto2ScalarOptionalDefaultIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways 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.RequiredProto2ScalarOptionalDefaultIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways 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.RequiredProto2ScalarOptionalDefaultIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways 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.RequiredProto2ScalarOptionalDefaultIgnoreAlways 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.RequiredProto2ScalarOptionalDefaultIgnoreAlways 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.RequiredProto2ScalarOptionalDefaultIgnoreAlways 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.RequiredProto2ScalarOptionalDefaultIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefaultIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefaultIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = "foo"; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalDefaultIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = "foo"; - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2ScalarOptionalDefaultIgnoreAlways 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.RequiredProto2ScalarOptionalDefaultIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultIgnoreAlwaysOrBuilder.java deleted file mode 100644 index ab8f7d21..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2ScalarOptionalDefaultIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefaultIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultOrBuilder.java deleted file mode 100644 index ab699d67..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalDefaultOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2ScalarOptionalDefaultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2ScalarOptionalDefault) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [default = "foo", json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalIgnoreAlways.java deleted file mode 100644 index c698937a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalIgnoreAlways.java +++ /dev/null @@ -1,528 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways} - */ -public final class RequiredProto2ScalarOptionalIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways) - RequiredProto2ScalarOptionalIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2ScalarOptionalIgnoreAlways.class.getName()); - } - // Use RequiredProto2ScalarOptionalIgnoreAlways.newBuilder() to construct. - private RequiredProto2ScalarOptionalIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2ScalarOptionalIgnoreAlways() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto2ScalarOptionalIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways 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.RequiredProto2ScalarOptionalIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways 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.RequiredProto2ScalarOptionalIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways 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.RequiredProto2ScalarOptionalIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways 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.RequiredProto2ScalarOptionalIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways 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.RequiredProto2ScalarOptionalIgnoreAlways 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.RequiredProto2ScalarOptionalIgnoreAlways 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.RequiredProto2ScalarOptionalIgnoreAlways 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.RequiredProto2ScalarOptionalIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarOptionalIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2ScalarOptionalIgnoreAlways 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.RequiredProto2ScalarOptionalIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 3c0afbbf..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2ScalarOptionalIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2ScalarOptionalIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalOrBuilder.java deleted file mode 100644 index 98d8d5ec..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarOptionalOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2ScalarOptionalOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2ScalarOptional) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequired.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequired.java deleted file mode 100644 index 168b075a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequired.java +++ /dev/null @@ -1,535 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto2ScalarRequired} - */ -public final class RequiredProto2ScalarRequired extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto2ScalarRequired) - RequiredProto2ScalarRequiredOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto2ScalarRequired.class.getName()); - } - // Use RequiredProto2ScalarRequired.newBuilder() to construct. - private RequiredProto2ScalarRequired(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto2ScalarRequired() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2ScalarRequired.class, build.buf.validate.conformance.cases.RequiredProto2ScalarRequired.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVal()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto2ScalarRequired)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto2ScalarRequired other = (build.buf.validate.conformance.cases.RequiredProto2ScalarRequired) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarRequired parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarRequired 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.RequiredProto2ScalarRequired parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarRequired 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.RequiredProto2ScalarRequired parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarRequired 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.RequiredProto2ScalarRequired parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto2ScalarRequired 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.RequiredProto2ScalarRequired parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarRequired 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.RequiredProto2ScalarRequired 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.RequiredProto2ScalarRequired 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.RequiredProto2ScalarRequired 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.RequiredProto2ScalarRequired} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto2ScalarRequired) - build.buf.validate.conformance.cases.RequiredProto2ScalarRequiredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto2ScalarRequired.class, build.buf.validate.conformance.cases.RequiredProto2ScalarRequired.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto2ScalarRequired.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto2Proto.internal_static_buf_validate_conformance_cases_RequiredProto2ScalarRequired_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarRequired getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto2ScalarRequired.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarRequired build() { - build.buf.validate.conformance.cases.RequiredProto2ScalarRequired result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto2ScalarRequired buildPartial() { - build.buf.validate.conformance.cases.RequiredProto2ScalarRequired result = new build.buf.validate.conformance.cases.RequiredProto2ScalarRequired(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto2ScalarRequired result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto2ScalarRequired) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto2ScalarRequired)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto2ScalarRequired other) { - if (other == build.buf.validate.conformance.cases.RequiredProto2ScalarRequired.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVal()) { - return false; - } - 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: { - val_ = input.readBytes(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto2ScalarRequired) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto2ScalarRequired) - private static final build.buf.validate.conformance.cases.RequiredProto2ScalarRequired DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto2ScalarRequired(); - } - - public static build.buf.validate.conformance.cases.RequiredProto2ScalarRequired getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto2ScalarRequired 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.RequiredProto2ScalarRequired getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequiredOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequiredOrBuilder.java deleted file mode 100644 index b89fb8ea..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto2ScalarRequiredOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto2ScalarRequiredOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto2ScalarRequired) - com.google.protobuf.MessageOrBuilder { - - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * required string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Map.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Map.java deleted file mode 100644 index d09147ec..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Map.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Map} - */ -public final class RequiredProto3Map extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3Map) - RequiredProto3MapOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3Map.class.getName()); - } - // Use RequiredProto3Map.newBuilder() to construct. - private RequiredProto3Map(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3Map() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Map_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Map_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3Map.class, build.buf.validate.conformance.cases.RequiredProto3Map.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Map_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.RequiredProto3Map)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3Map other = (build.buf.validate.conformance.cases.RequiredProto3Map) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3Map parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Map 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.RequiredProto3Map parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Map 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.RequiredProto3Map parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Map 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.RequiredProto3Map parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3Map 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.RequiredProto3Map parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3Map 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.RequiredProto3Map 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.RequiredProto3Map 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.RequiredProto3Map 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.RequiredProto3Map} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3Map) - build.buf.validate.conformance.cases.RequiredProto3MapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Map_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Map_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3Map.class, build.buf.validate.conformance.cases.RequiredProto3Map.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3Map.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Map_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Map getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3Map.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Map build() { - build.buf.validate.conformance.cases.RequiredProto3Map result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Map buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3Map result = new build.buf.validate.conformance.cases.RequiredProto3Map(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3Map result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3Map) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3Map)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3Map other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3Map.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3Map) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3Map) - private static final build.buf.validate.conformance.cases.RequiredProto3Map DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3Map(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3Map getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3Map 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.RequiredProto3Map getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapIgnoreAlways.java deleted file mode 100644 index a9c5c9eb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapIgnoreAlways.java +++ /dev/null @@ -1,644 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways} - */ -public final class RequiredProto3MapIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways) - RequiredProto3MapIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3MapIgnoreAlways.class.getName()); - } - // Use RequiredProto3MapIgnoreAlways.newBuilder() to construct. - private RequiredProto3MapIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3MapIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.RequiredProto3MapIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways 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.RequiredProto3MapIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways 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.RequiredProto3MapIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways 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.RequiredProto3MapIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways 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.RequiredProto3MapIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways 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.RequiredProto3MapIgnoreAlways 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.RequiredProto3MapIgnoreAlways 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.RequiredProto3MapIgnoreAlways 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.RequiredProto3MapIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MapIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.String, java.lang.String> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.lang.String getValOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3MapIgnoreAlways 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.RequiredProto3MapIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 70d28d31..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3MapIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3MapIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapOrBuilder.java deleted file mode 100644 index e1752e6a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MapOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3MapOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3Map) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - java.lang.String key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -java.lang.String getValOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.lang.String getValOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Message.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Message.java deleted file mode 100644 index fd1de2cc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Message.java +++ /dev/null @@ -1,1068 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Message} - */ -public final class RequiredProto3Message extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3Message) - RequiredProto3MessageOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3Message.class.getName()); - } - // Use RequiredProto3Message.newBuilder() to construct. - private RequiredProto3Message(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3Message() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3Message.class, build.buf.validate.conformance.cases.RequiredProto3Message.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3Message.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Message.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3Message.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3Message.Msg.class, build.buf.validate.conformance.cases.RequiredProto3Message.Msg.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto3Message.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3Message.Msg other = (build.buf.validate.conformance.cases.RequiredProto3Message.Msg) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3Message.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Message.Msg 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.RequiredProto3Message.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Message.Msg 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.RequiredProto3Message.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Message.Msg 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.RequiredProto3Message.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3Message.Msg 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.RequiredProto3Message.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3Message.Msg 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.RequiredProto3Message.Msg 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.RequiredProto3Message.Msg 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.RequiredProto3Message.Msg 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.RequiredProto3Message.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3Message.Msg) - build.buf.validate.conformance.cases.RequiredProto3Message.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3Message.Msg.class, build.buf.validate.conformance.cases.RequiredProto3Message.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3Message.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Message.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3Message.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Message.Msg build() { - build.buf.validate.conformance.cases.RequiredProto3Message.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Message.Msg buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3Message.Msg result = new build.buf.validate.conformance.cases.RequiredProto3Message.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3Message.Msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3Message.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3Message.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3Message.Msg other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3Message.Msg.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3Message.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3Message.Msg) - private static final build.buf.validate.conformance.cases.RequiredProto3Message.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3Message.Msg(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3Message.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.RequiredProto3Message.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.RequiredProto3Message.Msg val_; - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Message.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto3Message.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Message.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto3Message.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.RequiredProto3Message)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3Message other = (build.buf.validate.conformance.cases.RequiredProto3Message) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3Message parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Message 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.RequiredProto3Message parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Message 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.RequiredProto3Message parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Message 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.RequiredProto3Message parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3Message 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.RequiredProto3Message parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3Message 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.RequiredProto3Message 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.RequiredProto3Message 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.RequiredProto3Message 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.RequiredProto3Message} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3Message) - build.buf.validate.conformance.cases.RequiredProto3MessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3Message.class, build.buf.validate.conformance.cases.RequiredProto3Message.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3Message.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Message_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Message getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3Message.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Message build() { - build.buf.validate.conformance.cases.RequiredProto3Message result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Message buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3Message result = new build.buf.validate.conformance.cases.RequiredProto3Message(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3Message result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3Message) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3Message)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3Message other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3Message.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.RequiredProto3Message.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto3Message.Msg, build.buf.validate.conformance.cases.RequiredProto3Message.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto3Message.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.RequiredProto3Message.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto3Message.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.RequiredProto3Message.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.RequiredProto3Message.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.RequiredProto3Message.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.RequiredProto3Message.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredProto3Message.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredProto3Message.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.RequiredProto3Message.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto3Message.Msg, build.buf.validate.conformance.cases.RequiredProto3Message.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto3Message.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto3Message.Msg, build.buf.validate.conformance.cases.RequiredProto3Message.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto3Message.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3Message) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3Message) - private static final build.buf.validate.conformance.cases.RequiredProto3Message DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3Message(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3Message getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3Message 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.RequiredProto3Message getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageIgnoreAlways.java deleted file mode 100644 index 206fac41..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageIgnoreAlways.java +++ /dev/null @@ -1,1068 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways} - */ -public final class RequiredProto3MessageIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways) - RequiredProto3MessageIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3MessageIgnoreAlways.class.getName()); - } - // Use RequiredProto3MessageIgnoreAlways.newBuilder() to construct. - private RequiredProto3MessageIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3MessageIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto3MessageIgnoreAlways.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg other = (build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg 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.RequiredProto3MessageIgnoreAlways.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg 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.RequiredProto3MessageIgnoreAlways.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg 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.RequiredProto3MessageIgnoreAlways.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg 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.RequiredProto3MessageIgnoreAlways.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg 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.RequiredProto3MessageIgnoreAlways.Msg 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.RequiredProto3MessageIgnoreAlways.Msg 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.RequiredProto3MessageIgnoreAlways.Msg 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.RequiredProto3MessageIgnoreAlways.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg) - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.class, build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg build() { - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg result = new build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg) - private static final build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.RequiredProto3MessageIgnoreAlways.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val_; - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.RequiredProto3MessageIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways 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.RequiredProto3MessageIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways 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.RequiredProto3MessageIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways 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.RequiredProto3MessageIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways 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.RequiredProto3MessageIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways 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.RequiredProto3MessageIgnoreAlways 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.RequiredProto3MessageIgnoreAlways 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.RequiredProto3MessageIgnoreAlways 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.RequiredProto3MessageIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3MessageIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg, build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg.Builder, build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3MessageIgnoreAlways 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.RequiredProto3MessageIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 0bfaf9a7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3MessageIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg getVal(); - /** - * .buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.RequiredProto3MessageIgnoreAlways.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageOrBuilder.java deleted file mode 100644 index aa6f58ee..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3MessageOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3MessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3Message) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.RequiredProto3Message.Msg getVal(); - /** - * .buf.validate.conformance.cases.RequiredProto3Message.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.RequiredProto3Message.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOf.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOf.java deleted file mode 100644 index fe031b48..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOf.java +++ /dev/null @@ -1,786 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3OneOf} - */ -public final class RequiredProto3OneOf extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3OneOf) - RequiredProto3OneOfOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3OneOf.class.getName()); - } - // Use RequiredProto3OneOf.newBuilder() to construct. - private RequiredProto3OneOf(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3OneOf() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3OneOf.class, build.buf.validate.conformance.cases.RequiredProto3OneOf.Builder.class); - } - - private int valCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object val_; - public enum ValCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - A(1), - B(2), - VAL_NOT_SET(0); - private final int value; - private ValCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValCase valueOf(int value) { - return forNumber(value); - } - - public static ValCase forNumber(int value) { - switch (value) { - case 1: return A; - case 2: return B; - case 0: return VAL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public static final int A_FIELD_NUMBER = 1; - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 1) { - val_ = s; - } - return s; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int B_FIELD_NUMBER = 2; - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (valCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - if (valCase_ == 2) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - if (valCase_ == 2) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, val_); - } - 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.RequiredProto3OneOf)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3OneOf other = (build.buf.validate.conformance.cases.RequiredProto3OneOf) obj; - - if (!getValCase().equals(other.getValCase())) return false; - switch (valCase_) { - case 1: - if (!getA() - .equals(other.getA())) return false; - break; - case 2: - if (!getB() - .equals(other.getB())) return false; - break; - case 0: - default: - } - 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(); - switch (valCase_) { - case 1: - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA().hashCode(); - break; - case 2: - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3OneOf parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OneOf 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.RequiredProto3OneOf parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OneOf 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.RequiredProto3OneOf parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OneOf 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.RequiredProto3OneOf parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3OneOf 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.RequiredProto3OneOf parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3OneOf 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.RequiredProto3OneOf 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.RequiredProto3OneOf 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.RequiredProto3OneOf 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.RequiredProto3OneOf} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3OneOf) - build.buf.validate.conformance.cases.RequiredProto3OneOfOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3OneOf.class, build.buf.validate.conformance.cases.RequiredProto3OneOf.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3OneOf.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - valCase_ = 0; - val_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOf_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OneOf getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3OneOf.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OneOf build() { - build.buf.validate.conformance.cases.RequiredProto3OneOf result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OneOf buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3OneOf result = new build.buf.validate.conformance.cases.RequiredProto3OneOf(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3OneOf result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.RequiredProto3OneOf result) { - result.valCase_ = valCase_; - result.val_ = this.val_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3OneOf) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3OneOf)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3OneOf other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3OneOf.getDefaultInstance()) return this; - switch (other.getValCase()) { - case A: { - valCase_ = 1; - val_ = other.val_; - onChanged(); - break; - } - case B: { - valCase_ = 2; - val_ = other.val_; - onChanged(); - break; - } - case VAL_NOT_SET: { - break; - } - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - valCase_ = 1; - val_ = s; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - valCase_ = 2; - val_ = s; - break; - } // case 18 - 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 valCase_ = 0; - private java.lang.Object val_; - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public Builder clearVal() { - valCase_ = 0; - val_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 1) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The bytes for a to set. - * @return This builder for chaining. - */ - public Builder setABytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - @java.lang.Override - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @param value The b to set. - * @return This builder for chaining. - */ - public Builder setB( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @return This builder for chaining. - */ - public Builder clearB() { - if (valCase_ == 2) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @param value The bytes for b to set. - * @return This builder for chaining. - */ - public Builder setBBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3OneOf) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3OneOf) - private static final build.buf.validate.conformance.cases.RequiredProto3OneOf DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3OneOf(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3OneOf getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3OneOf 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.RequiredProto3OneOf getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfIgnoreAlways.java deleted file mode 100644 index 951fa443..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfIgnoreAlways.java +++ /dev/null @@ -1,786 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways} - */ -public final class RequiredProto3OneOfIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways) - RequiredProto3OneOfIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3OneOfIgnoreAlways.class.getName()); - } - // Use RequiredProto3OneOfIgnoreAlways.newBuilder() to construct. - private RequiredProto3OneOfIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3OneOfIgnoreAlways() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOfIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOfIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways.Builder.class); - } - - private int valCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object val_; - public enum ValCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - A(1), - B(2), - VAL_NOT_SET(0); - private final int value; - private ValCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValCase valueOf(int value) { - return forNumber(value); - } - - public static ValCase forNumber(int value) { - switch (value) { - case 1: return A; - case 2: return B; - case 0: return VAL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public static final int A_FIELD_NUMBER = 1; - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 1) { - val_ = s; - } - return s; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int B_FIELD_NUMBER = 2; - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (valCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - if (valCase_ == 2) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - if (valCase_ == 2) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, val_); - } - 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.RequiredProto3OneOfIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways) obj; - - if (!getValCase().equals(other.getValCase())) return false; - switch (valCase_) { - case 1: - if (!getA() - .equals(other.getA())) return false; - break; - case 2: - if (!getB() - .equals(other.getB())) return false; - break; - case 0: - default: - } - 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(); - switch (valCase_) { - case 1: - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA().hashCode(); - break; - case 2: - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways 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.RequiredProto3OneOfIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways 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.RequiredProto3OneOfIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways 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.RequiredProto3OneOfIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways 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.RequiredProto3OneOfIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways 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.RequiredProto3OneOfIgnoreAlways 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.RequiredProto3OneOfIgnoreAlways 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.RequiredProto3OneOfIgnoreAlways 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.RequiredProto3OneOfIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOfIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOfIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - valCase_ = 0; - val_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OneOfIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways result) { - result.valCase_ = valCase_; - result.val_ = this.val_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways.getDefaultInstance()) return this; - switch (other.getValCase()) { - case A: { - valCase_ = 1; - val_ = other.val_; - onChanged(); - break; - } - case B: { - valCase_ = 2; - val_ = other.val_; - onChanged(); - break; - } - case VAL_NOT_SET: { - break; - } - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - valCase_ = 1; - val_ = s; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - valCase_ = 2; - val_ = s; - break; - } // case 18 - 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 valCase_ = 0; - private java.lang.Object val_; - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public Builder clearVal() { - valCase_ = 0; - val_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return valCase_ == 1; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public java.lang.String getA() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 1) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getABytes() { - java.lang.Object ref = ""; - if (valCase_ == 1) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 1) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The bytes for a to set. - * @return This builder for chaining. - */ - public Builder setABytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - valCase_ = 1; - val_ = value; - onChanged(); - return this; - } - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - @java.lang.Override - public boolean hasB() { - return valCase_ == 2; - } - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public java.lang.String getB() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string b = 2 [json_name = "b"]; - * @param value The b to set. - * @return This builder for chaining. - */ - public Builder setB( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @return This builder for chaining. - */ - public Builder clearB() { - if (valCase_ == 2) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - * string b = 2 [json_name = "b"]; - * @param value The bytes for b to set. - * @return This builder for chaining. - */ - public Builder setBBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3OneOfIgnoreAlways 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.RequiredProto3OneOfIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 31117ec5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3OneOfIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - boolean hasA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - java.lang.String getA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - com.google.protobuf.ByteString - getABytes(); - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - boolean hasB(); - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - java.lang.String getB(); - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - com.google.protobuf.ByteString - getBBytes(); - - build.buf.validate.conformance.cases.RequiredProto3OneOfIgnoreAlways.ValCase getValCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfOrBuilder.java deleted file mode 100644 index 3e8b7d0d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OneOfOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3OneOfOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3OneOf) - com.google.protobuf.MessageOrBuilder { - - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - boolean hasA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - java.lang.String getA(); - /** - * string a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The bytes for a. - */ - com.google.protobuf.ByteString - getABytes(); - - /** - * string b = 2 [json_name = "b"]; - * @return Whether the b field is set. - */ - boolean hasB(); - /** - * string b = 2 [json_name = "b"]; - * @return The b. - */ - java.lang.String getB(); - /** - * string b = 2 [json_name = "b"]; - * @return The bytes for b. - */ - com.google.protobuf.ByteString - getBBytes(); - - build.buf.validate.conformance.cases.RequiredProto3OneOf.ValCase getValCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalar.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalar.java deleted file mode 100644 index 97dcb3b6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalar.java +++ /dev/null @@ -1,525 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3OptionalScalar} - */ -public final class RequiredProto3OptionalScalar extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3OptionalScalar) - RequiredProto3OptionalScalarOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3OptionalScalar.class.getName()); - } - // Use RequiredProto3OptionalScalar.newBuilder() to construct. - private RequiredProto3OptionalScalar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3OptionalScalar() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3OptionalScalar.class, build.buf.validate.conformance.cases.RequiredProto3OptionalScalar.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto3OptionalScalar)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3OptionalScalar other = (build.buf.validate.conformance.cases.RequiredProto3OptionalScalar) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalar 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.RequiredProto3OptionalScalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalar 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.RequiredProto3OptionalScalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalar 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.RequiredProto3OptionalScalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalar 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.RequiredProto3OptionalScalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalar 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.RequiredProto3OptionalScalar 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.RequiredProto3OptionalScalar 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.RequiredProto3OptionalScalar 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.RequiredProto3OptionalScalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3OptionalScalar) - build.buf.validate.conformance.cases.RequiredProto3OptionalScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3OptionalScalar.class, build.buf.validate.conformance.cases.RequiredProto3OptionalScalar.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3OptionalScalar.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalar_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OptionalScalar getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3OptionalScalar.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OptionalScalar build() { - build.buf.validate.conformance.cases.RequiredProto3OptionalScalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OptionalScalar buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3OptionalScalar result = new build.buf.validate.conformance.cases.RequiredProto3OptionalScalar(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3OptionalScalar result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3OptionalScalar) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3OptionalScalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3OptionalScalar other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3OptionalScalar.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3OptionalScalar) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3OptionalScalar) - private static final build.buf.validate.conformance.cases.RequiredProto3OptionalScalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3OptionalScalar(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3OptionalScalar 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.RequiredProto3OptionalScalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarIgnoreAlways.java deleted file mode 100644 index 5f583249..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarIgnoreAlways.java +++ /dev/null @@ -1,525 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways} - */ -public final class RequiredProto3OptionalScalarIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways) - RequiredProto3OptionalScalarIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3OptionalScalarIgnoreAlways.class.getName()); - } - // Use RequiredProto3OptionalScalarIgnoreAlways.newBuilder() to construct. - private RequiredProto3OptionalScalarIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3OptionalScalarIgnoreAlways() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalarIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalarIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto3OptionalScalarIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways 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.RequiredProto3OptionalScalarIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways 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.RequiredProto3OptionalScalarIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways 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.RequiredProto3OptionalScalarIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways 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.RequiredProto3OptionalScalarIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways 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.RequiredProto3OptionalScalarIgnoreAlways 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.RequiredProto3OptionalScalarIgnoreAlways 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.RequiredProto3OptionalScalarIgnoreAlways 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.RequiredProto3OptionalScalarIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalarIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalarIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3OptionalScalarIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways.getDefaultInstance()) return this; - if (other.hasVal()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3OptionalScalarIgnoreAlways 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.RequiredProto3OptionalScalarIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 8917dabc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3OptionalScalarIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3OptionalScalarIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarOrBuilder.java deleted file mode 100644 index b98f00f5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3OptionalScalarOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3OptionalScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3OptionalScalar) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * optional string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Repeated.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Repeated.java deleted file mode 100644 index f0c8dbf5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Repeated.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Repeated} - */ -public final class RequiredProto3Repeated extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3Repeated) - RequiredProto3RepeatedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3Repeated.class.getName()); - } - // Use RequiredProto3Repeated.newBuilder() to construct. - private RequiredProto3Repeated(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3Repeated() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3Repeated.class, build.buf.validate.conformance.cases.RequiredProto3Repeated.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RequiredProto3Repeated)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3Repeated other = (build.buf.validate.conformance.cases.RequiredProto3Repeated) 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.RequiredProto3Repeated parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Repeated 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.RequiredProto3Repeated parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Repeated 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.RequiredProto3Repeated parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Repeated 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.RequiredProto3Repeated parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3Repeated 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.RequiredProto3Repeated parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3Repeated 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.RequiredProto3Repeated 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.RequiredProto3Repeated 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.RequiredProto3Repeated 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.RequiredProto3Repeated} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3Repeated) - build.buf.validate.conformance.cases.RequiredProto3RepeatedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3Repeated.class, build.buf.validate.conformance.cases.RequiredProto3Repeated.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3Repeated.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Repeated_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Repeated getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3Repeated.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Repeated build() { - build.buf.validate.conformance.cases.RequiredProto3Repeated result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Repeated buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3Repeated result = new build.buf.validate.conformance.cases.RequiredProto3Repeated(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3Repeated result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3Repeated) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3Repeated)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3Repeated other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3Repeated.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3Repeated) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3Repeated) - private static final build.buf.validate.conformance.cases.RequiredProto3Repeated DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3Repeated(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3Repeated getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3Repeated 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.RequiredProto3Repeated getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedIgnoreAlways.java deleted file mode 100644 index acbd6b36..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedIgnoreAlways.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways} - */ -public final class RequiredProto3RepeatedIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways) - RequiredProto3RepeatedIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3RepeatedIgnoreAlways.class.getName()); - } - // Use RequiredProto3RepeatedIgnoreAlways.newBuilder() to construct. - private RequiredProto3RepeatedIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3RepeatedIgnoreAlways() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3RepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(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++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += computeStringSizeNoTag(val_.getRaw(i)); - } - size += dataSize; - size += 1 * getValList().size(); - } - 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.RequiredProto3RepeatedIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways) 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.RequiredProto3RepeatedIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways 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.RequiredProto3RepeatedIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways 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.RequiredProto3RepeatedIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways 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.RequiredProto3RepeatedIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways 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.RequiredProto3RepeatedIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways 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.RequiredProto3RepeatedIgnoreAlways 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.RequiredProto3RepeatedIgnoreAlways 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.RequiredProto3RepeatedIgnoreAlways 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.RequiredProto3RepeatedIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3RepeatedIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3RepeatedIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValIsMutable(); - val_.add(s); - 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 com.google.protobuf.LazyStringArrayList val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = new com.google.protobuf.LazyStringArrayList(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public com.google.protobuf.ProtocolStringList - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public java.lang.String getVal(int index) { - return val_.get(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - public com.google.protobuf.ByteString - getValBytes(int index) { - return val_.getByteString(index); - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes of the val to add. - * @return This builder for chaining. - */ - public Builder addValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValIsMutable(); - val_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3RepeatedIgnoreAlways 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.RequiredProto3RepeatedIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 1305cfb8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3RepeatedIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3RepeatedIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedOrBuilder.java deleted file mode 100644 index 7531d7be..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3RepeatedOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3RepeatedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3Repeated) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List - getValList(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - java.lang.String getVal(int index); - /** - * repeated string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the val at the given index. - */ - com.google.protobuf.ByteString - getValBytes(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Scalar.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Scalar.java deleted file mode 100644 index 20d237da..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3Scalar.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3Scalar} - */ -public final class RequiredProto3Scalar extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3Scalar) - RequiredProto3ScalarOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3Scalar.class.getName()); - } - // Use RequiredProto3Scalar.newBuilder() to construct. - private RequiredProto3Scalar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3Scalar() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3Scalar.class, build.buf.validate.conformance.cases.RequiredProto3Scalar.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto3Scalar)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3Scalar other = (build.buf.validate.conformance.cases.RequiredProto3Scalar) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3Scalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Scalar 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.RequiredProto3Scalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Scalar 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.RequiredProto3Scalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3Scalar 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.RequiredProto3Scalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3Scalar 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.RequiredProto3Scalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3Scalar 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.RequiredProto3Scalar 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.RequiredProto3Scalar 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.RequiredProto3Scalar 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.RequiredProto3Scalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3Scalar) - build.buf.validate.conformance.cases.RequiredProto3ScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3Scalar.class, build.buf.validate.conformance.cases.RequiredProto3Scalar.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3Scalar.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3Scalar_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Scalar getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3Scalar.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Scalar build() { - build.buf.validate.conformance.cases.RequiredProto3Scalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3Scalar buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3Scalar result = new build.buf.validate.conformance.cases.RequiredProto3Scalar(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3Scalar result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3Scalar) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3Scalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3Scalar other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3Scalar.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3Scalar) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3Scalar) - private static final build.buf.validate.conformance.cases.RequiredProto3Scalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3Scalar(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3Scalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3Scalar 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.RequiredProto3Scalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarIgnoreAlways.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarIgnoreAlways.java deleted file mode 100644 index e535e314..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarIgnoreAlways.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways} - */ -public final class RequiredProto3ScalarIgnoreAlways extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways) - RequiredProto3ScalarIgnoreAlwaysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RequiredProto3ScalarIgnoreAlways.class.getName()); - } - // Use RequiredProto3ScalarIgnoreAlways.newBuilder() to construct. - private RequiredProto3ScalarIgnoreAlways(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private RequiredProto3ScalarIgnoreAlways() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3ScalarIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3ScalarIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.RequiredProto3ScalarIgnoreAlways)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways other = (build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways 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.RequiredProto3ScalarIgnoreAlways parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways 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.RequiredProto3ScalarIgnoreAlways parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways 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.RequiredProto3ScalarIgnoreAlways parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways 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.RequiredProto3ScalarIgnoreAlways parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways 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.RequiredProto3ScalarIgnoreAlways 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.RequiredProto3ScalarIgnoreAlways 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.RequiredProto3ScalarIgnoreAlways 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.RequiredProto3ScalarIgnoreAlways} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways) - build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlwaysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3ScalarIgnoreAlways_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3ScalarIgnoreAlways_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways.class, build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.RequiredFieldProto3Proto.internal_static_buf_validate_conformance_cases_RequiredProto3ScalarIgnoreAlways_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways build() { - build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways buildPartial() { - build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways result = new build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways) { - return mergeFrom((build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways other) { - if (other == build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways) - private static final build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways(); - } - - public static build.buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RequiredProto3ScalarIgnoreAlways 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.RequiredProto3ScalarIgnoreAlways getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarIgnoreAlwaysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarIgnoreAlwaysOrBuilder.java deleted file mode 100644 index 3d291f70..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarIgnoreAlwaysOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3ScalarIgnoreAlwaysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3ScalarIgnoreAlways) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarOrBuilder.java deleted file mode 100644 index ed5e6213..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/RequiredProto3ScalarOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/required_field_proto3.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface RequiredProto3ScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.RequiredProto3Scalar) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Const.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Const.java deleted file mode 100644 index 6ef8a760..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Const.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32Const} - */ -public final class SFixed32Const extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32Const) - SFixed32ConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32Const.class.getName()); - } - // Use SFixed32Const.newBuilder() to construct. - private SFixed32Const(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32Const() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32Const.class, build.buf.validate.conformance.cases.SFixed32Const.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32Const)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32Const other = (build.buf.validate.conformance.cases.SFixed32Const) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32Const parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32Const 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.SFixed32Const parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32Const 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.SFixed32Const parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32Const 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.SFixed32Const parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32Const 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.SFixed32Const parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32Const 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.SFixed32Const 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.SFixed32Const 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.SFixed32Const 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.SFixed32Const} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32Const) - build.buf.validate.conformance.cases.SFixed32ConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32Const.class, build.buf.validate.conformance.cases.SFixed32Const.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32Const.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Const_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32Const getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32Const.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32Const build() { - build.buf.validate.conformance.cases.SFixed32Const result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32Const buildPartial() { - build.buf.validate.conformance.cases.SFixed32Const result = new build.buf.validate.conformance.cases.SFixed32Const(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32Const result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32Const) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32Const)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32Const other) { - if (other == build.buf.validate.conformance.cases.SFixed32Const.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32Const) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32Const) - private static final build.buf.validate.conformance.cases.SFixed32Const DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32Const(); - } - - public static build.buf.validate.conformance.cases.SFixed32Const getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32Const 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.SFixed32Const getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ConstOrBuilder.java deleted file mode 100644 index 35fa0b0b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32ConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32Const) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTE.java deleted file mode 100644 index c5e42f30..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32ExGTELTE} - */ -public final class SFixed32ExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32ExGTELTE) - SFixed32ExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32ExGTELTE.class.getName()); - } - // Use SFixed32ExGTELTE.newBuilder() to construct. - private SFixed32ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32ExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32ExGTELTE.class, build.buf.validate.conformance.cases.SFixed32ExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32ExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32ExGTELTE other = (build.buf.validate.conformance.cases.SFixed32ExGTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32ExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32ExGTELTE 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.SFixed32ExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32ExGTELTE 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.SFixed32ExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32ExGTELTE 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.SFixed32ExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32ExGTELTE 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.SFixed32ExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32ExGTELTE 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.SFixed32ExGTELTE 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.SFixed32ExGTELTE 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.SFixed32ExGTELTE 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.SFixed32ExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32ExGTELTE) - build.buf.validate.conformance.cases.SFixed32ExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32ExGTELTE.class, build.buf.validate.conformance.cases.SFixed32ExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32ExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32ExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32ExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32ExGTELTE build() { - build.buf.validate.conformance.cases.SFixed32ExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32ExGTELTE buildPartial() { - build.buf.validate.conformance.cases.SFixed32ExGTELTE result = new build.buf.validate.conformance.cases.SFixed32ExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32ExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32ExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32ExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32ExGTELTE other) { - if (other == build.buf.validate.conformance.cases.SFixed32ExGTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32ExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32ExGTELTE) - private static final build.buf.validate.conformance.cases.SFixed32ExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32ExGTELTE(); - } - - public static build.buf.validate.conformance.cases.SFixed32ExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32ExGTELTE 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.SFixed32ExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTEOrBuilder.java deleted file mode 100644 index 7914b787..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32ExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32ExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGT.java deleted file mode 100644 index f99252a1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32ExLTGT} - */ -public final class SFixed32ExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32ExLTGT) - SFixed32ExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32ExLTGT.class.getName()); - } - // Use SFixed32ExLTGT.newBuilder() to construct. - private SFixed32ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32ExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32ExLTGT.class, build.buf.validate.conformance.cases.SFixed32ExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32ExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32ExLTGT other = (build.buf.validate.conformance.cases.SFixed32ExLTGT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32ExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32ExLTGT 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.SFixed32ExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32ExLTGT 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.SFixed32ExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32ExLTGT 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.SFixed32ExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32ExLTGT 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.SFixed32ExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32ExLTGT 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.SFixed32ExLTGT 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.SFixed32ExLTGT 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.SFixed32ExLTGT 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.SFixed32ExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32ExLTGT) - build.buf.validate.conformance.cases.SFixed32ExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32ExLTGT.class, build.buf.validate.conformance.cases.SFixed32ExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32ExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32ExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32ExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32ExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32ExLTGT build() { - build.buf.validate.conformance.cases.SFixed32ExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32ExLTGT buildPartial() { - build.buf.validate.conformance.cases.SFixed32ExLTGT result = new build.buf.validate.conformance.cases.SFixed32ExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32ExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32ExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32ExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32ExLTGT other) { - if (other == build.buf.validate.conformance.cases.SFixed32ExLTGT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32ExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32ExLTGT) - private static final build.buf.validate.conformance.cases.SFixed32ExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32ExLTGT(); - } - - public static build.buf.validate.conformance.cases.SFixed32ExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32ExLTGT 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.SFixed32ExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGTOrBuilder.java deleted file mode 100644 index 60e79361..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32ExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32ExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Example.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Example.java deleted file mode 100644 index 711d5c77..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Example.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32Example} - */ -public final class SFixed32Example extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32Example) - SFixed32ExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32Example.class.getName()); - } - // Use SFixed32Example.newBuilder() to construct. - private SFixed32Example(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32Example() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32Example.class, build.buf.validate.conformance.cases.SFixed32Example.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32Example)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32Example other = (build.buf.validate.conformance.cases.SFixed32Example) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32Example parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32Example 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.SFixed32Example parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32Example 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.SFixed32Example parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32Example 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.SFixed32Example parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32Example 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.SFixed32Example parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32Example 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.SFixed32Example 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.SFixed32Example 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.SFixed32Example 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.SFixed32Example} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32Example) - build.buf.validate.conformance.cases.SFixed32ExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32Example.class, build.buf.validate.conformance.cases.SFixed32Example.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32Example.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Example_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32Example getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32Example.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32Example build() { - build.buf.validate.conformance.cases.SFixed32Example result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32Example buildPartial() { - build.buf.validate.conformance.cases.SFixed32Example result = new build.buf.validate.conformance.cases.SFixed32Example(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32Example result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32Example) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32Example)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32Example other) { - if (other == build.buf.validate.conformance.cases.SFixed32Example.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32Example) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32Example) - private static final build.buf.validate.conformance.cases.SFixed32Example DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32Example(); - } - - public static build.buf.validate.conformance.cases.SFixed32Example getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32Example 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.SFixed32Example getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExampleOrBuilder.java deleted file mode 100644 index c1b9fa0c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32ExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32ExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32Example) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GT.java deleted file mode 100644 index 3093eeb9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32GT} - */ -public final class SFixed32GT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32GT) - SFixed32GTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32GT.class.getName()); - } - // Use SFixed32GT.newBuilder() to construct. - private SFixed32GT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32GT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32GT.class, build.buf.validate.conformance.cases.SFixed32GT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32GT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32GT other = (build.buf.validate.conformance.cases.SFixed32GT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32GT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GT 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.SFixed32GT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GT 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.SFixed32GT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GT 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.SFixed32GT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32GT 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.SFixed32GT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32GT 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.SFixed32GT 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.SFixed32GT 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.SFixed32GT 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.SFixed32GT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32GT) - build.buf.validate.conformance.cases.SFixed32GTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32GT.class, build.buf.validate.conformance.cases.SFixed32GT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32GT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32GT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GT build() { - build.buf.validate.conformance.cases.SFixed32GT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GT buildPartial() { - build.buf.validate.conformance.cases.SFixed32GT result = new build.buf.validate.conformance.cases.SFixed32GT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32GT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32GT) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32GT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32GT other) { - if (other == build.buf.validate.conformance.cases.SFixed32GT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32GT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32GT) - private static final build.buf.validate.conformance.cases.SFixed32GT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32GT(); - } - - public static build.buf.validate.conformance.cases.SFixed32GT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32GT 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.SFixed32GT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTE.java deleted file mode 100644 index b938994e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32GTE} - */ -public final class SFixed32GTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32GTE) - SFixed32GTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32GTE.class.getName()); - } - // Use SFixed32GTE.newBuilder() to construct. - private SFixed32GTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32GTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32GTE.class, build.buf.validate.conformance.cases.SFixed32GTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32GTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32GTE other = (build.buf.validate.conformance.cases.SFixed32GTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32GTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GTE 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.SFixed32GTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GTE 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.SFixed32GTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GTE 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.SFixed32GTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32GTE 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.SFixed32GTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32GTE 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.SFixed32GTE 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.SFixed32GTE 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.SFixed32GTE 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.SFixed32GTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32GTE) - build.buf.validate.conformance.cases.SFixed32GTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32GTE.class, build.buf.validate.conformance.cases.SFixed32GTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32GTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32GTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GTE build() { - build.buf.validate.conformance.cases.SFixed32GTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GTE buildPartial() { - build.buf.validate.conformance.cases.SFixed32GTE result = new build.buf.validate.conformance.cases.SFixed32GTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32GTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32GTE) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32GTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32GTE other) { - if (other == build.buf.validate.conformance.cases.SFixed32GTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32GTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32GTE) - private static final build.buf.validate.conformance.cases.SFixed32GTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32GTE(); - } - - public static build.buf.validate.conformance.cases.SFixed32GTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32GTE 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.SFixed32GTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTE.java deleted file mode 100644 index 6d14fcc2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32GTELTE} - */ -public final class SFixed32GTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32GTELTE) - SFixed32GTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32GTELTE.class.getName()); - } - // Use SFixed32GTELTE.newBuilder() to construct. - private SFixed32GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32GTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32GTELTE.class, build.buf.validate.conformance.cases.SFixed32GTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32GTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32GTELTE other = (build.buf.validate.conformance.cases.SFixed32GTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32GTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GTELTE 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.SFixed32GTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GTELTE 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.SFixed32GTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GTELTE 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.SFixed32GTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32GTELTE 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.SFixed32GTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32GTELTE 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.SFixed32GTELTE 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.SFixed32GTELTE 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.SFixed32GTELTE 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.SFixed32GTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32GTELTE) - build.buf.validate.conformance.cases.SFixed32GTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32GTELTE.class, build.buf.validate.conformance.cases.SFixed32GTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32GTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32GTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GTELTE build() { - build.buf.validate.conformance.cases.SFixed32GTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GTELTE buildPartial() { - build.buf.validate.conformance.cases.SFixed32GTELTE result = new build.buf.validate.conformance.cases.SFixed32GTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32GTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32GTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32GTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32GTELTE other) { - if (other == build.buf.validate.conformance.cases.SFixed32GTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32GTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32GTELTE) - private static final build.buf.validate.conformance.cases.SFixed32GTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32GTELTE(); - } - - public static build.buf.validate.conformance.cases.SFixed32GTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32GTELTE 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.SFixed32GTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTEOrBuilder.java deleted file mode 100644 index ff9ead9b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32GTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32GTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTEOrBuilder.java deleted file mode 100644 index 28ef680f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32GTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32GTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLT.java deleted file mode 100644 index 08886142..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32GTLT} - */ -public final class SFixed32GTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32GTLT) - SFixed32GTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32GTLT.class.getName()); - } - // Use SFixed32GTLT.newBuilder() to construct. - private SFixed32GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32GTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32GTLT.class, build.buf.validate.conformance.cases.SFixed32GTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32GTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32GTLT other = (build.buf.validate.conformance.cases.SFixed32GTLT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32GTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GTLT 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.SFixed32GTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GTLT 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.SFixed32GTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32GTLT 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.SFixed32GTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32GTLT 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.SFixed32GTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32GTLT 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.SFixed32GTLT 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.SFixed32GTLT 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.SFixed32GTLT 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.SFixed32GTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32GTLT) - build.buf.validate.conformance.cases.SFixed32GTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32GTLT.class, build.buf.validate.conformance.cases.SFixed32GTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32GTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32GTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32GTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GTLT build() { - build.buf.validate.conformance.cases.SFixed32GTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32GTLT buildPartial() { - build.buf.validate.conformance.cases.SFixed32GTLT result = new build.buf.validate.conformance.cases.SFixed32GTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32GTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32GTLT) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32GTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32GTLT other) { - if (other == build.buf.validate.conformance.cases.SFixed32GTLT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32GTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32GTLT) - private static final build.buf.validate.conformance.cases.SFixed32GTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32GTLT(); - } - - public static build.buf.validate.conformance.cases.SFixed32GTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32GTLT 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.SFixed32GTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLTOrBuilder.java deleted file mode 100644 index 238dd1be..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32GTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32GTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTOrBuilder.java deleted file mode 100644 index f44b09fd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32GTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32GTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32GT) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Ignore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Ignore.java deleted file mode 100644 index e98b8841..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32Ignore.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32Ignore} - */ -public final class SFixed32Ignore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32Ignore) - SFixed32IgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32Ignore.class.getName()); - } - // Use SFixed32Ignore.newBuilder() to construct. - private SFixed32Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32Ignore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32Ignore.class, build.buf.validate.conformance.cases.SFixed32Ignore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32Ignore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32Ignore other = (build.buf.validate.conformance.cases.SFixed32Ignore) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32Ignore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32Ignore 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.SFixed32Ignore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32Ignore 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.SFixed32Ignore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32Ignore 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.SFixed32Ignore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32Ignore 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.SFixed32Ignore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32Ignore 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.SFixed32Ignore 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.SFixed32Ignore 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.SFixed32Ignore 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.SFixed32Ignore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32Ignore) - build.buf.validate.conformance.cases.SFixed32IgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32Ignore.class, build.buf.validate.conformance.cases.SFixed32Ignore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32Ignore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32Ignore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32Ignore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32Ignore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32Ignore build() { - build.buf.validate.conformance.cases.SFixed32Ignore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32Ignore buildPartial() { - build.buf.validate.conformance.cases.SFixed32Ignore result = new build.buf.validate.conformance.cases.SFixed32Ignore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32Ignore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32Ignore) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32Ignore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32Ignore other) { - if (other == build.buf.validate.conformance.cases.SFixed32Ignore.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32Ignore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32Ignore) - private static final build.buf.validate.conformance.cases.SFixed32Ignore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32Ignore(); - } - - public static build.buf.validate.conformance.cases.SFixed32Ignore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32Ignore 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.SFixed32Ignore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IgnoreOrBuilder.java deleted file mode 100644 index ab57cb3d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32IgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32Ignore) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32In.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32In.java deleted file mode 100644 index 10ae7731..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32In.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32In} - */ -public final class SFixed32In extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32In) - SFixed32InOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32In.class.getName()); - } - // Use SFixed32In.newBuilder() to construct. - private SFixed32In(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32In() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32In.class, build.buf.validate.conformance.cases.SFixed32In.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32In)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32In other = (build.buf.validate.conformance.cases.SFixed32In) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32In parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32In 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.SFixed32In parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32In 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.SFixed32In parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32In 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.SFixed32In parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32In 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.SFixed32In parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32In 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.SFixed32In 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.SFixed32In 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.SFixed32In 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.SFixed32In} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32In) - build.buf.validate.conformance.cases.SFixed32InOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32In.class, build.buf.validate.conformance.cases.SFixed32In.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32In.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32In_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32In getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32In.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32In build() { - build.buf.validate.conformance.cases.SFixed32In result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32In buildPartial() { - build.buf.validate.conformance.cases.SFixed32In result = new build.buf.validate.conformance.cases.SFixed32In(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32In result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32In) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32In)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32In other) { - if (other == build.buf.validate.conformance.cases.SFixed32In.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32In) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32In) - private static final build.buf.validate.conformance.cases.SFixed32In DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32In(); - } - - public static build.buf.validate.conformance.cases.SFixed32In getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32In 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.SFixed32In getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32InOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32InOrBuilder.java deleted file mode 100644 index 164e3a8b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32InOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32InOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32In) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectType.java deleted file mode 100644 index 6f4aea03..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectType.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32IncorrectType} - */ -public final class SFixed32IncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32IncorrectType) - SFixed32IncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32IncorrectType.class.getName()); - } - // Use SFixed32IncorrectType.newBuilder() to construct. - private SFixed32IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32IncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32IncorrectType.class, build.buf.validate.conformance.cases.SFixed32IncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32IncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32IncorrectType other = (build.buf.validate.conformance.cases.SFixed32IncorrectType) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32IncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32IncorrectType 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.SFixed32IncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32IncorrectType 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.SFixed32IncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32IncorrectType 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.SFixed32IncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32IncorrectType 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.SFixed32IncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32IncorrectType 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.SFixed32IncorrectType 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.SFixed32IncorrectType 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.SFixed32IncorrectType 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.SFixed32IncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32IncorrectType) - build.buf.validate.conformance.cases.SFixed32IncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32IncorrectType.class, build.buf.validate.conformance.cases.SFixed32IncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32IncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32IncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32IncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32IncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32IncorrectType build() { - build.buf.validate.conformance.cases.SFixed32IncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32IncorrectType buildPartial() { - build.buf.validate.conformance.cases.SFixed32IncorrectType result = new build.buf.validate.conformance.cases.SFixed32IncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32IncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32IncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32IncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32IncorrectType other) { - if (other == build.buf.validate.conformance.cases.SFixed32IncorrectType.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32IncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32IncorrectType) - private static final build.buf.validate.conformance.cases.SFixed32IncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32IncorrectType(); - } - - public static build.buf.validate.conformance.cases.SFixed32IncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32IncorrectType 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.SFixed32IncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectTypeOrBuilder.java deleted file mode 100644 index 10cf2c37..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32IncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32IncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32IncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LT.java deleted file mode 100644 index e7b9f719..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32LT} - */ -public final class SFixed32LT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32LT) - SFixed32LTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32LT.class.getName()); - } - // Use SFixed32LT.newBuilder() to construct. - private SFixed32LT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32LT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32LT.class, build.buf.validate.conformance.cases.SFixed32LT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32LT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32LT other = (build.buf.validate.conformance.cases.SFixed32LT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32LT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32LT 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.SFixed32LT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32LT 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.SFixed32LT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32LT 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.SFixed32LT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32LT 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.SFixed32LT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32LT 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.SFixed32LT 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.SFixed32LT 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.SFixed32LT 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.SFixed32LT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32LT) - build.buf.validate.conformance.cases.SFixed32LTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32LT.class, build.buf.validate.conformance.cases.SFixed32LT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32LT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32LT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32LT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32LT build() { - build.buf.validate.conformance.cases.SFixed32LT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32LT buildPartial() { - build.buf.validate.conformance.cases.SFixed32LT result = new build.buf.validate.conformance.cases.SFixed32LT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32LT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32LT) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32LT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32LT other) { - if (other == build.buf.validate.conformance.cases.SFixed32LT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32LT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32LT) - private static final build.buf.validate.conformance.cases.SFixed32LT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32LT(); - } - - public static build.buf.validate.conformance.cases.SFixed32LT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32LT 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.SFixed32LT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTE.java deleted file mode 100644 index 1714ac69..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32LTE} - */ -public final class SFixed32LTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32LTE) - SFixed32LTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32LTE.class.getName()); - } - // Use SFixed32LTE.newBuilder() to construct. - private SFixed32LTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32LTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32LTE.class, build.buf.validate.conformance.cases.SFixed32LTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32LTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32LTE other = (build.buf.validate.conformance.cases.SFixed32LTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32LTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32LTE 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.SFixed32LTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32LTE 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.SFixed32LTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32LTE 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.SFixed32LTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32LTE 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.SFixed32LTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32LTE 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.SFixed32LTE 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.SFixed32LTE 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.SFixed32LTE 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.SFixed32LTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32LTE) - build.buf.validate.conformance.cases.SFixed32LTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32LTE.class, build.buf.validate.conformance.cases.SFixed32LTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32LTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32LTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32LTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32LTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32LTE build() { - build.buf.validate.conformance.cases.SFixed32LTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32LTE buildPartial() { - build.buf.validate.conformance.cases.SFixed32LTE result = new build.buf.validate.conformance.cases.SFixed32LTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32LTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32LTE) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32LTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32LTE other) { - if (other == build.buf.validate.conformance.cases.SFixed32LTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32LTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32LTE) - private static final build.buf.validate.conformance.cases.SFixed32LTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32LTE(); - } - - public static build.buf.validate.conformance.cases.SFixed32LTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32LTE 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.SFixed32LTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTEOrBuilder.java deleted file mode 100644 index ed03338f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32LTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32LTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTOrBuilder.java deleted file mode 100644 index 7d2b45e2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32LTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32LTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32LT) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32None.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32None.java deleted file mode 100644 index fa99a936..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32None.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32None} - */ -public final class SFixed32None extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32None) - SFixed32NoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32None.class.getName()); - } - // Use SFixed32None.newBuilder() to construct. - private SFixed32None(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32None() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32None.class, build.buf.validate.conformance.cases.SFixed32None.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32None)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32None other = (build.buf.validate.conformance.cases.SFixed32None) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32None parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32None 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.SFixed32None parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32None 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.SFixed32None parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32None 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.SFixed32None parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32None 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.SFixed32None parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32None 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.SFixed32None 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.SFixed32None 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.SFixed32None 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.SFixed32None} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32None) - build.buf.validate.conformance.cases.SFixed32NoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32None.class, build.buf.validate.conformance.cases.SFixed32None.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32None.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32None_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32None getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32None.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32None build() { - build.buf.validate.conformance.cases.SFixed32None result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32None buildPartial() { - build.buf.validate.conformance.cases.SFixed32None result = new build.buf.validate.conformance.cases.SFixed32None(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32None result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32None) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32None)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32None other) { - if (other == build.buf.validate.conformance.cases.SFixed32None.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32None) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32None) - private static final build.buf.validate.conformance.cases.SFixed32None DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32None(); - } - - public static build.buf.validate.conformance.cases.SFixed32None getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32None 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.SFixed32None getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NoneOrBuilder.java deleted file mode 100644 index cb11da75..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32NoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32None) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val"]; - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotIn.java deleted file mode 100644 index fbff97c7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotIn.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed32NotIn} - */ -public final class SFixed32NotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed32NotIn) - SFixed32NotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32NotIn.class.getName()); - } - // Use SFixed32NotIn.newBuilder() to construct. - private SFixed32NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed32NotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32NotIn.class, build.buf.validate.conformance.cases.SFixed32NotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSFixed32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, val_); - } - 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.SFixed32NotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed32NotIn other = (build.buf.validate.conformance.cases.SFixed32NotIn) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed32NotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32NotIn 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.SFixed32NotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32NotIn 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.SFixed32NotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed32NotIn 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.SFixed32NotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed32NotIn 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.SFixed32NotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed32NotIn 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.SFixed32NotIn 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.SFixed32NotIn 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.SFixed32NotIn 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.SFixed32NotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed32NotIn) - build.buf.validate.conformance.cases.SFixed32NotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed32NotIn.class, build.buf.validate.conformance.cases.SFixed32NotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed32NotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed32NotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32NotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed32NotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32NotIn build() { - build.buf.validate.conformance.cases.SFixed32NotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed32NotIn buildPartial() { - build.buf.validate.conformance.cases.SFixed32NotIn result = new build.buf.validate.conformance.cases.SFixed32NotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed32NotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed32NotIn) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed32NotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed32NotIn other) { - if (other == build.buf.validate.conformance.cases.SFixed32NotIn.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 13: { - val_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - 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 int val_ ; - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed32NotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed32NotIn) - private static final build.buf.validate.conformance.cases.SFixed32NotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed32NotIn(); - } - - public static build.buf.validate.conformance.cases.SFixed32NotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32NotIn 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.SFixed32NotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotInOrBuilder.java deleted file mode 100644 index c4c41137..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed32NotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed32NotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed32NotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Const.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Const.java deleted file mode 100644 index 66979c7b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Const.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64Const} - */ -public final class SFixed64Const extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64Const) - SFixed64ConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64Const.class.getName()); - } - // Use SFixed64Const.newBuilder() to construct. - private SFixed64Const(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64Const() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64Const.class, build.buf.validate.conformance.cases.SFixed64Const.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64Const)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64Const other = (build.buf.validate.conformance.cases.SFixed64Const) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64Const parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64Const 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.SFixed64Const parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64Const 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.SFixed64Const parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64Const 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.SFixed64Const parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64Const 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.SFixed64Const parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64Const 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.SFixed64Const 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.SFixed64Const 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.SFixed64Const 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.SFixed64Const} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64Const) - build.buf.validate.conformance.cases.SFixed64ConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64Const.class, build.buf.validate.conformance.cases.SFixed64Const.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64Const.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Const_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64Const getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64Const.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64Const build() { - build.buf.validate.conformance.cases.SFixed64Const result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64Const buildPartial() { - build.buf.validate.conformance.cases.SFixed64Const result = new build.buf.validate.conformance.cases.SFixed64Const(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64Const result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64Const) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64Const)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64Const other) { - if (other == build.buf.validate.conformance.cases.SFixed64Const.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64Const) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64Const) - private static final build.buf.validate.conformance.cases.SFixed64Const DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64Const(); - } - - public static build.buf.validate.conformance.cases.SFixed64Const getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64Const 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.SFixed64Const getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ConstOrBuilder.java deleted file mode 100644 index 46d22350..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64ConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64Const) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTE.java deleted file mode 100644 index 15ed4045..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64ExGTELTE} - */ -public final class SFixed64ExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64ExGTELTE) - SFixed64ExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64ExGTELTE.class.getName()); - } - // Use SFixed64ExGTELTE.newBuilder() to construct. - private SFixed64ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64ExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64ExGTELTE.class, build.buf.validate.conformance.cases.SFixed64ExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64ExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64ExGTELTE other = (build.buf.validate.conformance.cases.SFixed64ExGTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64ExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64ExGTELTE 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.SFixed64ExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64ExGTELTE 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.SFixed64ExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64ExGTELTE 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.SFixed64ExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64ExGTELTE 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.SFixed64ExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64ExGTELTE 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.SFixed64ExGTELTE 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.SFixed64ExGTELTE 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.SFixed64ExGTELTE 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.SFixed64ExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64ExGTELTE) - build.buf.validate.conformance.cases.SFixed64ExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64ExGTELTE.class, build.buf.validate.conformance.cases.SFixed64ExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64ExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64ExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64ExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64ExGTELTE build() { - build.buf.validate.conformance.cases.SFixed64ExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64ExGTELTE buildPartial() { - build.buf.validate.conformance.cases.SFixed64ExGTELTE result = new build.buf.validate.conformance.cases.SFixed64ExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64ExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64ExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64ExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64ExGTELTE other) { - if (other == build.buf.validate.conformance.cases.SFixed64ExGTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64ExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64ExGTELTE) - private static final build.buf.validate.conformance.cases.SFixed64ExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64ExGTELTE(); - } - - public static build.buf.validate.conformance.cases.SFixed64ExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64ExGTELTE 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.SFixed64ExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTEOrBuilder.java deleted file mode 100644 index 96f4a749..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64ExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64ExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGT.java deleted file mode 100644 index 6e05dae4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64ExLTGT} - */ -public final class SFixed64ExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64ExLTGT) - SFixed64ExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64ExLTGT.class.getName()); - } - // Use SFixed64ExLTGT.newBuilder() to construct. - private SFixed64ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64ExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64ExLTGT.class, build.buf.validate.conformance.cases.SFixed64ExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64ExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64ExLTGT other = (build.buf.validate.conformance.cases.SFixed64ExLTGT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64ExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64ExLTGT 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.SFixed64ExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64ExLTGT 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.SFixed64ExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64ExLTGT 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.SFixed64ExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64ExLTGT 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.SFixed64ExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64ExLTGT 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.SFixed64ExLTGT 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.SFixed64ExLTGT 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.SFixed64ExLTGT 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.SFixed64ExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64ExLTGT) - build.buf.validate.conformance.cases.SFixed64ExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64ExLTGT.class, build.buf.validate.conformance.cases.SFixed64ExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64ExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64ExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64ExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64ExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64ExLTGT build() { - build.buf.validate.conformance.cases.SFixed64ExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64ExLTGT buildPartial() { - build.buf.validate.conformance.cases.SFixed64ExLTGT result = new build.buf.validate.conformance.cases.SFixed64ExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64ExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64ExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64ExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64ExLTGT other) { - if (other == build.buf.validate.conformance.cases.SFixed64ExLTGT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64ExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64ExLTGT) - private static final build.buf.validate.conformance.cases.SFixed64ExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64ExLTGT(); - } - - public static build.buf.validate.conformance.cases.SFixed64ExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64ExLTGT 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.SFixed64ExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGTOrBuilder.java deleted file mode 100644 index 72645340..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64ExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64ExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Example.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Example.java deleted file mode 100644 index b1e89c1d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Example.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64Example} - */ -public final class SFixed64Example extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64Example) - SFixed64ExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64Example.class.getName()); - } - // Use SFixed64Example.newBuilder() to construct. - private SFixed64Example(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64Example() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64Example.class, build.buf.validate.conformance.cases.SFixed64Example.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64Example)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64Example other = (build.buf.validate.conformance.cases.SFixed64Example) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64Example parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64Example 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.SFixed64Example parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64Example 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.SFixed64Example parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64Example 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.SFixed64Example parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64Example 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.SFixed64Example parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64Example 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.SFixed64Example 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.SFixed64Example 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.SFixed64Example 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.SFixed64Example} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64Example) - build.buf.validate.conformance.cases.SFixed64ExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64Example.class, build.buf.validate.conformance.cases.SFixed64Example.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64Example.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Example_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64Example getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64Example.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64Example build() { - build.buf.validate.conformance.cases.SFixed64Example result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64Example buildPartial() { - build.buf.validate.conformance.cases.SFixed64Example result = new build.buf.validate.conformance.cases.SFixed64Example(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64Example result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64Example) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64Example)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64Example other) { - if (other == build.buf.validate.conformance.cases.SFixed64Example.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64Example) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64Example) - private static final build.buf.validate.conformance.cases.SFixed64Example DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64Example(); - } - - public static build.buf.validate.conformance.cases.SFixed64Example getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64Example 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.SFixed64Example getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExampleOrBuilder.java deleted file mode 100644 index 9be92c74..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64ExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64ExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64Example) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GT.java deleted file mode 100644 index e64b3c6b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64GT} - */ -public final class SFixed64GT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64GT) - SFixed64GTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64GT.class.getName()); - } - // Use SFixed64GT.newBuilder() to construct. - private SFixed64GT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64GT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64GT.class, build.buf.validate.conformance.cases.SFixed64GT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64GT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64GT other = (build.buf.validate.conformance.cases.SFixed64GT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64GT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GT 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.SFixed64GT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GT 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.SFixed64GT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GT 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.SFixed64GT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64GT 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.SFixed64GT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64GT 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.SFixed64GT 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.SFixed64GT 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.SFixed64GT 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.SFixed64GT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64GT) - build.buf.validate.conformance.cases.SFixed64GTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64GT.class, build.buf.validate.conformance.cases.SFixed64GT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64GT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64GT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GT build() { - build.buf.validate.conformance.cases.SFixed64GT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GT buildPartial() { - build.buf.validate.conformance.cases.SFixed64GT result = new build.buf.validate.conformance.cases.SFixed64GT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64GT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64GT) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64GT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64GT other) { - if (other == build.buf.validate.conformance.cases.SFixed64GT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64GT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64GT) - private static final build.buf.validate.conformance.cases.SFixed64GT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64GT(); - } - - public static build.buf.validate.conformance.cases.SFixed64GT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64GT 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.SFixed64GT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTE.java deleted file mode 100644 index 40e1d031..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64GTE} - */ -public final class SFixed64GTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64GTE) - SFixed64GTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64GTE.class.getName()); - } - // Use SFixed64GTE.newBuilder() to construct. - private SFixed64GTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64GTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64GTE.class, build.buf.validate.conformance.cases.SFixed64GTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64GTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64GTE other = (build.buf.validate.conformance.cases.SFixed64GTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64GTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GTE 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.SFixed64GTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GTE 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.SFixed64GTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GTE 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.SFixed64GTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64GTE 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.SFixed64GTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64GTE 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.SFixed64GTE 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.SFixed64GTE 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.SFixed64GTE 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.SFixed64GTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64GTE) - build.buf.validate.conformance.cases.SFixed64GTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64GTE.class, build.buf.validate.conformance.cases.SFixed64GTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64GTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64GTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GTE build() { - build.buf.validate.conformance.cases.SFixed64GTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GTE buildPartial() { - build.buf.validate.conformance.cases.SFixed64GTE result = new build.buf.validate.conformance.cases.SFixed64GTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64GTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64GTE) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64GTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64GTE other) { - if (other == build.buf.validate.conformance.cases.SFixed64GTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64GTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64GTE) - private static final build.buf.validate.conformance.cases.SFixed64GTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64GTE(); - } - - public static build.buf.validate.conformance.cases.SFixed64GTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64GTE 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.SFixed64GTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTE.java deleted file mode 100644 index 1ab4e3d5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64GTELTE} - */ -public final class SFixed64GTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64GTELTE) - SFixed64GTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64GTELTE.class.getName()); - } - // Use SFixed64GTELTE.newBuilder() to construct. - private SFixed64GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64GTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64GTELTE.class, build.buf.validate.conformance.cases.SFixed64GTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64GTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64GTELTE other = (build.buf.validate.conformance.cases.SFixed64GTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64GTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GTELTE 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.SFixed64GTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GTELTE 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.SFixed64GTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GTELTE 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.SFixed64GTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64GTELTE 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.SFixed64GTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64GTELTE 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.SFixed64GTELTE 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.SFixed64GTELTE 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.SFixed64GTELTE 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.SFixed64GTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64GTELTE) - build.buf.validate.conformance.cases.SFixed64GTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64GTELTE.class, build.buf.validate.conformance.cases.SFixed64GTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64GTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64GTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GTELTE build() { - build.buf.validate.conformance.cases.SFixed64GTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GTELTE buildPartial() { - build.buf.validate.conformance.cases.SFixed64GTELTE result = new build.buf.validate.conformance.cases.SFixed64GTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64GTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64GTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64GTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64GTELTE other) { - if (other == build.buf.validate.conformance.cases.SFixed64GTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64GTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64GTELTE) - private static final build.buf.validate.conformance.cases.SFixed64GTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64GTELTE(); - } - - public static build.buf.validate.conformance.cases.SFixed64GTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64GTELTE 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.SFixed64GTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTEOrBuilder.java deleted file mode 100644 index 72909de9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64GTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64GTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTEOrBuilder.java deleted file mode 100644 index 692d1b8d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64GTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64GTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLT.java deleted file mode 100644 index c60e579c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64GTLT} - */ -public final class SFixed64GTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64GTLT) - SFixed64GTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64GTLT.class.getName()); - } - // Use SFixed64GTLT.newBuilder() to construct. - private SFixed64GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64GTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64GTLT.class, build.buf.validate.conformance.cases.SFixed64GTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64GTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64GTLT other = (build.buf.validate.conformance.cases.SFixed64GTLT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64GTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GTLT 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.SFixed64GTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GTLT 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.SFixed64GTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64GTLT 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.SFixed64GTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64GTLT 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.SFixed64GTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64GTLT 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.SFixed64GTLT 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.SFixed64GTLT 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.SFixed64GTLT 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.SFixed64GTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64GTLT) - build.buf.validate.conformance.cases.SFixed64GTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64GTLT.class, build.buf.validate.conformance.cases.SFixed64GTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64GTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64GTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64GTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GTLT build() { - build.buf.validate.conformance.cases.SFixed64GTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64GTLT buildPartial() { - build.buf.validate.conformance.cases.SFixed64GTLT result = new build.buf.validate.conformance.cases.SFixed64GTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64GTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64GTLT) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64GTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64GTLT other) { - if (other == build.buf.validate.conformance.cases.SFixed64GTLT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64GTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64GTLT) - private static final build.buf.validate.conformance.cases.SFixed64GTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64GTLT(); - } - - public static build.buf.validate.conformance.cases.SFixed64GTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64GTLT 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.SFixed64GTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLTOrBuilder.java deleted file mode 100644 index ddef796c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64GTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64GTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTOrBuilder.java deleted file mode 100644 index 31856c39..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64GTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64GTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64GT) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Ignore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Ignore.java deleted file mode 100644 index c26b54c2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64Ignore.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64Ignore} - */ -public final class SFixed64Ignore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64Ignore) - SFixed64IgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64Ignore.class.getName()); - } - // Use SFixed64Ignore.newBuilder() to construct. - private SFixed64Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64Ignore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64Ignore.class, build.buf.validate.conformance.cases.SFixed64Ignore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64Ignore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64Ignore other = (build.buf.validate.conformance.cases.SFixed64Ignore) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64Ignore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64Ignore 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.SFixed64Ignore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64Ignore 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.SFixed64Ignore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64Ignore 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.SFixed64Ignore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64Ignore 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.SFixed64Ignore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64Ignore 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.SFixed64Ignore 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.SFixed64Ignore 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.SFixed64Ignore 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.SFixed64Ignore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64Ignore) - build.buf.validate.conformance.cases.SFixed64IgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64Ignore.class, build.buf.validate.conformance.cases.SFixed64Ignore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64Ignore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64Ignore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64Ignore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64Ignore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64Ignore build() { - build.buf.validate.conformance.cases.SFixed64Ignore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64Ignore buildPartial() { - build.buf.validate.conformance.cases.SFixed64Ignore result = new build.buf.validate.conformance.cases.SFixed64Ignore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64Ignore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64Ignore) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64Ignore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64Ignore other) { - if (other == build.buf.validate.conformance.cases.SFixed64Ignore.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64Ignore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64Ignore) - private static final build.buf.validate.conformance.cases.SFixed64Ignore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64Ignore(); - } - - public static build.buf.validate.conformance.cases.SFixed64Ignore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64Ignore 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.SFixed64Ignore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IgnoreOrBuilder.java deleted file mode 100644 index aecc5bfb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64IgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64Ignore) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64In.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64In.java deleted file mode 100644 index ee3a2816..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64In.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64In} - */ -public final class SFixed64In extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64In) - SFixed64InOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64In.class.getName()); - } - // Use SFixed64In.newBuilder() to construct. - private SFixed64In(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64In() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64In.class, build.buf.validate.conformance.cases.SFixed64In.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64In)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64In other = (build.buf.validate.conformance.cases.SFixed64In) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64In parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64In 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.SFixed64In parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64In 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.SFixed64In parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64In 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.SFixed64In parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64In 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.SFixed64In parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64In 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.SFixed64In 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.SFixed64In 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.SFixed64In 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.SFixed64In} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64In) - build.buf.validate.conformance.cases.SFixed64InOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64In.class, build.buf.validate.conformance.cases.SFixed64In.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64In.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64In_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64In getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64In.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64In build() { - build.buf.validate.conformance.cases.SFixed64In result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64In buildPartial() { - build.buf.validate.conformance.cases.SFixed64In result = new build.buf.validate.conformance.cases.SFixed64In(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64In result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64In) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64In)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64In other) { - if (other == build.buf.validate.conformance.cases.SFixed64In.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64In) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64In) - private static final build.buf.validate.conformance.cases.SFixed64In DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64In(); - } - - public static build.buf.validate.conformance.cases.SFixed64In getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64In 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.SFixed64In getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64InOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64InOrBuilder.java deleted file mode 100644 index d6767b2e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64InOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64InOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64In) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectType.java deleted file mode 100644 index e5cc6701..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectType.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64IncorrectType} - */ -public final class SFixed64IncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64IncorrectType) - SFixed64IncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64IncorrectType.class.getName()); - } - // Use SFixed64IncorrectType.newBuilder() to construct. - private SFixed64IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64IncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64IncorrectType.class, build.buf.validate.conformance.cases.SFixed64IncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64IncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64IncorrectType other = (build.buf.validate.conformance.cases.SFixed64IncorrectType) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64IncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64IncorrectType 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.SFixed64IncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64IncorrectType 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.SFixed64IncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64IncorrectType 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.SFixed64IncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64IncorrectType 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.SFixed64IncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64IncorrectType 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.SFixed64IncorrectType 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.SFixed64IncorrectType 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.SFixed64IncorrectType 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.SFixed64IncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64IncorrectType) - build.buf.validate.conformance.cases.SFixed64IncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64IncorrectType.class, build.buf.validate.conformance.cases.SFixed64IncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64IncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64IncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64IncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64IncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64IncorrectType build() { - build.buf.validate.conformance.cases.SFixed64IncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64IncorrectType buildPartial() { - build.buf.validate.conformance.cases.SFixed64IncorrectType result = new build.buf.validate.conformance.cases.SFixed64IncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64IncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64IncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64IncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64IncorrectType other) { - if (other == build.buf.validate.conformance.cases.SFixed64IncorrectType.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64IncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64IncorrectType) - private static final build.buf.validate.conformance.cases.SFixed64IncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64IncorrectType(); - } - - public static build.buf.validate.conformance.cases.SFixed64IncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64IncorrectType 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.SFixed64IncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectTypeOrBuilder.java deleted file mode 100644 index cc235ca1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64IncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64IncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64IncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LT.java deleted file mode 100644 index bce60ef8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64LT} - */ -public final class SFixed64LT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64LT) - SFixed64LTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64LT.class.getName()); - } - // Use SFixed64LT.newBuilder() to construct. - private SFixed64LT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64LT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64LT.class, build.buf.validate.conformance.cases.SFixed64LT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64LT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64LT other = (build.buf.validate.conformance.cases.SFixed64LT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64LT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64LT 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.SFixed64LT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64LT 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.SFixed64LT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64LT 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.SFixed64LT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64LT 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.SFixed64LT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64LT 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.SFixed64LT 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.SFixed64LT 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.SFixed64LT 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.SFixed64LT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64LT) - build.buf.validate.conformance.cases.SFixed64LTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64LT.class, build.buf.validate.conformance.cases.SFixed64LT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64LT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64LT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64LT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64LT build() { - build.buf.validate.conformance.cases.SFixed64LT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64LT buildPartial() { - build.buf.validate.conformance.cases.SFixed64LT result = new build.buf.validate.conformance.cases.SFixed64LT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64LT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64LT) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64LT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64LT other) { - if (other == build.buf.validate.conformance.cases.SFixed64LT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64LT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64LT) - private static final build.buf.validate.conformance.cases.SFixed64LT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64LT(); - } - - public static build.buf.validate.conformance.cases.SFixed64LT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64LT 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.SFixed64LT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTE.java deleted file mode 100644 index 6624170d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64LTE} - */ -public final class SFixed64LTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64LTE) - SFixed64LTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64LTE.class.getName()); - } - // Use SFixed64LTE.newBuilder() to construct. - private SFixed64LTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64LTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64LTE.class, build.buf.validate.conformance.cases.SFixed64LTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64LTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64LTE other = (build.buf.validate.conformance.cases.SFixed64LTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64LTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64LTE 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.SFixed64LTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64LTE 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.SFixed64LTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64LTE 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.SFixed64LTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64LTE 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.SFixed64LTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64LTE 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.SFixed64LTE 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.SFixed64LTE 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.SFixed64LTE 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.SFixed64LTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64LTE) - build.buf.validate.conformance.cases.SFixed64LTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64LTE.class, build.buf.validate.conformance.cases.SFixed64LTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64LTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64LTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64LTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64LTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64LTE build() { - build.buf.validate.conformance.cases.SFixed64LTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64LTE buildPartial() { - build.buf.validate.conformance.cases.SFixed64LTE result = new build.buf.validate.conformance.cases.SFixed64LTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64LTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64LTE) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64LTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64LTE other) { - if (other == build.buf.validate.conformance.cases.SFixed64LTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64LTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64LTE) - private static final build.buf.validate.conformance.cases.SFixed64LTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64LTE(); - } - - public static build.buf.validate.conformance.cases.SFixed64LTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64LTE 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.SFixed64LTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTEOrBuilder.java deleted file mode 100644 index 61064937..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64LTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64LTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTOrBuilder.java deleted file mode 100644 index a7eee1ec..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64LTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64LTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64LT) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64None.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64None.java deleted file mode 100644 index 9f10776b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64None.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64None} - */ -public final class SFixed64None extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64None) - SFixed64NoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64None.class.getName()); - } - // Use SFixed64None.newBuilder() to construct. - private SFixed64None(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64None() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64None.class, build.buf.validate.conformance.cases.SFixed64None.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64None)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64None other = (build.buf.validate.conformance.cases.SFixed64None) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64None parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64None 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.SFixed64None parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64None 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.SFixed64None parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64None 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.SFixed64None parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64None 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.SFixed64None parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64None 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.SFixed64None 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.SFixed64None 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.SFixed64None 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.SFixed64None} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64None) - build.buf.validate.conformance.cases.SFixed64NoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64None.class, build.buf.validate.conformance.cases.SFixed64None.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64None.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64None_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64None getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64None.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64None build() { - build.buf.validate.conformance.cases.SFixed64None result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64None buildPartial() { - build.buf.validate.conformance.cases.SFixed64None result = new build.buf.validate.conformance.cases.SFixed64None(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64None result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64None) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64None)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64None other) { - if (other == build.buf.validate.conformance.cases.SFixed64None.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64None) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64None) - private static final build.buf.validate.conformance.cases.SFixed64None DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64None(); - } - - public static build.buf.validate.conformance.cases.SFixed64None getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64None 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.SFixed64None getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NoneOrBuilder.java deleted file mode 100644 index 1788fd72..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64NoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64None) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val"]; - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotIn.java deleted file mode 100644 index 5ca8b843..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotIn.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SFixed64NotIn} - */ -public final class SFixed64NotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SFixed64NotIn) - SFixed64NotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64NotIn.class.getName()); - } - // Use SFixed64NotIn.newBuilder() to construct. - private SFixed64NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SFixed64NotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64NotIn.class, build.buf.validate.conformance.cases.SFixed64NotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSFixed64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, val_); - } - 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.SFixed64NotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SFixed64NotIn other = (build.buf.validate.conformance.cases.SFixed64NotIn) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SFixed64NotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64NotIn 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.SFixed64NotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64NotIn 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.SFixed64NotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SFixed64NotIn 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.SFixed64NotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SFixed64NotIn 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.SFixed64NotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SFixed64NotIn 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.SFixed64NotIn 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.SFixed64NotIn 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.SFixed64NotIn 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.SFixed64NotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SFixed64NotIn) - build.buf.validate.conformance.cases.SFixed64NotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SFixed64NotIn.class, build.buf.validate.conformance.cases.SFixed64NotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SFixed64NotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SFixed64NotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64NotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SFixed64NotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64NotIn build() { - build.buf.validate.conformance.cases.SFixed64NotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SFixed64NotIn buildPartial() { - build.buf.validate.conformance.cases.SFixed64NotIn result = new build.buf.validate.conformance.cases.SFixed64NotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SFixed64NotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SFixed64NotIn) { - return mergeFrom((build.buf.validate.conformance.cases.SFixed64NotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SFixed64NotIn other) { - if (other == build.buf.validate.conformance.cases.SFixed64NotIn.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 9: { - val_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - 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 long val_ ; - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SFixed64NotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SFixed64NotIn) - private static final build.buf.validate.conformance.cases.SFixed64NotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SFixed64NotIn(); - } - - public static build.buf.validate.conformance.cases.SFixed64NotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64NotIn 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.SFixed64NotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotInOrBuilder.java deleted file mode 100644 index 5a2867f5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SFixed64NotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SFixed64NotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SFixed64NotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * sfixed64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Const.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Const.java deleted file mode 100644 index ffc1471d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Const.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32Const} - */ -public final class SInt32Const extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32Const) - SInt32ConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32Const.class.getName()); - } - // Use SInt32Const.newBuilder() to construct. - private SInt32Const(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32Const() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32Const.class, build.buf.validate.conformance.cases.SInt32Const.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32Const)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32Const other = (build.buf.validate.conformance.cases.SInt32Const) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32Const parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32Const 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.SInt32Const parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32Const 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.SInt32Const parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32Const 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.SInt32Const parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32Const 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.SInt32Const parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32Const 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.SInt32Const 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.SInt32Const 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.SInt32Const 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.SInt32Const} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32Const) - build.buf.validate.conformance.cases.SInt32ConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32Const.class, build.buf.validate.conformance.cases.SInt32Const.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32Const.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Const_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32Const getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32Const.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32Const build() { - build.buf.validate.conformance.cases.SInt32Const result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32Const buildPartial() { - build.buf.validate.conformance.cases.SInt32Const result = new build.buf.validate.conformance.cases.SInt32Const(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32Const result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32Const) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32Const)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32Const other) { - if (other == build.buf.validate.conformance.cases.SInt32Const.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32Const) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32Const) - private static final build.buf.validate.conformance.cases.SInt32Const DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32Const(); - } - - public static build.buf.validate.conformance.cases.SInt32Const getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32Const 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.SInt32Const getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ConstOrBuilder.java deleted file mode 100644 index c0c01a3e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32ConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32Const) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTE.java deleted file mode 100644 index 4c80f975..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32ExGTELTE} - */ -public final class SInt32ExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32ExGTELTE) - SInt32ExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32ExGTELTE.class.getName()); - } - // Use SInt32ExGTELTE.newBuilder() to construct. - private SInt32ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32ExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32ExGTELTE.class, build.buf.validate.conformance.cases.SInt32ExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32ExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32ExGTELTE other = (build.buf.validate.conformance.cases.SInt32ExGTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32ExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32ExGTELTE 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.SInt32ExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32ExGTELTE 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.SInt32ExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32ExGTELTE 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.SInt32ExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32ExGTELTE 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.SInt32ExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32ExGTELTE 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.SInt32ExGTELTE 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.SInt32ExGTELTE 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.SInt32ExGTELTE 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.SInt32ExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32ExGTELTE) - build.buf.validate.conformance.cases.SInt32ExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32ExGTELTE.class, build.buf.validate.conformance.cases.SInt32ExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32ExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32ExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32ExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32ExGTELTE build() { - build.buf.validate.conformance.cases.SInt32ExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32ExGTELTE buildPartial() { - build.buf.validate.conformance.cases.SInt32ExGTELTE result = new build.buf.validate.conformance.cases.SInt32ExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32ExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32ExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32ExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32ExGTELTE other) { - if (other == build.buf.validate.conformance.cases.SInt32ExGTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32ExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32ExGTELTE) - private static final build.buf.validate.conformance.cases.SInt32ExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32ExGTELTE(); - } - - public static build.buf.validate.conformance.cases.SInt32ExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32ExGTELTE 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.SInt32ExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTEOrBuilder.java deleted file mode 100644 index 7ac01d25..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32ExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32ExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGT.java deleted file mode 100644 index e9a4b485..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32ExLTGT} - */ -public final class SInt32ExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32ExLTGT) - SInt32ExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32ExLTGT.class.getName()); - } - // Use SInt32ExLTGT.newBuilder() to construct. - private SInt32ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32ExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32ExLTGT.class, build.buf.validate.conformance.cases.SInt32ExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32ExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32ExLTGT other = (build.buf.validate.conformance.cases.SInt32ExLTGT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32ExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32ExLTGT 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.SInt32ExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32ExLTGT 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.SInt32ExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32ExLTGT 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.SInt32ExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32ExLTGT 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.SInt32ExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32ExLTGT 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.SInt32ExLTGT 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.SInt32ExLTGT 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.SInt32ExLTGT 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.SInt32ExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32ExLTGT) - build.buf.validate.conformance.cases.SInt32ExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32ExLTGT.class, build.buf.validate.conformance.cases.SInt32ExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32ExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32ExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32ExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32ExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32ExLTGT build() { - build.buf.validate.conformance.cases.SInt32ExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32ExLTGT buildPartial() { - build.buf.validate.conformance.cases.SInt32ExLTGT result = new build.buf.validate.conformance.cases.SInt32ExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32ExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32ExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32ExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32ExLTGT other) { - if (other == build.buf.validate.conformance.cases.SInt32ExLTGT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32ExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32ExLTGT) - private static final build.buf.validate.conformance.cases.SInt32ExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32ExLTGT(); - } - - public static build.buf.validate.conformance.cases.SInt32ExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32ExLTGT 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.SInt32ExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGTOrBuilder.java deleted file mode 100644 index 55f16e9d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32ExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32ExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Example.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Example.java deleted file mode 100644 index 65e1edec..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Example.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32Example} - */ -public final class SInt32Example extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32Example) - SInt32ExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32Example.class.getName()); - } - // Use SInt32Example.newBuilder() to construct. - private SInt32Example(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32Example() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32Example.class, build.buf.validate.conformance.cases.SInt32Example.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32Example)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32Example other = (build.buf.validate.conformance.cases.SInt32Example) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32Example parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32Example 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.SInt32Example parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32Example 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.SInt32Example parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32Example 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.SInt32Example parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32Example 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.SInt32Example parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32Example 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.SInt32Example 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.SInt32Example 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.SInt32Example 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.SInt32Example} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32Example) - build.buf.validate.conformance.cases.SInt32ExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32Example.class, build.buf.validate.conformance.cases.SInt32Example.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32Example.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Example_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32Example getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32Example.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32Example build() { - build.buf.validate.conformance.cases.SInt32Example result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32Example buildPartial() { - build.buf.validate.conformance.cases.SInt32Example result = new build.buf.validate.conformance.cases.SInt32Example(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32Example result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32Example) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32Example)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32Example other) { - if (other == build.buf.validate.conformance.cases.SInt32Example.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32Example) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32Example) - private static final build.buf.validate.conformance.cases.SInt32Example DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32Example(); - } - - public static build.buf.validate.conformance.cases.SInt32Example getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32Example 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.SInt32Example getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExampleOrBuilder.java deleted file mode 100644 index 57d57e9c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32ExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32ExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32Example) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GT.java deleted file mode 100644 index c52495e6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32GT} - */ -public final class SInt32GT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32GT) - SInt32GTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32GT.class.getName()); - } - // Use SInt32GT.newBuilder() to construct. - private SInt32GT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32GT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32GT.class, build.buf.validate.conformance.cases.SInt32GT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32GT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32GT other = (build.buf.validate.conformance.cases.SInt32GT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32GT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GT 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.SInt32GT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GT 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.SInt32GT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GT 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.SInt32GT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32GT 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.SInt32GT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32GT 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.SInt32GT 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.SInt32GT 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.SInt32GT 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.SInt32GT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32GT) - build.buf.validate.conformance.cases.SInt32GTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32GT.class, build.buf.validate.conformance.cases.SInt32GT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32GT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32GT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GT build() { - build.buf.validate.conformance.cases.SInt32GT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GT buildPartial() { - build.buf.validate.conformance.cases.SInt32GT result = new build.buf.validate.conformance.cases.SInt32GT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32GT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32GT) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32GT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32GT other) { - if (other == build.buf.validate.conformance.cases.SInt32GT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32GT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32GT) - private static final build.buf.validate.conformance.cases.SInt32GT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32GT(); - } - - public static build.buf.validate.conformance.cases.SInt32GT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32GT 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.SInt32GT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTE.java deleted file mode 100644 index f935e16f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32GTE} - */ -public final class SInt32GTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32GTE) - SInt32GTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32GTE.class.getName()); - } - // Use SInt32GTE.newBuilder() to construct. - private SInt32GTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32GTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32GTE.class, build.buf.validate.conformance.cases.SInt32GTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32GTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32GTE other = (build.buf.validate.conformance.cases.SInt32GTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32GTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GTE 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.SInt32GTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GTE 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.SInt32GTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GTE 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.SInt32GTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32GTE 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.SInt32GTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32GTE 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.SInt32GTE 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.SInt32GTE 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.SInt32GTE 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.SInt32GTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32GTE) - build.buf.validate.conformance.cases.SInt32GTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32GTE.class, build.buf.validate.conformance.cases.SInt32GTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32GTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32GTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GTE build() { - build.buf.validate.conformance.cases.SInt32GTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GTE buildPartial() { - build.buf.validate.conformance.cases.SInt32GTE result = new build.buf.validate.conformance.cases.SInt32GTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32GTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32GTE) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32GTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32GTE other) { - if (other == build.buf.validate.conformance.cases.SInt32GTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32GTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32GTE) - private static final build.buf.validate.conformance.cases.SInt32GTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32GTE(); - } - - public static build.buf.validate.conformance.cases.SInt32GTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32GTE 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.SInt32GTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTE.java deleted file mode 100644 index 54bd72fe..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32GTELTE} - */ -public final class SInt32GTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32GTELTE) - SInt32GTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32GTELTE.class.getName()); - } - // Use SInt32GTELTE.newBuilder() to construct. - private SInt32GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32GTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32GTELTE.class, build.buf.validate.conformance.cases.SInt32GTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32GTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32GTELTE other = (build.buf.validate.conformance.cases.SInt32GTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32GTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GTELTE 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.SInt32GTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GTELTE 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.SInt32GTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GTELTE 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.SInt32GTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32GTELTE 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.SInt32GTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32GTELTE 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.SInt32GTELTE 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.SInt32GTELTE 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.SInt32GTELTE 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.SInt32GTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32GTELTE) - build.buf.validate.conformance.cases.SInt32GTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32GTELTE.class, build.buf.validate.conformance.cases.SInt32GTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32GTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32GTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GTELTE build() { - build.buf.validate.conformance.cases.SInt32GTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GTELTE buildPartial() { - build.buf.validate.conformance.cases.SInt32GTELTE result = new build.buf.validate.conformance.cases.SInt32GTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32GTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32GTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32GTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32GTELTE other) { - if (other == build.buf.validate.conformance.cases.SInt32GTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32GTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32GTELTE) - private static final build.buf.validate.conformance.cases.SInt32GTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32GTELTE(); - } - - public static build.buf.validate.conformance.cases.SInt32GTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32GTELTE 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.SInt32GTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTEOrBuilder.java deleted file mode 100644 index 36d0b9e9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32GTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32GTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTEOrBuilder.java deleted file mode 100644 index e26f6bfd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32GTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32GTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLT.java deleted file mode 100644 index 0e6c701f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32GTLT} - */ -public final class SInt32GTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32GTLT) - SInt32GTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32GTLT.class.getName()); - } - // Use SInt32GTLT.newBuilder() to construct. - private SInt32GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32GTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32GTLT.class, build.buf.validate.conformance.cases.SInt32GTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32GTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32GTLT other = (build.buf.validate.conformance.cases.SInt32GTLT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32GTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GTLT 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.SInt32GTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GTLT 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.SInt32GTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32GTLT 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.SInt32GTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32GTLT 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.SInt32GTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32GTLT 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.SInt32GTLT 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.SInt32GTLT 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.SInt32GTLT 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.SInt32GTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32GTLT) - build.buf.validate.conformance.cases.SInt32GTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32GTLT.class, build.buf.validate.conformance.cases.SInt32GTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32GTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32GTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32GTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GTLT build() { - build.buf.validate.conformance.cases.SInt32GTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32GTLT buildPartial() { - build.buf.validate.conformance.cases.SInt32GTLT result = new build.buf.validate.conformance.cases.SInt32GTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32GTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32GTLT) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32GTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32GTLT other) { - if (other == build.buf.validate.conformance.cases.SInt32GTLT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32GTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32GTLT) - private static final build.buf.validate.conformance.cases.SInt32GTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32GTLT(); - } - - public static build.buf.validate.conformance.cases.SInt32GTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32GTLT 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.SInt32GTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLTOrBuilder.java deleted file mode 100644 index f48b633e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32GTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32GTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTOrBuilder.java deleted file mode 100644 index 4d197536..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32GTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32GTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32GT) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Ignore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Ignore.java deleted file mode 100644 index 2241813a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32Ignore.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32Ignore} - */ -public final class SInt32Ignore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32Ignore) - SInt32IgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32Ignore.class.getName()); - } - // Use SInt32Ignore.newBuilder() to construct. - private SInt32Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32Ignore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32Ignore.class, build.buf.validate.conformance.cases.SInt32Ignore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32Ignore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32Ignore other = (build.buf.validate.conformance.cases.SInt32Ignore) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32Ignore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32Ignore 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.SInt32Ignore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32Ignore 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.SInt32Ignore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32Ignore 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.SInt32Ignore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32Ignore 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.SInt32Ignore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32Ignore 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.SInt32Ignore 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.SInt32Ignore 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.SInt32Ignore 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.SInt32Ignore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32Ignore) - build.buf.validate.conformance.cases.SInt32IgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32Ignore.class, build.buf.validate.conformance.cases.SInt32Ignore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32Ignore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32Ignore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32Ignore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32Ignore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32Ignore build() { - build.buf.validate.conformance.cases.SInt32Ignore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32Ignore buildPartial() { - build.buf.validate.conformance.cases.SInt32Ignore result = new build.buf.validate.conformance.cases.SInt32Ignore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32Ignore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32Ignore) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32Ignore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32Ignore other) { - if (other == build.buf.validate.conformance.cases.SInt32Ignore.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32Ignore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32Ignore) - private static final build.buf.validate.conformance.cases.SInt32Ignore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32Ignore(); - } - - public static build.buf.validate.conformance.cases.SInt32Ignore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32Ignore 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.SInt32Ignore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IgnoreOrBuilder.java deleted file mode 100644 index 2aa794a3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32IgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32Ignore) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32In.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32In.java deleted file mode 100644 index 3475e9ee..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32In.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32In} - */ -public final class SInt32In extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32In) - SInt32InOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32In.class.getName()); - } - // Use SInt32In.newBuilder() to construct. - private SInt32In(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32In() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32In.class, build.buf.validate.conformance.cases.SInt32In.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32In)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32In other = (build.buf.validate.conformance.cases.SInt32In) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32In parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32In 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.SInt32In parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32In 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.SInt32In parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32In 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.SInt32In parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32In 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.SInt32In parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32In 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.SInt32In 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.SInt32In 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.SInt32In 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.SInt32In} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32In) - build.buf.validate.conformance.cases.SInt32InOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32In.class, build.buf.validate.conformance.cases.SInt32In.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32In.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32In_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32In getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32In.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32In build() { - build.buf.validate.conformance.cases.SInt32In result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32In buildPartial() { - build.buf.validate.conformance.cases.SInt32In result = new build.buf.validate.conformance.cases.SInt32In(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32In result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32In) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32In)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32In other) { - if (other == build.buf.validate.conformance.cases.SInt32In.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32In) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32In) - private static final build.buf.validate.conformance.cases.SInt32In DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32In(); - } - - public static build.buf.validate.conformance.cases.SInt32In getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32In 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.SInt32In getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32InOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32InOrBuilder.java deleted file mode 100644 index 72166400..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32InOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32InOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32In) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectType.java deleted file mode 100644 index d5a75cca..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectType.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32IncorrectType} - */ -public final class SInt32IncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32IncorrectType) - SInt32IncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32IncorrectType.class.getName()); - } - // Use SInt32IncorrectType.newBuilder() to construct. - private SInt32IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32IncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32IncorrectType.class, build.buf.validate.conformance.cases.SInt32IncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32IncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32IncorrectType other = (build.buf.validate.conformance.cases.SInt32IncorrectType) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32IncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32IncorrectType 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.SInt32IncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32IncorrectType 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.SInt32IncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32IncorrectType 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.SInt32IncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32IncorrectType 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.SInt32IncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32IncorrectType 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.SInt32IncorrectType 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.SInt32IncorrectType 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.SInt32IncorrectType 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.SInt32IncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32IncorrectType) - build.buf.validate.conformance.cases.SInt32IncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32IncorrectType.class, build.buf.validate.conformance.cases.SInt32IncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32IncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32IncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32IncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32IncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32IncorrectType build() { - build.buf.validate.conformance.cases.SInt32IncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32IncorrectType buildPartial() { - build.buf.validate.conformance.cases.SInt32IncorrectType result = new build.buf.validate.conformance.cases.SInt32IncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32IncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32IncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32IncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32IncorrectType other) { - if (other == build.buf.validate.conformance.cases.SInt32IncorrectType.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32IncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32IncorrectType) - private static final build.buf.validate.conformance.cases.SInt32IncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32IncorrectType(); - } - - public static build.buf.validate.conformance.cases.SInt32IncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32IncorrectType 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.SInt32IncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectTypeOrBuilder.java deleted file mode 100644 index 5f9ab063..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32IncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32IncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32IncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LT.java deleted file mode 100644 index bc91cab6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32LT} - */ -public final class SInt32LT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32LT) - SInt32LTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32LT.class.getName()); - } - // Use SInt32LT.newBuilder() to construct. - private SInt32LT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32LT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32LT.class, build.buf.validate.conformance.cases.SInt32LT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32LT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32LT other = (build.buf.validate.conformance.cases.SInt32LT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32LT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32LT 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.SInt32LT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32LT 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.SInt32LT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32LT 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.SInt32LT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32LT 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.SInt32LT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32LT 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.SInt32LT 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.SInt32LT 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.SInt32LT 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.SInt32LT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32LT) - build.buf.validate.conformance.cases.SInt32LTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32LT.class, build.buf.validate.conformance.cases.SInt32LT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32LT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32LT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32LT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32LT build() { - build.buf.validate.conformance.cases.SInt32LT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32LT buildPartial() { - build.buf.validate.conformance.cases.SInt32LT result = new build.buf.validate.conformance.cases.SInt32LT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32LT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32LT) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32LT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32LT other) { - if (other == build.buf.validate.conformance.cases.SInt32LT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32LT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32LT) - private static final build.buf.validate.conformance.cases.SInt32LT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32LT(); - } - - public static build.buf.validate.conformance.cases.SInt32LT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32LT 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.SInt32LT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTE.java deleted file mode 100644 index 0c896de9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32LTE} - */ -public final class SInt32LTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32LTE) - SInt32LTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32LTE.class.getName()); - } - // Use SInt32LTE.newBuilder() to construct. - private SInt32LTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32LTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32LTE.class, build.buf.validate.conformance.cases.SInt32LTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32LTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32LTE other = (build.buf.validate.conformance.cases.SInt32LTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32LTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32LTE 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.SInt32LTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32LTE 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.SInt32LTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32LTE 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.SInt32LTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32LTE 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.SInt32LTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32LTE 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.SInt32LTE 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.SInt32LTE 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.SInt32LTE 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.SInt32LTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32LTE) - build.buf.validate.conformance.cases.SInt32LTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32LTE.class, build.buf.validate.conformance.cases.SInt32LTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32LTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32LTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32LTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32LTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32LTE build() { - build.buf.validate.conformance.cases.SInt32LTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32LTE buildPartial() { - build.buf.validate.conformance.cases.SInt32LTE result = new build.buf.validate.conformance.cases.SInt32LTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32LTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32LTE) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32LTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32LTE other) { - if (other == build.buf.validate.conformance.cases.SInt32LTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32LTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32LTE) - private static final build.buf.validate.conformance.cases.SInt32LTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32LTE(); - } - - public static build.buf.validate.conformance.cases.SInt32LTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32LTE 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.SInt32LTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTEOrBuilder.java deleted file mode 100644 index f04e017a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32LTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32LTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTOrBuilder.java deleted file mode 100644 index df2cb68f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32LTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32LTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32LT) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32None.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32None.java deleted file mode 100644 index 4fa8b6f1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32None.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32None} - */ -public final class SInt32None extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32None) - SInt32NoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32None.class.getName()); - } - // Use SInt32None.newBuilder() to construct. - private SInt32None(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32None() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32None.class, build.buf.validate.conformance.cases.SInt32None.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32None)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32None other = (build.buf.validate.conformance.cases.SInt32None) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32None parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32None 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.SInt32None parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32None 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.SInt32None parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32None 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.SInt32None parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32None 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.SInt32None parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32None 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.SInt32None 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.SInt32None 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.SInt32None 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.SInt32None} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32None) - build.buf.validate.conformance.cases.SInt32NoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32None.class, build.buf.validate.conformance.cases.SInt32None.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32None.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32None_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32None getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32None.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32None build() { - build.buf.validate.conformance.cases.SInt32None result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32None buildPartial() { - build.buf.validate.conformance.cases.SInt32None result = new build.buf.validate.conformance.cases.SInt32None(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32None result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32None) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32None)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32None other) { - if (other == build.buf.validate.conformance.cases.SInt32None.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32None) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32None) - private static final build.buf.validate.conformance.cases.SInt32None DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32None(); - } - - public static build.buf.validate.conformance.cases.SInt32None getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32None 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.SInt32None getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NoneOrBuilder.java deleted file mode 100644 index 2b3910fa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32NoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32None) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val"]; - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotIn.java deleted file mode 100644 index 3c5be30b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotIn.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt32NotIn} - */ -public final class SInt32NotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt32NotIn) - SInt32NotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32NotIn.class.getName()); - } - // Use SInt32NotIn.newBuilder() to construct. - private SInt32NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt32NotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32NotIn.class, build.buf.validate.conformance.cases.SInt32NotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeSInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, val_); - } - 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.SInt32NotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt32NotIn other = (build.buf.validate.conformance.cases.SInt32NotIn) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt32NotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32NotIn 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.SInt32NotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32NotIn 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.SInt32NotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt32NotIn 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.SInt32NotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt32NotIn 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.SInt32NotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt32NotIn 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.SInt32NotIn 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.SInt32NotIn 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.SInt32NotIn 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.SInt32NotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt32NotIn) - build.buf.validate.conformance.cases.SInt32NotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt32NotIn.class, build.buf.validate.conformance.cases.SInt32NotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt32NotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt32NotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32NotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt32NotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32NotIn build() { - build.buf.validate.conformance.cases.SInt32NotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt32NotIn buildPartial() { - build.buf.validate.conformance.cases.SInt32NotIn result = new build.buf.validate.conformance.cases.SInt32NotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt32NotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt32NotIn) { - return mergeFrom((build.buf.validate.conformance.cases.SInt32NotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt32NotIn other) { - if (other == build.buf.validate.conformance.cases.SInt32NotIn.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt32NotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt32NotIn) - private static final build.buf.validate.conformance.cases.SInt32NotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt32NotIn(); - } - - public static build.buf.validate.conformance.cases.SInt32NotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32NotIn 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.SInt32NotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotInOrBuilder.java deleted file mode 100644 index 09e1fac8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt32NotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt32NotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt32NotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Const.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Const.java deleted file mode 100644 index 66acf39a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Const.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64Const} - */ -public final class SInt64Const extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64Const) - SInt64ConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64Const.class.getName()); - } - // Use SInt64Const.newBuilder() to construct. - private SInt64Const(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64Const() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64Const.class, build.buf.validate.conformance.cases.SInt64Const.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64Const)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64Const other = (build.buf.validate.conformance.cases.SInt64Const) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64Const parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64Const 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.SInt64Const parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64Const 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.SInt64Const parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64Const 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.SInt64Const parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64Const 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.SInt64Const parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64Const 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.SInt64Const 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.SInt64Const 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.SInt64Const 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.SInt64Const} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64Const) - build.buf.validate.conformance.cases.SInt64ConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64Const.class, build.buf.validate.conformance.cases.SInt64Const.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64Const.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Const_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64Const getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64Const.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64Const build() { - build.buf.validate.conformance.cases.SInt64Const result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64Const buildPartial() { - build.buf.validate.conformance.cases.SInt64Const result = new build.buf.validate.conformance.cases.SInt64Const(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64Const result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64Const) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64Const)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64Const other) { - if (other == build.buf.validate.conformance.cases.SInt64Const.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64Const) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64Const) - private static final build.buf.validate.conformance.cases.SInt64Const DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64Const(); - } - - public static build.buf.validate.conformance.cases.SInt64Const getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64Const 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.SInt64Const getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ConstOrBuilder.java deleted file mode 100644 index 6e45ee2d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64ConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64Const) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTE.java deleted file mode 100644 index f74b6a80..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64ExGTELTE} - */ -public final class SInt64ExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64ExGTELTE) - SInt64ExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64ExGTELTE.class.getName()); - } - // Use SInt64ExGTELTE.newBuilder() to construct. - private SInt64ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64ExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64ExGTELTE.class, build.buf.validate.conformance.cases.SInt64ExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64ExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64ExGTELTE other = (build.buf.validate.conformance.cases.SInt64ExGTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64ExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64ExGTELTE 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.SInt64ExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64ExGTELTE 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.SInt64ExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64ExGTELTE 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.SInt64ExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64ExGTELTE 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.SInt64ExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64ExGTELTE 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.SInt64ExGTELTE 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.SInt64ExGTELTE 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.SInt64ExGTELTE 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.SInt64ExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64ExGTELTE) - build.buf.validate.conformance.cases.SInt64ExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64ExGTELTE.class, build.buf.validate.conformance.cases.SInt64ExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64ExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64ExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64ExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64ExGTELTE build() { - build.buf.validate.conformance.cases.SInt64ExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64ExGTELTE buildPartial() { - build.buf.validate.conformance.cases.SInt64ExGTELTE result = new build.buf.validate.conformance.cases.SInt64ExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64ExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64ExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64ExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64ExGTELTE other) { - if (other == build.buf.validate.conformance.cases.SInt64ExGTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64ExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64ExGTELTE) - private static final build.buf.validate.conformance.cases.SInt64ExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64ExGTELTE(); - } - - public static build.buf.validate.conformance.cases.SInt64ExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64ExGTELTE 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.SInt64ExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTEOrBuilder.java deleted file mode 100644 index cb7c9add..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64ExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64ExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGT.java deleted file mode 100644 index f44c1a2a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64ExLTGT} - */ -public final class SInt64ExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64ExLTGT) - SInt64ExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64ExLTGT.class.getName()); - } - // Use SInt64ExLTGT.newBuilder() to construct. - private SInt64ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64ExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64ExLTGT.class, build.buf.validate.conformance.cases.SInt64ExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64ExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64ExLTGT other = (build.buf.validate.conformance.cases.SInt64ExLTGT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64ExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64ExLTGT 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.SInt64ExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64ExLTGT 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.SInt64ExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64ExLTGT 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.SInt64ExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64ExLTGT 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.SInt64ExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64ExLTGT 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.SInt64ExLTGT 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.SInt64ExLTGT 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.SInt64ExLTGT 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.SInt64ExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64ExLTGT) - build.buf.validate.conformance.cases.SInt64ExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64ExLTGT.class, build.buf.validate.conformance.cases.SInt64ExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64ExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64ExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64ExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64ExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64ExLTGT build() { - build.buf.validate.conformance.cases.SInt64ExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64ExLTGT buildPartial() { - build.buf.validate.conformance.cases.SInt64ExLTGT result = new build.buf.validate.conformance.cases.SInt64ExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64ExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64ExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64ExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64ExLTGT other) { - if (other == build.buf.validate.conformance.cases.SInt64ExLTGT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64ExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64ExLTGT) - private static final build.buf.validate.conformance.cases.SInt64ExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64ExLTGT(); - } - - public static build.buf.validate.conformance.cases.SInt64ExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64ExLTGT 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.SInt64ExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGTOrBuilder.java deleted file mode 100644 index f0aec510..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64ExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64ExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Example.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Example.java deleted file mode 100644 index 59d96c2e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Example.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64Example} - */ -public final class SInt64Example extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64Example) - SInt64ExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64Example.class.getName()); - } - // Use SInt64Example.newBuilder() to construct. - private SInt64Example(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64Example() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64Example.class, build.buf.validate.conformance.cases.SInt64Example.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64Example)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64Example other = (build.buf.validate.conformance.cases.SInt64Example) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64Example parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64Example 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.SInt64Example parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64Example 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.SInt64Example parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64Example 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.SInt64Example parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64Example 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.SInt64Example parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64Example 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.SInt64Example 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.SInt64Example 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.SInt64Example 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.SInt64Example} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64Example) - build.buf.validate.conformance.cases.SInt64ExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64Example.class, build.buf.validate.conformance.cases.SInt64Example.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64Example.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Example_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64Example getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64Example.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64Example build() { - build.buf.validate.conformance.cases.SInt64Example result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64Example buildPartial() { - build.buf.validate.conformance.cases.SInt64Example result = new build.buf.validate.conformance.cases.SInt64Example(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64Example result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64Example) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64Example)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64Example other) { - if (other == build.buf.validate.conformance.cases.SInt64Example.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64Example) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64Example) - private static final build.buf.validate.conformance.cases.SInt64Example DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64Example(); - } - - public static build.buf.validate.conformance.cases.SInt64Example getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64Example 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.SInt64Example getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExampleOrBuilder.java deleted file mode 100644 index 5bdd8313..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64ExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64ExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64Example) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GT.java deleted file mode 100644 index 6afa9fa0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64GT} - */ -public final class SInt64GT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64GT) - SInt64GTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64GT.class.getName()); - } - // Use SInt64GT.newBuilder() to construct. - private SInt64GT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64GT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64GT.class, build.buf.validate.conformance.cases.SInt64GT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64GT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64GT other = (build.buf.validate.conformance.cases.SInt64GT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64GT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GT 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.SInt64GT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GT 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.SInt64GT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GT 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.SInt64GT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64GT 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.SInt64GT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64GT 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.SInt64GT 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.SInt64GT 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.SInt64GT 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.SInt64GT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64GT) - build.buf.validate.conformance.cases.SInt64GTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64GT.class, build.buf.validate.conformance.cases.SInt64GT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64GT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64GT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GT build() { - build.buf.validate.conformance.cases.SInt64GT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GT buildPartial() { - build.buf.validate.conformance.cases.SInt64GT result = new build.buf.validate.conformance.cases.SInt64GT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64GT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64GT) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64GT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64GT other) { - if (other == build.buf.validate.conformance.cases.SInt64GT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64GT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64GT) - private static final build.buf.validate.conformance.cases.SInt64GT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64GT(); - } - - public static build.buf.validate.conformance.cases.SInt64GT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64GT 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.SInt64GT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTE.java deleted file mode 100644 index 47e62746..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64GTE} - */ -public final class SInt64GTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64GTE) - SInt64GTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64GTE.class.getName()); - } - // Use SInt64GTE.newBuilder() to construct. - private SInt64GTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64GTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64GTE.class, build.buf.validate.conformance.cases.SInt64GTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64GTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64GTE other = (build.buf.validate.conformance.cases.SInt64GTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64GTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GTE 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.SInt64GTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GTE 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.SInt64GTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GTE 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.SInt64GTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64GTE 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.SInt64GTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64GTE 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.SInt64GTE 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.SInt64GTE 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.SInt64GTE 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.SInt64GTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64GTE) - build.buf.validate.conformance.cases.SInt64GTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64GTE.class, build.buf.validate.conformance.cases.SInt64GTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64GTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64GTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GTE build() { - build.buf.validate.conformance.cases.SInt64GTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GTE buildPartial() { - build.buf.validate.conformance.cases.SInt64GTE result = new build.buf.validate.conformance.cases.SInt64GTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64GTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64GTE) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64GTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64GTE other) { - if (other == build.buf.validate.conformance.cases.SInt64GTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64GTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64GTE) - private static final build.buf.validate.conformance.cases.SInt64GTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64GTE(); - } - - public static build.buf.validate.conformance.cases.SInt64GTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64GTE 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.SInt64GTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTE.java deleted file mode 100644 index 41904001..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64GTELTE} - */ -public final class SInt64GTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64GTELTE) - SInt64GTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64GTELTE.class.getName()); - } - // Use SInt64GTELTE.newBuilder() to construct. - private SInt64GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64GTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64GTELTE.class, build.buf.validate.conformance.cases.SInt64GTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64GTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64GTELTE other = (build.buf.validate.conformance.cases.SInt64GTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64GTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GTELTE 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.SInt64GTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GTELTE 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.SInt64GTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GTELTE 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.SInt64GTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64GTELTE 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.SInt64GTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64GTELTE 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.SInt64GTELTE 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.SInt64GTELTE 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.SInt64GTELTE 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.SInt64GTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64GTELTE) - build.buf.validate.conformance.cases.SInt64GTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64GTELTE.class, build.buf.validate.conformance.cases.SInt64GTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64GTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64GTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GTELTE build() { - build.buf.validate.conformance.cases.SInt64GTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GTELTE buildPartial() { - build.buf.validate.conformance.cases.SInt64GTELTE result = new build.buf.validate.conformance.cases.SInt64GTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64GTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64GTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64GTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64GTELTE other) { - if (other == build.buf.validate.conformance.cases.SInt64GTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64GTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64GTELTE) - private static final build.buf.validate.conformance.cases.SInt64GTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64GTELTE(); - } - - public static build.buf.validate.conformance.cases.SInt64GTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64GTELTE 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.SInt64GTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTEOrBuilder.java deleted file mode 100644 index 34906aaf..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64GTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64GTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTEOrBuilder.java deleted file mode 100644 index eaec7765..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64GTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64GTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLT.java deleted file mode 100644 index b0bdd3e4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64GTLT} - */ -public final class SInt64GTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64GTLT) - SInt64GTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64GTLT.class.getName()); - } - // Use SInt64GTLT.newBuilder() to construct. - private SInt64GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64GTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64GTLT.class, build.buf.validate.conformance.cases.SInt64GTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64GTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64GTLT other = (build.buf.validate.conformance.cases.SInt64GTLT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64GTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GTLT 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.SInt64GTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GTLT 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.SInt64GTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64GTLT 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.SInt64GTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64GTLT 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.SInt64GTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64GTLT 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.SInt64GTLT 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.SInt64GTLT 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.SInt64GTLT 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.SInt64GTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64GTLT) - build.buf.validate.conformance.cases.SInt64GTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64GTLT.class, build.buf.validate.conformance.cases.SInt64GTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64GTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64GTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64GTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GTLT build() { - build.buf.validate.conformance.cases.SInt64GTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64GTLT buildPartial() { - build.buf.validate.conformance.cases.SInt64GTLT result = new build.buf.validate.conformance.cases.SInt64GTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64GTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64GTLT) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64GTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64GTLT other) { - if (other == build.buf.validate.conformance.cases.SInt64GTLT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64GTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64GTLT) - private static final build.buf.validate.conformance.cases.SInt64GTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64GTLT(); - } - - public static build.buf.validate.conformance.cases.SInt64GTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64GTLT 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.SInt64GTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLTOrBuilder.java deleted file mode 100644 index 937e49e3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64GTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64GTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTOrBuilder.java deleted file mode 100644 index 6f96afa0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64GTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64GTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64GT) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Ignore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Ignore.java deleted file mode 100644 index 00ed44ca..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64Ignore.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64Ignore} - */ -public final class SInt64Ignore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64Ignore) - SInt64IgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64Ignore.class.getName()); - } - // Use SInt64Ignore.newBuilder() to construct. - private SInt64Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64Ignore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64Ignore.class, build.buf.validate.conformance.cases.SInt64Ignore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64Ignore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64Ignore other = (build.buf.validate.conformance.cases.SInt64Ignore) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64Ignore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64Ignore 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.SInt64Ignore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64Ignore 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.SInt64Ignore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64Ignore 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.SInt64Ignore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64Ignore 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.SInt64Ignore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64Ignore 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.SInt64Ignore 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.SInt64Ignore 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.SInt64Ignore 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.SInt64Ignore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64Ignore) - build.buf.validate.conformance.cases.SInt64IgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64Ignore.class, build.buf.validate.conformance.cases.SInt64Ignore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64Ignore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64Ignore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64Ignore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64Ignore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64Ignore build() { - build.buf.validate.conformance.cases.SInt64Ignore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64Ignore buildPartial() { - build.buf.validate.conformance.cases.SInt64Ignore result = new build.buf.validate.conformance.cases.SInt64Ignore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64Ignore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64Ignore) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64Ignore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64Ignore other) { - if (other == build.buf.validate.conformance.cases.SInt64Ignore.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64Ignore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64Ignore) - private static final build.buf.validate.conformance.cases.SInt64Ignore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64Ignore(); - } - - public static build.buf.validate.conformance.cases.SInt64Ignore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64Ignore 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.SInt64Ignore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IgnoreOrBuilder.java deleted file mode 100644 index b0b68849..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64IgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64Ignore) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64In.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64In.java deleted file mode 100644 index fd3b2079..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64In.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64In} - */ -public final class SInt64In extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64In) - SInt64InOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64In.class.getName()); - } - // Use SInt64In.newBuilder() to construct. - private SInt64In(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64In() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64In.class, build.buf.validate.conformance.cases.SInt64In.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64In)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64In other = (build.buf.validate.conformance.cases.SInt64In) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64In parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64In 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.SInt64In parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64In 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.SInt64In parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64In 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.SInt64In parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64In 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.SInt64In parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64In 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.SInt64In 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.SInt64In 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.SInt64In 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.SInt64In} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64In) - build.buf.validate.conformance.cases.SInt64InOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64In.class, build.buf.validate.conformance.cases.SInt64In.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64In.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64In_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64In getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64In.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64In build() { - build.buf.validate.conformance.cases.SInt64In result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64In buildPartial() { - build.buf.validate.conformance.cases.SInt64In result = new build.buf.validate.conformance.cases.SInt64In(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64In result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64In) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64In)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64In other) { - if (other == build.buf.validate.conformance.cases.SInt64In.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64In) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64In) - private static final build.buf.validate.conformance.cases.SInt64In DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64In(); - } - - public static build.buf.validate.conformance.cases.SInt64In getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64In 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.SInt64In getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64InOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64InOrBuilder.java deleted file mode 100644 index e1f1a106..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64InOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64InOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64In) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectType.java deleted file mode 100644 index 0efa8999..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectType.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64IncorrectType} - */ -public final class SInt64IncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64IncorrectType) - SInt64IncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64IncorrectType.class.getName()); - } - // Use SInt64IncorrectType.newBuilder() to construct. - private SInt64IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64IncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64IncorrectType.class, build.buf.validate.conformance.cases.SInt64IncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64IncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64IncorrectType other = (build.buf.validate.conformance.cases.SInt64IncorrectType) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64IncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64IncorrectType 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.SInt64IncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64IncorrectType 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.SInt64IncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64IncorrectType 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.SInt64IncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64IncorrectType 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.SInt64IncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64IncorrectType 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.SInt64IncorrectType 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.SInt64IncorrectType 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.SInt64IncorrectType 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.SInt64IncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64IncorrectType) - build.buf.validate.conformance.cases.SInt64IncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64IncorrectType.class, build.buf.validate.conformance.cases.SInt64IncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64IncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64IncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64IncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64IncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64IncorrectType build() { - build.buf.validate.conformance.cases.SInt64IncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64IncorrectType buildPartial() { - build.buf.validate.conformance.cases.SInt64IncorrectType result = new build.buf.validate.conformance.cases.SInt64IncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64IncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64IncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64IncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64IncorrectType other) { - if (other == build.buf.validate.conformance.cases.SInt64IncorrectType.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64IncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64IncorrectType) - private static final build.buf.validate.conformance.cases.SInt64IncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64IncorrectType(); - } - - public static build.buf.validate.conformance.cases.SInt64IncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64IncorrectType 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.SInt64IncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectTypeOrBuilder.java deleted file mode 100644 index 13ee317c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64IncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64IncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64IncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LT.java deleted file mode 100644 index e1e82b3b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64LT} - */ -public final class SInt64LT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64LT) - SInt64LTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64LT.class.getName()); - } - // Use SInt64LT.newBuilder() to construct. - private SInt64LT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64LT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64LT.class, build.buf.validate.conformance.cases.SInt64LT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64LT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64LT other = (build.buf.validate.conformance.cases.SInt64LT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64LT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64LT 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.SInt64LT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64LT 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.SInt64LT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64LT 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.SInt64LT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64LT 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.SInt64LT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64LT 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.SInt64LT 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.SInt64LT 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.SInt64LT 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.SInt64LT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64LT) - build.buf.validate.conformance.cases.SInt64LTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64LT.class, build.buf.validate.conformance.cases.SInt64LT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64LT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64LT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64LT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64LT build() { - build.buf.validate.conformance.cases.SInt64LT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64LT buildPartial() { - build.buf.validate.conformance.cases.SInt64LT result = new build.buf.validate.conformance.cases.SInt64LT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64LT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64LT) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64LT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64LT other) { - if (other == build.buf.validate.conformance.cases.SInt64LT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64LT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64LT) - private static final build.buf.validate.conformance.cases.SInt64LT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64LT(); - } - - public static build.buf.validate.conformance.cases.SInt64LT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64LT 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.SInt64LT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTE.java deleted file mode 100644 index 97f28cf8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64LTE} - */ -public final class SInt64LTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64LTE) - SInt64LTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64LTE.class.getName()); - } - // Use SInt64LTE.newBuilder() to construct. - private SInt64LTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64LTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64LTE.class, build.buf.validate.conformance.cases.SInt64LTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64LTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64LTE other = (build.buf.validate.conformance.cases.SInt64LTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64LTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64LTE 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.SInt64LTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64LTE 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.SInt64LTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64LTE 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.SInt64LTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64LTE 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.SInt64LTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64LTE 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.SInt64LTE 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.SInt64LTE 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.SInt64LTE 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.SInt64LTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64LTE) - build.buf.validate.conformance.cases.SInt64LTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64LTE.class, build.buf.validate.conformance.cases.SInt64LTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64LTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64LTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64LTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64LTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64LTE build() { - build.buf.validate.conformance.cases.SInt64LTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64LTE buildPartial() { - build.buf.validate.conformance.cases.SInt64LTE result = new build.buf.validate.conformance.cases.SInt64LTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64LTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64LTE) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64LTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64LTE other) { - if (other == build.buf.validate.conformance.cases.SInt64LTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64LTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64LTE) - private static final build.buf.validate.conformance.cases.SInt64LTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64LTE(); - } - - public static build.buf.validate.conformance.cases.SInt64LTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64LTE 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.SInt64LTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTEOrBuilder.java deleted file mode 100644 index 6c89e47d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64LTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64LTE) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTOrBuilder.java deleted file mode 100644 index 21306bcd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64LTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64LTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64LT) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64None.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64None.java deleted file mode 100644 index 2b186853..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64None.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64None} - */ -public final class SInt64None extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64None) - SInt64NoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64None.class.getName()); - } - // Use SInt64None.newBuilder() to construct. - private SInt64None(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64None() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64None.class, build.buf.validate.conformance.cases.SInt64None.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64None)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64None other = (build.buf.validate.conformance.cases.SInt64None) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64None parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64None 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.SInt64None parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64None 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.SInt64None parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64None 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.SInt64None parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64None 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.SInt64None parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64None 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.SInt64None 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.SInt64None 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.SInt64None 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.SInt64None} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64None) - build.buf.validate.conformance.cases.SInt64NoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64None.class, build.buf.validate.conformance.cases.SInt64None.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64None.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64None_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64None getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64None.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64None build() { - build.buf.validate.conformance.cases.SInt64None result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64None buildPartial() { - build.buf.validate.conformance.cases.SInt64None result = new build.buf.validate.conformance.cases.SInt64None(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64None result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64None) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64None)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64None other) { - if (other == build.buf.validate.conformance.cases.SInt64None.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64None) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64None) - private static final build.buf.validate.conformance.cases.SInt64None DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64None(); - } - - public static build.buf.validate.conformance.cases.SInt64None getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64None 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.SInt64None getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NoneOrBuilder.java deleted file mode 100644 index 6ae5f6d1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64NoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64None) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val"]; - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotIn.java deleted file mode 100644 index 0b521388..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotIn.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.SInt64NotIn} - */ -public final class SInt64NotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.SInt64NotIn) - SInt64NotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64NotIn.class.getName()); - } - // Use SInt64NotIn.newBuilder() to construct. - private SInt64NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SInt64NotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64NotIn.class, build.buf.validate.conformance.cases.SInt64NotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeSInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, val_); - } - 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.SInt64NotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.SInt64NotIn other = (build.buf.validate.conformance.cases.SInt64NotIn) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.SInt64NotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64NotIn 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.SInt64NotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64NotIn 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.SInt64NotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.SInt64NotIn 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.SInt64NotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.SInt64NotIn 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.SInt64NotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.SInt64NotIn 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.SInt64NotIn 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.SInt64NotIn 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.SInt64NotIn 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.SInt64NotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.SInt64NotIn) - build.buf.validate.conformance.cases.SInt64NotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.SInt64NotIn.class, build.buf.validate.conformance.cases.SInt64NotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.SInt64NotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_SInt64NotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64NotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.SInt64NotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64NotIn build() { - build.buf.validate.conformance.cases.SInt64NotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.SInt64NotIn buildPartial() { - build.buf.validate.conformance.cases.SInt64NotIn result = new build.buf.validate.conformance.cases.SInt64NotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.SInt64NotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.SInt64NotIn) { - return mergeFrom((build.buf.validate.conformance.cases.SInt64NotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.SInt64NotIn other) { - if (other == build.buf.validate.conformance.cases.SInt64NotIn.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.SInt64NotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.SInt64NotIn) - private static final build.buf.validate.conformance.cases.SInt64NotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.SInt64NotIn(); - } - - public static build.buf.validate.conformance.cases.SInt64NotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64NotIn 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.SInt64NotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotInOrBuilder.java deleted file mode 100644 index ae63aa7c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/SInt64NotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface SInt64NotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.SInt64NotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * sint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleEdition2023.java deleted file mode 100644 index 46c00518..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleEdition2023.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023} - */ -public final class StandardPredefinedAndCustomRuleEdition2023 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023) - StandardPredefinedAndCustomRuleEdition2023OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StandardPredefinedAndCustomRuleEdition2023.class.getName()); - } - // Use StandardPredefinedAndCustomRuleEdition2023.newBuilder() to construct. - private StandardPredefinedAndCustomRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StandardPredefinedAndCustomRuleEdition2023() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.class, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.Builder.class); - } - - private int bitField0_; - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt32(1, a_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, a_); - } - 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.StandardPredefinedAndCustomRuleEdition2023)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 other = (build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023) obj; - - if (hasA() != other.hasA()) return false; - if (hasA()) { - if (getA() - != other.getA()) 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 (hasA()) { - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 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.StandardPredefinedAndCustomRuleEdition2023 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 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.StandardPredefinedAndCustomRuleEdition2023 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 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.StandardPredefinedAndCustomRuleEdition2023 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 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.StandardPredefinedAndCustomRuleEdition2023 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 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.StandardPredefinedAndCustomRuleEdition2023 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.StandardPredefinedAndCustomRuleEdition2023 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.StandardPredefinedAndCustomRuleEdition2023 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.StandardPredefinedAndCustomRuleEdition2023} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023) - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleEdition2023_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleEdition2023_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.class, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - 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_StandardPredefinedAndCustomRuleEdition2023_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 build() { - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 buildPartial() { - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 result = new build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023) { - return mergeFrom((build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 other) { - if (other == build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023.getDefaultInstance()) return this; - if (other.hasA()) { - setA(other.getA()); - } - 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 8: { - a_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int a_ ; - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023) - private static final build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023(); - } - - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StandardPredefinedAndCustomRuleEdition2023 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.StandardPredefinedAndCustomRuleEdition2023 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleEdition2023OrBuilder.java deleted file mode 100644 index 6705a978..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleEdition2023OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface StandardPredefinedAndCustomRuleEdition2023OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleEdition2023) - com.google.protobuf.MessageOrBuilder { - - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - boolean hasA(); - /** - * 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/StandardPredefinedAndCustomRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto2.java deleted file mode 100644 index b39235e9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto2.java +++ /dev/null @@ -1,456 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2} - */ -public final class StandardPredefinedAndCustomRuleProto2 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2) - StandardPredefinedAndCustomRuleProto2OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StandardPredefinedAndCustomRuleProto2.class.getName()); - } - // Use StandardPredefinedAndCustomRuleProto2.newBuilder() to construct. - private StandardPredefinedAndCustomRuleProto2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StandardPredefinedAndCustomRuleProto2() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.class, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.Builder.class); - } - - private int bitField0_; - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt32(1, a_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, a_); - } - 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.StandardPredefinedAndCustomRuleProto2)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 other = (build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2) obj; - - if (hasA() != other.hasA()) return false; - if (hasA()) { - if (getA() - != other.getA()) 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 (hasA()) { - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 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.StandardPredefinedAndCustomRuleProto2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 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.StandardPredefinedAndCustomRuleProto2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 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.StandardPredefinedAndCustomRuleProto2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 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.StandardPredefinedAndCustomRuleProto2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 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.StandardPredefinedAndCustomRuleProto2 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.StandardPredefinedAndCustomRuleProto2 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.StandardPredefinedAndCustomRuleProto2 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.StandardPredefinedAndCustomRuleProto2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2) - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto2_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.class, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - 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_StandardPredefinedAndCustomRuleProto2_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 build() { - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 buildPartial() { - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 result = new build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2) { - return mergeFrom((build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 other) { - if (other == build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2.getDefaultInstance()) return this; - if (other.hasA()) { - setA(other.getA()); - } - 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 8: { - a_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int a_ ; - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - @java.lang.Override - public boolean hasA() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2) - private static final build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2(); - } - - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StandardPredefinedAndCustomRuleProto2 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.StandardPredefinedAndCustomRuleProto2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto2OrBuilder.java deleted file mode 100644 index 3f4dfdd4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto2OrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface StandardPredefinedAndCustomRuleProto2OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto2) - com.google.protobuf.MessageOrBuilder { - - /** - * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return Whether the a field is set. - */ - boolean hasA(); - /** - * 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/StandardPredefinedAndCustomRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto3.java deleted file mode 100644 index f590f9b9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto3.java +++ /dev/null @@ -1,431 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3} - */ -public final class StandardPredefinedAndCustomRuleProto3 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3) - StandardPredefinedAndCustomRuleProto3OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StandardPredefinedAndCustomRuleProto3.class.getName()); - } - // Use StandardPredefinedAndCustomRuleProto3.newBuilder() to construct. - private StandardPredefinedAndCustomRuleProto3(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StandardPredefinedAndCustomRuleProto3() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3.class, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3.Builder.class); - } - - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - 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 { - if (a_ != 0) { - output.writeSInt32(1, a_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, a_); - } - 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.StandardPredefinedAndCustomRuleProto3)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 other = (build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3) obj; - - if (getA() - != other.getA()) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 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.StandardPredefinedAndCustomRuleProto3 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 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.StandardPredefinedAndCustomRuleProto3 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 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.StandardPredefinedAndCustomRuleProto3 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 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.StandardPredefinedAndCustomRuleProto3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 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.StandardPredefinedAndCustomRuleProto3 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.StandardPredefinedAndCustomRuleProto3 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.StandardPredefinedAndCustomRuleProto3 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.StandardPredefinedAndCustomRuleProto3} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3) - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto3_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_StandardPredefinedAndCustomRuleProto3_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3.class, build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - 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_StandardPredefinedAndCustomRuleProto3_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 build() { - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 buildPartial() { - build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 result = new build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3) { - return mergeFrom((build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 other) { - if (other == build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - 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 8: { - a_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int a_ ; - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3) - private static final build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3(); - } - - public static build.buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StandardPredefinedAndCustomRuleProto3 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.StandardPredefinedAndCustomRuleProto3 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto3OrBuilder.java deleted file mode 100644 index 8e78b741..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StandardPredefinedAndCustomRuleProto3OrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// 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.30.2 - -package build.buf.validate.conformance.cases; - -public interface StandardPredefinedAndCustomRuleProto3OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StandardPredefinedAndCustomRuleProto3) - com.google.protobuf.MessageOrBuilder { - - /** - * 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/StringAddress.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringAddress.java deleted file mode 100644 index ffff9d3b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringAddress.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringAddress} - */ -public final class StringAddress extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringAddress) - StringAddressOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringAddress.class.getName()); - } - // Use StringAddress.newBuilder() to construct. - private StringAddress(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringAddress() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringAddress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringAddress.class, build.buf.validate.conformance.cases.StringAddress.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringAddress)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringAddress other = (build.buf.validate.conformance.cases.StringAddress) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringAddress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringAddress 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.StringAddress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringAddress 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.StringAddress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringAddress 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.StringAddress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringAddress 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.StringAddress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringAddress 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.StringAddress 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.StringAddress 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.StringAddress 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.StringAddress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringAddress) - build.buf.validate.conformance.cases.StringAddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringAddress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringAddress.class, build.buf.validate.conformance.cases.StringAddress.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringAddress.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringAddress_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringAddress getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringAddress.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringAddress build() { - build.buf.validate.conformance.cases.StringAddress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringAddress buildPartial() { - build.buf.validate.conformance.cases.StringAddress result = new build.buf.validate.conformance.cases.StringAddress(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringAddress result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringAddress) { - return mergeFrom((build.buf.validate.conformance.cases.StringAddress)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringAddress other) { - if (other == build.buf.validate.conformance.cases.StringAddress.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringAddress) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringAddress) - private static final build.buf.validate.conformance.cases.StringAddress DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringAddress(); - } - - public static build.buf.validate.conformance.cases.StringAddress getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringAddress 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.StringAddress getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringAddressOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringAddressOrBuilder.java deleted file mode 100644 index ed786d54..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringAddressOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringAddressOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringAddress) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringConst.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringConst.java deleted file mode 100644 index 42e020f6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringConst.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringConst} - */ -public final class StringConst extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringConst) - StringConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringConst.class.getName()); - } - // Use StringConst.newBuilder() to construct. - private StringConst(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringConst() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringConst.class, build.buf.validate.conformance.cases.StringConst.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringConst)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringConst other = (build.buf.validate.conformance.cases.StringConst) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringConst parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringConst 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.StringConst parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringConst 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.StringConst parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringConst 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.StringConst parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringConst 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.StringConst parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringConst 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.StringConst 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.StringConst 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.StringConst 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.StringConst} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringConst) - build.buf.validate.conformance.cases.StringConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringConst.class, build.buf.validate.conformance.cases.StringConst.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringConst.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringConst_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringConst getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringConst.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringConst build() { - build.buf.validate.conformance.cases.StringConst result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringConst buildPartial() { - build.buf.validate.conformance.cases.StringConst result = new build.buf.validate.conformance.cases.StringConst(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringConst result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringConst) { - return mergeFrom((build.buf.validate.conformance.cases.StringConst)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringConst other) { - if (other == build.buf.validate.conformance.cases.StringConst.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringConst) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringConst) - private static final build.buf.validate.conformance.cases.StringConst DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringConst(); - } - - public static build.buf.validate.conformance.cases.StringConst getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringConst 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.StringConst getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringConstOrBuilder.java deleted file mode 100644 index 3e8491d5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringConstOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringConst) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringContains.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringContains.java deleted file mode 100644 index e15caacc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringContains.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringContains} - */ -public final class StringContains extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringContains) - StringContainsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringContains.class.getName()); - } - // Use StringContains.newBuilder() to construct. - private StringContains(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringContains() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringContains_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringContains_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringContains.class, build.buf.validate.conformance.cases.StringContains.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringContains)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringContains other = (build.buf.validate.conformance.cases.StringContains) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringContains parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringContains 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.StringContains parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringContains 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.StringContains parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringContains 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.StringContains parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringContains 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.StringContains parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringContains 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.StringContains 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.StringContains 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.StringContains 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.StringContains} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringContains) - build.buf.validate.conformance.cases.StringContainsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringContains_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringContains_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringContains.class, build.buf.validate.conformance.cases.StringContains.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringContains.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringContains_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringContains getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringContains.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringContains build() { - build.buf.validate.conformance.cases.StringContains result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringContains buildPartial() { - build.buf.validate.conformance.cases.StringContains result = new build.buf.validate.conformance.cases.StringContains(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringContains result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringContains) { - return mergeFrom((build.buf.validate.conformance.cases.StringContains)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringContains other) { - if (other == build.buf.validate.conformance.cases.StringContains.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringContains) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringContains) - private static final build.buf.validate.conformance.cases.StringContains DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringContains(); - } - - public static build.buf.validate.conformance.cases.StringContains getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringContains 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.StringContains getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringContainsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringContainsOrBuilder.java deleted file mode 100644 index 7c53537f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringContainsOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringContainsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringContains) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEmail.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEmail.java deleted file mode 100644 index 8c280a06..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEmail.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringEmail} - */ -public final class StringEmail extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringEmail) - StringEmailOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringEmail.class.getName()); - } - // Use StringEmail.newBuilder() to construct. - private StringEmail(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringEmail() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEmail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEmail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringEmail.class, build.buf.validate.conformance.cases.StringEmail.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringEmail)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringEmail other = (build.buf.validate.conformance.cases.StringEmail) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringEmail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringEmail 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.StringEmail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringEmail 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.StringEmail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringEmail 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.StringEmail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringEmail 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.StringEmail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringEmail 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.StringEmail 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.StringEmail 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.StringEmail 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.StringEmail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringEmail) - build.buf.validate.conformance.cases.StringEmailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEmail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEmail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringEmail.class, build.buf.validate.conformance.cases.StringEmail.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringEmail.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEmail_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringEmail getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringEmail.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringEmail build() { - build.buf.validate.conformance.cases.StringEmail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringEmail buildPartial() { - build.buf.validate.conformance.cases.StringEmail result = new build.buf.validate.conformance.cases.StringEmail(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringEmail result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringEmail) { - return mergeFrom((build.buf.validate.conformance.cases.StringEmail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringEmail other) { - if (other == build.buf.validate.conformance.cases.StringEmail.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringEmail) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringEmail) - private static final build.buf.validate.conformance.cases.StringEmail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringEmail(); - } - - public static build.buf.validate.conformance.cases.StringEmail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringEmail 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.StringEmail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEmailOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEmailOrBuilder.java deleted file mode 100644 index 1a755485..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEmailOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringEmailOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringEmail) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytes.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytes.java deleted file mode 100644 index 3ff5656c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytes.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringEqualMinMaxBytes} - */ -public final class StringEqualMinMaxBytes extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringEqualMinMaxBytes) - StringEqualMinMaxBytesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringEqualMinMaxBytes.class.getName()); - } - // Use StringEqualMinMaxBytes.newBuilder() to construct. - private StringEqualMinMaxBytes(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringEqualMinMaxBytes() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringEqualMinMaxBytes.class, build.buf.validate.conformance.cases.StringEqualMinMaxBytes.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringEqualMinMaxBytes)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringEqualMinMaxBytes other = (build.buf.validate.conformance.cases.StringEqualMinMaxBytes) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringEqualMinMaxBytes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringEqualMinMaxBytes 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.StringEqualMinMaxBytes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringEqualMinMaxBytes 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.StringEqualMinMaxBytes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringEqualMinMaxBytes 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.StringEqualMinMaxBytes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringEqualMinMaxBytes 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.StringEqualMinMaxBytes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringEqualMinMaxBytes 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.StringEqualMinMaxBytes 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.StringEqualMinMaxBytes 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.StringEqualMinMaxBytes 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.StringEqualMinMaxBytes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringEqualMinMaxBytes) - build.buf.validate.conformance.cases.StringEqualMinMaxBytesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringEqualMinMaxBytes.class, build.buf.validate.conformance.cases.StringEqualMinMaxBytes.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringEqualMinMaxBytes.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringEqualMinMaxBytes getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringEqualMinMaxBytes.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringEqualMinMaxBytes build() { - build.buf.validate.conformance.cases.StringEqualMinMaxBytes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringEqualMinMaxBytes buildPartial() { - build.buf.validate.conformance.cases.StringEqualMinMaxBytes result = new build.buf.validate.conformance.cases.StringEqualMinMaxBytes(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringEqualMinMaxBytes result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringEqualMinMaxBytes) { - return mergeFrom((build.buf.validate.conformance.cases.StringEqualMinMaxBytes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringEqualMinMaxBytes other) { - if (other == build.buf.validate.conformance.cases.StringEqualMinMaxBytes.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringEqualMinMaxBytes) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringEqualMinMaxBytes) - private static final build.buf.validate.conformance.cases.StringEqualMinMaxBytes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringEqualMinMaxBytes(); - } - - public static build.buf.validate.conformance.cases.StringEqualMinMaxBytes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringEqualMinMaxBytes 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.StringEqualMinMaxBytes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytesOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytesOrBuilder.java deleted file mode 100644 index b52fa3fd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxBytesOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringEqualMinMaxBytesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringEqualMinMaxBytes) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLen.java deleted file mode 100644 index 903a3ec7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLen.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringEqualMinMaxLen} - */ -public final class StringEqualMinMaxLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringEqualMinMaxLen) - StringEqualMinMaxLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringEqualMinMaxLen.class.getName()); - } - // Use StringEqualMinMaxLen.newBuilder() to construct. - private StringEqualMinMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringEqualMinMaxLen() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringEqualMinMaxLen.class, build.buf.validate.conformance.cases.StringEqualMinMaxLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringEqualMinMaxLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringEqualMinMaxLen other = (build.buf.validate.conformance.cases.StringEqualMinMaxLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringEqualMinMaxLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringEqualMinMaxLen 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.StringEqualMinMaxLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringEqualMinMaxLen 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.StringEqualMinMaxLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringEqualMinMaxLen 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.StringEqualMinMaxLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringEqualMinMaxLen 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.StringEqualMinMaxLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringEqualMinMaxLen 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.StringEqualMinMaxLen 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.StringEqualMinMaxLen 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.StringEqualMinMaxLen 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.StringEqualMinMaxLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringEqualMinMaxLen) - build.buf.validate.conformance.cases.StringEqualMinMaxLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringEqualMinMaxLen.class, build.buf.validate.conformance.cases.StringEqualMinMaxLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringEqualMinMaxLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringEqualMinMaxLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringEqualMinMaxLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringEqualMinMaxLen build() { - build.buf.validate.conformance.cases.StringEqualMinMaxLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringEqualMinMaxLen buildPartial() { - build.buf.validate.conformance.cases.StringEqualMinMaxLen result = new build.buf.validate.conformance.cases.StringEqualMinMaxLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringEqualMinMaxLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringEqualMinMaxLen) { - return mergeFrom((build.buf.validate.conformance.cases.StringEqualMinMaxLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringEqualMinMaxLen other) { - if (other == build.buf.validate.conformance.cases.StringEqualMinMaxLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringEqualMinMaxLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringEqualMinMaxLen) - private static final build.buf.validate.conformance.cases.StringEqualMinMaxLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringEqualMinMaxLen(); - } - - public static build.buf.validate.conformance.cases.StringEqualMinMaxLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringEqualMinMaxLen 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.StringEqualMinMaxLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLenOrBuilder.java deleted file mode 100644 index 1386e8ab..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringEqualMinMaxLenOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringEqualMinMaxLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringEqualMinMaxLen) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringExample.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringExample.java deleted file mode 100644 index 97e00486..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringExample.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringExample} - */ -public final class StringExample extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringExample) - StringExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringExample.class.getName()); - } - // Use StringExample.newBuilder() to construct. - private StringExample(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringExample() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringExample.class, build.buf.validate.conformance.cases.StringExample.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringExample)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringExample other = (build.buf.validate.conformance.cases.StringExample) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringExample parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringExample 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.StringExample parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringExample 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.StringExample parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringExample 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.StringExample parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringExample 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.StringExample parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringExample 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.StringExample 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.StringExample 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.StringExample 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.StringExample} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringExample) - build.buf.validate.conformance.cases.StringExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringExample.class, build.buf.validate.conformance.cases.StringExample.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringExample.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringExample_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringExample getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringExample.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringExample build() { - build.buf.validate.conformance.cases.StringExample result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringExample buildPartial() { - build.buf.validate.conformance.cases.StringExample result = new build.buf.validate.conformance.cases.StringExample(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringExample result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringExample) { - return mergeFrom((build.buf.validate.conformance.cases.StringExample)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringExample other) { - if (other == build.buf.validate.conformance.cases.StringExample.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringExample) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringExample) - private static final build.buf.validate.conformance.cases.StringExample DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringExample(); - } - - public static build.buf.validate.conformance.cases.StringExample getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringExample 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.StringExample getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringExampleOrBuilder.java deleted file mode 100644 index 62637eee..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringExampleOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringExample) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPort.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPort.java deleted file mode 100644 index 7eda1269..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPort.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringHostAndOptionalPort} - */ -public final class StringHostAndOptionalPort extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringHostAndOptionalPort) - StringHostAndOptionalPortOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringHostAndOptionalPort.class.getName()); - } - // Use StringHostAndOptionalPort.newBuilder() to construct. - private StringHostAndOptionalPort(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringHostAndOptionalPort() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHostAndOptionalPort.class, build.buf.validate.conformance.cases.StringHostAndOptionalPort.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringHostAndOptionalPort)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringHostAndOptionalPort other = (build.buf.validate.conformance.cases.StringHostAndOptionalPort) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringHostAndOptionalPort parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHostAndOptionalPort 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.StringHostAndOptionalPort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHostAndOptionalPort 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.StringHostAndOptionalPort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHostAndOptionalPort 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.StringHostAndOptionalPort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringHostAndOptionalPort 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.StringHostAndOptionalPort parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringHostAndOptionalPort 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.StringHostAndOptionalPort 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.StringHostAndOptionalPort 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.StringHostAndOptionalPort 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.StringHostAndOptionalPort} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringHostAndOptionalPort) - build.buf.validate.conformance.cases.StringHostAndOptionalPortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHostAndOptionalPort.class, build.buf.validate.conformance.cases.StringHostAndOptionalPort.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringHostAndOptionalPort.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHostAndOptionalPort getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringHostAndOptionalPort.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHostAndOptionalPort build() { - build.buf.validate.conformance.cases.StringHostAndOptionalPort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHostAndOptionalPort buildPartial() { - build.buf.validate.conformance.cases.StringHostAndOptionalPort result = new build.buf.validate.conformance.cases.StringHostAndOptionalPort(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringHostAndOptionalPort result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringHostAndOptionalPort) { - return mergeFrom((build.buf.validate.conformance.cases.StringHostAndOptionalPort)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringHostAndOptionalPort other) { - if (other == build.buf.validate.conformance.cases.StringHostAndOptionalPort.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHostAndOptionalPort) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringHostAndOptionalPort) - private static final build.buf.validate.conformance.cases.StringHostAndOptionalPort DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringHostAndOptionalPort(); - } - - public static build.buf.validate.conformance.cases.StringHostAndOptionalPort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringHostAndOptionalPort 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.StringHostAndOptionalPort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPortOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPortOrBuilder.java deleted file mode 100644 index 40fabdd1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndOptionalPortOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringHostAndOptionalPortOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringHostAndOptionalPort) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPort.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPort.java deleted file mode 100644 index 96860113..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPort.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringHostAndPort} - */ -public final class StringHostAndPort extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringHostAndPort) - StringHostAndPortOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringHostAndPort.class.getName()); - } - // Use StringHostAndPort.newBuilder() to construct. - private StringHostAndPort(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringHostAndPort() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHostAndPort.class, build.buf.validate.conformance.cases.StringHostAndPort.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringHostAndPort)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringHostAndPort other = (build.buf.validate.conformance.cases.StringHostAndPort) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringHostAndPort parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHostAndPort 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.StringHostAndPort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHostAndPort 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.StringHostAndPort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHostAndPort 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.StringHostAndPort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringHostAndPort 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.StringHostAndPort parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringHostAndPort 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.StringHostAndPort 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.StringHostAndPort 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.StringHostAndPort 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.StringHostAndPort} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringHostAndPort) - build.buf.validate.conformance.cases.StringHostAndPortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHostAndPort.class, build.buf.validate.conformance.cases.StringHostAndPort.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringHostAndPort.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostAndPort_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHostAndPort getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringHostAndPort.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHostAndPort build() { - build.buf.validate.conformance.cases.StringHostAndPort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHostAndPort buildPartial() { - build.buf.validate.conformance.cases.StringHostAndPort result = new build.buf.validate.conformance.cases.StringHostAndPort(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringHostAndPort result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringHostAndPort) { - return mergeFrom((build.buf.validate.conformance.cases.StringHostAndPort)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringHostAndPort other) { - if (other == build.buf.validate.conformance.cases.StringHostAndPort.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHostAndPort) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringHostAndPort) - private static final build.buf.validate.conformance.cases.StringHostAndPort DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringHostAndPort(); - } - - public static build.buf.validate.conformance.cases.StringHostAndPort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringHostAndPort 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.StringHostAndPort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPortOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPortOrBuilder.java deleted file mode 100644 index 042d85c2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostAndPortOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringHostAndPortOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringHostAndPort) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostname.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostname.java deleted file mode 100644 index 14b44586..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostname.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringHostname} - */ -public final class StringHostname extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringHostname) - StringHostnameOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringHostname.class.getName()); - } - // Use StringHostname.newBuilder() to construct. - private StringHostname(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringHostname() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostname_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostname_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHostname.class, build.buf.validate.conformance.cases.StringHostname.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringHostname)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringHostname other = (build.buf.validate.conformance.cases.StringHostname) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringHostname parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHostname 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.StringHostname parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHostname 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.StringHostname parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHostname 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.StringHostname parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringHostname 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.StringHostname parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringHostname 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.StringHostname 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.StringHostname 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.StringHostname 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.StringHostname} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringHostname) - build.buf.validate.conformance.cases.StringHostnameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostname_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostname_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHostname.class, build.buf.validate.conformance.cases.StringHostname.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringHostname.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHostname_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHostname getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringHostname.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHostname build() { - build.buf.validate.conformance.cases.StringHostname result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHostname buildPartial() { - build.buf.validate.conformance.cases.StringHostname result = new build.buf.validate.conformance.cases.StringHostname(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringHostname result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringHostname) { - return mergeFrom((build.buf.validate.conformance.cases.StringHostname)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringHostname other) { - if (other == build.buf.validate.conformance.cases.StringHostname.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHostname) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringHostname) - private static final build.buf.validate.conformance.cases.StringHostname DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringHostname(); - } - - public static build.buf.validate.conformance.cases.StringHostname getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringHostname 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.StringHostname getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostnameOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostnameOrBuilder.java deleted file mode 100644 index ca82274b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHostnameOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringHostnameOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringHostname) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderName.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderName.java deleted file mode 100644 index 7773fc0b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderName.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderName} - */ -public final class StringHttpHeaderName extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringHttpHeaderName) - StringHttpHeaderNameOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringHttpHeaderName.class.getName()); - } - // Use StringHttpHeaderName.newBuilder() to construct. - private StringHttpHeaderName(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringHttpHeaderName() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderName_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHttpHeaderName.class, build.buf.validate.conformance.cases.StringHttpHeaderName.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringHttpHeaderName)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringHttpHeaderName other = (build.buf.validate.conformance.cases.StringHttpHeaderName) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderName parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderName 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.StringHttpHeaderName parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderName 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.StringHttpHeaderName parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderName 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.StringHttpHeaderName parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderName 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.StringHttpHeaderName parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderName 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.StringHttpHeaderName 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.StringHttpHeaderName 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.StringHttpHeaderName 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.StringHttpHeaderName} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringHttpHeaderName) - build.buf.validate.conformance.cases.StringHttpHeaderNameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderName_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHttpHeaderName.class, build.buf.validate.conformance.cases.StringHttpHeaderName.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringHttpHeaderName.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderName_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderName getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringHttpHeaderName.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderName build() { - build.buf.validate.conformance.cases.StringHttpHeaderName result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderName buildPartial() { - build.buf.validate.conformance.cases.StringHttpHeaderName result = new build.buf.validate.conformance.cases.StringHttpHeaderName(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringHttpHeaderName result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringHttpHeaderName) { - return mergeFrom((build.buf.validate.conformance.cases.StringHttpHeaderName)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringHttpHeaderName other) { - if (other == build.buf.validate.conformance.cases.StringHttpHeaderName.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHttpHeaderName) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringHttpHeaderName) - private static final build.buf.validate.conformance.cases.StringHttpHeaderName DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringHttpHeaderName(); - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderName getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringHttpHeaderName 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.StringHttpHeaderName getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLoose.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLoose.java deleted file mode 100644 index 038bb1be..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLoose.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderNameLoose} - */ -public final class StringHttpHeaderNameLoose extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringHttpHeaderNameLoose) - StringHttpHeaderNameLooseOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringHttpHeaderNameLoose.class.getName()); - } - // Use StringHttpHeaderNameLoose.newBuilder() to construct. - private StringHttpHeaderNameLoose(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringHttpHeaderNameLoose() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHttpHeaderNameLoose.class, build.buf.validate.conformance.cases.StringHttpHeaderNameLoose.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringHttpHeaderNameLoose)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringHttpHeaderNameLoose other = (build.buf.validate.conformance.cases.StringHttpHeaderNameLoose) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderNameLoose parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderNameLoose 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.StringHttpHeaderNameLoose parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderNameLoose 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.StringHttpHeaderNameLoose parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderNameLoose 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.StringHttpHeaderNameLoose parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderNameLoose 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.StringHttpHeaderNameLoose parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderNameLoose 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.StringHttpHeaderNameLoose 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.StringHttpHeaderNameLoose 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.StringHttpHeaderNameLoose 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.StringHttpHeaderNameLoose} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringHttpHeaderNameLoose) - build.buf.validate.conformance.cases.StringHttpHeaderNameLooseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHttpHeaderNameLoose.class, build.buf.validate.conformance.cases.StringHttpHeaderNameLoose.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringHttpHeaderNameLoose.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderNameLoose getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringHttpHeaderNameLoose.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderNameLoose build() { - build.buf.validate.conformance.cases.StringHttpHeaderNameLoose result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderNameLoose buildPartial() { - build.buf.validate.conformance.cases.StringHttpHeaderNameLoose result = new build.buf.validate.conformance.cases.StringHttpHeaderNameLoose(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringHttpHeaderNameLoose result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringHttpHeaderNameLoose) { - return mergeFrom((build.buf.validate.conformance.cases.StringHttpHeaderNameLoose)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringHttpHeaderNameLoose other) { - if (other == build.buf.validate.conformance.cases.StringHttpHeaderNameLoose.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHttpHeaderNameLoose) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringHttpHeaderNameLoose) - private static final build.buf.validate.conformance.cases.StringHttpHeaderNameLoose DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringHttpHeaderNameLoose(); - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderNameLoose getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringHttpHeaderNameLoose 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.StringHttpHeaderNameLoose getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLooseOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLooseOrBuilder.java deleted file mode 100644 index 2415a719..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameLooseOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringHttpHeaderNameLooseOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringHttpHeaderNameLoose) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameOrBuilder.java deleted file mode 100644 index 78783c7a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderNameOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringHttpHeaderNameOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringHttpHeaderName) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValue.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValue.java deleted file mode 100644 index 878a912c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValue.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderValue} - */ -public final class StringHttpHeaderValue extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringHttpHeaderValue) - StringHttpHeaderValueOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringHttpHeaderValue.class.getName()); - } - // Use StringHttpHeaderValue.newBuilder() to construct. - private StringHttpHeaderValue(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringHttpHeaderValue() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHttpHeaderValue.class, build.buf.validate.conformance.cases.StringHttpHeaderValue.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringHttpHeaderValue)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringHttpHeaderValue other = (build.buf.validate.conformance.cases.StringHttpHeaderValue) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderValue 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.StringHttpHeaderValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderValue 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.StringHttpHeaderValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderValue 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.StringHttpHeaderValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderValue 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.StringHttpHeaderValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderValue 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.StringHttpHeaderValue 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.StringHttpHeaderValue 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.StringHttpHeaderValue 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.StringHttpHeaderValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringHttpHeaderValue) - build.buf.validate.conformance.cases.StringHttpHeaderValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHttpHeaderValue.class, build.buf.validate.conformance.cases.StringHttpHeaderValue.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringHttpHeaderValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderValue getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringHttpHeaderValue.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderValue build() { - build.buf.validate.conformance.cases.StringHttpHeaderValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderValue buildPartial() { - build.buf.validate.conformance.cases.StringHttpHeaderValue result = new build.buf.validate.conformance.cases.StringHttpHeaderValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringHttpHeaderValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringHttpHeaderValue) { - return mergeFrom((build.buf.validate.conformance.cases.StringHttpHeaderValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringHttpHeaderValue other) { - if (other == build.buf.validate.conformance.cases.StringHttpHeaderValue.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHttpHeaderValue) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringHttpHeaderValue) - private static final build.buf.validate.conformance.cases.StringHttpHeaderValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringHttpHeaderValue(); - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringHttpHeaderValue 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.StringHttpHeaderValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLoose.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLoose.java deleted file mode 100644 index 2ee9b145..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLoose.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringHttpHeaderValueLoose} - */ -public final class StringHttpHeaderValueLoose extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringHttpHeaderValueLoose) - StringHttpHeaderValueLooseOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringHttpHeaderValueLoose.class.getName()); - } - // Use StringHttpHeaderValueLoose.newBuilder() to construct. - private StringHttpHeaderValueLoose(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringHttpHeaderValueLoose() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHttpHeaderValueLoose.class, build.buf.validate.conformance.cases.StringHttpHeaderValueLoose.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringHttpHeaderValueLoose)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringHttpHeaderValueLoose other = (build.buf.validate.conformance.cases.StringHttpHeaderValueLoose) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderValueLoose parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderValueLoose 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.StringHttpHeaderValueLoose parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderValueLoose 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.StringHttpHeaderValueLoose parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderValueLoose 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.StringHttpHeaderValueLoose parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringHttpHeaderValueLoose 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.StringHttpHeaderValueLoose parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderValueLoose 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.StringHttpHeaderValueLoose 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.StringHttpHeaderValueLoose 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.StringHttpHeaderValueLoose 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.StringHttpHeaderValueLoose} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringHttpHeaderValueLoose) - build.buf.validate.conformance.cases.StringHttpHeaderValueLooseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringHttpHeaderValueLoose.class, build.buf.validate.conformance.cases.StringHttpHeaderValueLoose.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringHttpHeaderValueLoose.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderValueLoose getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringHttpHeaderValueLoose.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderValueLoose build() { - build.buf.validate.conformance.cases.StringHttpHeaderValueLoose result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringHttpHeaderValueLoose buildPartial() { - build.buf.validate.conformance.cases.StringHttpHeaderValueLoose result = new build.buf.validate.conformance.cases.StringHttpHeaderValueLoose(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringHttpHeaderValueLoose result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringHttpHeaderValueLoose) { - return mergeFrom((build.buf.validate.conformance.cases.StringHttpHeaderValueLoose)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringHttpHeaderValueLoose other) { - if (other == build.buf.validate.conformance.cases.StringHttpHeaderValueLoose.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringHttpHeaderValueLoose) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringHttpHeaderValueLoose) - private static final build.buf.validate.conformance.cases.StringHttpHeaderValueLoose DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringHttpHeaderValueLoose(); - } - - public static build.buf.validate.conformance.cases.StringHttpHeaderValueLoose getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringHttpHeaderValueLoose 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.StringHttpHeaderValueLoose getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLooseOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLooseOrBuilder.java deleted file mode 100644 index d95a6f7c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueLooseOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringHttpHeaderValueLooseOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringHttpHeaderValueLoose) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueOrBuilder.java deleted file mode 100644 index 16eb6ecf..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringHttpHeaderValueOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringHttpHeaderValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringHttpHeaderValue) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIP.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIP.java deleted file mode 100644 index f642af67..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIP.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringIP} - */ -public final class StringIP extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringIP) - StringIPOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringIP.class.getName()); - } - // Use StringIP.newBuilder() to construct. - private StringIP(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringIP() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIP_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIP_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIP.class, build.buf.validate.conformance.cases.StringIP.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringIP)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringIP other = (build.buf.validate.conformance.cases.StringIP) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringIP parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIP 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.StringIP parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIP 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.StringIP parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIP 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.StringIP parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringIP 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.StringIP parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringIP 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.StringIP 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.StringIP 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.StringIP 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.StringIP} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringIP) - build.buf.validate.conformance.cases.StringIPOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIP_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIP_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIP.class, build.buf.validate.conformance.cases.StringIP.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringIP.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIP_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIP getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringIP.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIP build() { - build.buf.validate.conformance.cases.StringIP result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIP buildPartial() { - build.buf.validate.conformance.cases.StringIP result = new build.buf.validate.conformance.cases.StringIP(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringIP result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringIP) { - return mergeFrom((build.buf.validate.conformance.cases.StringIP)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringIP other) { - if (other == build.buf.validate.conformance.cases.StringIP.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIP) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringIP) - private static final build.buf.validate.conformance.cases.StringIP DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringIP(); - } - - public static build.buf.validate.conformance.cases.StringIP getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringIP 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.StringIP getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPOrBuilder.java deleted file mode 100644 index 281b9199..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringIPOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringIP) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefix.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefix.java deleted file mode 100644 index ea293706..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefix.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringIPPrefix} - */ -public final class StringIPPrefix extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringIPPrefix) - StringIPPrefixOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringIPPrefix.class.getName()); - } - // Use StringIPPrefix.newBuilder() to construct. - private StringIPPrefix(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringIPPrefix() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPPrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPPrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPPrefix.class, build.buf.validate.conformance.cases.StringIPPrefix.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringIPPrefix)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringIPPrefix other = (build.buf.validate.conformance.cases.StringIPPrefix) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringIPPrefix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPPrefix 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.StringIPPrefix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPPrefix 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.StringIPPrefix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPPrefix 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.StringIPPrefix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringIPPrefix 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.StringIPPrefix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringIPPrefix 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.StringIPPrefix 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.StringIPPrefix 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.StringIPPrefix 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.StringIPPrefix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringIPPrefix) - build.buf.validate.conformance.cases.StringIPPrefixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPPrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPPrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPPrefix.class, build.buf.validate.conformance.cases.StringIPPrefix.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringIPPrefix.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPPrefix_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPPrefix getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringIPPrefix.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPPrefix build() { - build.buf.validate.conformance.cases.StringIPPrefix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPPrefix buildPartial() { - build.buf.validate.conformance.cases.StringIPPrefix result = new build.buf.validate.conformance.cases.StringIPPrefix(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringIPPrefix result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringIPPrefix) { - return mergeFrom((build.buf.validate.conformance.cases.StringIPPrefix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringIPPrefix other) { - if (other == build.buf.validate.conformance.cases.StringIPPrefix.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPPrefix) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringIPPrefix) - private static final build.buf.validate.conformance.cases.StringIPPrefix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringIPPrefix(); - } - - public static build.buf.validate.conformance.cases.StringIPPrefix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringIPPrefix 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.StringIPPrefix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefixOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefixOrBuilder.java deleted file mode 100644 index 4fd69bc1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPPrefixOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringIPPrefixOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringIPPrefix) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLen.java deleted file mode 100644 index 352ceb65..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLen.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringIPWithPrefixLen} - */ -public final class StringIPWithPrefixLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringIPWithPrefixLen) - StringIPWithPrefixLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringIPWithPrefixLen.class.getName()); - } - // Use StringIPWithPrefixLen.newBuilder() to construct. - private StringIPWithPrefixLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringIPWithPrefixLen() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPWithPrefixLen.class, build.buf.validate.conformance.cases.StringIPWithPrefixLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringIPWithPrefixLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringIPWithPrefixLen other = (build.buf.validate.conformance.cases.StringIPWithPrefixLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringIPWithPrefixLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPWithPrefixLen 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.StringIPWithPrefixLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPWithPrefixLen 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.StringIPWithPrefixLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPWithPrefixLen 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.StringIPWithPrefixLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringIPWithPrefixLen 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.StringIPWithPrefixLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringIPWithPrefixLen 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.StringIPWithPrefixLen 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.StringIPWithPrefixLen 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.StringIPWithPrefixLen 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.StringIPWithPrefixLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringIPWithPrefixLen) - build.buf.validate.conformance.cases.StringIPWithPrefixLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPWithPrefixLen.class, build.buf.validate.conformance.cases.StringIPWithPrefixLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringIPWithPrefixLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPWithPrefixLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringIPWithPrefixLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPWithPrefixLen build() { - build.buf.validate.conformance.cases.StringIPWithPrefixLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPWithPrefixLen buildPartial() { - build.buf.validate.conformance.cases.StringIPWithPrefixLen result = new build.buf.validate.conformance.cases.StringIPWithPrefixLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringIPWithPrefixLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringIPWithPrefixLen) { - return mergeFrom((build.buf.validate.conformance.cases.StringIPWithPrefixLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringIPWithPrefixLen other) { - if (other == build.buf.validate.conformance.cases.StringIPWithPrefixLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPWithPrefixLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringIPWithPrefixLen) - private static final build.buf.validate.conformance.cases.StringIPWithPrefixLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringIPWithPrefixLen(); - } - - public static build.buf.validate.conformance.cases.StringIPWithPrefixLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringIPWithPrefixLen 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.StringIPWithPrefixLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLenOrBuilder.java deleted file mode 100644 index ad399266..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPWithPrefixLenOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringIPWithPrefixLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringIPWithPrefixLen) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4.java deleted file mode 100644 index e7400b95..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringIPv4} - */ -public final class StringIPv4 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringIPv4) - StringIPv4OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringIPv4.class.getName()); - } - // Use StringIPv4.newBuilder() to construct. - private StringIPv4(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringIPv4() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv4.class, build.buf.validate.conformance.cases.StringIPv4.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringIPv4)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringIPv4 other = (build.buf.validate.conformance.cases.StringIPv4) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringIPv4 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv4 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.StringIPv4 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv4 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.StringIPv4 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv4 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.StringIPv4 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringIPv4 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.StringIPv4 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringIPv4 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.StringIPv4 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.StringIPv4 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.StringIPv4 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.StringIPv4} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringIPv4) - build.buf.validate.conformance.cases.StringIPv4OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv4.class, build.buf.validate.conformance.cases.StringIPv4.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringIPv4.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv4 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringIPv4.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv4 build() { - build.buf.validate.conformance.cases.StringIPv4 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv4 buildPartial() { - build.buf.validate.conformance.cases.StringIPv4 result = new build.buf.validate.conformance.cases.StringIPv4(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringIPv4 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringIPv4) { - return mergeFrom((build.buf.validate.conformance.cases.StringIPv4)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringIPv4 other) { - if (other == build.buf.validate.conformance.cases.StringIPv4.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv4) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringIPv4) - private static final build.buf.validate.conformance.cases.StringIPv4 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringIPv4(); - } - - public static build.buf.validate.conformance.cases.StringIPv4 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringIPv4 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.StringIPv4 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4OrBuilder.java deleted file mode 100644 index b3c9ffd2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4OrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringIPv4OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringIPv4) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4Prefix.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4Prefix.java deleted file mode 100644 index 9077a11e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4Prefix.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringIPv4Prefix} - */ -public final class StringIPv4Prefix extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringIPv4Prefix) - StringIPv4PrefixOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringIPv4Prefix.class.getName()); - } - // Use StringIPv4Prefix.newBuilder() to construct. - private StringIPv4Prefix(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringIPv4Prefix() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4Prefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4Prefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv4Prefix.class, build.buf.validate.conformance.cases.StringIPv4Prefix.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringIPv4Prefix)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringIPv4Prefix other = (build.buf.validate.conformance.cases.StringIPv4Prefix) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringIPv4Prefix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv4Prefix 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.StringIPv4Prefix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv4Prefix 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.StringIPv4Prefix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv4Prefix 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.StringIPv4Prefix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringIPv4Prefix 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.StringIPv4Prefix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringIPv4Prefix 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.StringIPv4Prefix 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.StringIPv4Prefix 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.StringIPv4Prefix 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.StringIPv4Prefix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringIPv4Prefix) - build.buf.validate.conformance.cases.StringIPv4PrefixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4Prefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4Prefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv4Prefix.class, build.buf.validate.conformance.cases.StringIPv4Prefix.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringIPv4Prefix.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4Prefix_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv4Prefix getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringIPv4Prefix.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv4Prefix build() { - build.buf.validate.conformance.cases.StringIPv4Prefix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv4Prefix buildPartial() { - build.buf.validate.conformance.cases.StringIPv4Prefix result = new build.buf.validate.conformance.cases.StringIPv4Prefix(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringIPv4Prefix result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringIPv4Prefix) { - return mergeFrom((build.buf.validate.conformance.cases.StringIPv4Prefix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringIPv4Prefix other) { - if (other == build.buf.validate.conformance.cases.StringIPv4Prefix.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv4Prefix) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringIPv4Prefix) - private static final build.buf.validate.conformance.cases.StringIPv4Prefix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringIPv4Prefix(); - } - - public static build.buf.validate.conformance.cases.StringIPv4Prefix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringIPv4Prefix 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.StringIPv4Prefix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4PrefixOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4PrefixOrBuilder.java deleted file mode 100644 index 84f430d5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4PrefixOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringIPv4PrefixOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringIPv4Prefix) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLen.java deleted file mode 100644 index b2f8f2e2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLen.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringIPv4WithPrefixLen} - */ -public final class StringIPv4WithPrefixLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringIPv4WithPrefixLen) - StringIPv4WithPrefixLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringIPv4WithPrefixLen.class.getName()); - } - // Use StringIPv4WithPrefixLen.newBuilder() to construct. - private StringIPv4WithPrefixLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringIPv4WithPrefixLen() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv4WithPrefixLen.class, build.buf.validate.conformance.cases.StringIPv4WithPrefixLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringIPv4WithPrefixLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringIPv4WithPrefixLen other = (build.buf.validate.conformance.cases.StringIPv4WithPrefixLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringIPv4WithPrefixLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv4WithPrefixLen 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.StringIPv4WithPrefixLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv4WithPrefixLen 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.StringIPv4WithPrefixLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv4WithPrefixLen 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.StringIPv4WithPrefixLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringIPv4WithPrefixLen 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.StringIPv4WithPrefixLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringIPv4WithPrefixLen 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.StringIPv4WithPrefixLen 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.StringIPv4WithPrefixLen 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.StringIPv4WithPrefixLen 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.StringIPv4WithPrefixLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringIPv4WithPrefixLen) - build.buf.validate.conformance.cases.StringIPv4WithPrefixLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv4WithPrefixLen.class, build.buf.validate.conformance.cases.StringIPv4WithPrefixLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringIPv4WithPrefixLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv4WithPrefixLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringIPv4WithPrefixLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv4WithPrefixLen build() { - build.buf.validate.conformance.cases.StringIPv4WithPrefixLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv4WithPrefixLen buildPartial() { - build.buf.validate.conformance.cases.StringIPv4WithPrefixLen result = new build.buf.validate.conformance.cases.StringIPv4WithPrefixLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringIPv4WithPrefixLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringIPv4WithPrefixLen) { - return mergeFrom((build.buf.validate.conformance.cases.StringIPv4WithPrefixLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringIPv4WithPrefixLen other) { - if (other == build.buf.validate.conformance.cases.StringIPv4WithPrefixLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv4WithPrefixLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringIPv4WithPrefixLen) - private static final build.buf.validate.conformance.cases.StringIPv4WithPrefixLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringIPv4WithPrefixLen(); - } - - public static build.buf.validate.conformance.cases.StringIPv4WithPrefixLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringIPv4WithPrefixLen 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.StringIPv4WithPrefixLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLenOrBuilder.java deleted file mode 100644 index a7ea15de..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv4WithPrefixLenOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringIPv4WithPrefixLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringIPv4WithPrefixLen) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6.java deleted file mode 100644 index 602b0a82..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringIPv6} - */ -public final class StringIPv6 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringIPv6) - StringIPv6OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringIPv6.class.getName()); - } - // Use StringIPv6.newBuilder() to construct. - private StringIPv6(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringIPv6() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv6.class, build.buf.validate.conformance.cases.StringIPv6.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringIPv6)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringIPv6 other = (build.buf.validate.conformance.cases.StringIPv6) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringIPv6 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv6 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.StringIPv6 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv6 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.StringIPv6 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv6 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.StringIPv6 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringIPv6 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.StringIPv6 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringIPv6 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.StringIPv6 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.StringIPv6 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.StringIPv6 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.StringIPv6} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringIPv6) - build.buf.validate.conformance.cases.StringIPv6OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv6.class, build.buf.validate.conformance.cases.StringIPv6.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringIPv6.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv6 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringIPv6.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv6 build() { - build.buf.validate.conformance.cases.StringIPv6 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv6 buildPartial() { - build.buf.validate.conformance.cases.StringIPv6 result = new build.buf.validate.conformance.cases.StringIPv6(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringIPv6 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringIPv6) { - return mergeFrom((build.buf.validate.conformance.cases.StringIPv6)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringIPv6 other) { - if (other == build.buf.validate.conformance.cases.StringIPv6.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv6) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringIPv6) - private static final build.buf.validate.conformance.cases.StringIPv6 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringIPv6(); - } - - public static build.buf.validate.conformance.cases.StringIPv6 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringIPv6 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.StringIPv6 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6OrBuilder.java deleted file mode 100644 index c48ae589..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6OrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringIPv6OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringIPv6) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6Prefix.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6Prefix.java deleted file mode 100644 index 1b9d895a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6Prefix.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringIPv6Prefix} - */ -public final class StringIPv6Prefix extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringIPv6Prefix) - StringIPv6PrefixOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringIPv6Prefix.class.getName()); - } - // Use StringIPv6Prefix.newBuilder() to construct. - private StringIPv6Prefix(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringIPv6Prefix() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6Prefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6Prefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv6Prefix.class, build.buf.validate.conformance.cases.StringIPv6Prefix.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringIPv6Prefix)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringIPv6Prefix other = (build.buf.validate.conformance.cases.StringIPv6Prefix) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringIPv6Prefix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv6Prefix 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.StringIPv6Prefix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv6Prefix 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.StringIPv6Prefix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv6Prefix 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.StringIPv6Prefix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringIPv6Prefix 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.StringIPv6Prefix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringIPv6Prefix 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.StringIPv6Prefix 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.StringIPv6Prefix 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.StringIPv6Prefix 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.StringIPv6Prefix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringIPv6Prefix) - build.buf.validate.conformance.cases.StringIPv6PrefixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6Prefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6Prefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv6Prefix.class, build.buf.validate.conformance.cases.StringIPv6Prefix.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringIPv6Prefix.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6Prefix_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv6Prefix getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringIPv6Prefix.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv6Prefix build() { - build.buf.validate.conformance.cases.StringIPv6Prefix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv6Prefix buildPartial() { - build.buf.validate.conformance.cases.StringIPv6Prefix result = new build.buf.validate.conformance.cases.StringIPv6Prefix(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringIPv6Prefix result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringIPv6Prefix) { - return mergeFrom((build.buf.validate.conformance.cases.StringIPv6Prefix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringIPv6Prefix other) { - if (other == build.buf.validate.conformance.cases.StringIPv6Prefix.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv6Prefix) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringIPv6Prefix) - private static final build.buf.validate.conformance.cases.StringIPv6Prefix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringIPv6Prefix(); - } - - public static build.buf.validate.conformance.cases.StringIPv6Prefix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringIPv6Prefix 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.StringIPv6Prefix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6PrefixOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6PrefixOrBuilder.java deleted file mode 100644 index 169b45e0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6PrefixOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringIPv6PrefixOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringIPv6Prefix) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLen.java deleted file mode 100644 index 4b8e7170..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLen.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringIPv6WithPrefixLen} - */ -public final class StringIPv6WithPrefixLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringIPv6WithPrefixLen) - StringIPv6WithPrefixLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringIPv6WithPrefixLen.class.getName()); - } - // Use StringIPv6WithPrefixLen.newBuilder() to construct. - private StringIPv6WithPrefixLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringIPv6WithPrefixLen() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv6WithPrefixLen.class, build.buf.validate.conformance.cases.StringIPv6WithPrefixLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringIPv6WithPrefixLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringIPv6WithPrefixLen other = (build.buf.validate.conformance.cases.StringIPv6WithPrefixLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringIPv6WithPrefixLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv6WithPrefixLen 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.StringIPv6WithPrefixLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv6WithPrefixLen 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.StringIPv6WithPrefixLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIPv6WithPrefixLen 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.StringIPv6WithPrefixLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringIPv6WithPrefixLen 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.StringIPv6WithPrefixLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringIPv6WithPrefixLen 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.StringIPv6WithPrefixLen 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.StringIPv6WithPrefixLen 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.StringIPv6WithPrefixLen 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.StringIPv6WithPrefixLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringIPv6WithPrefixLen) - build.buf.validate.conformance.cases.StringIPv6WithPrefixLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIPv6WithPrefixLen.class, build.buf.validate.conformance.cases.StringIPv6WithPrefixLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringIPv6WithPrefixLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv6WithPrefixLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringIPv6WithPrefixLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv6WithPrefixLen build() { - build.buf.validate.conformance.cases.StringIPv6WithPrefixLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIPv6WithPrefixLen buildPartial() { - build.buf.validate.conformance.cases.StringIPv6WithPrefixLen result = new build.buf.validate.conformance.cases.StringIPv6WithPrefixLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringIPv6WithPrefixLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringIPv6WithPrefixLen) { - return mergeFrom((build.buf.validate.conformance.cases.StringIPv6WithPrefixLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringIPv6WithPrefixLen other) { - if (other == build.buf.validate.conformance.cases.StringIPv6WithPrefixLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIPv6WithPrefixLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringIPv6WithPrefixLen) - private static final build.buf.validate.conformance.cases.StringIPv6WithPrefixLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringIPv6WithPrefixLen(); - } - - public static build.buf.validate.conformance.cases.StringIPv6WithPrefixLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringIPv6WithPrefixLen 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.StringIPv6WithPrefixLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLenOrBuilder.java deleted file mode 100644 index d21ba00b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIPv6WithPrefixLenOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringIPv6WithPrefixLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringIPv6WithPrefixLen) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringIn.java deleted file mode 100644 index f36565e2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringIn.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringIn} - */ -public final class StringIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringIn) - StringInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringIn.class.getName()); - } - // Use StringIn.newBuilder() to construct. - private StringIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringIn() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIn.class, build.buf.validate.conformance.cases.StringIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringIn other = (build.buf.validate.conformance.cases.StringIn) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIn 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.StringIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIn 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.StringIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringIn 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.StringIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringIn 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.StringIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringIn 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.StringIn 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.StringIn 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.StringIn 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.StringIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringIn) - build.buf.validate.conformance.cases.StringInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringIn.class, build.buf.validate.conformance.cases.StringIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIn build() { - build.buf.validate.conformance.cases.StringIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringIn buildPartial() { - build.buf.validate.conformance.cases.StringIn result = new build.buf.validate.conformance.cases.StringIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringIn) { - return mergeFrom((build.buf.validate.conformance.cases.StringIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringIn other) { - if (other == build.buf.validate.conformance.cases.StringIn.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringIn) - private static final build.buf.validate.conformance.cases.StringIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringIn(); - } - - public static build.buf.validate.conformance.cases.StringIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringIn 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.StringIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneof.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneof.java deleted file mode 100644 index f6c35a1b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneof.java +++ /dev/null @@ -1,613 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringInOneof} - */ -public final class StringInOneof extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringInOneof) - StringInOneofOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringInOneof.class.getName()); - } - // Use StringInOneof.newBuilder() to construct. - private StringInOneof(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringInOneof() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringInOneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringInOneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringInOneof.class, build.buf.validate.conformance.cases.StringInOneof.Builder.class); - } - - private int fooCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object foo_; - public enum FooCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BAR(1), - FOO_NOT_SET(0); - private final int value; - private FooCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FooCase valueOf(int value) { - return forNumber(value); - } - - public static FooCase forNumber(int value) { - switch (value) { - case 1: return BAR; - case 0: return FOO_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public FooCase - getFooCase() { - return FooCase.forNumber( - fooCase_); - } - - public static final int BAR_FIELD_NUMBER = 1; - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @return Whether the bar field is set. - */ - public boolean hasBar() { - return fooCase_ == 1; - } - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @return The bar. - */ - public java.lang.String getBar() { - java.lang.Object ref = ""; - if (fooCase_ == 1) { - ref = foo_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (fooCase_ == 1) { - foo_ = s; - } - return s; - } - } - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @return The bytes for bar. - */ - public com.google.protobuf.ByteString - getBarBytes() { - java.lang.Object ref = ""; - if (fooCase_ == 1) { - ref = foo_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (fooCase_ == 1) { - foo_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (fooCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, foo_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fooCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, foo_); - } - 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.StringInOneof)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringInOneof other = (build.buf.validate.conformance.cases.StringInOneof) obj; - - if (!getFooCase().equals(other.getFooCase())) return false; - switch (fooCase_) { - case 1: - if (!getBar() - .equals(other.getBar())) return false; - break; - case 0: - default: - } - 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(); - switch (fooCase_) { - case 1: - hash = (37 * hash) + BAR_FIELD_NUMBER; - hash = (53 * hash) + getBar().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringInOneof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringInOneof 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.StringInOneof parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringInOneof 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.StringInOneof parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringInOneof 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.StringInOneof parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringInOneof 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.StringInOneof parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringInOneof 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.StringInOneof 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.StringInOneof 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.StringInOneof 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.StringInOneof} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringInOneof) - build.buf.validate.conformance.cases.StringInOneofOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringInOneof_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringInOneof_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringInOneof.class, build.buf.validate.conformance.cases.StringInOneof.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringInOneof.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fooCase_ = 0; - foo_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringInOneof_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringInOneof getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringInOneof.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringInOneof build() { - build.buf.validate.conformance.cases.StringInOneof result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringInOneof buildPartial() { - build.buf.validate.conformance.cases.StringInOneof result = new build.buf.validate.conformance.cases.StringInOneof(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringInOneof result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.cases.StringInOneof result) { - result.fooCase_ = fooCase_; - result.foo_ = this.foo_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringInOneof) { - return mergeFrom((build.buf.validate.conformance.cases.StringInOneof)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringInOneof other) { - if (other == build.buf.validate.conformance.cases.StringInOneof.getDefaultInstance()) return this; - switch (other.getFooCase()) { - case BAR: { - fooCase_ = 1; - foo_ = other.foo_; - onChanged(); - break; - } - case FOO_NOT_SET: { - break; - } - } - 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: { - java.lang.String s = input.readStringRequireUtf8(); - fooCase_ = 1; - foo_ = s; - 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 fooCase_ = 0; - private java.lang.Object foo_; - public FooCase - getFooCase() { - return FooCase.forNumber( - fooCase_); - } - - public Builder clearFoo() { - fooCase_ = 0; - foo_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @return Whether the bar field is set. - */ - @java.lang.Override - public boolean hasBar() { - return fooCase_ == 1; - } - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @return The bar. - */ - @java.lang.Override - public java.lang.String getBar() { - java.lang.Object ref = ""; - if (fooCase_ == 1) { - ref = foo_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (fooCase_ == 1) { - foo_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @return The bytes for bar. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBarBytes() { - java.lang.Object ref = ""; - if (fooCase_ == 1) { - ref = foo_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (fooCase_ == 1) { - foo_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @param value The bar to set. - * @return This builder for chaining. - */ - public Builder setBar( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fooCase_ = 1; - foo_ = value; - onChanged(); - return this; - } - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearBar() { - if (fooCase_ == 1) { - fooCase_ = 0; - foo_ = null; - onChanged(); - } - return this; - } - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @param value The bytes for bar to set. - * @return This builder for chaining. - */ - public Builder setBarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fooCase_ = 1; - foo_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringInOneof) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringInOneof) - private static final build.buf.validate.conformance.cases.StringInOneof DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringInOneof(); - } - - public static build.buf.validate.conformance.cases.StringInOneof getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringInOneof 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.StringInOneof getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneofOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneofOrBuilder.java deleted file mode 100644 index 3af1ecfd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOneofOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringInOneofOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringInOneof) - com.google.protobuf.MessageOrBuilder { - - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @return Whether the bar field is set. - */ - boolean hasBar(); - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @return The bar. - */ - java.lang.String getBar(); - /** - * string bar = 1 [json_name = "bar", (.buf.validate.field) = { ... } - * @return The bytes for bar. - */ - com.google.protobuf.ByteString - getBarBytes(); - - build.buf.validate.conformance.cases.StringInOneof.FooCase getFooCase(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOrBuilder.java deleted file mode 100644 index d6d1ccf3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringInOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringIn) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringLen.java deleted file mode 100644 index 4994e964..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLen.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringLen} - */ -public final class StringLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringLen) - StringLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringLen.class.getName()); - } - // Use StringLen.newBuilder() to construct. - private StringLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringLen() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringLen.class, build.buf.validate.conformance.cases.StringLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringLen other = (build.buf.validate.conformance.cases.StringLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringLen 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.StringLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringLen 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.StringLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringLen 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.StringLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringLen 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.StringLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringLen 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.StringLen 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.StringLen 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.StringLen 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.StringLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringLen) - build.buf.validate.conformance.cases.StringLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringLen.class, build.buf.validate.conformance.cases.StringLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringLen build() { - build.buf.validate.conformance.cases.StringLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringLen buildPartial() { - build.buf.validate.conformance.cases.StringLen result = new build.buf.validate.conformance.cases.StringLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringLen) { - return mergeFrom((build.buf.validate.conformance.cases.StringLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringLen other) { - if (other == build.buf.validate.conformance.cases.StringLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringLen) - private static final build.buf.validate.conformance.cases.StringLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringLen(); - } - - public static build.buf.validate.conformance.cases.StringLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringLen 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.StringLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytes.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytes.java deleted file mode 100644 index 0053bf17..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytes.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringLenBytes} - */ -public final class StringLenBytes extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringLenBytes) - StringLenBytesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringLenBytes.class.getName()); - } - // Use StringLenBytes.newBuilder() to construct. - private StringLenBytes(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringLenBytes() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLenBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLenBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringLenBytes.class, build.buf.validate.conformance.cases.StringLenBytes.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringLenBytes)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringLenBytes other = (build.buf.validate.conformance.cases.StringLenBytes) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringLenBytes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringLenBytes 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.StringLenBytes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringLenBytes 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.StringLenBytes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringLenBytes 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.StringLenBytes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringLenBytes 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.StringLenBytes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringLenBytes 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.StringLenBytes 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.StringLenBytes 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.StringLenBytes 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.StringLenBytes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringLenBytes) - build.buf.validate.conformance.cases.StringLenBytesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLenBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLenBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringLenBytes.class, build.buf.validate.conformance.cases.StringLenBytes.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringLenBytes.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringLenBytes_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringLenBytes getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringLenBytes.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringLenBytes build() { - build.buf.validate.conformance.cases.StringLenBytes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringLenBytes buildPartial() { - build.buf.validate.conformance.cases.StringLenBytes result = new build.buf.validate.conformance.cases.StringLenBytes(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringLenBytes result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringLenBytes) { - return mergeFrom((build.buf.validate.conformance.cases.StringLenBytes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringLenBytes other) { - if (other == build.buf.validate.conformance.cases.StringLenBytes.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringLenBytes) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringLenBytes) - private static final build.buf.validate.conformance.cases.StringLenBytes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringLenBytes(); - } - - public static build.buf.validate.conformance.cases.StringLenBytes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringLenBytes 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.StringLenBytes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytesOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytesOrBuilder.java deleted file mode 100644 index 878fb0c0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenBytesOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringLenBytesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringLenBytes) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenOrBuilder.java deleted file mode 100644 index 977110b6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringLenOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringLen) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytes.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytes.java deleted file mode 100644 index 4ca01b2c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytes.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringMaxBytes} - */ -public final class StringMaxBytes extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringMaxBytes) - StringMaxBytesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringMaxBytes.class.getName()); - } - // Use StringMaxBytes.newBuilder() to construct. - private StringMaxBytes(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringMaxBytes() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMaxBytes.class, build.buf.validate.conformance.cases.StringMaxBytes.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringMaxBytes)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringMaxBytes other = (build.buf.validate.conformance.cases.StringMaxBytes) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringMaxBytes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMaxBytes 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.StringMaxBytes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMaxBytes 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.StringMaxBytes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMaxBytes 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.StringMaxBytes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringMaxBytes 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.StringMaxBytes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringMaxBytes 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.StringMaxBytes 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.StringMaxBytes 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.StringMaxBytes 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.StringMaxBytes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringMaxBytes) - build.buf.validate.conformance.cases.StringMaxBytesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMaxBytes.class, build.buf.validate.conformance.cases.StringMaxBytes.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringMaxBytes.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxBytes_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMaxBytes getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringMaxBytes.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMaxBytes build() { - build.buf.validate.conformance.cases.StringMaxBytes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMaxBytes buildPartial() { - build.buf.validate.conformance.cases.StringMaxBytes result = new build.buf.validate.conformance.cases.StringMaxBytes(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringMaxBytes result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringMaxBytes) { - return mergeFrom((build.buf.validate.conformance.cases.StringMaxBytes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringMaxBytes other) { - if (other == build.buf.validate.conformance.cases.StringMaxBytes.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMaxBytes) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringMaxBytes) - private static final build.buf.validate.conformance.cases.StringMaxBytes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringMaxBytes(); - } - - public static build.buf.validate.conformance.cases.StringMaxBytes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringMaxBytes 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.StringMaxBytes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytesOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytesOrBuilder.java deleted file mode 100644 index 1a8493da..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxBytesOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringMaxBytesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringMaxBytes) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLen.java deleted file mode 100644 index 0539b43d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLen.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringMaxLen} - */ -public final class StringMaxLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringMaxLen) - StringMaxLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringMaxLen.class.getName()); - } - // Use StringMaxLen.newBuilder() to construct. - private StringMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringMaxLen() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMaxLen.class, build.buf.validate.conformance.cases.StringMaxLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringMaxLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringMaxLen other = (build.buf.validate.conformance.cases.StringMaxLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringMaxLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMaxLen 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.StringMaxLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMaxLen 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.StringMaxLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMaxLen 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.StringMaxLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringMaxLen 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.StringMaxLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringMaxLen 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.StringMaxLen 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.StringMaxLen 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.StringMaxLen 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.StringMaxLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringMaxLen) - build.buf.validate.conformance.cases.StringMaxLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMaxLen.class, build.buf.validate.conformance.cases.StringMaxLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringMaxLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMaxLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMaxLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringMaxLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMaxLen build() { - build.buf.validate.conformance.cases.StringMaxLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMaxLen buildPartial() { - build.buf.validate.conformance.cases.StringMaxLen result = new build.buf.validate.conformance.cases.StringMaxLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringMaxLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringMaxLen) { - return mergeFrom((build.buf.validate.conformance.cases.StringMaxLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringMaxLen other) { - if (other == build.buf.validate.conformance.cases.StringMaxLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMaxLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringMaxLen) - private static final build.buf.validate.conformance.cases.StringMaxLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringMaxLen(); - } - - public static build.buf.validate.conformance.cases.StringMaxLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringMaxLen 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.StringMaxLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLenOrBuilder.java deleted file mode 100644 index b8517a98..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMaxLenOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringMaxLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringMaxLen) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytes.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytes.java deleted file mode 100644 index e2fbb669..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytes.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringMinBytes} - */ -public final class StringMinBytes extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringMinBytes) - StringMinBytesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringMinBytes.class.getName()); - } - // Use StringMinBytes.newBuilder() to construct. - private StringMinBytes(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringMinBytes() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMinBytes.class, build.buf.validate.conformance.cases.StringMinBytes.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringMinBytes)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringMinBytes other = (build.buf.validate.conformance.cases.StringMinBytes) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringMinBytes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinBytes 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.StringMinBytes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinBytes 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.StringMinBytes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinBytes 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.StringMinBytes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringMinBytes 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.StringMinBytes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringMinBytes 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.StringMinBytes 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.StringMinBytes 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.StringMinBytes 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.StringMinBytes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringMinBytes) - build.buf.validate.conformance.cases.StringMinBytesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMinBytes.class, build.buf.validate.conformance.cases.StringMinBytes.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringMinBytes.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinBytes_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinBytes getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringMinBytes.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinBytes build() { - build.buf.validate.conformance.cases.StringMinBytes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinBytes buildPartial() { - build.buf.validate.conformance.cases.StringMinBytes result = new build.buf.validate.conformance.cases.StringMinBytes(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringMinBytes result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringMinBytes) { - return mergeFrom((build.buf.validate.conformance.cases.StringMinBytes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringMinBytes other) { - if (other == build.buf.validate.conformance.cases.StringMinBytes.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMinBytes) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringMinBytes) - private static final build.buf.validate.conformance.cases.StringMinBytes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringMinBytes(); - } - - public static build.buf.validate.conformance.cases.StringMinBytes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringMinBytes 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.StringMinBytes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytesOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytesOrBuilder.java deleted file mode 100644 index 9148b197..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinBytesOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringMinBytesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringMinBytes) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLen.java deleted file mode 100644 index 87a95c91..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLen.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringMinLen} - */ -public final class StringMinLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringMinLen) - StringMinLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringMinLen.class.getName()); - } - // Use StringMinLen.newBuilder() to construct. - private StringMinLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringMinLen() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMinLen.class, build.buf.validate.conformance.cases.StringMinLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringMinLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringMinLen other = (build.buf.validate.conformance.cases.StringMinLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringMinLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinLen 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.StringMinLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinLen 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.StringMinLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinLen 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.StringMinLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringMinLen 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.StringMinLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringMinLen 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.StringMinLen 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.StringMinLen 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.StringMinLen 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.StringMinLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringMinLen) - build.buf.validate.conformance.cases.StringMinLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMinLen.class, build.buf.validate.conformance.cases.StringMinLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringMinLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringMinLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinLen build() { - build.buf.validate.conformance.cases.StringMinLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinLen buildPartial() { - build.buf.validate.conformance.cases.StringMinLen result = new build.buf.validate.conformance.cases.StringMinLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringMinLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringMinLen) { - return mergeFrom((build.buf.validate.conformance.cases.StringMinLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringMinLen other) { - if (other == build.buf.validate.conformance.cases.StringMinLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMinLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringMinLen) - private static final build.buf.validate.conformance.cases.StringMinLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringMinLen(); - } - - public static build.buf.validate.conformance.cases.StringMinLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringMinLen 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.StringMinLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLenOrBuilder.java deleted file mode 100644 index 7cf4404a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinLenOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringMinLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringMinLen) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytes.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytes.java deleted file mode 100644 index dd45e488..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytes.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringMinMaxBytes} - */ -public final class StringMinMaxBytes extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringMinMaxBytes) - StringMinMaxBytesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringMinMaxBytes.class.getName()); - } - // Use StringMinMaxBytes.newBuilder() to construct. - private StringMinMaxBytes(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringMinMaxBytes() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMinMaxBytes.class, build.buf.validate.conformance.cases.StringMinMaxBytes.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringMinMaxBytes)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringMinMaxBytes other = (build.buf.validate.conformance.cases.StringMinMaxBytes) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringMinMaxBytes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinMaxBytes 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.StringMinMaxBytes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinMaxBytes 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.StringMinMaxBytes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinMaxBytes 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.StringMinMaxBytes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringMinMaxBytes 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.StringMinMaxBytes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringMinMaxBytes 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.StringMinMaxBytes 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.StringMinMaxBytes 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.StringMinMaxBytes 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.StringMinMaxBytes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringMinMaxBytes) - build.buf.validate.conformance.cases.StringMinMaxBytesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMinMaxBytes.class, build.buf.validate.conformance.cases.StringMinMaxBytes.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringMinMaxBytes.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxBytes_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinMaxBytes getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringMinMaxBytes.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinMaxBytes build() { - build.buf.validate.conformance.cases.StringMinMaxBytes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinMaxBytes buildPartial() { - build.buf.validate.conformance.cases.StringMinMaxBytes result = new build.buf.validate.conformance.cases.StringMinMaxBytes(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringMinMaxBytes result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringMinMaxBytes) { - return mergeFrom((build.buf.validate.conformance.cases.StringMinMaxBytes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringMinMaxBytes other) { - if (other == build.buf.validate.conformance.cases.StringMinMaxBytes.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMinMaxBytes) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringMinMaxBytes) - private static final build.buf.validate.conformance.cases.StringMinMaxBytes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringMinMaxBytes(); - } - - public static build.buf.validate.conformance.cases.StringMinMaxBytes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringMinMaxBytes 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.StringMinMaxBytes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytesOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytesOrBuilder.java deleted file mode 100644 index 4a9de6a7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxBytesOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringMinMaxBytesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringMinMaxBytes) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLen.java deleted file mode 100644 index 428acc98..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLen.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringMinMaxLen} - */ -public final class StringMinMaxLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringMinMaxLen) - StringMinMaxLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringMinMaxLen.class.getName()); - } - // Use StringMinMaxLen.newBuilder() to construct. - private StringMinMaxLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringMinMaxLen() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMinMaxLen.class, build.buf.validate.conformance.cases.StringMinMaxLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringMinMaxLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringMinMaxLen other = (build.buf.validate.conformance.cases.StringMinMaxLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringMinMaxLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinMaxLen 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.StringMinMaxLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinMaxLen 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.StringMinMaxLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringMinMaxLen 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.StringMinMaxLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringMinMaxLen 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.StringMinMaxLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringMinMaxLen 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.StringMinMaxLen 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.StringMinMaxLen 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.StringMinMaxLen 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.StringMinMaxLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringMinMaxLen) - build.buf.validate.conformance.cases.StringMinMaxLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringMinMaxLen.class, build.buf.validate.conformance.cases.StringMinMaxLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringMinMaxLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringMinMaxLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinMaxLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringMinMaxLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinMaxLen build() { - build.buf.validate.conformance.cases.StringMinMaxLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringMinMaxLen buildPartial() { - build.buf.validate.conformance.cases.StringMinMaxLen result = new build.buf.validate.conformance.cases.StringMinMaxLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringMinMaxLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringMinMaxLen) { - return mergeFrom((build.buf.validate.conformance.cases.StringMinMaxLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringMinMaxLen other) { - if (other == build.buf.validate.conformance.cases.StringMinMaxLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringMinMaxLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringMinMaxLen) - private static final build.buf.validate.conformance.cases.StringMinMaxLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringMinMaxLen(); - } - - public static build.buf.validate.conformance.cases.StringMinMaxLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringMinMaxLen 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.StringMinMaxLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLenOrBuilder.java deleted file mode 100644 index e75ce391..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringMinMaxLenOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringMinMaxLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringMinMaxLen) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNone.java deleted file mode 100644 index 65c1b893..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNone.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNone} - */ -public final class StringNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNone) - StringNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNone.class.getName()); - } - // Use StringNone.newBuilder() to construct. - private StringNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNone() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNone.class, build.buf.validate.conformance.cases.StringNone.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNone other = (build.buf.validate.conformance.cases.StringNone) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNone 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.StringNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNone 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.StringNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNone 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.StringNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNone 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.StringNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNone 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.StringNone 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.StringNone 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.StringNone 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.StringNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNone) - build.buf.validate.conformance.cases.StringNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNone.class, build.buf.validate.conformance.cases.StringNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNone.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNone build() { - build.buf.validate.conformance.cases.StringNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNone buildPartial() { - build.buf.validate.conformance.cases.StringNone result = new build.buf.validate.conformance.cases.StringNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNone result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNone) { - return mergeFrom((build.buf.validate.conformance.cases.StringNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNone other) { - if (other == build.buf.validate.conformance.cases.StringNone.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val"]; - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNone) - private static final build.buf.validate.conformance.cases.StringNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNone(); - } - - public static build.buf.validate.conformance.cases.StringNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNone 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.StringNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNoneOrBuilder.java deleted file mode 100644 index 0c6e73d6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNoneOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNone) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val"]; - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val"]; - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotAddress.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotAddress.java deleted file mode 100644 index 6ff421d0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotAddress.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotAddress} - */ -public final class StringNotAddress extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotAddress) - StringNotAddressOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotAddress.class.getName()); - } - // Use StringNotAddress.newBuilder() to construct. - private StringNotAddress(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotAddress() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotAddress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotAddress.class, build.buf.validate.conformance.cases.StringNotAddress.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotAddress)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotAddress other = (build.buf.validate.conformance.cases.StringNotAddress) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotAddress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotAddress 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.StringNotAddress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotAddress 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.StringNotAddress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotAddress 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.StringNotAddress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotAddress 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.StringNotAddress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotAddress 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.StringNotAddress 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.StringNotAddress 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.StringNotAddress 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.StringNotAddress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotAddress) - build.buf.validate.conformance.cases.StringNotAddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotAddress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotAddress.class, build.buf.validate.conformance.cases.StringNotAddress.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotAddress.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotAddress_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotAddress getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotAddress.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotAddress build() { - build.buf.validate.conformance.cases.StringNotAddress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotAddress buildPartial() { - build.buf.validate.conformance.cases.StringNotAddress result = new build.buf.validate.conformance.cases.StringNotAddress(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotAddress result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotAddress) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotAddress)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotAddress other) { - if (other == build.buf.validate.conformance.cases.StringNotAddress.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotAddress) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotAddress) - private static final build.buf.validate.conformance.cases.StringNotAddress DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotAddress(); - } - - public static build.buf.validate.conformance.cases.StringNotAddress getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotAddress 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.StringNotAddress getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotAddressOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotAddressOrBuilder.java deleted file mode 100644 index 440745f4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotAddressOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotAddressOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotAddress) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContains.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContains.java deleted file mode 100644 index eaf7ef69..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContains.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotContains} - */ -public final class StringNotContains extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotContains) - StringNotContainsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotContains.class.getName()); - } - // Use StringNotContains.newBuilder() to construct. - private StringNotContains(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotContains() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotContains_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotContains_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotContains.class, build.buf.validate.conformance.cases.StringNotContains.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotContains)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotContains other = (build.buf.validate.conformance.cases.StringNotContains) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotContains parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotContains 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.StringNotContains parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotContains 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.StringNotContains parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotContains 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.StringNotContains parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotContains 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.StringNotContains parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotContains 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.StringNotContains 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.StringNotContains 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.StringNotContains 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.StringNotContains} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotContains) - build.buf.validate.conformance.cases.StringNotContainsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotContains_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotContains_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotContains.class, build.buf.validate.conformance.cases.StringNotContains.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotContains.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotContains_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotContains getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotContains.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotContains build() { - build.buf.validate.conformance.cases.StringNotContains result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotContains buildPartial() { - build.buf.validate.conformance.cases.StringNotContains result = new build.buf.validate.conformance.cases.StringNotContains(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotContains result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotContains) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotContains)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotContains other) { - if (other == build.buf.validate.conformance.cases.StringNotContains.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotContains) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotContains) - private static final build.buf.validate.conformance.cases.StringNotContains DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotContains(); - } - - public static build.buf.validate.conformance.cases.StringNotContains getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotContains 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.StringNotContains getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContainsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContainsOrBuilder.java deleted file mode 100644 index 006822ce..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotContainsOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotContainsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotContains) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotEmail.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotEmail.java deleted file mode 100644 index c772e1ed..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotEmail.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotEmail} - */ -public final class StringNotEmail extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotEmail) - StringNotEmailOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotEmail.class.getName()); - } - // Use StringNotEmail.newBuilder() to construct. - private StringNotEmail(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotEmail() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotEmail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotEmail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotEmail.class, build.buf.validate.conformance.cases.StringNotEmail.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotEmail)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotEmail other = (build.buf.validate.conformance.cases.StringNotEmail) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotEmail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotEmail 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.StringNotEmail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotEmail 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.StringNotEmail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotEmail 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.StringNotEmail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotEmail 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.StringNotEmail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotEmail 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.StringNotEmail 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.StringNotEmail 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.StringNotEmail 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.StringNotEmail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotEmail) - build.buf.validate.conformance.cases.StringNotEmailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotEmail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotEmail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotEmail.class, build.buf.validate.conformance.cases.StringNotEmail.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotEmail.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotEmail_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotEmail getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotEmail.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotEmail build() { - build.buf.validate.conformance.cases.StringNotEmail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotEmail buildPartial() { - build.buf.validate.conformance.cases.StringNotEmail result = new build.buf.validate.conformance.cases.StringNotEmail(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotEmail result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotEmail) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotEmail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotEmail other) { - if (other == build.buf.validate.conformance.cases.StringNotEmail.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotEmail) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotEmail) - private static final build.buf.validate.conformance.cases.StringNotEmail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotEmail(); - } - - public static build.buf.validate.conformance.cases.StringNotEmail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotEmail 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.StringNotEmail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotEmailOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotEmailOrBuilder.java deleted file mode 100644 index a000391e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotEmailOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotEmailOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotEmail) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotHostname.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotHostname.java deleted file mode 100644 index 74b7574e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotHostname.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotHostname} - */ -public final class StringNotHostname extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotHostname) - StringNotHostnameOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotHostname.class.getName()); - } - // Use StringNotHostname.newBuilder() to construct. - private StringNotHostname(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotHostname() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotHostname_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotHostname_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotHostname.class, build.buf.validate.conformance.cases.StringNotHostname.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotHostname)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotHostname other = (build.buf.validate.conformance.cases.StringNotHostname) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotHostname parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotHostname 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.StringNotHostname parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotHostname 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.StringNotHostname parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotHostname 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.StringNotHostname parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotHostname 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.StringNotHostname parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotHostname 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.StringNotHostname 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.StringNotHostname 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.StringNotHostname 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.StringNotHostname} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotHostname) - build.buf.validate.conformance.cases.StringNotHostnameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotHostname_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotHostname_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotHostname.class, build.buf.validate.conformance.cases.StringNotHostname.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotHostname.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotHostname_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotHostname getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotHostname.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotHostname build() { - build.buf.validate.conformance.cases.StringNotHostname result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotHostname buildPartial() { - build.buf.validate.conformance.cases.StringNotHostname result = new build.buf.validate.conformance.cases.StringNotHostname(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotHostname result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotHostname) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotHostname)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotHostname other) { - if (other == build.buf.validate.conformance.cases.StringNotHostname.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotHostname) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotHostname) - private static final build.buf.validate.conformance.cases.StringNotHostname DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotHostname(); - } - - public static build.buf.validate.conformance.cases.StringNotHostname getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotHostname 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.StringNotHostname getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotHostnameOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotHostnameOrBuilder.java deleted file mode 100644 index 07305e8e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotHostnameOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotHostnameOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotHostname) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIP.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIP.java deleted file mode 100644 index c43341db..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIP.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotIP} - */ -public final class StringNotIP extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotIP) - StringNotIPOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotIP.class.getName()); - } - // Use StringNotIP.newBuilder() to construct. - private StringNotIP(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotIP() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIP_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIP_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIP.class, build.buf.validate.conformance.cases.StringNotIP.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotIP)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotIP other = (build.buf.validate.conformance.cases.StringNotIP) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotIP parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIP 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.StringNotIP parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIP 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.StringNotIP parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIP 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.StringNotIP parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotIP 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.StringNotIP parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotIP 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.StringNotIP 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.StringNotIP 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.StringNotIP 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.StringNotIP} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotIP) - build.buf.validate.conformance.cases.StringNotIPOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIP_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIP_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIP.class, build.buf.validate.conformance.cases.StringNotIP.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotIP.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIP_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIP getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotIP.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIP build() { - build.buf.validate.conformance.cases.StringNotIP result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIP buildPartial() { - build.buf.validate.conformance.cases.StringNotIP result = new build.buf.validate.conformance.cases.StringNotIP(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotIP result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotIP) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotIP)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotIP other) { - if (other == build.buf.validate.conformance.cases.StringNotIP.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotIP) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotIP) - private static final build.buf.validate.conformance.cases.StringNotIP DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotIP(); - } - - public static build.buf.validate.conformance.cases.StringNotIP getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotIP 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.StringNotIP getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPOrBuilder.java deleted file mode 100644 index a77050fd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotIPOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotIP) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPPrefix.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPPrefix.java deleted file mode 100644 index 7c751c28..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPPrefix.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotIPPrefix} - */ -public final class StringNotIPPrefix extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotIPPrefix) - StringNotIPPrefixOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotIPPrefix.class.getName()); - } - // Use StringNotIPPrefix.newBuilder() to construct. - private StringNotIPPrefix(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotIPPrefix() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPPrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPPrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPPrefix.class, build.buf.validate.conformance.cases.StringNotIPPrefix.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotIPPrefix)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotIPPrefix other = (build.buf.validate.conformance.cases.StringNotIPPrefix) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotIPPrefix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPPrefix 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.StringNotIPPrefix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPPrefix 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.StringNotIPPrefix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPPrefix 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.StringNotIPPrefix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotIPPrefix 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.StringNotIPPrefix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotIPPrefix 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.StringNotIPPrefix 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.StringNotIPPrefix 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.StringNotIPPrefix 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.StringNotIPPrefix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotIPPrefix) - build.buf.validate.conformance.cases.StringNotIPPrefixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPPrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPPrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPPrefix.class, build.buf.validate.conformance.cases.StringNotIPPrefix.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotIPPrefix.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPPrefix_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPPrefix getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotIPPrefix.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPPrefix build() { - build.buf.validate.conformance.cases.StringNotIPPrefix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPPrefix buildPartial() { - build.buf.validate.conformance.cases.StringNotIPPrefix result = new build.buf.validate.conformance.cases.StringNotIPPrefix(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotIPPrefix result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotIPPrefix) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotIPPrefix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotIPPrefix other) { - if (other == build.buf.validate.conformance.cases.StringNotIPPrefix.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotIPPrefix) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotIPPrefix) - private static final build.buf.validate.conformance.cases.StringNotIPPrefix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotIPPrefix(); - } - - public static build.buf.validate.conformance.cases.StringNotIPPrefix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotIPPrefix 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.StringNotIPPrefix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPPrefixOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPPrefixOrBuilder.java deleted file mode 100644 index b1f4217f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPPrefixOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotIPPrefixOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotIPPrefix) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPWithPrefixLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPWithPrefixLen.java deleted file mode 100644 index 8b1ff022..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPWithPrefixLen.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotIPWithPrefixLen} - */ -public final class StringNotIPWithPrefixLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotIPWithPrefixLen) - StringNotIPWithPrefixLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotIPWithPrefixLen.class.getName()); - } - // Use StringNotIPWithPrefixLen.newBuilder() to construct. - private StringNotIPWithPrefixLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotIPWithPrefixLen() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPWithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPWithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPWithPrefixLen.class, build.buf.validate.conformance.cases.StringNotIPWithPrefixLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotIPWithPrefixLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotIPWithPrefixLen other = (build.buf.validate.conformance.cases.StringNotIPWithPrefixLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotIPWithPrefixLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPWithPrefixLen 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.StringNotIPWithPrefixLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPWithPrefixLen 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.StringNotIPWithPrefixLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPWithPrefixLen 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.StringNotIPWithPrefixLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotIPWithPrefixLen 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.StringNotIPWithPrefixLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotIPWithPrefixLen 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.StringNotIPWithPrefixLen 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.StringNotIPWithPrefixLen 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.StringNotIPWithPrefixLen 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.StringNotIPWithPrefixLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotIPWithPrefixLen) - build.buf.validate.conformance.cases.StringNotIPWithPrefixLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPWithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPWithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPWithPrefixLen.class, build.buf.validate.conformance.cases.StringNotIPWithPrefixLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotIPWithPrefixLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPWithPrefixLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPWithPrefixLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotIPWithPrefixLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPWithPrefixLen build() { - build.buf.validate.conformance.cases.StringNotIPWithPrefixLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPWithPrefixLen buildPartial() { - build.buf.validate.conformance.cases.StringNotIPWithPrefixLen result = new build.buf.validate.conformance.cases.StringNotIPWithPrefixLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotIPWithPrefixLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotIPWithPrefixLen) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotIPWithPrefixLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotIPWithPrefixLen other) { - if (other == build.buf.validate.conformance.cases.StringNotIPWithPrefixLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotIPWithPrefixLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotIPWithPrefixLen) - private static final build.buf.validate.conformance.cases.StringNotIPWithPrefixLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotIPWithPrefixLen(); - } - - public static build.buf.validate.conformance.cases.StringNotIPWithPrefixLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotIPWithPrefixLen 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.StringNotIPWithPrefixLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPWithPrefixLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPWithPrefixLenOrBuilder.java deleted file mode 100644 index 2cd1c95b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPWithPrefixLenOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotIPWithPrefixLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotIPWithPrefixLen) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4.java deleted file mode 100644 index 77121f0b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotIPv4} - */ -public final class StringNotIPv4 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotIPv4) - StringNotIPv4OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotIPv4.class.getName()); - } - // Use StringNotIPv4.newBuilder() to construct. - private StringNotIPv4(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotIPv4() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv4.class, build.buf.validate.conformance.cases.StringNotIPv4.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotIPv4)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotIPv4 other = (build.buf.validate.conformance.cases.StringNotIPv4) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotIPv4 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv4 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.StringNotIPv4 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv4 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.StringNotIPv4 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv4 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.StringNotIPv4 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotIPv4 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.StringNotIPv4 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotIPv4 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.StringNotIPv4 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.StringNotIPv4 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.StringNotIPv4 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.StringNotIPv4} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotIPv4) - build.buf.validate.conformance.cases.StringNotIPv4OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv4.class, build.buf.validate.conformance.cases.StringNotIPv4.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotIPv4.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv4 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotIPv4.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv4 build() { - build.buf.validate.conformance.cases.StringNotIPv4 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv4 buildPartial() { - build.buf.validate.conformance.cases.StringNotIPv4 result = new build.buf.validate.conformance.cases.StringNotIPv4(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotIPv4 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotIPv4) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotIPv4)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotIPv4 other) { - if (other == build.buf.validate.conformance.cases.StringNotIPv4.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotIPv4) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotIPv4) - private static final build.buf.validate.conformance.cases.StringNotIPv4 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotIPv4(); - } - - public static build.buf.validate.conformance.cases.StringNotIPv4 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotIPv4 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.StringNotIPv4 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4OrBuilder.java deleted file mode 100644 index 84104ac5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4OrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotIPv4OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotIPv4) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4Prefix.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4Prefix.java deleted file mode 100644 index 0b05cf63..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4Prefix.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotIPv4Prefix} - */ -public final class StringNotIPv4Prefix extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotIPv4Prefix) - StringNotIPv4PrefixOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotIPv4Prefix.class.getName()); - } - // Use StringNotIPv4Prefix.newBuilder() to construct. - private StringNotIPv4Prefix(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotIPv4Prefix() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4Prefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4Prefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv4Prefix.class, build.buf.validate.conformance.cases.StringNotIPv4Prefix.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotIPv4Prefix)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotIPv4Prefix other = (build.buf.validate.conformance.cases.StringNotIPv4Prefix) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotIPv4Prefix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv4Prefix 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.StringNotIPv4Prefix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv4Prefix 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.StringNotIPv4Prefix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv4Prefix 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.StringNotIPv4Prefix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotIPv4Prefix 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.StringNotIPv4Prefix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotIPv4Prefix 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.StringNotIPv4Prefix 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.StringNotIPv4Prefix 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.StringNotIPv4Prefix 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.StringNotIPv4Prefix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotIPv4Prefix) - build.buf.validate.conformance.cases.StringNotIPv4PrefixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4Prefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4Prefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv4Prefix.class, build.buf.validate.conformance.cases.StringNotIPv4Prefix.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotIPv4Prefix.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4Prefix_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv4Prefix getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotIPv4Prefix.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv4Prefix build() { - build.buf.validate.conformance.cases.StringNotIPv4Prefix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv4Prefix buildPartial() { - build.buf.validate.conformance.cases.StringNotIPv4Prefix result = new build.buf.validate.conformance.cases.StringNotIPv4Prefix(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotIPv4Prefix result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotIPv4Prefix) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotIPv4Prefix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotIPv4Prefix other) { - if (other == build.buf.validate.conformance.cases.StringNotIPv4Prefix.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotIPv4Prefix) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotIPv4Prefix) - private static final build.buf.validate.conformance.cases.StringNotIPv4Prefix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotIPv4Prefix(); - } - - public static build.buf.validate.conformance.cases.StringNotIPv4Prefix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotIPv4Prefix 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.StringNotIPv4Prefix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4PrefixOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4PrefixOrBuilder.java deleted file mode 100644 index 20f7ec06..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4PrefixOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotIPv4PrefixOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotIPv4Prefix) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4WithPrefixLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4WithPrefixLen.java deleted file mode 100644 index 9a35a75e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4WithPrefixLen.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotIPv4WithPrefixLen} - */ -public final class StringNotIPv4WithPrefixLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotIPv4WithPrefixLen) - StringNotIPv4WithPrefixLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotIPv4WithPrefixLen.class.getName()); - } - // Use StringNotIPv4WithPrefixLen.newBuilder() to construct. - private StringNotIPv4WithPrefixLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotIPv4WithPrefixLen() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4WithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4WithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen.class, build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotIPv4WithPrefixLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen other = (build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen 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.StringNotIPv4WithPrefixLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen 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.StringNotIPv4WithPrefixLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen 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.StringNotIPv4WithPrefixLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen 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.StringNotIPv4WithPrefixLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen 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.StringNotIPv4WithPrefixLen 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.StringNotIPv4WithPrefixLen 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.StringNotIPv4WithPrefixLen 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.StringNotIPv4WithPrefixLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotIPv4WithPrefixLen) - build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4WithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4WithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen.class, build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv4WithPrefixLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen build() { - build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen buildPartial() { - build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen result = new build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen other) { - if (other == build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotIPv4WithPrefixLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotIPv4WithPrefixLen) - private static final build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen(); - } - - public static build.buf.validate.conformance.cases.StringNotIPv4WithPrefixLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotIPv4WithPrefixLen 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.StringNotIPv4WithPrefixLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4WithPrefixLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4WithPrefixLenOrBuilder.java deleted file mode 100644 index df3edc0c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv4WithPrefixLenOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotIPv4WithPrefixLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotIPv4WithPrefixLen) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6.java deleted file mode 100644 index fe756d16..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotIPv6} - */ -public final class StringNotIPv6 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotIPv6) - StringNotIPv6OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotIPv6.class.getName()); - } - // Use StringNotIPv6.newBuilder() to construct. - private StringNotIPv6(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotIPv6() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv6.class, build.buf.validate.conformance.cases.StringNotIPv6.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotIPv6)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotIPv6 other = (build.buf.validate.conformance.cases.StringNotIPv6) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotIPv6 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv6 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.StringNotIPv6 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv6 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.StringNotIPv6 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv6 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.StringNotIPv6 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotIPv6 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.StringNotIPv6 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotIPv6 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.StringNotIPv6 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.StringNotIPv6 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.StringNotIPv6 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.StringNotIPv6} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotIPv6) - build.buf.validate.conformance.cases.StringNotIPv6OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv6.class, build.buf.validate.conformance.cases.StringNotIPv6.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotIPv6.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv6 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotIPv6.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv6 build() { - build.buf.validate.conformance.cases.StringNotIPv6 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv6 buildPartial() { - build.buf.validate.conformance.cases.StringNotIPv6 result = new build.buf.validate.conformance.cases.StringNotIPv6(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotIPv6 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotIPv6) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotIPv6)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotIPv6 other) { - if (other == build.buf.validate.conformance.cases.StringNotIPv6.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotIPv6) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotIPv6) - private static final build.buf.validate.conformance.cases.StringNotIPv6 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotIPv6(); - } - - public static build.buf.validate.conformance.cases.StringNotIPv6 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotIPv6 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.StringNotIPv6 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6OrBuilder.java deleted file mode 100644 index 7c5a8ece..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6OrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotIPv6OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotIPv6) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6Prefix.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6Prefix.java deleted file mode 100644 index 4ccb19f8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6Prefix.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotIPv6Prefix} - */ -public final class StringNotIPv6Prefix extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotIPv6Prefix) - StringNotIPv6PrefixOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotIPv6Prefix.class.getName()); - } - // Use StringNotIPv6Prefix.newBuilder() to construct. - private StringNotIPv6Prefix(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotIPv6Prefix() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6Prefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6Prefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv6Prefix.class, build.buf.validate.conformance.cases.StringNotIPv6Prefix.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotIPv6Prefix)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotIPv6Prefix other = (build.buf.validate.conformance.cases.StringNotIPv6Prefix) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotIPv6Prefix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv6Prefix 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.StringNotIPv6Prefix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv6Prefix 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.StringNotIPv6Prefix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv6Prefix 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.StringNotIPv6Prefix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotIPv6Prefix 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.StringNotIPv6Prefix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotIPv6Prefix 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.StringNotIPv6Prefix 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.StringNotIPv6Prefix 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.StringNotIPv6Prefix 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.StringNotIPv6Prefix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotIPv6Prefix) - build.buf.validate.conformance.cases.StringNotIPv6PrefixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6Prefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6Prefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv6Prefix.class, build.buf.validate.conformance.cases.StringNotIPv6Prefix.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotIPv6Prefix.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6Prefix_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv6Prefix getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotIPv6Prefix.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv6Prefix build() { - build.buf.validate.conformance.cases.StringNotIPv6Prefix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv6Prefix buildPartial() { - build.buf.validate.conformance.cases.StringNotIPv6Prefix result = new build.buf.validate.conformance.cases.StringNotIPv6Prefix(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotIPv6Prefix result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotIPv6Prefix) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotIPv6Prefix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotIPv6Prefix other) { - if (other == build.buf.validate.conformance.cases.StringNotIPv6Prefix.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotIPv6Prefix) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotIPv6Prefix) - private static final build.buf.validate.conformance.cases.StringNotIPv6Prefix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotIPv6Prefix(); - } - - public static build.buf.validate.conformance.cases.StringNotIPv6Prefix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotIPv6Prefix 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.StringNotIPv6Prefix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6PrefixOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6PrefixOrBuilder.java deleted file mode 100644 index 1bc9f67e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6PrefixOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotIPv6PrefixOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotIPv6Prefix) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6WithPrefixLen.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6WithPrefixLen.java deleted file mode 100644 index 34b31bc4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6WithPrefixLen.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotIPv6WithPrefixLen} - */ -public final class StringNotIPv6WithPrefixLen extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotIPv6WithPrefixLen) - StringNotIPv6WithPrefixLenOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotIPv6WithPrefixLen.class.getName()); - } - // Use StringNotIPv6WithPrefixLen.newBuilder() to construct. - private StringNotIPv6WithPrefixLen(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotIPv6WithPrefixLen() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6WithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6WithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen.class, build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotIPv6WithPrefixLen)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen other = (build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen 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.StringNotIPv6WithPrefixLen parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen 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.StringNotIPv6WithPrefixLen parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen 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.StringNotIPv6WithPrefixLen parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen 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.StringNotIPv6WithPrefixLen parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen 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.StringNotIPv6WithPrefixLen 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.StringNotIPv6WithPrefixLen 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.StringNotIPv6WithPrefixLen 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.StringNotIPv6WithPrefixLen} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotIPv6WithPrefixLen) - build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6WithPrefixLen_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6WithPrefixLen_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen.class, build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIPv6WithPrefixLen_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen build() { - build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen buildPartial() { - build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen result = new build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen other) { - if (other == build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotIPv6WithPrefixLen) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotIPv6WithPrefixLen) - private static final build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen(); - } - - public static build.buf.validate.conformance.cases.StringNotIPv6WithPrefixLen getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotIPv6WithPrefixLen 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.StringNotIPv6WithPrefixLen getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6WithPrefixLenOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6WithPrefixLenOrBuilder.java deleted file mode 100644 index 31e17a80..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIPv6WithPrefixLenOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotIPv6WithPrefixLenOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotIPv6WithPrefixLen) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIn.java deleted file mode 100644 index 74c2d36b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotIn.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotIn} - */ -public final class StringNotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotIn) - StringNotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotIn.class.getName()); - } - // Use StringNotIn.newBuilder() to construct. - private StringNotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotIn() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIn.class, build.buf.validate.conformance.cases.StringNotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotIn other = (build.buf.validate.conformance.cases.StringNotIn) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIn 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.StringNotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIn 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.StringNotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotIn 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.StringNotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotIn 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.StringNotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotIn 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.StringNotIn 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.StringNotIn 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.StringNotIn 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.StringNotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotIn) - build.buf.validate.conformance.cases.StringNotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotIn.class, build.buf.validate.conformance.cases.StringNotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIn build() { - build.buf.validate.conformance.cases.StringNotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotIn buildPartial() { - build.buf.validate.conformance.cases.StringNotIn result = new build.buf.validate.conformance.cases.StringNotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotIn) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotIn other) { - if (other == build.buf.validate.conformance.cases.StringNotIn.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotIn) - private static final build.buf.validate.conformance.cases.StringNotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotIn(); - } - - public static build.buf.validate.conformance.cases.StringNotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotIn 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.StringNotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotInOrBuilder.java deleted file mode 100644 index f1c47485..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotInOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotTUUID.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotTUUID.java deleted file mode 100644 index 58eff271..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotTUUID.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotTUUID} - */ -public final class StringNotTUUID extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotTUUID) - StringNotTUUIDOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotTUUID.class.getName()); - } - // Use StringNotTUUID.newBuilder() to construct. - private StringNotTUUID(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotTUUID() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotTUUID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotTUUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotTUUID.class, build.buf.validate.conformance.cases.StringNotTUUID.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotTUUID)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotTUUID other = (build.buf.validate.conformance.cases.StringNotTUUID) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotTUUID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotTUUID 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.StringNotTUUID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotTUUID 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.StringNotTUUID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotTUUID 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.StringNotTUUID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotTUUID 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.StringNotTUUID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotTUUID 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.StringNotTUUID 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.StringNotTUUID 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.StringNotTUUID 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.StringNotTUUID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotTUUID) - build.buf.validate.conformance.cases.StringNotTUUIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotTUUID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotTUUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotTUUID.class, build.buf.validate.conformance.cases.StringNotTUUID.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotTUUID.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotTUUID_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotTUUID getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotTUUID.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotTUUID build() { - build.buf.validate.conformance.cases.StringNotTUUID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotTUUID buildPartial() { - build.buf.validate.conformance.cases.StringNotTUUID result = new build.buf.validate.conformance.cases.StringNotTUUID(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotTUUID result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotTUUID) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotTUUID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotTUUID other) { - if (other == build.buf.validate.conformance.cases.StringNotTUUID.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotTUUID) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotTUUID) - private static final build.buf.validate.conformance.cases.StringNotTUUID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotTUUID(); - } - - public static build.buf.validate.conformance.cases.StringNotTUUID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotTUUID 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.StringNotTUUID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotTUUIDOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotTUUIDOrBuilder.java deleted file mode 100644 index 0568e767..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotTUUIDOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotTUUIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotTUUID) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURI.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURI.java deleted file mode 100644 index 035b36ea..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURI.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotURI} - */ -public final class StringNotURI extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotURI) - StringNotURIOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotURI.class.getName()); - } - // Use StringNotURI.newBuilder() to construct. - private StringNotURI(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotURI() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotURI_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotURI_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotURI.class, build.buf.validate.conformance.cases.StringNotURI.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotURI)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotURI other = (build.buf.validate.conformance.cases.StringNotURI) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotURI parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotURI 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.StringNotURI parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotURI 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.StringNotURI parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotURI 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.StringNotURI parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotURI 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.StringNotURI parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotURI 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.StringNotURI 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.StringNotURI 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.StringNotURI 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.StringNotURI} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotURI) - build.buf.validate.conformance.cases.StringNotURIOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotURI_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotURI_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotURI.class, build.buf.validate.conformance.cases.StringNotURI.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotURI.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotURI_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotURI getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotURI.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotURI build() { - build.buf.validate.conformance.cases.StringNotURI result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotURI buildPartial() { - build.buf.validate.conformance.cases.StringNotURI result = new build.buf.validate.conformance.cases.StringNotURI(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotURI result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotURI) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotURI)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotURI other) { - if (other == build.buf.validate.conformance.cases.StringNotURI.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotURI) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotURI) - private static final build.buf.validate.conformance.cases.StringNotURI DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotURI(); - } - - public static build.buf.validate.conformance.cases.StringNotURI getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotURI 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.StringNotURI getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIOrBuilder.java deleted file mode 100644 index 418c7db7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotURIOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotURI) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIRef.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIRef.java deleted file mode 100644 index 89c6c29f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIRef.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotURIRef} - */ -public final class StringNotURIRef extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotURIRef) - StringNotURIRefOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotURIRef.class.getName()); - } - // Use StringNotURIRef.newBuilder() to construct. - private StringNotURIRef(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotURIRef() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotURIRef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotURIRef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotURIRef.class, build.buf.validate.conformance.cases.StringNotURIRef.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotURIRef)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotURIRef other = (build.buf.validate.conformance.cases.StringNotURIRef) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotURIRef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotURIRef 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.StringNotURIRef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotURIRef 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.StringNotURIRef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotURIRef 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.StringNotURIRef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotURIRef 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.StringNotURIRef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotURIRef 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.StringNotURIRef 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.StringNotURIRef 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.StringNotURIRef 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.StringNotURIRef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotURIRef) - build.buf.validate.conformance.cases.StringNotURIRefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotURIRef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotURIRef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotURIRef.class, build.buf.validate.conformance.cases.StringNotURIRef.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotURIRef.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotURIRef_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotURIRef getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotURIRef.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotURIRef build() { - build.buf.validate.conformance.cases.StringNotURIRef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotURIRef buildPartial() { - build.buf.validate.conformance.cases.StringNotURIRef result = new build.buf.validate.conformance.cases.StringNotURIRef(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotURIRef result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotURIRef) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotURIRef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotURIRef other) { - if (other == build.buf.validate.conformance.cases.StringNotURIRef.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotURIRef) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotURIRef) - private static final build.buf.validate.conformance.cases.StringNotURIRef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotURIRef(); - } - - public static build.buf.validate.conformance.cases.StringNotURIRef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotURIRef 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.StringNotURIRef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIRefOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIRefOrBuilder.java deleted file mode 100644 index 865cc41f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotURIRefOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotURIRefOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotURIRef) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotUUID.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotUUID.java deleted file mode 100644 index 55d61f32..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotUUID.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringNotUUID} - */ -public final class StringNotUUID extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringNotUUID) - StringNotUUIDOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringNotUUID.class.getName()); - } - // Use StringNotUUID.newBuilder() to construct. - private StringNotUUID(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringNotUUID() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotUUID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotUUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotUUID.class, build.buf.validate.conformance.cases.StringNotUUID.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringNotUUID)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringNotUUID other = (build.buf.validate.conformance.cases.StringNotUUID) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringNotUUID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotUUID 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.StringNotUUID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotUUID 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.StringNotUUID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringNotUUID 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.StringNotUUID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringNotUUID 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.StringNotUUID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringNotUUID 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.StringNotUUID 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.StringNotUUID 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.StringNotUUID 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.StringNotUUID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringNotUUID) - build.buf.validate.conformance.cases.StringNotUUIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotUUID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotUUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringNotUUID.class, build.buf.validate.conformance.cases.StringNotUUID.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringNotUUID.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringNotUUID_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotUUID getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringNotUUID.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotUUID build() { - build.buf.validate.conformance.cases.StringNotUUID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringNotUUID buildPartial() { - build.buf.validate.conformance.cases.StringNotUUID result = new build.buf.validate.conformance.cases.StringNotUUID(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringNotUUID result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringNotUUID) { - return mergeFrom((build.buf.validate.conformance.cases.StringNotUUID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringNotUUID other) { - if (other == build.buf.validate.conformance.cases.StringNotUUID.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringNotUUID) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringNotUUID) - private static final build.buf.validate.conformance.cases.StringNotUUID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringNotUUID(); - } - - public static build.buf.validate.conformance.cases.StringNotUUID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringNotUUID 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.StringNotUUID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotUUIDOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotUUIDOrBuilder.java deleted file mode 100644 index 6b397531..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringNotUUIDOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringNotUUIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringNotUUID) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPattern.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPattern.java deleted file mode 100644 index a2d77617..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPattern.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringPattern} - */ -public final class StringPattern extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringPattern) - StringPatternOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringPattern.class.getName()); - } - // Use StringPattern.newBuilder() to construct. - private StringPattern(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringPattern() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPattern_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringPattern.class, build.buf.validate.conformance.cases.StringPattern.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringPattern)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringPattern other = (build.buf.validate.conformance.cases.StringPattern) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringPattern parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringPattern 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.StringPattern parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringPattern 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.StringPattern parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringPattern 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.StringPattern parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringPattern 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.StringPattern parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringPattern 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.StringPattern 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.StringPattern 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.StringPattern 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.StringPattern} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringPattern) - build.buf.validate.conformance.cases.StringPatternOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPattern_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringPattern.class, build.buf.validate.conformance.cases.StringPattern.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringPattern.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPattern_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringPattern getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringPattern.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringPattern build() { - build.buf.validate.conformance.cases.StringPattern result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringPattern buildPartial() { - build.buf.validate.conformance.cases.StringPattern result = new build.buf.validate.conformance.cases.StringPattern(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringPattern result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringPattern) { - return mergeFrom((build.buf.validate.conformance.cases.StringPattern)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringPattern other) { - if (other == build.buf.validate.conformance.cases.StringPattern.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringPattern) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringPattern) - private static final build.buf.validate.conformance.cases.StringPattern DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringPattern(); - } - - public static build.buf.validate.conformance.cases.StringPattern getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringPattern 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.StringPattern getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapes.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapes.java deleted file mode 100644 index 612c2426..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapes.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringPatternEscapes} - */ -public final class StringPatternEscapes extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringPatternEscapes) - StringPatternEscapesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringPatternEscapes.class.getName()); - } - // Use StringPatternEscapes.newBuilder() to construct. - private StringPatternEscapes(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringPatternEscapes() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPatternEscapes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPatternEscapes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringPatternEscapes.class, build.buf.validate.conformance.cases.StringPatternEscapes.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringPatternEscapes)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringPatternEscapes other = (build.buf.validate.conformance.cases.StringPatternEscapes) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringPatternEscapes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringPatternEscapes 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.StringPatternEscapes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringPatternEscapes 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.StringPatternEscapes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringPatternEscapes 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.StringPatternEscapes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringPatternEscapes 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.StringPatternEscapes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringPatternEscapes 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.StringPatternEscapes 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.StringPatternEscapes 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.StringPatternEscapes 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.StringPatternEscapes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringPatternEscapes) - build.buf.validate.conformance.cases.StringPatternEscapesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPatternEscapes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPatternEscapes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringPatternEscapes.class, build.buf.validate.conformance.cases.StringPatternEscapes.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringPatternEscapes.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPatternEscapes_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringPatternEscapes getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringPatternEscapes.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringPatternEscapes build() { - build.buf.validate.conformance.cases.StringPatternEscapes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringPatternEscapes buildPartial() { - build.buf.validate.conformance.cases.StringPatternEscapes result = new build.buf.validate.conformance.cases.StringPatternEscapes(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringPatternEscapes result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringPatternEscapes) { - return mergeFrom((build.buf.validate.conformance.cases.StringPatternEscapes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringPatternEscapes other) { - if (other == build.buf.validate.conformance.cases.StringPatternEscapes.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringPatternEscapes) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringPatternEscapes) - private static final build.buf.validate.conformance.cases.StringPatternEscapes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringPatternEscapes(); - } - - public static build.buf.validate.conformance.cases.StringPatternEscapes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringPatternEscapes 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.StringPatternEscapes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapesOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapesOrBuilder.java deleted file mode 100644 index ac85b2a1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternEscapesOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringPatternEscapesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringPatternEscapes) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternOrBuilder.java deleted file mode 100644 index fb02bfe0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPatternOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringPatternOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringPattern) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefix.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefix.java deleted file mode 100644 index 485ab420..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefix.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringPrefix} - */ -public final class StringPrefix extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringPrefix) - StringPrefixOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringPrefix.class.getName()); - } - // Use StringPrefix.newBuilder() to construct. - private StringPrefix(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringPrefix() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringPrefix.class, build.buf.validate.conformance.cases.StringPrefix.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringPrefix)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringPrefix other = (build.buf.validate.conformance.cases.StringPrefix) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringPrefix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringPrefix 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.StringPrefix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringPrefix 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.StringPrefix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringPrefix 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.StringPrefix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringPrefix 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.StringPrefix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringPrefix 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.StringPrefix 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.StringPrefix 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.StringPrefix 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.StringPrefix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringPrefix) - build.buf.validate.conformance.cases.StringPrefixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPrefix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPrefix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringPrefix.class, build.buf.validate.conformance.cases.StringPrefix.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringPrefix.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringPrefix_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringPrefix getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringPrefix.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringPrefix build() { - build.buf.validate.conformance.cases.StringPrefix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringPrefix buildPartial() { - build.buf.validate.conformance.cases.StringPrefix result = new build.buf.validate.conformance.cases.StringPrefix(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringPrefix result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringPrefix) { - return mergeFrom((build.buf.validate.conformance.cases.StringPrefix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringPrefix other) { - if (other == build.buf.validate.conformance.cases.StringPrefix.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringPrefix) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringPrefix) - private static final build.buf.validate.conformance.cases.StringPrefix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringPrefix(); - } - - public static build.buf.validate.conformance.cases.StringPrefix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringPrefix 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.StringPrefix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefixOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefixOrBuilder.java deleted file mode 100644 index 2e7ad0a7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringPrefixOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringPrefixOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringPrefix) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffix.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffix.java deleted file mode 100644 index 74be60ee..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffix.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringSuffix} - */ -public final class StringSuffix extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringSuffix) - StringSuffixOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringSuffix.class.getName()); - } - // Use StringSuffix.newBuilder() to construct. - private StringSuffix(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringSuffix() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringSuffix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringSuffix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringSuffix.class, build.buf.validate.conformance.cases.StringSuffix.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringSuffix)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringSuffix other = (build.buf.validate.conformance.cases.StringSuffix) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringSuffix parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringSuffix 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.StringSuffix parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringSuffix 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.StringSuffix parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringSuffix 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.StringSuffix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringSuffix 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.StringSuffix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringSuffix 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.StringSuffix 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.StringSuffix 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.StringSuffix 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.StringSuffix} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringSuffix) - build.buf.validate.conformance.cases.StringSuffixOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringSuffix_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringSuffix_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringSuffix.class, build.buf.validate.conformance.cases.StringSuffix.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringSuffix.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringSuffix_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringSuffix getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringSuffix.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringSuffix build() { - build.buf.validate.conformance.cases.StringSuffix result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringSuffix buildPartial() { - build.buf.validate.conformance.cases.StringSuffix result = new build.buf.validate.conformance.cases.StringSuffix(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringSuffix result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringSuffix) { - return mergeFrom((build.buf.validate.conformance.cases.StringSuffix)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringSuffix other) { - if (other == build.buf.validate.conformance.cases.StringSuffix.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringSuffix) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringSuffix) - private static final build.buf.validate.conformance.cases.StringSuffix DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringSuffix(); - } - - public static build.buf.validate.conformance.cases.StringSuffix getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringSuffix 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.StringSuffix getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffixOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffixOrBuilder.java deleted file mode 100644 index a5342d04..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringSuffixOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringSuffixOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringSuffix) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUID.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUID.java deleted file mode 100644 index f8ffa59c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUID.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringTUUID} - */ -public final class StringTUUID extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringTUUID) - StringTUUIDOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringTUUID.class.getName()); - } - // Use StringTUUID.newBuilder() to construct. - private StringTUUID(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringTUUID() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringTUUID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringTUUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringTUUID.class, build.buf.validate.conformance.cases.StringTUUID.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringTUUID)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringTUUID other = (build.buf.validate.conformance.cases.StringTUUID) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringTUUID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringTUUID 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.StringTUUID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringTUUID 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.StringTUUID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringTUUID 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.StringTUUID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringTUUID 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.StringTUUID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringTUUID 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.StringTUUID 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.StringTUUID 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.StringTUUID 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.StringTUUID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringTUUID) - build.buf.validate.conformance.cases.StringTUUIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringTUUID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringTUUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringTUUID.class, build.buf.validate.conformance.cases.StringTUUID.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringTUUID.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringTUUID_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringTUUID getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringTUUID.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringTUUID build() { - build.buf.validate.conformance.cases.StringTUUID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringTUUID buildPartial() { - build.buf.validate.conformance.cases.StringTUUID result = new build.buf.validate.conformance.cases.StringTUUID(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringTUUID result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringTUUID) { - return mergeFrom((build.buf.validate.conformance.cases.StringTUUID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringTUUID other) { - if (other == build.buf.validate.conformance.cases.StringTUUID.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringTUUID) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringTUUID) - private static final build.buf.validate.conformance.cases.StringTUUID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringTUUID(); - } - - public static build.buf.validate.conformance.cases.StringTUUID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringTUUID 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.StringTUUID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUIDOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUIDOrBuilder.java deleted file mode 100644 index 32f498ea..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringTUUIDOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringTUUIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringTUUID) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURI.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringURI.java deleted file mode 100644 index 8e29e455..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURI.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringURI} - */ -public final class StringURI extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringURI) - StringURIOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringURI.class.getName()); - } - // Use StringURI.newBuilder() to construct. - private StringURI(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringURI() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURI_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURI_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringURI.class, build.buf.validate.conformance.cases.StringURI.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringURI)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringURI other = (build.buf.validate.conformance.cases.StringURI) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringURI parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringURI 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.StringURI parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringURI 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.StringURI parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringURI 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.StringURI parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringURI 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.StringURI parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringURI 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.StringURI 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.StringURI 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.StringURI 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.StringURI} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringURI) - build.buf.validate.conformance.cases.StringURIOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURI_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURI_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringURI.class, build.buf.validate.conformance.cases.StringURI.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringURI.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURI_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringURI getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringURI.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringURI build() { - build.buf.validate.conformance.cases.StringURI result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringURI buildPartial() { - build.buf.validate.conformance.cases.StringURI result = new build.buf.validate.conformance.cases.StringURI(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringURI result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringURI) { - return mergeFrom((build.buf.validate.conformance.cases.StringURI)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringURI other) { - if (other == build.buf.validate.conformance.cases.StringURI.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringURI) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringURI) - private static final build.buf.validate.conformance.cases.StringURI DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringURI(); - } - - public static build.buf.validate.conformance.cases.StringURI getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringURI 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.StringURI getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIOrBuilder.java deleted file mode 100644 index f69bbaf6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringURIOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringURI) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRef.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRef.java deleted file mode 100644 index a01a43c9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRef.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringURIRef} - */ -public final class StringURIRef extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringURIRef) - StringURIRefOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringURIRef.class.getName()); - } - // Use StringURIRef.newBuilder() to construct. - private StringURIRef(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringURIRef() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURIRef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURIRef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringURIRef.class, build.buf.validate.conformance.cases.StringURIRef.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringURIRef)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringURIRef other = (build.buf.validate.conformance.cases.StringURIRef) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringURIRef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringURIRef 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.StringURIRef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringURIRef 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.StringURIRef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringURIRef 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.StringURIRef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringURIRef 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.StringURIRef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringURIRef 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.StringURIRef 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.StringURIRef 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.StringURIRef 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.StringURIRef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringURIRef) - build.buf.validate.conformance.cases.StringURIRefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURIRef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURIRef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringURIRef.class, build.buf.validate.conformance.cases.StringURIRef.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringURIRef.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringURIRef_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringURIRef getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringURIRef.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringURIRef build() { - build.buf.validate.conformance.cases.StringURIRef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringURIRef buildPartial() { - build.buf.validate.conformance.cases.StringURIRef result = new build.buf.validate.conformance.cases.StringURIRef(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringURIRef result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringURIRef) { - return mergeFrom((build.buf.validate.conformance.cases.StringURIRef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringURIRef other) { - if (other == build.buf.validate.conformance.cases.StringURIRef.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringURIRef) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringURIRef) - private static final build.buf.validate.conformance.cases.StringURIRef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringURIRef(); - } - - public static build.buf.validate.conformance.cases.StringURIRef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringURIRef 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.StringURIRef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRefOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRefOrBuilder.java deleted file mode 100644 index c4b6073f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringURIRefOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringURIRefOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringURIRef) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUID.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUID.java deleted file mode 100644 index 90467061..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUID.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringUUID} - */ -public final class StringUUID extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringUUID) - StringUUIDOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringUUID.class.getName()); - } - // Use StringUUID.newBuilder() to construct. - private StringUUID(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringUUID() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringUUID.class, build.buf.validate.conformance.cases.StringUUID.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringUUID)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringUUID other = (build.buf.validate.conformance.cases.StringUUID) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringUUID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringUUID 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.StringUUID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringUUID 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.StringUUID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringUUID 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.StringUUID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringUUID 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.StringUUID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringUUID 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.StringUUID 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.StringUUID 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.StringUUID 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.StringUUID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringUUID) - build.buf.validate.conformance.cases.StringUUIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringUUID.class, build.buf.validate.conformance.cases.StringUUID.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringUUID.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUID_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringUUID getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringUUID.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringUUID build() { - build.buf.validate.conformance.cases.StringUUID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringUUID buildPartial() { - build.buf.validate.conformance.cases.StringUUID result = new build.buf.validate.conformance.cases.StringUUID(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringUUID result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringUUID) { - return mergeFrom((build.buf.validate.conformance.cases.StringUUID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringUUID other) { - if (other == build.buf.validate.conformance.cases.StringUUID.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringUUID) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringUUID) - private static final build.buf.validate.conformance.cases.StringUUID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringUUID(); - } - - public static build.buf.validate.conformance.cases.StringUUID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringUUID 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.StringUUID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnore.java deleted file mode 100644 index 5237cdba..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnore.java +++ /dev/null @@ -1,501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.StringUUIDIgnore} - */ -public final class StringUUIDIgnore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.StringUUIDIgnore) - StringUUIDIgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringUUIDIgnore.class.getName()); - } - // Use StringUUIDIgnore.newBuilder() to construct. - private StringUUIDIgnore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private StringUUIDIgnore() { - val_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUIDIgnore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUIDIgnore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringUUIDIgnore.class, build.buf.validate.conformance.cases.StringUUIDIgnore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(val_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, val_); - } - 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.StringUUIDIgnore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.StringUUIDIgnore other = (build.buf.validate.conformance.cases.StringUUIDIgnore) obj; - - if (!getVal() - .equals(other.getVal())) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.StringUUIDIgnore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringUUIDIgnore 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.StringUUIDIgnore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringUUIDIgnore 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.StringUUIDIgnore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.StringUUIDIgnore 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.StringUUIDIgnore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.StringUUIDIgnore 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.StringUUIDIgnore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.StringUUIDIgnore 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.StringUUIDIgnore 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.StringUUIDIgnore 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.StringUUIDIgnore 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.StringUUIDIgnore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.StringUUIDIgnore) - build.buf.validate.conformance.cases.StringUUIDIgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUIDIgnore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUIDIgnore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.StringUUIDIgnore.class, build.buf.validate.conformance.cases.StringUUIDIgnore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.StringUUIDIgnore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.StringsProto.internal_static_buf_validate_conformance_cases_StringUUIDIgnore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringUUIDIgnore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.StringUUIDIgnore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringUUIDIgnore build() { - build.buf.validate.conformance.cases.StringUUIDIgnore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.StringUUIDIgnore buildPartial() { - build.buf.validate.conformance.cases.StringUUIDIgnore result = new build.buf.validate.conformance.cases.StringUUIDIgnore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.StringUUIDIgnore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.StringUUIDIgnore) { - return mergeFrom((build.buf.validate.conformance.cases.StringUUIDIgnore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.StringUUIDIgnore other) { - if (other == build.buf.validate.conformance.cases.StringUUIDIgnore.getDefaultInstance()) return this; - if (!other.getVal().isEmpty()) { - val_ = other.val_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - val_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object val_ = ""; - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - val_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = getDefaultInstance().getVal(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The bytes for val to set. - * @return This builder for chaining. - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.StringUUIDIgnore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.StringUUIDIgnore) - private static final build.buf.validate.conformance.cases.StringUUIDIgnore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.StringUUIDIgnore(); - } - - public static build.buf.validate.conformance.cases.StringUUIDIgnore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringUUIDIgnore 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.StringUUIDIgnore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnoreOrBuilder.java deleted file mode 100644 index da87afc5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDIgnoreOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringUUIDIgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringUUIDIgnore) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDOrBuilder.java deleted file mode 100644 index c9413880..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringUUIDOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface StringUUIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.StringUUID) - com.google.protobuf.MessageOrBuilder { - - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - java.lang.String getVal(); - /** - * string val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The bytes for val. - */ - com.google.protobuf.ByteString - getValBytes(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/StringsProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/StringsProto.java deleted file mode 100644 index b184af2c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/StringsProto.java +++ /dev/null @@ -1,809 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/strings.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class StringsProto { - private StringsProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringsProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringConst_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringConst_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringMinLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringMinLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringMaxLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringMaxLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringMinMaxLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringMinMaxLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringLenBytes_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringLenBytes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringMinBytes_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringMinBytes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringMaxBytes_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringMaxBytes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringMinMaxBytes_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringMinMaxBytes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringPattern_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringPattern_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringPatternEscapes_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringPatternEscapes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringPrefix_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringPrefix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringContains_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringContains_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotContains_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotContains_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringSuffix_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringSuffix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringEmail_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringEmail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotEmail_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotEmail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringAddress_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringAddress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotAddress_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotAddress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringHostname_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringHostname_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotHostname_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotHostname_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringIP_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringIP_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotIP_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotIP_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringIPv4_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringIPv4_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotIPv4_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotIPv4_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringIPv6_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringIPv6_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotIPv6_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotIPv6_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotIPWithPrefixLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotIPWithPrefixLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotIPv4WithPrefixLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotIPv4WithPrefixLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotIPv6WithPrefixLen_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotIPv6WithPrefixLen_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringIPPrefix_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringIPPrefix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotIPPrefix_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotIPPrefix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringIPv4Prefix_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringIPv4Prefix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotIPv4Prefix_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotIPv4Prefix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringIPv6Prefix_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringIPv6Prefix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotIPv6Prefix_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotIPv6Prefix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringURI_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringURI_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotURI_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotURI_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringURIRef_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringURIRef_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotURIRef_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotURIRef_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringUUID_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringUUID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotUUID_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotUUID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringTUUID_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringTUUID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringNotTUUID_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringNotTUUID_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringHttpHeaderName_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringHttpHeaderName_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringUUIDIgnore_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringUUIDIgnore_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringInOneof_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringInOneof_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringHostAndPort_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringHostAndPort_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_StringExample_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_StringExample_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,buf/validate/conformance/cases/strings" + - ".proto\022\036buf.validate.conformance.cases\032\033" + - "buf/validate/validate.proto\"\036\n\nStringNon" + - "e\022\020\n\003val\030\001 \001(\tR\003val\"+\n\013StringConst\022\034\n\003va" + - "l\030\001 \001(\tB\n\272H\007r\005\n\003fooR\003val\"-\n\010StringIn\022!\n\003" + - "val\030\001 \001(\tB\017\272H\014r\nR\003barR\003bazR\003val\"2\n\013Strin" + - "gNotIn\022#\n\003val\030\001 \001(\tB\021\272H\016r\014Z\004fizzZ\004buzzR\003" + - "val\"\'\n\tStringLen\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\230\001\003R" + - "\003val\")\n\014StringMinLen\022\031\n\003val\030\001 \001(\tB\007\272H\004r\002" + - "\020\003R\003val\")\n\014StringMaxLen\022\031\n\003val\030\001 \001(\tB\007\272H" + - "\004r\002\030\005R\003val\".\n\017StringMinMaxLen\022\033\n\003val\030\001 \001" + - "(\tB\t\272H\006r\004\020\003\030\005R\003val\"3\n\024StringEqualMinMaxL" + - "en\022\033\n\003val\030\001 \001(\tB\t\272H\006r\004\020\005\030\005R\003val\",\n\016Strin" + - "gLenBytes\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\240\001\004R\003val\"+\n" + - "\016StringMinBytes\022\031\n\003val\030\001 \001(\tB\007\272H\004r\002 \004R\003v" + - "al\"+\n\016StringMaxBytes\022\031\n\003val\030\001 \001(\tB\007\272H\004r\002" + - "(\010R\003val\"0\n\021StringMinMaxBytes\022\033\n\003val\030\001 \001(" + - "\tB\t\272H\006r\004 \004(\010R\003val\"5\n\026StringEqualMinMaxBy" + - "tes\022\033\n\003val\030\001 \001(\tB\t\272H\006r\004 \004(\004R\003val\"9\n\rStri" + - "ngPattern\022(\n\003val\030\001 \001(\tB\026\272H\023r\0212\017(?i)^[a-z" + - "0-9]+$R\003val\"9\n\024StringPatternEscapes\022!\n\003v" + - "al\030\001 \001(\tB\017\272H\014r\n2\010\\* \\\\ \\wR\003val\",\n\014String" + - "Prefix\022\034\n\003val\030\001 \001(\tB\n\272H\007r\005:\003fooR\003val\".\n\016" + - "StringContains\022\034\n\003val\030\001 \001(\tB\n\272H\007r\005J\003barR" + - "\003val\"2\n\021StringNotContains\022\035\n\003val\030\001 \001(\tB\013" + - "\272H\010r\006\272\001\003barR\003val\",\n\014StringSuffix\022\034\n\003val\030" + - "\001 \001(\tB\n\272H\007r\005B\003bazR\003val\"(\n\013StringEmail\022\031\n" + - "\003val\030\001 \001(\tB\007\272H\004r\002`\001R\003val\"+\n\016StringNotEma" + - "il\022\031\n\003val\030\001 \001(\tB\007\272H\004r\002`\000R\003val\"+\n\rStringA" + - "ddress\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\250\001\001R\003val\".\n\020St" + - "ringNotAddress\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\250\001\000R\003v" + - "al\"+\n\016StringHostname\022\031\n\003val\030\001 \001(\tB\007\272H\004r\002" + - "h\001R\003val\".\n\021StringNotHostname\022\031\n\003val\030\001 \001(" + - "\tB\007\272H\004r\002h\000R\003val\"%\n\010StringIP\022\031\n\003val\030\001 \001(\t" + - "B\007\272H\004r\002p\001R\003val\"(\n\013StringNotIP\022\031\n\003val\030\001 \001" + - "(\tB\007\272H\004r\002p\000R\003val\"\'\n\nStringIPv4\022\031\n\003val\030\001 " + - "\001(\tB\007\272H\004r\002x\001R\003val\"*\n\rStringNotIPv4\022\031\n\003va" + - "l\030\001 \001(\tB\007\272H\004r\002x\000R\003val\"(\n\nStringIPv6\022\032\n\003v" + - "al\030\001 \001(\tB\010\272H\005r\003\200\001\001R\003val\"+\n\rStringNotIPv6" + - "\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\200\001\000R\003val\"3\n\025StringIP" + - "WithPrefixLen\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\320\001\001R\003va" + - "l\"6\n\030StringNotIPWithPrefixLen\022\032\n\003val\030\001 \001" + - "(\tB\010\272H\005r\003\320\001\000R\003val\"5\n\027StringIPv4WithPrefi" + - "xLen\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\330\001\001R\003val\"8\n\032Stri" + - "ngNotIPv4WithPrefixLen\022\032\n\003val\030\001 \001(\tB\010\272H\005" + - "r\003\330\001\000R\003val\"5\n\027StringIPv6WithPrefixLen\022\032\n" + - "\003val\030\001 \001(\tB\010\272H\005r\003\340\001\001R\003val\"8\n\032StringNotIP" + - "v6WithPrefixLen\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\340\001\000R\003" + - "val\",\n\016StringIPPrefix\022\032\n\003val\030\001 \001(\tB\010\272H\005r" + - "\003\350\001\001R\003val\"/\n\021StringNotIPPrefix\022\032\n\003val\030\001 " + - "\001(\tB\010\272H\005r\003\350\001\000R\003val\".\n\020StringIPv4Prefix\022\032" + - "\n\003val\030\001 \001(\tB\010\272H\005r\003\360\001\001R\003val\"1\n\023StringNotI" + - "Pv4Prefix\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\360\001\000R\003val\".\n" + - "\020StringIPv6Prefix\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\370\001\001" + - "R\003val\"1\n\023StringNotIPv6Prefix\022\032\n\003val\030\001 \001(" + - "\tB\010\272H\005r\003\370\001\000R\003val\"\'\n\tStringURI\022\032\n\003val\030\001 \001" + - "(\tB\010\272H\005r\003\210\001\001R\003val\"*\n\014StringNotURI\022\032\n\003val" + - "\030\001 \001(\tB\010\272H\005r\003\210\001\000R\003val\"*\n\014StringURIRef\022\032\n" + - "\003val\030\001 \001(\tB\010\272H\005r\003\220\001\001R\003val\"-\n\017StringNotUR" + - "IRef\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\220\001\000R\003val\"(\n\nStri" + - "ngUUID\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\260\001\001R\003val\"+\n\rSt" + - "ringNotUUID\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\260\001\000R\003val\"" + - ")\n\013StringTUUID\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\210\002\001R\003v" + - "al\",\n\016StringNotTUUID\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003" + - "\210\002\000R\003val\"2\n\024StringHttpHeaderName\022\032\n\003val\030" + - "\001 \001(\tB\010\272H\005r\003\300\001\001R\003val\"3\n\025StringHttpHeader" + - "Value\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\300\001\002R\003val\":\n\031Str" + - "ingHttpHeaderNameLoose\022\035\n\003val\030\001 \001(\tB\013\272H\010" + - "r\006\300\001\001\310\001\000R\003val\";\n\032StringHttpHeaderValueLo" + - "ose\022\035\n\003val\030\001 \001(\tB\013\272H\010r\006\300\001\002\310\001\000R\003val\"1\n\020St" + - "ringUUIDIgnore\022\035\n\003val\030\001 \001(\tB\013\272H\010r\003\260\001\001\330\001\001" + - "R\003val\"7\n\rStringInOneof\022\037\n\003bar\030\001 \001(\tB\013\272H\010" + - "r\006R\001aR\001bH\000R\003barB\005\n\003foo\"/\n\021StringHostAndP" + - "ort\022\032\n\003val\030\001 \001(\tB\010\272H\005r\003\200\002\001R\003val\"\244\001\n\031Stri" + - "ngHostAndOptionalPort\022\206\001\n\003val\030\001 \001(\tBt\272Hq" + - "\272\001n\n\"string.host_and_port.optional_port\022" + - "-value must be a host and (optional) por" + - "t pair\032\031this.isHostAndPort(false)R\003val\"." + - "\n\rStringExample\022\035\n\003val\030\001 \001(\tB\013\272H\010r\006\222\002\003fo" + - "oR\003valB\320\001\n$build.buf.validate.conformanc" + - "e.casesB\014StringsProtoP\001\242\002\004BVCC\252\002\036Buf.Val" + - "idate.Conformance.Cases\312\002\036Buf\\Validate\\C" + - "onformance\\Cases\342\002*Buf\\Validate\\Conforma" + - "nce\\Cases\\GPBMetadata\352\002!Buf::Validate::C" + - "onformance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_StringNone_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_StringNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringConst_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_StringConst_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringConst_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringIn_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_StringIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotIn_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_StringNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringLen_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_StringLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringMinLen_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_StringMinLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringMinLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringMaxLen_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_StringMaxLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringMaxLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringMinMaxLen_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_StringMinMaxLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringMinMaxLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringEqualMinMaxLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringLenBytes_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_StringLenBytes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringLenBytes_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringMinBytes_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_StringMinBytes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringMinBytes_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringMaxBytes_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_StringMaxBytes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringMaxBytes_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringMinMaxBytes_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_StringMinMaxBytes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringMinMaxBytes_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringEqualMinMaxBytes_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringPattern_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_conformance_cases_StringPattern_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringPattern_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringPatternEscapes_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_conformance_cases_StringPatternEscapes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringPatternEscapes_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringPrefix_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_conformance_cases_StringPrefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringPrefix_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringContains_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_conformance_cases_StringContains_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringContains_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotContains_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_buf_validate_conformance_cases_StringNotContains_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotContains_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringSuffix_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_buf_validate_conformance_cases_StringSuffix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringSuffix_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringEmail_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_buf_validate_conformance_cases_StringEmail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringEmail_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotEmail_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_buf_validate_conformance_cases_StringNotEmail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotEmail_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringAddress_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_buf_validate_conformance_cases_StringAddress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringAddress_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotAddress_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_buf_validate_conformance_cases_StringNotAddress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotAddress_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringHostname_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_buf_validate_conformance_cases_StringHostname_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringHostname_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotHostname_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_buf_validate_conformance_cases_StringNotHostname_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotHostname_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringIP_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_buf_validate_conformance_cases_StringIP_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringIP_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotIP_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_buf_validate_conformance_cases_StringNotIP_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotIP_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringIPv4_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_buf_validate_conformance_cases_StringIPv4_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringIPv4_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotIPv4_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_buf_validate_conformance_cases_StringNotIPv4_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotIPv4_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringIPv6_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_buf_validate_conformance_cases_StringIPv6_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringIPv6_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotIPv6_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_buf_validate_conformance_cases_StringNotIPv6_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotIPv6_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringIPWithPrefixLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotIPWithPrefixLen_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_buf_validate_conformance_cases_StringNotIPWithPrefixLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotIPWithPrefixLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringIPv4WithPrefixLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotIPv4WithPrefixLen_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_buf_validate_conformance_cases_StringNotIPv4WithPrefixLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotIPv4WithPrefixLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringIPv6WithPrefixLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotIPv6WithPrefixLen_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_buf_validate_conformance_cases_StringNotIPv6WithPrefixLen_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotIPv6WithPrefixLen_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringIPPrefix_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_buf_validate_conformance_cases_StringIPPrefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringIPPrefix_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotIPPrefix_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_buf_validate_conformance_cases_StringNotIPPrefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotIPPrefix_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringIPv4Prefix_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_buf_validate_conformance_cases_StringIPv4Prefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringIPv4Prefix_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotIPv4Prefix_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_buf_validate_conformance_cases_StringNotIPv4Prefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotIPv4Prefix_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringIPv6Prefix_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_buf_validate_conformance_cases_StringIPv6Prefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringIPv6Prefix_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotIPv6Prefix_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_buf_validate_conformance_cases_StringNotIPv6Prefix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotIPv6Prefix_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringURI_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_buf_validate_conformance_cases_StringURI_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringURI_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotURI_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_buf_validate_conformance_cases_StringNotURI_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotURI_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringURIRef_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_buf_validate_conformance_cases_StringURIRef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringURIRef_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotURIRef_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_buf_validate_conformance_cases_StringNotURIRef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotURIRef_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringUUID_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_buf_validate_conformance_cases_StringUUID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringUUID_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotUUID_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_buf_validate_conformance_cases_StringNotUUID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotUUID_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringTUUID_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_buf_validate_conformance_cases_StringTUUID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringTUUID_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringNotTUUID_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_buf_validate_conformance_cases_StringNotTUUID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringNotTUUID_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringHttpHeaderName_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_buf_validate_conformance_cases_StringHttpHeaderName_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringHttpHeaderName_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringHttpHeaderValue_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringHttpHeaderNameLoose_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringHttpHeaderValueLoose_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringUUIDIgnore_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_buf_validate_conformance_cases_StringUUIDIgnore_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringUUIDIgnore_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringInOneof_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_buf_validate_conformance_cases_StringInOneof_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringInOneof_descriptor, - new java.lang.String[] { "Bar", "Foo", }); - internal_static_buf_validate_conformance_cases_StringHostAndPort_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_buf_validate_conformance_cases_StringHostAndPort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringHostAndPort_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringHostAndOptionalPort_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_StringExample_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_buf_validate_conformance_cases_StringExample_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_StringExample_descriptor, - new java.lang.String[] { "Val", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TestEnum.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TestEnum.java deleted file mode 100644 index 301922b5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestEnum.java +++ /dev/null @@ -1,133 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf enum {@code buf.validate.conformance.cases.TestEnum} - */ -public enum TestEnum - implements com.google.protobuf.ProtocolMessageEnum { - /** - * TEST_ENUM_UNSPECIFIED = 0; - */ - TEST_ENUM_UNSPECIFIED(0), - /** - * TEST_ENUM_ONE = 1; - */ - TEST_ENUM_ONE(1), - /** - * TEST_ENUM_TWO = 2; - */ - TEST_ENUM_TWO(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TestEnum.class.getName()); - } - /** - * TEST_ENUM_UNSPECIFIED = 0; - */ - public static final int TEST_ENUM_UNSPECIFIED_VALUE = 0; - /** - * TEST_ENUM_ONE = 1; - */ - public static final int TEST_ENUM_ONE_VALUE = 1; - /** - * TEST_ENUM_TWO = 2; - */ - public static final int TEST_ENUM_TWO_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TestEnum valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TestEnum forNumber(int value) { - switch (value) { - case 0: return TEST_ENUM_UNSPECIFIED; - case 1: return TEST_ENUM_ONE; - case 2: return TEST_ENUM_TWO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TestEnum> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TestEnum findValueByNumber(int number) { - return TestEnum.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.getDescriptor().getEnumTypes().get(0); - } - - private static final TestEnum[] VALUES = values(); - - public static TestEnum valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TestEnum(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.TestEnum) -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TestEnumAlias.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TestEnumAlias.java deleted file mode 100644 index 162bf9a7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestEnumAlias.java +++ /dev/null @@ -1,170 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/enums.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf enum {@code buf.validate.conformance.cases.TestEnumAlias} - */ -public enum TestEnumAlias - implements com.google.protobuf.ProtocolMessageEnum { - /** - * TEST_ENUM_ALIAS_UNSPECIFIED = 0; - */ - TEST_ENUM_ALIAS_UNSPECIFIED(0), - /** - * TEST_ENUM_ALIAS_A = 1; - */ - TEST_ENUM_ALIAS_A(1), - /** - * TEST_ENUM_ALIAS_B = 2; - */ - TEST_ENUM_ALIAS_B(2), - /** - * TEST_ENUM_ALIAS_C = 3; - */ - TEST_ENUM_ALIAS_C(3), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TestEnumAlias.class.getName()); - } - /** - * TEST_ENUM_ALIAS_ALPHA = 1; - */ - public static final TestEnumAlias TEST_ENUM_ALIAS_ALPHA = TEST_ENUM_ALIAS_A; - /** - * TEST_ENUM_ALIAS_BETA = 2; - */ - public static final TestEnumAlias TEST_ENUM_ALIAS_BETA = TEST_ENUM_ALIAS_B; - /** - * TEST_ENUM_ALIAS_GAMMA = 3; - */ - public static final TestEnumAlias TEST_ENUM_ALIAS_GAMMA = TEST_ENUM_ALIAS_C; - /** - * TEST_ENUM_ALIAS_UNSPECIFIED = 0; - */ - public static final int TEST_ENUM_ALIAS_UNSPECIFIED_VALUE = 0; - /** - * TEST_ENUM_ALIAS_A = 1; - */ - public static final int TEST_ENUM_ALIAS_A_VALUE = 1; - /** - * TEST_ENUM_ALIAS_B = 2; - */ - public static final int TEST_ENUM_ALIAS_B_VALUE = 2; - /** - * TEST_ENUM_ALIAS_C = 3; - */ - public static final int TEST_ENUM_ALIAS_C_VALUE = 3; - /** - * TEST_ENUM_ALIAS_ALPHA = 1; - */ - public static final int TEST_ENUM_ALIAS_ALPHA_VALUE = 1; - /** - * TEST_ENUM_ALIAS_BETA = 2; - */ - public static final int TEST_ENUM_ALIAS_BETA_VALUE = 2; - /** - * TEST_ENUM_ALIAS_GAMMA = 3; - */ - public static final int TEST_ENUM_ALIAS_GAMMA_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TestEnumAlias valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TestEnumAlias forNumber(int value) { - switch (value) { - case 0: return TEST_ENUM_ALIAS_UNSPECIFIED; - case 1: return TEST_ENUM_ALIAS_A; - case 2: return TEST_ENUM_ALIAS_B; - case 3: return TEST_ENUM_ALIAS_C; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TestEnumAlias> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TestEnumAlias findValueByNumber(int number) { - return TestEnumAlias.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.EnumsProto.getDescriptor().getEnumTypes().get(1); - } - - private static final TestEnumAlias[] VALUES = getStaticValuesArray(); - private static TestEnumAlias[] getStaticValuesArray() { - return new TestEnumAlias[] { - TEST_ENUM_ALIAS_UNSPECIFIED, TEST_ENUM_ALIAS_A, TEST_ENUM_ALIAS_B, TEST_ENUM_ALIAS_C, TEST_ENUM_ALIAS_ALPHA, TEST_ENUM_ALIAS_BETA, TEST_ENUM_ALIAS_GAMMA, - }; - } - public static TestEnumAlias valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TestEnumAlias(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.TestEnumAlias) -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TestMsg.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TestMsg.java deleted file mode 100644 index 8e233f30..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestMsg.java +++ /dev/null @@ -1,694 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TestMsg} - */ -public final class TestMsg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TestMsg) - TestMsgOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TestMsg.class.getName()); - } - // Use TestMsg.newBuilder() to construct. - private TestMsg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TestMsg() { - const_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_TestMsg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_TestMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TestMsg.class, build.buf.validate.conformance.cases.TestMsg.Builder.class); - } - - private int bitField0_; - public static final int CONST_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object const_ = ""; - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The const. - */ - @java.lang.Override - public java.lang.String getConst() { - java.lang.Object ref = const_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - const_ = s; - return s; - } - } - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The bytes for const. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getConstBytes() { - java.lang.Object ref = const_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - const_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NESTED_FIELD_NUMBER = 2; - private build.buf.validate.conformance.cases.TestMsg nested_; - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - * @return Whether the nested field is set. - */ - @java.lang.Override - public boolean hasNested() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - * @return The nested. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsg getNested() { - return nested_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : nested_; - } - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsgOrBuilder getNestedOrBuilder() { - return nested_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : nested_; - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(const_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, const_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getNested()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(const_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, const_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNested()); - } - 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.TestMsg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TestMsg other = (build.buf.validate.conformance.cases.TestMsg) obj; - - if (!getConst() - .equals(other.getConst())) return false; - if (hasNested() != other.hasNested()) return false; - if (hasNested()) { - if (!getNested() - .equals(other.getNested())) 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(); - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst().hashCode(); - if (hasNested()) { - hash = (37 * hash) + NESTED_FIELD_NUMBER; - hash = (53 * hash) + getNested().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TestMsg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TestMsg 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.TestMsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TestMsg 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.TestMsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TestMsg 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.TestMsg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TestMsg 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.TestMsg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TestMsg 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.TestMsg 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.TestMsg 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.TestMsg 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.TestMsg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TestMsg) - build.buf.validate.conformance.cases.TestMsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_TestMsg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_TestMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TestMsg.class, build.buf.validate.conformance.cases.TestMsg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TestMsg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetNestedFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = ""; - nested_ = null; - if (nestedBuilder_ != null) { - nestedBuilder_.dispose(); - nestedBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.MessagesProto.internal_static_buf_validate_conformance_cases_TestMsg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TestMsg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsg build() { - build.buf.validate.conformance.cases.TestMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TestMsg buildPartial() { - build.buf.validate.conformance.cases.TestMsg result = new build.buf.validate.conformance.cases.TestMsg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TestMsg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nested_ = nestedBuilder_ == null - ? nested_ - : nestedBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TestMsg) { - return mergeFrom((build.buf.validate.conformance.cases.TestMsg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TestMsg other) { - if (other == build.buf.validate.conformance.cases.TestMsg.getDefaultInstance()) return this; - if (!other.getConst().isEmpty()) { - const_ = other.const_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasNested()) { - mergeNested(other.getNested()); - } - 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: { - const_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - internalGetNestedFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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.lang.Object const_ = ""; - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The const. - */ - public java.lang.String getConst() { - java.lang.Object ref = const_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - const_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The bytes for const. - */ - public com.google.protobuf.ByteString - getConstBytes() { - java.lang.Object ref = const_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - const_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - const_ = getDefaultInstance().getConst(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @param value The bytes for const to set. - * @return This builder for chaining. - */ - public Builder setConstBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private build.buf.validate.conformance.cases.TestMsg nested_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> nestedBuilder_; - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - * @return Whether the nested field is set. - */ - public boolean hasNested() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - * @return The nested. - */ - public build.buf.validate.conformance.cases.TestMsg getNested() { - if (nestedBuilder_ == null) { - return nested_ == null ? build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : nested_; - } else { - return nestedBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - */ - public Builder setNested(build.buf.validate.conformance.cases.TestMsg value) { - if (nestedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nested_ = value; - } else { - nestedBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - */ - public Builder setNested( - build.buf.validate.conformance.cases.TestMsg.Builder builderForValue) { - if (nestedBuilder_ == null) { - nested_ = builderForValue.build(); - } else { - nestedBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - */ - public Builder mergeNested(build.buf.validate.conformance.cases.TestMsg value) { - if (nestedBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - nested_ != null && - nested_ != build.buf.validate.conformance.cases.TestMsg.getDefaultInstance()) { - getNestedBuilder().mergeFrom(value); - } else { - nested_ = value; - } - } else { - nestedBuilder_.mergeFrom(value); - } - if (nested_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - */ - public Builder clearNested() { - bitField0_ = (bitField0_ & ~0x00000002); - nested_ = null; - if (nestedBuilder_ != null) { - nestedBuilder_.dispose(); - nestedBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - */ - public build.buf.validate.conformance.cases.TestMsg.Builder getNestedBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetNestedFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - */ - public build.buf.validate.conformance.cases.TestMsgOrBuilder getNestedOrBuilder() { - if (nestedBuilder_ != null) { - return nestedBuilder_.getMessageOrBuilder(); - } else { - return nested_ == null ? - build.buf.validate.conformance.cases.TestMsg.getDefaultInstance() : nested_; - } - } - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder> - internalGetNestedFieldBuilder() { - if (nestedBuilder_ == null) { - nestedBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.TestMsg, build.buf.validate.conformance.cases.TestMsg.Builder, build.buf.validate.conformance.cases.TestMsgOrBuilder>( - getNested(), - getParentForChildren(), - isClean()); - nested_ = null; - } - return nestedBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TestMsg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TestMsg) - private static final build.buf.validate.conformance.cases.TestMsg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TestMsg(); - } - - public static build.buf.validate.conformance.cases.TestMsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestMsg 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.TestMsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TestMsgOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TestMsgOrBuilder.java deleted file mode 100644 index a03a9f09..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestMsgOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/messages.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TestMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TestMsg) - com.google.protobuf.MessageOrBuilder { - - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The const. - */ - java.lang.String getConst(); - /** - * string const = 1 [json_name = "const", (.buf.validate.field) = { ... } - * @return The bytes for const. - */ - com.google.protobuf.ByteString - getConstBytes(); - - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - * @return Whether the nested field is set. - */ - boolean hasNested(); - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - * @return The nested. - */ - build.buf.validate.conformance.cases.TestMsg getNested(); - /** - * .buf.validate.conformance.cases.TestMsg nested = 2 [json_name = "nested"]; - */ - build.buf.validate.conformance.cases.TestMsgOrBuilder getNestedOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsg.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsg.java deleted file mode 100644 index 8e2b1f57..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsg.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/oneofs.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TestOneofMsg} - */ -public final class TestOneofMsg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TestOneofMsg) - TestOneofMsgOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TestOneofMsg.class.getName()); - } - // Use TestOneofMsg.newBuilder() to construct. - private TestOneofMsg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TestOneofMsg() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_TestOneofMsg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_TestOneofMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TestOneofMsg.class, build.buf.validate.conformance.cases.TestOneofMsg.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private boolean val_ = false; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - - 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 { - if (val_ != false) { - output.writeBool(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, val_); - } - 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.TestOneofMsg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TestOneofMsg other = (build.buf.validate.conformance.cases.TestOneofMsg) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TestOneofMsg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TestOneofMsg 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.TestOneofMsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TestOneofMsg 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.TestOneofMsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TestOneofMsg 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.TestOneofMsg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TestOneofMsg 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.TestOneofMsg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TestOneofMsg 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.TestOneofMsg 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.TestOneofMsg 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.TestOneofMsg 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.TestOneofMsg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TestOneofMsg) - build.buf.validate.conformance.cases.TestOneofMsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_TestOneofMsg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_TestOneofMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TestOneofMsg.class, build.buf.validate.conformance.cases.TestOneofMsg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TestOneofMsg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.OneofsProto.internal_static_buf_validate_conformance_cases_TestOneofMsg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TestOneofMsg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TestOneofMsg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TestOneofMsg build() { - build.buf.validate.conformance.cases.TestOneofMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TestOneofMsg buildPartial() { - build.buf.validate.conformance.cases.TestOneofMsg result = new build.buf.validate.conformance.cases.TestOneofMsg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TestOneofMsg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TestOneofMsg) { - return mergeFrom((build.buf.validate.conformance.cases.TestOneofMsg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TestOneofMsg other) { - if (other == build.buf.validate.conformance.cases.TestOneofMsg.getDefaultInstance()) return this; - if (other.getVal() != false) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 boolean val_ ; - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public boolean getVal() { - return val_; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(boolean value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TestOneofMsg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TestOneofMsg) - private static final build.buf.validate.conformance.cases.TestOneofMsg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TestOneofMsg(); - } - - public static build.buf.validate.conformance.cases.TestOneofMsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestOneofMsg 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.TestOneofMsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsgOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsgOrBuilder.java deleted file mode 100644 index 326dbca1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TestOneofMsgOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/oneofs.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TestOneofMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TestOneofMsg) - com.google.protobuf.MessageOrBuilder { - - /** - * bool val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - boolean getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConst.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConst.java deleted file mode 100644 index b1133f30..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConst.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampConst} - */ -public final class TimestampConst extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampConst) - TimestampConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampConst.class.getName()); - } - // Use TimestampConst.newBuilder() to construct. - private TimestampConst(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampConst() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampConst.class, build.buf.validate.conformance.cases.TimestampConst.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampConst)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampConst other = (build.buf.validate.conformance.cases.TimestampConst) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampConst parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampConst 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.TimestampConst parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampConst 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.TimestampConst parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampConst 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.TimestampConst parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampConst 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.TimestampConst parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampConst 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.TimestampConst 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.TimestampConst 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.TimestampConst 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.TimestampConst} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampConst) - build.buf.validate.conformance.cases.TimestampConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampConst_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampConst_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampConst.class, build.buf.validate.conformance.cases.TimestampConst.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampConst.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampConst_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampConst getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampConst.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampConst build() { - build.buf.validate.conformance.cases.TimestampConst result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampConst buildPartial() { - build.buf.validate.conformance.cases.TimestampConst result = new build.buf.validate.conformance.cases.TimestampConst(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampConst result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampConst) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampConst)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampConst other) { - if (other == build.buf.validate.conformance.cases.TimestampConst.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampConst) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampConst) - private static final build.buf.validate.conformance.cases.TimestampConst DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampConst(); - } - - public static build.buf.validate.conformance.cases.TimestampConst getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampConst 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.TimestampConst getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConstOrBuilder.java deleted file mode 100644 index f1c5ec98..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampConstOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampConst) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTE.java deleted file mode 100644 index 9515d562..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTE.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampExGTELTE} - */ -public final class TimestampExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampExGTELTE) - TimestampExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampExGTELTE.class.getName()); - } - // Use TimestampExGTELTE.newBuilder() to construct. - private TimestampExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampExGTELTE.class, build.buf.validate.conformance.cases.TimestampExGTELTE.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampExGTELTE other = (build.buf.validate.conformance.cases.TimestampExGTELTE) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampExGTELTE 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.TimestampExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampExGTELTE 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.TimestampExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampExGTELTE 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.TimestampExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampExGTELTE 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.TimestampExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampExGTELTE 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.TimestampExGTELTE 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.TimestampExGTELTE 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.TimestampExGTELTE 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.TimestampExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampExGTELTE) - build.buf.validate.conformance.cases.TimestampExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampExGTELTE.class, build.buf.validate.conformance.cases.TimestampExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampExGTELTE.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampExGTELTE build() { - build.buf.validate.conformance.cases.TimestampExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampExGTELTE buildPartial() { - build.buf.validate.conformance.cases.TimestampExGTELTE result = new build.buf.validate.conformance.cases.TimestampExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampExGTELTE result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampExGTELTE other) { - if (other == build.buf.validate.conformance.cases.TimestampExGTELTE.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampExGTELTE) - private static final build.buf.validate.conformance.cases.TimestampExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampExGTELTE(); - } - - public static build.buf.validate.conformance.cases.TimestampExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampExGTELTE 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.TimestampExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTEOrBuilder.java deleted file mode 100644 index 9963901d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExGTELTEOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGT.java deleted file mode 100644 index b64e9400..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGT.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampExLTGT} - */ -public final class TimestampExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampExLTGT) - TimestampExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampExLTGT.class.getName()); - } - // Use TimestampExLTGT.newBuilder() to construct. - private TimestampExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampExLTGT.class, build.buf.validate.conformance.cases.TimestampExLTGT.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampExLTGT other = (build.buf.validate.conformance.cases.TimestampExLTGT) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampExLTGT 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.TimestampExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampExLTGT 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.TimestampExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampExLTGT 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.TimestampExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampExLTGT 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.TimestampExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampExLTGT 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.TimestampExLTGT 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.TimestampExLTGT 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.TimestampExLTGT 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.TimestampExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampExLTGT) - build.buf.validate.conformance.cases.TimestampExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampExLTGT.class, build.buf.validate.conformance.cases.TimestampExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampExLTGT.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampExLTGT build() { - build.buf.validate.conformance.cases.TimestampExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampExLTGT buildPartial() { - build.buf.validate.conformance.cases.TimestampExLTGT result = new build.buf.validate.conformance.cases.TimestampExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampExLTGT result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampExLTGT other) { - if (other == build.buf.validate.conformance.cases.TimestampExLTGT.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampExLTGT) - private static final build.buf.validate.conformance.cases.TimestampExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampExLTGT(); - } - - public static build.buf.validate.conformance.cases.TimestampExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampExLTGT 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.TimestampExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGTOrBuilder.java deleted file mode 100644 index abd04c00..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExLTGTOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExample.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExample.java deleted file mode 100644 index f94aeaf5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExample.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampExample} - */ -public final class TimestampExample extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampExample) - TimestampExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampExample.class.getName()); - } - // Use TimestampExample.newBuilder() to construct. - private TimestampExample(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampExample() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampExample.class, build.buf.validate.conformance.cases.TimestampExample.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampExample)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampExample other = (build.buf.validate.conformance.cases.TimestampExample) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampExample parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampExample 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.TimestampExample parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampExample 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.TimestampExample parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampExample 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.TimestampExample parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampExample 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.TimestampExample parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampExample 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.TimestampExample 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.TimestampExample 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.TimestampExample 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.TimestampExample} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampExample) - build.buf.validate.conformance.cases.TimestampExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExample_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExample_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampExample.class, build.buf.validate.conformance.cases.TimestampExample.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampExample.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampExample_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampExample getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampExample.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampExample build() { - build.buf.validate.conformance.cases.TimestampExample result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampExample buildPartial() { - build.buf.validate.conformance.cases.TimestampExample result = new build.buf.validate.conformance.cases.TimestampExample(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampExample result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampExample) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampExample)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampExample other) { - if (other == build.buf.validate.conformance.cases.TimestampExample.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampExample) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampExample) - private static final build.buf.validate.conformance.cases.TimestampExample DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampExample(); - } - - public static build.buf.validate.conformance.cases.TimestampExample getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampExample 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.TimestampExample getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExampleOrBuilder.java deleted file mode 100644 index b1776fd9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampExampleOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampExample) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGT.java deleted file mode 100644 index 31988df2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGT.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampGT} - */ -public final class TimestampGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampGT) - TimestampGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampGT.class.getName()); - } - // Use TimestampGT.newBuilder() to construct. - private TimestampGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGT.class, build.buf.validate.conformance.cases.TimestampGT.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampGT other = (build.buf.validate.conformance.cases.TimestampGT) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGT 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.TimestampGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGT 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.TimestampGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGT 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.TimestampGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampGT 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.TimestampGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampGT 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.TimestampGT 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.TimestampGT 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.TimestampGT 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.TimestampGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampGT) - build.buf.validate.conformance.cases.TimestampGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGT.class, build.buf.validate.conformance.cases.TimestampGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampGT.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGT build() { - build.buf.validate.conformance.cases.TimestampGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGT buildPartial() { - build.buf.validate.conformance.cases.TimestampGT result = new build.buf.validate.conformance.cases.TimestampGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampGT result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampGT) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampGT other) { - if (other == build.buf.validate.conformance.cases.TimestampGT.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampGT) - private static final build.buf.validate.conformance.cases.TimestampGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampGT(); - } - - public static build.buf.validate.conformance.cases.TimestampGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampGT 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.TimestampGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTE.java deleted file mode 100644 index 4a4a6bba..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTE.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampGTE} - */ -public final class TimestampGTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampGTE) - TimestampGTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampGTE.class.getName()); - } - // Use TimestampGTE.newBuilder() to construct. - private TimestampGTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampGTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGTE.class, build.buf.validate.conformance.cases.TimestampGTE.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampGTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampGTE other = (build.buf.validate.conformance.cases.TimestampGTE) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampGTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTE 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.TimestampGTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTE 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.TimestampGTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTE 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.TimestampGTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampGTE 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.TimestampGTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampGTE 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.TimestampGTE 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.TimestampGTE 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.TimestampGTE 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.TimestampGTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampGTE) - build.buf.validate.conformance.cases.TimestampGTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGTE.class, build.buf.validate.conformance.cases.TimestampGTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampGTE.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampGTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTE build() { - build.buf.validate.conformance.cases.TimestampGTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTE buildPartial() { - build.buf.validate.conformance.cases.TimestampGTE result = new build.buf.validate.conformance.cases.TimestampGTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampGTE result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampGTE) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampGTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampGTE other) { - if (other == build.buf.validate.conformance.cases.TimestampGTE.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampGTE) - private static final build.buf.validate.conformance.cases.TimestampGTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampGTE(); - } - - public static build.buf.validate.conformance.cases.TimestampGTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampGTE 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.TimestampGTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTE.java deleted file mode 100644 index 8fca4a86..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTE.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampGTELTE} - */ -public final class TimestampGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampGTELTE) - TimestampGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampGTELTE.class.getName()); - } - // Use TimestampGTELTE.newBuilder() to construct. - private TimestampGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGTELTE.class, build.buf.validate.conformance.cases.TimestampGTELTE.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampGTELTE other = (build.buf.validate.conformance.cases.TimestampGTELTE) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTELTE 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.TimestampGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTELTE 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.TimestampGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTELTE 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.TimestampGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampGTELTE 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.TimestampGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampGTELTE 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.TimestampGTELTE 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.TimestampGTELTE 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.TimestampGTELTE 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.TimestampGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampGTELTE) - build.buf.validate.conformance.cases.TimestampGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGTELTE.class, build.buf.validate.conformance.cases.TimestampGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampGTELTE.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTELTE build() { - build.buf.validate.conformance.cases.TimestampGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTELTE buildPartial() { - build.buf.validate.conformance.cases.TimestampGTELTE result = new build.buf.validate.conformance.cases.TimestampGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampGTELTE result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampGTELTE other) { - if (other == build.buf.validate.conformance.cases.TimestampGTELTE.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampGTELTE) - private static final build.buf.validate.conformance.cases.TimestampGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampGTELTE(); - } - - public static build.buf.validate.conformance.cases.TimestampGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampGTELTE 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.TimestampGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTEOrBuilder.java deleted file mode 100644 index dbeaec15..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTELTEOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTEOrBuilder.java deleted file mode 100644 index 8cab48e6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTEOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampGTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampGTE) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLT.java deleted file mode 100644 index bfdfe97b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLT.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampGTLT} - */ -public final class TimestampGTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampGTLT) - TimestampGTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampGTLT.class.getName()); - } - // Use TimestampGTLT.newBuilder() to construct. - private TimestampGTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampGTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGTLT.class, build.buf.validate.conformance.cases.TimestampGTLT.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampGTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampGTLT other = (build.buf.validate.conformance.cases.TimestampGTLT) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampGTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTLT 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.TimestampGTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTLT 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.TimestampGTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTLT 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.TimestampGTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampGTLT 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.TimestampGTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampGTLT 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.TimestampGTLT 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.TimestampGTLT 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.TimestampGTLT 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.TimestampGTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampGTLT) - build.buf.validate.conformance.cases.TimestampGTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGTLT.class, build.buf.validate.conformance.cases.TimestampGTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampGTLT.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampGTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTLT build() { - build.buf.validate.conformance.cases.TimestampGTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTLT buildPartial() { - build.buf.validate.conformance.cases.TimestampGTLT result = new build.buf.validate.conformance.cases.TimestampGTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampGTLT result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampGTLT) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampGTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampGTLT other) { - if (other == build.buf.validate.conformance.cases.TimestampGTLT.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampGTLT) - private static final build.buf.validate.conformance.cases.TimestampGTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampGTLT(); - } - - public static build.buf.validate.conformance.cases.TimestampGTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampGTLT 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.TimestampGTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLTOrBuilder.java deleted file mode 100644 index a30d3477..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTLTOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampGTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampGTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNow.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNow.java deleted file mode 100644 index 746173b4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNow.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampGTNow} - */ -public final class TimestampGTNow extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampGTNow) - TimestampGTNowOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampGTNow.class.getName()); - } - // Use TimestampGTNow.newBuilder() to construct. - private TimestampGTNow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampGTNow() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGTNow.class, build.buf.validate.conformance.cases.TimestampGTNow.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampGTNow)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampGTNow other = (build.buf.validate.conformance.cases.TimestampGTNow) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampGTNow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTNow 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.TimestampGTNow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTNow 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.TimestampGTNow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTNow 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.TimestampGTNow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampGTNow 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.TimestampGTNow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampGTNow 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.TimestampGTNow 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.TimestampGTNow 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.TimestampGTNow 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.TimestampGTNow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampGTNow) - build.buf.validate.conformance.cases.TimestampGTNowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGTNow.class, build.buf.validate.conformance.cases.TimestampGTNow.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampGTNow.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNow_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTNow getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampGTNow.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTNow build() { - build.buf.validate.conformance.cases.TimestampGTNow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTNow buildPartial() { - build.buf.validate.conformance.cases.TimestampGTNow result = new build.buf.validate.conformance.cases.TimestampGTNow(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampGTNow result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampGTNow) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampGTNow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampGTNow other) { - if (other == build.buf.validate.conformance.cases.TimestampGTNow.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGTNow) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampGTNow) - private static final build.buf.validate.conformance.cases.TimestampGTNow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampGTNow(); - } - - public static build.buf.validate.conformance.cases.TimestampGTNow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampGTNow 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.TimestampGTNow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowOrBuilder.java deleted file mode 100644 index 3b240dd5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampGTNowOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampGTNow) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithin.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithin.java deleted file mode 100644 index 9d96b686..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithin.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampGTNowWithin} - */ -public final class TimestampGTNowWithin extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampGTNowWithin) - TimestampGTNowWithinOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampGTNowWithin.class.getName()); - } - // Use TimestampGTNowWithin.newBuilder() to construct. - private TimestampGTNowWithin(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampGTNowWithin() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGTNowWithin.class, build.buf.validate.conformance.cases.TimestampGTNowWithin.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampGTNowWithin)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampGTNowWithin other = (build.buf.validate.conformance.cases.TimestampGTNowWithin) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampGTNowWithin parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTNowWithin 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.TimestampGTNowWithin parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTNowWithin 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.TimestampGTNowWithin parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampGTNowWithin 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.TimestampGTNowWithin parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampGTNowWithin 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.TimestampGTNowWithin parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampGTNowWithin 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.TimestampGTNowWithin 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.TimestampGTNowWithin 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.TimestampGTNowWithin 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.TimestampGTNowWithin} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampGTNowWithin) - build.buf.validate.conformance.cases.TimestampGTNowWithinOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampGTNowWithin.class, build.buf.validate.conformance.cases.TimestampGTNowWithin.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampGTNowWithin.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTNowWithin getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampGTNowWithin.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTNowWithin build() { - build.buf.validate.conformance.cases.TimestampGTNowWithin result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampGTNowWithin buildPartial() { - build.buf.validate.conformance.cases.TimestampGTNowWithin result = new build.buf.validate.conformance.cases.TimestampGTNowWithin(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampGTNowWithin result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampGTNowWithin) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampGTNowWithin)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampGTNowWithin other) { - if (other == build.buf.validate.conformance.cases.TimestampGTNowWithin.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampGTNowWithin) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampGTNowWithin) - private static final build.buf.validate.conformance.cases.TimestampGTNowWithin DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampGTNowWithin(); - } - - public static build.buf.validate.conformance.cases.TimestampGTNowWithin getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampGTNowWithin 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.TimestampGTNowWithin getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithinOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithinOrBuilder.java deleted file mode 100644 index 93e6747a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTNowWithinOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampGTNowWithinOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampGTNowWithin) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTOrBuilder.java deleted file mode 100644 index 2237dd60..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampGTOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampGT) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLT.java deleted file mode 100644 index b896d8a3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLT.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampLT} - */ -public final class TimestampLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampLT) - TimestampLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampLT.class.getName()); - } - // Use TimestampLT.newBuilder() to construct. - private TimestampLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampLT.class, build.buf.validate.conformance.cases.TimestampLT.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampLT other = (build.buf.validate.conformance.cases.TimestampLT) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLT 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.TimestampLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLT 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.TimestampLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLT 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.TimestampLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampLT 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.TimestampLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampLT 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.TimestampLT 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.TimestampLT 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.TimestampLT 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.TimestampLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampLT) - build.buf.validate.conformance.cases.TimestampLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampLT.class, build.buf.validate.conformance.cases.TimestampLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampLT.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLT build() { - build.buf.validate.conformance.cases.TimestampLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLT buildPartial() { - build.buf.validate.conformance.cases.TimestampLT result = new build.buf.validate.conformance.cases.TimestampLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampLT result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampLT) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampLT other) { - if (other == build.buf.validate.conformance.cases.TimestampLT.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampLT) - private static final build.buf.validate.conformance.cases.TimestampLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampLT(); - } - - public static build.buf.validate.conformance.cases.TimestampLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampLT 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.TimestampLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTE.java deleted file mode 100644 index d55c2826..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTE.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampLTE} - */ -public final class TimestampLTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampLTE) - TimestampLTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampLTE.class.getName()); - } - // Use TimestampLTE.newBuilder() to construct. - private TimestampLTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampLTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampLTE.class, build.buf.validate.conformance.cases.TimestampLTE.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampLTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampLTE other = (build.buf.validate.conformance.cases.TimestampLTE) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampLTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLTE 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.TimestampLTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLTE 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.TimestampLTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLTE 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.TimestampLTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampLTE 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.TimestampLTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampLTE 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.TimestampLTE 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.TimestampLTE 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.TimestampLTE 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.TimestampLTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampLTE) - build.buf.validate.conformance.cases.TimestampLTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampLTE.class, build.buf.validate.conformance.cases.TimestampLTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampLTE.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampLTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLTE build() { - build.buf.validate.conformance.cases.TimestampLTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLTE buildPartial() { - build.buf.validate.conformance.cases.TimestampLTE result = new build.buf.validate.conformance.cases.TimestampLTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampLTE result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampLTE) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampLTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampLTE other) { - if (other == build.buf.validate.conformance.cases.TimestampLTE.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampLTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampLTE) - private static final build.buf.validate.conformance.cases.TimestampLTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampLTE(); - } - - public static build.buf.validate.conformance.cases.TimestampLTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampLTE 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.TimestampLTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTEOrBuilder.java deleted file mode 100644 index 0993a958..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTEOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampLTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampLTE) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNow.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNow.java deleted file mode 100644 index 9920af72..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNow.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampLTNow} - */ -public final class TimestampLTNow extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampLTNow) - TimestampLTNowOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampLTNow.class.getName()); - } - // Use TimestampLTNow.newBuilder() to construct. - private TimestampLTNow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampLTNow() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampLTNow.class, build.buf.validate.conformance.cases.TimestampLTNow.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampLTNow)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampLTNow other = (build.buf.validate.conformance.cases.TimestampLTNow) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampLTNow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLTNow 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.TimestampLTNow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLTNow 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.TimestampLTNow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLTNow 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.TimestampLTNow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampLTNow 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.TimestampLTNow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampLTNow 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.TimestampLTNow 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.TimestampLTNow 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.TimestampLTNow 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.TimestampLTNow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampLTNow) - build.buf.validate.conformance.cases.TimestampLTNowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampLTNow.class, build.buf.validate.conformance.cases.TimestampLTNow.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampLTNow.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNow_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLTNow getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampLTNow.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLTNow build() { - build.buf.validate.conformance.cases.TimestampLTNow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLTNow buildPartial() { - build.buf.validate.conformance.cases.TimestampLTNow result = new build.buf.validate.conformance.cases.TimestampLTNow(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampLTNow result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampLTNow) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampLTNow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampLTNow other) { - if (other == build.buf.validate.conformance.cases.TimestampLTNow.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampLTNow) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampLTNow) - private static final build.buf.validate.conformance.cases.TimestampLTNow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampLTNow(); - } - - public static build.buf.validate.conformance.cases.TimestampLTNow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampLTNow 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.TimestampLTNow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowOrBuilder.java deleted file mode 100644 index 4e679241..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampLTNowOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampLTNow) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithin.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithin.java deleted file mode 100644 index 60eb7763..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithin.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampLTNowWithin} - */ -public final class TimestampLTNowWithin extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampLTNowWithin) - TimestampLTNowWithinOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampLTNowWithin.class.getName()); - } - // Use TimestampLTNowWithin.newBuilder() to construct. - private TimestampLTNowWithin(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampLTNowWithin() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampLTNowWithin.class, build.buf.validate.conformance.cases.TimestampLTNowWithin.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampLTNowWithin)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampLTNowWithin other = (build.buf.validate.conformance.cases.TimestampLTNowWithin) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampLTNowWithin parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLTNowWithin 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.TimestampLTNowWithin parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLTNowWithin 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.TimestampLTNowWithin parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampLTNowWithin 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.TimestampLTNowWithin parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampLTNowWithin 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.TimestampLTNowWithin parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampLTNowWithin 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.TimestampLTNowWithin 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.TimestampLTNowWithin 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.TimestampLTNowWithin 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.TimestampLTNowWithin} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampLTNowWithin) - build.buf.validate.conformance.cases.TimestampLTNowWithinOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampLTNowWithin.class, build.buf.validate.conformance.cases.TimestampLTNowWithin.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampLTNowWithin.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLTNowWithin getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampLTNowWithin.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLTNowWithin build() { - build.buf.validate.conformance.cases.TimestampLTNowWithin result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampLTNowWithin buildPartial() { - build.buf.validate.conformance.cases.TimestampLTNowWithin result = new build.buf.validate.conformance.cases.TimestampLTNowWithin(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampLTNowWithin result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampLTNowWithin) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampLTNowWithin)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampLTNowWithin other) { - if (other == build.buf.validate.conformance.cases.TimestampLTNowWithin.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampLTNowWithin) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampLTNowWithin) - private static final build.buf.validate.conformance.cases.TimestampLTNowWithin DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampLTNowWithin(); - } - - public static build.buf.validate.conformance.cases.TimestampLTNowWithin getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampLTNowWithin 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.TimestampLTNowWithin getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithinOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithinOrBuilder.java deleted file mode 100644 index d562ad19..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTNowWithinOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampLTNowWithinOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampLTNowWithin) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTOrBuilder.java deleted file mode 100644 index f7a245d3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampLTOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampLT) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNone.java deleted file mode 100644 index b2ecaba3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNone.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampNone} - */ -public final class TimestampNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampNone) - TimestampNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampNone.class.getName()); - } - // Use TimestampNone.newBuilder() to construct. - private TimestampNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampNone() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampNone.class, build.buf.validate.conformance.cases.TimestampNone.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampNone other = (build.buf.validate.conformance.cases.TimestampNone) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampNone 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.TimestampNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampNone 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.TimestampNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampNone 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.TimestampNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampNone 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.TimestampNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampNone 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.TimestampNone 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.TimestampNone 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.TimestampNone 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.TimestampNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampNone) - build.buf.validate.conformance.cases.TimestampNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampNone.class, build.buf.validate.conformance.cases.TimestampNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampNone.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampNone build() { - build.buf.validate.conformance.cases.TimestampNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampNone buildPartial() { - build.buf.validate.conformance.cases.TimestampNone result = new build.buf.validate.conformance.cases.TimestampNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampNone result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampNone) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampNone other) { - if (other == build.buf.validate.conformance.cases.TimestampNone.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampNone) - private static final build.buf.validate.conformance.cases.TimestampNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampNone(); - } - - public static build.buf.validate.conformance.cases.TimestampNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampNone 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.TimestampNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNoneOrBuilder.java deleted file mode 100644 index d4d8ea57..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNoneOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampNone) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val"]; - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotGTNow.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotGTNow.java deleted file mode 100644 index 8f2124a7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotGTNow.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampNotGTNow} - */ -public final class TimestampNotGTNow extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampNotGTNow) - TimestampNotGTNowOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampNotGTNow.class.getName()); - } - // Use TimestampNotGTNow.newBuilder() to construct. - private TimestampNotGTNow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampNotGTNow() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNotGTNow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNotGTNow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampNotGTNow.class, build.buf.validate.conformance.cases.TimestampNotGTNow.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampNotGTNow)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampNotGTNow other = (build.buf.validate.conformance.cases.TimestampNotGTNow) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampNotGTNow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampNotGTNow 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.TimestampNotGTNow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampNotGTNow 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.TimestampNotGTNow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampNotGTNow 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.TimestampNotGTNow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampNotGTNow 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.TimestampNotGTNow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampNotGTNow 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.TimestampNotGTNow 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.TimestampNotGTNow 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.TimestampNotGTNow 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.TimestampNotGTNow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampNotGTNow) - build.buf.validate.conformance.cases.TimestampNotGTNowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNotGTNow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNotGTNow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampNotGTNow.class, build.buf.validate.conformance.cases.TimestampNotGTNow.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampNotGTNow.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNotGTNow_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampNotGTNow getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampNotGTNow.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampNotGTNow build() { - build.buf.validate.conformance.cases.TimestampNotGTNow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampNotGTNow buildPartial() { - build.buf.validate.conformance.cases.TimestampNotGTNow result = new build.buf.validate.conformance.cases.TimestampNotGTNow(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampNotGTNow result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampNotGTNow) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampNotGTNow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampNotGTNow other) { - if (other == build.buf.validate.conformance.cases.TimestampNotGTNow.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampNotGTNow) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampNotGTNow) - private static final build.buf.validate.conformance.cases.TimestampNotGTNow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampNotGTNow(); - } - - public static build.buf.validate.conformance.cases.TimestampNotGTNow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampNotGTNow 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.TimestampNotGTNow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotGTNowOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotGTNowOrBuilder.java deleted file mode 100644 index dbe9957a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotGTNowOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampNotGTNowOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampNotGTNow) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotLTNow.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotLTNow.java deleted file mode 100644 index 9bc6cd3d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotLTNow.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampNotLTNow} - */ -public final class TimestampNotLTNow extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampNotLTNow) - TimestampNotLTNowOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampNotLTNow.class.getName()); - } - // Use TimestampNotLTNow.newBuilder() to construct. - private TimestampNotLTNow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampNotLTNow() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNotLTNow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNotLTNow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampNotLTNow.class, build.buf.validate.conformance.cases.TimestampNotLTNow.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampNotLTNow)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampNotLTNow other = (build.buf.validate.conformance.cases.TimestampNotLTNow) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampNotLTNow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampNotLTNow 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.TimestampNotLTNow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampNotLTNow 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.TimestampNotLTNow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampNotLTNow 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.TimestampNotLTNow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampNotLTNow 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.TimestampNotLTNow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampNotLTNow 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.TimestampNotLTNow 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.TimestampNotLTNow 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.TimestampNotLTNow 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.TimestampNotLTNow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampNotLTNow) - build.buf.validate.conformance.cases.TimestampNotLTNowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNotLTNow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNotLTNow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampNotLTNow.class, build.buf.validate.conformance.cases.TimestampNotLTNow.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampNotLTNow.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampNotLTNow_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampNotLTNow getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampNotLTNow.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampNotLTNow build() { - build.buf.validate.conformance.cases.TimestampNotLTNow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampNotLTNow buildPartial() { - build.buf.validate.conformance.cases.TimestampNotLTNow result = new build.buf.validate.conformance.cases.TimestampNotLTNow(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampNotLTNow result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampNotLTNow) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampNotLTNow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampNotLTNow other) { - if (other == build.buf.validate.conformance.cases.TimestampNotLTNow.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampNotLTNow) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampNotLTNow) - private static final build.buf.validate.conformance.cases.TimestampNotLTNow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampNotLTNow(); - } - - public static build.buf.validate.conformance.cases.TimestampNotLTNow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampNotLTNow 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.TimestampNotLTNow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotLTNowOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotLTNowOrBuilder.java deleted file mode 100644 index 67e8343f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampNotLTNowOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampNotLTNowOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampNotLTNow) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequired.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequired.java deleted file mode 100644 index 7732414c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequired.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampRequired} - */ -public final class TimestampRequired extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampRequired) - TimestampRequiredOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampRequired.class.getName()); - } - // Use TimestampRequired.newBuilder() to construct. - private TimestampRequired(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampRequired() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampRequired.class, build.buf.validate.conformance.cases.TimestampRequired.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampRequired)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampRequired other = (build.buf.validate.conformance.cases.TimestampRequired) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampRequired parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampRequired 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.TimestampRequired parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampRequired 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.TimestampRequired parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampRequired 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.TimestampRequired parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampRequired 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.TimestampRequired parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampRequired 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.TimestampRequired 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.TimestampRequired 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.TimestampRequired 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.TimestampRequired} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampRequired) - build.buf.validate.conformance.cases.TimestampRequiredOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampRequired_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampRequired_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampRequired.class, build.buf.validate.conformance.cases.TimestampRequired.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampRequired.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampRequired_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampRequired getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampRequired.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampRequired build() { - build.buf.validate.conformance.cases.TimestampRequired result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampRequired buildPartial() { - build.buf.validate.conformance.cases.TimestampRequired result = new build.buf.validate.conformance.cases.TimestampRequired(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampRequired result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampRequired) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampRequired)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampRequired other) { - if (other == build.buf.validate.conformance.cases.TimestampRequired.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampRequired) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampRequired) - private static final build.buf.validate.conformance.cases.TimestampRequired DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampRequired(); - } - - public static build.buf.validate.conformance.cases.TimestampRequired getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampRequired 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.TimestampRequired getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequiredOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequiredOrBuilder.java deleted file mode 100644 index 0d58774d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampRequiredOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampRequiredOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampRequired) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithin.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithin.java deleted file mode 100644 index a132cca5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithin.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.TimestampWithin} - */ -public final class TimestampWithin extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.TimestampWithin) - TimestampWithinOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampWithin.class.getName()); - } - // Use TimestampWithin.newBuilder() to construct. - private TimestampWithin(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TimestampWithin() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampWithin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampWithin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampWithin.class, build.buf.validate.conformance.cases.TimestampWithin.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp val_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getVal() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.TimestampWithin)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.TimestampWithin other = (build.buf.validate.conformance.cases.TimestampWithin) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.TimestampWithin parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampWithin 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.TimestampWithin parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampWithin 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.TimestampWithin parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.TimestampWithin 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.TimestampWithin parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.TimestampWithin 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.TimestampWithin parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.TimestampWithin 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.TimestampWithin 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.TimestampWithin 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.TimestampWithin 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.TimestampWithin} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.TimestampWithin) - build.buf.validate.conformance.cases.TimestampWithinOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampWithin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampWithin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.TimestampWithin.class, build.buf.validate.conformance.cases.TimestampWithin.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.TimestampWithin.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktTimestampProto.internal_static_buf_validate_conformance_cases_TimestampWithin_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampWithin getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.TimestampWithin.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampWithin build() { - build.buf.validate.conformance.cases.TimestampWithin result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.TimestampWithin buildPartial() { - build.buf.validate.conformance.cases.TimestampWithin result = new build.buf.validate.conformance.cases.TimestampWithin(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.TimestampWithin result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.TimestampWithin) { - return mergeFrom((build.buf.validate.conformance.cases.TimestampWithin)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.TimestampWithin other) { - if (other == build.buf.validate.conformance.cases.TimestampWithin.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Timestamp val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> valBuilder_; - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Timestamp getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Timestamp value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.TimestampWithin) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.TimestampWithin) - private static final build.buf.validate.conformance.cases.TimestampWithin DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.TimestampWithin(); - } - - public static build.buf.validate.conformance.cases.TimestampWithin getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampWithin 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.TimestampWithin getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithinOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithinOrBuilder.java deleted file mode 100644 index 0e873bc5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/TimestampWithinOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface TimestampWithinOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.TimestampWithin) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Timestamp getVal(); - /** - * .google.protobuf.Timestamp val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Const.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Const.java deleted file mode 100644 index 673e0ba3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Const.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32Const} - */ -public final class UInt32Const extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32Const) - UInt32ConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32Const.class.getName()); - } - // Use UInt32Const.newBuilder() to construct. - private UInt32Const(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32Const() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32Const.class, build.buf.validate.conformance.cases.UInt32Const.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32Const)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32Const other = (build.buf.validate.conformance.cases.UInt32Const) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32Const parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32Const 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.UInt32Const parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32Const 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.UInt32Const parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32Const 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.UInt32Const parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32Const 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.UInt32Const parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32Const 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.UInt32Const 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.UInt32Const 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.UInt32Const 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.UInt32Const} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32Const) - build.buf.validate.conformance.cases.UInt32ConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32Const.class, build.buf.validate.conformance.cases.UInt32Const.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32Const.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Const_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32Const getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32Const.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32Const build() { - build.buf.validate.conformance.cases.UInt32Const result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32Const buildPartial() { - build.buf.validate.conformance.cases.UInt32Const result = new build.buf.validate.conformance.cases.UInt32Const(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32Const result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32Const) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32Const)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32Const other) { - if (other == build.buf.validate.conformance.cases.UInt32Const.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32Const) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32Const) - private static final build.buf.validate.conformance.cases.UInt32Const DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32Const(); - } - - public static build.buf.validate.conformance.cases.UInt32Const getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32Const 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.UInt32Const getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ConstOrBuilder.java deleted file mode 100644 index f4095a73..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32ConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32Const) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTE.java deleted file mode 100644 index d7233f9b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32ExGTELTE} - */ -public final class UInt32ExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32ExGTELTE) - UInt32ExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32ExGTELTE.class.getName()); - } - // Use UInt32ExGTELTE.newBuilder() to construct. - private UInt32ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32ExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32ExGTELTE.class, build.buf.validate.conformance.cases.UInt32ExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32ExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32ExGTELTE other = (build.buf.validate.conformance.cases.UInt32ExGTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32ExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32ExGTELTE 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.UInt32ExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32ExGTELTE 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.UInt32ExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32ExGTELTE 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.UInt32ExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32ExGTELTE 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.UInt32ExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32ExGTELTE 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.UInt32ExGTELTE 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.UInt32ExGTELTE 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.UInt32ExGTELTE 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.UInt32ExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32ExGTELTE) - build.buf.validate.conformance.cases.UInt32ExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32ExGTELTE.class, build.buf.validate.conformance.cases.UInt32ExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32ExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32ExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32ExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32ExGTELTE build() { - build.buf.validate.conformance.cases.UInt32ExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32ExGTELTE buildPartial() { - build.buf.validate.conformance.cases.UInt32ExGTELTE result = new build.buf.validate.conformance.cases.UInt32ExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32ExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32ExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32ExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32ExGTELTE other) { - if (other == build.buf.validate.conformance.cases.UInt32ExGTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32ExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32ExGTELTE) - private static final build.buf.validate.conformance.cases.UInt32ExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32ExGTELTE(); - } - - public static build.buf.validate.conformance.cases.UInt32ExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32ExGTELTE 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.UInt32ExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTEOrBuilder.java deleted file mode 100644 index 080c5f4c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32ExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32ExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGT.java deleted file mode 100644 index 9587e960..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32ExLTGT} - */ -public final class UInt32ExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32ExLTGT) - UInt32ExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32ExLTGT.class.getName()); - } - // Use UInt32ExLTGT.newBuilder() to construct. - private UInt32ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32ExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32ExLTGT.class, build.buf.validate.conformance.cases.UInt32ExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32ExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32ExLTGT other = (build.buf.validate.conformance.cases.UInt32ExLTGT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32ExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32ExLTGT 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.UInt32ExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32ExLTGT 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.UInt32ExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32ExLTGT 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.UInt32ExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32ExLTGT 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.UInt32ExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32ExLTGT 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.UInt32ExLTGT 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.UInt32ExLTGT 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.UInt32ExLTGT 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.UInt32ExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32ExLTGT) - build.buf.validate.conformance.cases.UInt32ExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32ExLTGT.class, build.buf.validate.conformance.cases.UInt32ExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32ExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32ExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32ExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32ExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32ExLTGT build() { - build.buf.validate.conformance.cases.UInt32ExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32ExLTGT buildPartial() { - build.buf.validate.conformance.cases.UInt32ExLTGT result = new build.buf.validate.conformance.cases.UInt32ExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32ExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32ExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32ExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32ExLTGT other) { - if (other == build.buf.validate.conformance.cases.UInt32ExLTGT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32ExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32ExLTGT) - private static final build.buf.validate.conformance.cases.UInt32ExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32ExLTGT(); - } - - public static build.buf.validate.conformance.cases.UInt32ExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32ExLTGT 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.UInt32ExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGTOrBuilder.java deleted file mode 100644 index df8a69e8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32ExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32ExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Example.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Example.java deleted file mode 100644 index c59f8b42..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Example.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32Example} - */ -public final class UInt32Example extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32Example) - UInt32ExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32Example.class.getName()); - } - // Use UInt32Example.newBuilder() to construct. - private UInt32Example(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32Example() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32Example.class, build.buf.validate.conformance.cases.UInt32Example.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32Example)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32Example other = (build.buf.validate.conformance.cases.UInt32Example) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32Example parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32Example 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.UInt32Example parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32Example 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.UInt32Example parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32Example 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.UInt32Example parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32Example 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.UInt32Example parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32Example 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.UInt32Example 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.UInt32Example 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.UInt32Example 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.UInt32Example} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32Example) - build.buf.validate.conformance.cases.UInt32ExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32Example.class, build.buf.validate.conformance.cases.UInt32Example.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32Example.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Example_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32Example getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32Example.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32Example build() { - build.buf.validate.conformance.cases.UInt32Example result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32Example buildPartial() { - build.buf.validate.conformance.cases.UInt32Example result = new build.buf.validate.conformance.cases.UInt32Example(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32Example result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32Example) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32Example)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32Example other) { - if (other == build.buf.validate.conformance.cases.UInt32Example.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32Example) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32Example) - private static final build.buf.validate.conformance.cases.UInt32Example DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32Example(); - } - - public static build.buf.validate.conformance.cases.UInt32Example getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32Example 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.UInt32Example getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExampleOrBuilder.java deleted file mode 100644 index 1c202aa2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32ExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32ExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32Example) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GT.java deleted file mode 100644 index 12fad642..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32GT} - */ -public final class UInt32GT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32GT) - UInt32GTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32GT.class.getName()); - } - // Use UInt32GT.newBuilder() to construct. - private UInt32GT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32GT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32GT.class, build.buf.validate.conformance.cases.UInt32GT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32GT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32GT other = (build.buf.validate.conformance.cases.UInt32GT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32GT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GT 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.UInt32GT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GT 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.UInt32GT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GT 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.UInt32GT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32GT 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.UInt32GT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32GT 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.UInt32GT 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.UInt32GT 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.UInt32GT 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.UInt32GT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32GT) - build.buf.validate.conformance.cases.UInt32GTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32GT.class, build.buf.validate.conformance.cases.UInt32GT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32GT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32GT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GT build() { - build.buf.validate.conformance.cases.UInt32GT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GT buildPartial() { - build.buf.validate.conformance.cases.UInt32GT result = new build.buf.validate.conformance.cases.UInt32GT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32GT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32GT) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32GT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32GT other) { - if (other == build.buf.validate.conformance.cases.UInt32GT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32GT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32GT) - private static final build.buf.validate.conformance.cases.UInt32GT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32GT(); - } - - public static build.buf.validate.conformance.cases.UInt32GT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32GT 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.UInt32GT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTE.java deleted file mode 100644 index 8ef0593e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32GTE} - */ -public final class UInt32GTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32GTE) - UInt32GTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32GTE.class.getName()); - } - // Use UInt32GTE.newBuilder() to construct. - private UInt32GTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32GTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32GTE.class, build.buf.validate.conformance.cases.UInt32GTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32GTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32GTE other = (build.buf.validate.conformance.cases.UInt32GTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32GTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GTE 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.UInt32GTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GTE 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.UInt32GTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GTE 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.UInt32GTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32GTE 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.UInt32GTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32GTE 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.UInt32GTE 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.UInt32GTE 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.UInt32GTE 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.UInt32GTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32GTE) - build.buf.validate.conformance.cases.UInt32GTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32GTE.class, build.buf.validate.conformance.cases.UInt32GTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32GTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32GTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GTE build() { - build.buf.validate.conformance.cases.UInt32GTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GTE buildPartial() { - build.buf.validate.conformance.cases.UInt32GTE result = new build.buf.validate.conformance.cases.UInt32GTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32GTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32GTE) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32GTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32GTE other) { - if (other == build.buf.validate.conformance.cases.UInt32GTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32GTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32GTE) - private static final build.buf.validate.conformance.cases.UInt32GTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32GTE(); - } - - public static build.buf.validate.conformance.cases.UInt32GTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32GTE 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.UInt32GTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTE.java deleted file mode 100644 index 8f5764d9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32GTELTE} - */ -public final class UInt32GTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32GTELTE) - UInt32GTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32GTELTE.class.getName()); - } - // Use UInt32GTELTE.newBuilder() to construct. - private UInt32GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32GTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32GTELTE.class, build.buf.validate.conformance.cases.UInt32GTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32GTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32GTELTE other = (build.buf.validate.conformance.cases.UInt32GTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32GTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GTELTE 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.UInt32GTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GTELTE 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.UInt32GTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GTELTE 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.UInt32GTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32GTELTE 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.UInt32GTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32GTELTE 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.UInt32GTELTE 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.UInt32GTELTE 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.UInt32GTELTE 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.UInt32GTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32GTELTE) - build.buf.validate.conformance.cases.UInt32GTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32GTELTE.class, build.buf.validate.conformance.cases.UInt32GTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32GTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32GTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GTELTE build() { - build.buf.validate.conformance.cases.UInt32GTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GTELTE buildPartial() { - build.buf.validate.conformance.cases.UInt32GTELTE result = new build.buf.validate.conformance.cases.UInt32GTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32GTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32GTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32GTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32GTELTE other) { - if (other == build.buf.validate.conformance.cases.UInt32GTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32GTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32GTELTE) - private static final build.buf.validate.conformance.cases.UInt32GTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32GTELTE(); - } - - public static build.buf.validate.conformance.cases.UInt32GTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32GTELTE 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.UInt32GTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTEOrBuilder.java deleted file mode 100644 index bf9cf491..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32GTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32GTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTEOrBuilder.java deleted file mode 100644 index 9a06ddba..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32GTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32GTE) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLT.java deleted file mode 100644 index 86812bfb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32GTLT} - */ -public final class UInt32GTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32GTLT) - UInt32GTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32GTLT.class.getName()); - } - // Use UInt32GTLT.newBuilder() to construct. - private UInt32GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32GTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32GTLT.class, build.buf.validate.conformance.cases.UInt32GTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32GTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32GTLT other = (build.buf.validate.conformance.cases.UInt32GTLT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32GTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GTLT 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.UInt32GTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GTLT 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.UInt32GTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32GTLT 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.UInt32GTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32GTLT 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.UInt32GTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32GTLT 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.UInt32GTLT 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.UInt32GTLT 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.UInt32GTLT 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.UInt32GTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32GTLT) - build.buf.validate.conformance.cases.UInt32GTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32GTLT.class, build.buf.validate.conformance.cases.UInt32GTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32GTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32GTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32GTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GTLT build() { - build.buf.validate.conformance.cases.UInt32GTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32GTLT buildPartial() { - build.buf.validate.conformance.cases.UInt32GTLT result = new build.buf.validate.conformance.cases.UInt32GTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32GTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32GTLT) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32GTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32GTLT other) { - if (other == build.buf.validate.conformance.cases.UInt32GTLT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32GTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32GTLT) - private static final build.buf.validate.conformance.cases.UInt32GTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32GTLT(); - } - - public static build.buf.validate.conformance.cases.UInt32GTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32GTLT 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.UInt32GTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLTOrBuilder.java deleted file mode 100644 index 7842aef0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32GTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32GTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTOrBuilder.java deleted file mode 100644 index 5881637f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32GTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32GTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32GT) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Ignore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Ignore.java deleted file mode 100644 index 3b59c6ef..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32Ignore.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32Ignore} - */ -public final class UInt32Ignore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32Ignore) - UInt32IgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32Ignore.class.getName()); - } - // Use UInt32Ignore.newBuilder() to construct. - private UInt32Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32Ignore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32Ignore.class, build.buf.validate.conformance.cases.UInt32Ignore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32Ignore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32Ignore other = (build.buf.validate.conformance.cases.UInt32Ignore) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32Ignore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32Ignore 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.UInt32Ignore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32Ignore 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.UInt32Ignore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32Ignore 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.UInt32Ignore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32Ignore 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.UInt32Ignore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32Ignore 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.UInt32Ignore 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.UInt32Ignore 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.UInt32Ignore 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.UInt32Ignore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32Ignore) - build.buf.validate.conformance.cases.UInt32IgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32Ignore.class, build.buf.validate.conformance.cases.UInt32Ignore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32Ignore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32Ignore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32Ignore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32Ignore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32Ignore build() { - build.buf.validate.conformance.cases.UInt32Ignore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32Ignore buildPartial() { - build.buf.validate.conformance.cases.UInt32Ignore result = new build.buf.validate.conformance.cases.UInt32Ignore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32Ignore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32Ignore) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32Ignore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32Ignore other) { - if (other == build.buf.validate.conformance.cases.UInt32Ignore.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32Ignore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32Ignore) - private static final build.buf.validate.conformance.cases.UInt32Ignore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32Ignore(); - } - - public static build.buf.validate.conformance.cases.UInt32Ignore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32Ignore 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.UInt32Ignore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IgnoreOrBuilder.java deleted file mode 100644 index 87d4e9ad..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32IgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32Ignore) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32In.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32In.java deleted file mode 100644 index 7f0388bb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32In.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32In} - */ -public final class UInt32In extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32In) - UInt32InOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32In.class.getName()); - } - // Use UInt32In.newBuilder() to construct. - private UInt32In(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32In() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32In.class, build.buf.validate.conformance.cases.UInt32In.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32In)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32In other = (build.buf.validate.conformance.cases.UInt32In) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32In parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32In 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.UInt32In parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32In 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.UInt32In parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32In 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.UInt32In parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32In 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.UInt32In parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32In 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.UInt32In 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.UInt32In 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.UInt32In 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.UInt32In} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32In) - build.buf.validate.conformance.cases.UInt32InOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32In.class, build.buf.validate.conformance.cases.UInt32In.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32In.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32In_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32In getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32In.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32In build() { - build.buf.validate.conformance.cases.UInt32In result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32In buildPartial() { - build.buf.validate.conformance.cases.UInt32In result = new build.buf.validate.conformance.cases.UInt32In(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32In result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32In) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32In)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32In other) { - if (other == build.buf.validate.conformance.cases.UInt32In.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32In) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32In) - private static final build.buf.validate.conformance.cases.UInt32In DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32In(); - } - - public static build.buf.validate.conformance.cases.UInt32In getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32In 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.UInt32In getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32InOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32InOrBuilder.java deleted file mode 100644 index 259fb5f4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32InOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32InOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32In) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectType.java deleted file mode 100644 index 4d56a53b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectType.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32IncorrectType} - */ -public final class UInt32IncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32IncorrectType) - UInt32IncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32IncorrectType.class.getName()); - } - // Use UInt32IncorrectType.newBuilder() to construct. - private UInt32IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32IncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32IncorrectType.class, build.buf.validate.conformance.cases.UInt32IncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32IncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32IncorrectType other = (build.buf.validate.conformance.cases.UInt32IncorrectType) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32IncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32IncorrectType 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.UInt32IncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32IncorrectType 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.UInt32IncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32IncorrectType 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.UInt32IncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32IncorrectType 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.UInt32IncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32IncorrectType 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.UInt32IncorrectType 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.UInt32IncorrectType 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.UInt32IncorrectType 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.UInt32IncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32IncorrectType) - build.buf.validate.conformance.cases.UInt32IncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32IncorrectType.class, build.buf.validate.conformance.cases.UInt32IncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32IncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32IncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32IncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32IncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32IncorrectType build() { - build.buf.validate.conformance.cases.UInt32IncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32IncorrectType buildPartial() { - build.buf.validate.conformance.cases.UInt32IncorrectType result = new build.buf.validate.conformance.cases.UInt32IncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32IncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32IncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32IncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32IncorrectType other) { - if (other == build.buf.validate.conformance.cases.UInt32IncorrectType.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32IncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32IncorrectType) - private static final build.buf.validate.conformance.cases.UInt32IncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32IncorrectType(); - } - - public static build.buf.validate.conformance.cases.UInt32IncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32IncorrectType 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.UInt32IncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectTypeOrBuilder.java deleted file mode 100644 index 26e708e5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32IncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32IncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32IncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LT.java deleted file mode 100644 index 75f23c23..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LT.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32LT} - */ -public final class UInt32LT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32LT) - UInt32LTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32LT.class.getName()); - } - // Use UInt32LT.newBuilder() to construct. - private UInt32LT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32LT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32LT.class, build.buf.validate.conformance.cases.UInt32LT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32LT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32LT other = (build.buf.validate.conformance.cases.UInt32LT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32LT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32LT 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.UInt32LT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32LT 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.UInt32LT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32LT 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.UInt32LT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32LT 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.UInt32LT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32LT 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.UInt32LT 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.UInt32LT 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.UInt32LT 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.UInt32LT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32LT) - build.buf.validate.conformance.cases.UInt32LTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32LT.class, build.buf.validate.conformance.cases.UInt32LT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32LT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32LT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32LT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32LT build() { - build.buf.validate.conformance.cases.UInt32LT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32LT buildPartial() { - build.buf.validate.conformance.cases.UInt32LT result = new build.buf.validate.conformance.cases.UInt32LT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32LT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32LT) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32LT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32LT other) { - if (other == build.buf.validate.conformance.cases.UInt32LT.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32LT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32LT) - private static final build.buf.validate.conformance.cases.UInt32LT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32LT(); - } - - public static build.buf.validate.conformance.cases.UInt32LT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32LT 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.UInt32LT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTE.java deleted file mode 100644 index 4d31c96d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTE.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32LTE} - */ -public final class UInt32LTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32LTE) - UInt32LTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32LTE.class.getName()); - } - // Use UInt32LTE.newBuilder() to construct. - private UInt32LTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32LTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32LTE.class, build.buf.validate.conformance.cases.UInt32LTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32LTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32LTE other = (build.buf.validate.conformance.cases.UInt32LTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32LTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32LTE 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.UInt32LTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32LTE 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.UInt32LTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32LTE 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.UInt32LTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32LTE 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.UInt32LTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32LTE 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.UInt32LTE 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.UInt32LTE 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.UInt32LTE 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.UInt32LTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32LTE) - build.buf.validate.conformance.cases.UInt32LTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32LTE.class, build.buf.validate.conformance.cases.UInt32LTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32LTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32LTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32LTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32LTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32LTE build() { - build.buf.validate.conformance.cases.UInt32LTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32LTE buildPartial() { - build.buf.validate.conformance.cases.UInt32LTE result = new build.buf.validate.conformance.cases.UInt32LTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32LTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32LTE) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32LTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32LTE other) { - if (other == build.buf.validate.conformance.cases.UInt32LTE.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32LTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32LTE) - private static final build.buf.validate.conformance.cases.UInt32LTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32LTE(); - } - - public static build.buf.validate.conformance.cases.UInt32LTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32LTE 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.UInt32LTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTEOrBuilder.java deleted file mode 100644 index 7701af39..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32LTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32LTE) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTOrBuilder.java deleted file mode 100644 index 5edf0566..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32LTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32LTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32LT) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32None.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32None.java deleted file mode 100644 index a5f4ebfc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32None.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32None} - */ -public final class UInt32None extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32None) - UInt32NoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32None.class.getName()); - } - // Use UInt32None.newBuilder() to construct. - private UInt32None(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32None() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32None.class, build.buf.validate.conformance.cases.UInt32None.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32None)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32None other = (build.buf.validate.conformance.cases.UInt32None) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32None parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32None 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.UInt32None parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32None 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.UInt32None parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32None 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.UInt32None parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32None 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.UInt32None parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32None 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.UInt32None 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.UInt32None 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.UInt32None 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.UInt32None} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32None) - build.buf.validate.conformance.cases.UInt32NoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32None.class, build.buf.validate.conformance.cases.UInt32None.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32None.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32None_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32None getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32None.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32None build() { - build.buf.validate.conformance.cases.UInt32None result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32None buildPartial() { - build.buf.validate.conformance.cases.UInt32None result = new build.buf.validate.conformance.cases.UInt32None(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32None result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32None) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32None)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32None other) { - if (other == build.buf.validate.conformance.cases.UInt32None.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32None) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32None) - private static final build.buf.validate.conformance.cases.UInt32None DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32None(); - } - - public static build.buf.validate.conformance.cases.UInt32None getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32None 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.UInt32None getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NoneOrBuilder.java deleted file mode 100644 index 4d62b3e3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32NoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32None) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val"]; - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotIn.java deleted file mode 100644 index e99d6c45..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotIn.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt32NotIn} - */ -public final class UInt32NotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt32NotIn) - UInt32NotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32NotIn.class.getName()); - } - // Use UInt32NotIn.newBuilder() to construct. - private UInt32NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt32NotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32NotIn.class, build.buf.validate.conformance.cases.UInt32NotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeUInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, val_); - } - 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.UInt32NotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt32NotIn other = (build.buf.validate.conformance.cases.UInt32NotIn) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt32NotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32NotIn 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.UInt32NotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32NotIn 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.UInt32NotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt32NotIn 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.UInt32NotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt32NotIn 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.UInt32NotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt32NotIn 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.UInt32NotIn 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.UInt32NotIn 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.UInt32NotIn 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.UInt32NotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt32NotIn) - build.buf.validate.conformance.cases.UInt32NotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt32NotIn.class, build.buf.validate.conformance.cases.UInt32NotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt32NotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt32NotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32NotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt32NotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32NotIn build() { - build.buf.validate.conformance.cases.UInt32NotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt32NotIn buildPartial() { - build.buf.validate.conformance.cases.UInt32NotIn result = new build.buf.validate.conformance.cases.UInt32NotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt32NotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt32NotIn) { - return mergeFrom((build.buf.validate.conformance.cases.UInt32NotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt32NotIn other) { - if (other == build.buf.validate.conformance.cases.UInt32NotIn.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt32NotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt32NotIn) - private static final build.buf.validate.conformance.cases.UInt32NotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt32NotIn(); - } - - public static build.buf.validate.conformance.cases.UInt32NotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32NotIn 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.UInt32NotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotInOrBuilder.java deleted file mode 100644 index 668cba20..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt32NotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt32NotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt32NotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Const.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Const.java deleted file mode 100644 index 006ac49e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Const.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64Const} - */ -public final class UInt64Const extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64Const) - UInt64ConstOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64Const.class.getName()); - } - // Use UInt64Const.newBuilder() to construct. - private UInt64Const(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64Const() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64Const.class, build.buf.validate.conformance.cases.UInt64Const.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64Const)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64Const other = (build.buf.validate.conformance.cases.UInt64Const) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64Const parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64Const 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.UInt64Const parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64Const 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.UInt64Const parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64Const 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.UInt64Const parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64Const 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.UInt64Const parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64Const 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.UInt64Const 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.UInt64Const 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.UInt64Const 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.UInt64Const} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64Const) - build.buf.validate.conformance.cases.UInt64ConstOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Const_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Const_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64Const.class, build.buf.validate.conformance.cases.UInt64Const.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64Const.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Const_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64Const getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64Const.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64Const build() { - build.buf.validate.conformance.cases.UInt64Const result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64Const buildPartial() { - build.buf.validate.conformance.cases.UInt64Const result = new build.buf.validate.conformance.cases.UInt64Const(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64Const result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64Const) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64Const)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64Const other) { - if (other == build.buf.validate.conformance.cases.UInt64Const.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64Const) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64Const) - private static final build.buf.validate.conformance.cases.UInt64Const DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64Const(); - } - - public static build.buf.validate.conformance.cases.UInt64Const getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64Const 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.UInt64Const getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ConstOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ConstOrBuilder.java deleted file mode 100644 index 5feda8cb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ConstOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64ConstOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64Const) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTE.java deleted file mode 100644 index 78fe54aa..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64ExGTELTE} - */ -public final class UInt64ExGTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64ExGTELTE) - UInt64ExGTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64ExGTELTE.class.getName()); - } - // Use UInt64ExGTELTE.newBuilder() to construct. - private UInt64ExGTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64ExGTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64ExGTELTE.class, build.buf.validate.conformance.cases.UInt64ExGTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64ExGTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64ExGTELTE other = (build.buf.validate.conformance.cases.UInt64ExGTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64ExGTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64ExGTELTE 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.UInt64ExGTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64ExGTELTE 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.UInt64ExGTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64ExGTELTE 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.UInt64ExGTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64ExGTELTE 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.UInt64ExGTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64ExGTELTE 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.UInt64ExGTELTE 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.UInt64ExGTELTE 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.UInt64ExGTELTE 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.UInt64ExGTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64ExGTELTE) - build.buf.validate.conformance.cases.UInt64ExGTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64ExGTELTE.class, build.buf.validate.conformance.cases.UInt64ExGTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64ExGTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExGTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64ExGTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64ExGTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64ExGTELTE build() { - build.buf.validate.conformance.cases.UInt64ExGTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64ExGTELTE buildPartial() { - build.buf.validate.conformance.cases.UInt64ExGTELTE result = new build.buf.validate.conformance.cases.UInt64ExGTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64ExGTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64ExGTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64ExGTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64ExGTELTE other) { - if (other == build.buf.validate.conformance.cases.UInt64ExGTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64ExGTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64ExGTELTE) - private static final build.buf.validate.conformance.cases.UInt64ExGTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64ExGTELTE(); - } - - public static build.buf.validate.conformance.cases.UInt64ExGTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64ExGTELTE 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.UInt64ExGTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTEOrBuilder.java deleted file mode 100644 index dc6d7058..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExGTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64ExGTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64ExGTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGT.java deleted file mode 100644 index 20aa838d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64ExLTGT} - */ -public final class UInt64ExLTGT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64ExLTGT) - UInt64ExLTGTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64ExLTGT.class.getName()); - } - // Use UInt64ExLTGT.newBuilder() to construct. - private UInt64ExLTGT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64ExLTGT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64ExLTGT.class, build.buf.validate.conformance.cases.UInt64ExLTGT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64ExLTGT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64ExLTGT other = (build.buf.validate.conformance.cases.UInt64ExLTGT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64ExLTGT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64ExLTGT 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.UInt64ExLTGT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64ExLTGT 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.UInt64ExLTGT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64ExLTGT 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.UInt64ExLTGT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64ExLTGT 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.UInt64ExLTGT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64ExLTGT 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.UInt64ExLTGT 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.UInt64ExLTGT 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.UInt64ExLTGT 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.UInt64ExLTGT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64ExLTGT) - build.buf.validate.conformance.cases.UInt64ExLTGTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExLTGT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExLTGT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64ExLTGT.class, build.buf.validate.conformance.cases.UInt64ExLTGT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64ExLTGT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64ExLTGT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64ExLTGT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64ExLTGT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64ExLTGT build() { - build.buf.validate.conformance.cases.UInt64ExLTGT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64ExLTGT buildPartial() { - build.buf.validate.conformance.cases.UInt64ExLTGT result = new build.buf.validate.conformance.cases.UInt64ExLTGT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64ExLTGT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64ExLTGT) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64ExLTGT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64ExLTGT other) { - if (other == build.buf.validate.conformance.cases.UInt64ExLTGT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64ExLTGT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64ExLTGT) - private static final build.buf.validate.conformance.cases.UInt64ExLTGT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64ExLTGT(); - } - - public static build.buf.validate.conformance.cases.UInt64ExLTGT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64ExLTGT 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.UInt64ExLTGT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGTOrBuilder.java deleted file mode 100644 index f44b881c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExLTGTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64ExLTGTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64ExLTGT) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Example.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Example.java deleted file mode 100644 index d8186b31..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Example.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64Example} - */ -public final class UInt64Example extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64Example) - UInt64ExampleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64Example.class.getName()); - } - // Use UInt64Example.newBuilder() to construct. - private UInt64Example(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64Example() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64Example.class, build.buf.validate.conformance.cases.UInt64Example.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64Example)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64Example other = (build.buf.validate.conformance.cases.UInt64Example) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64Example parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64Example 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.UInt64Example parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64Example 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.UInt64Example parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64Example 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.UInt64Example parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64Example 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.UInt64Example parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64Example 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.UInt64Example 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.UInt64Example 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.UInt64Example 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.UInt64Example} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64Example) - build.buf.validate.conformance.cases.UInt64ExampleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Example_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Example_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64Example.class, build.buf.validate.conformance.cases.UInt64Example.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64Example.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Example_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64Example getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64Example.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64Example build() { - build.buf.validate.conformance.cases.UInt64Example result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64Example buildPartial() { - build.buf.validate.conformance.cases.UInt64Example result = new build.buf.validate.conformance.cases.UInt64Example(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64Example result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64Example) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64Example)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64Example other) { - if (other == build.buf.validate.conformance.cases.UInt64Example.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64Example) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64Example) - private static final build.buf.validate.conformance.cases.UInt64Example DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64Example(); - } - - public static build.buf.validate.conformance.cases.UInt64Example getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64Example 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.UInt64Example getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExampleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExampleOrBuilder.java deleted file mode 100644 index d41cdc6b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64ExampleOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64ExampleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64Example) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GT.java deleted file mode 100644 index 9d96ef71..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64GT} - */ -public final class UInt64GT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64GT) - UInt64GTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64GT.class.getName()); - } - // Use UInt64GT.newBuilder() to construct. - private UInt64GT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64GT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64GT.class, build.buf.validate.conformance.cases.UInt64GT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64GT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64GT other = (build.buf.validate.conformance.cases.UInt64GT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64GT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GT 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.UInt64GT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GT 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.UInt64GT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GT 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.UInt64GT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64GT 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.UInt64GT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64GT 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.UInt64GT 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.UInt64GT 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.UInt64GT 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.UInt64GT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64GT) - build.buf.validate.conformance.cases.UInt64GTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64GT.class, build.buf.validate.conformance.cases.UInt64GT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64GT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64GT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GT build() { - build.buf.validate.conformance.cases.UInt64GT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GT buildPartial() { - build.buf.validate.conformance.cases.UInt64GT result = new build.buf.validate.conformance.cases.UInt64GT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64GT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64GT) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64GT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64GT other) { - if (other == build.buf.validate.conformance.cases.UInt64GT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64GT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64GT) - private static final build.buf.validate.conformance.cases.UInt64GT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64GT(); - } - - public static build.buf.validate.conformance.cases.UInt64GT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64GT 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.UInt64GT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTE.java deleted file mode 100644 index c61974a1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64GTE} - */ -public final class UInt64GTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64GTE) - UInt64GTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64GTE.class.getName()); - } - // Use UInt64GTE.newBuilder() to construct. - private UInt64GTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64GTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64GTE.class, build.buf.validate.conformance.cases.UInt64GTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64GTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64GTE other = (build.buf.validate.conformance.cases.UInt64GTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64GTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GTE 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.UInt64GTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GTE 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.UInt64GTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GTE 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.UInt64GTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64GTE 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.UInt64GTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64GTE 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.UInt64GTE 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.UInt64GTE 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.UInt64GTE 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.UInt64GTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64GTE) - build.buf.validate.conformance.cases.UInt64GTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64GTE.class, build.buf.validate.conformance.cases.UInt64GTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64GTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64GTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GTE build() { - build.buf.validate.conformance.cases.UInt64GTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GTE buildPartial() { - build.buf.validate.conformance.cases.UInt64GTE result = new build.buf.validate.conformance.cases.UInt64GTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64GTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64GTE) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64GTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64GTE other) { - if (other == build.buf.validate.conformance.cases.UInt64GTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64GTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64GTE) - private static final build.buf.validate.conformance.cases.UInt64GTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64GTE(); - } - - public static build.buf.validate.conformance.cases.UInt64GTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64GTE 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.UInt64GTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTE.java deleted file mode 100644 index 7bac48bb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64GTELTE} - */ -public final class UInt64GTELTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64GTELTE) - UInt64GTELTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64GTELTE.class.getName()); - } - // Use UInt64GTELTE.newBuilder() to construct. - private UInt64GTELTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64GTELTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64GTELTE.class, build.buf.validate.conformance.cases.UInt64GTELTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64GTELTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64GTELTE other = (build.buf.validate.conformance.cases.UInt64GTELTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64GTELTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GTELTE 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.UInt64GTELTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GTELTE 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.UInt64GTELTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GTELTE 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.UInt64GTELTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64GTELTE 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.UInt64GTELTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64GTELTE 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.UInt64GTELTE 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.UInt64GTELTE 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.UInt64GTELTE 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.UInt64GTELTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64GTELTE) - build.buf.validate.conformance.cases.UInt64GTELTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTELTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTELTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64GTELTE.class, build.buf.validate.conformance.cases.UInt64GTELTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64GTELTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTELTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GTELTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64GTELTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GTELTE build() { - build.buf.validate.conformance.cases.UInt64GTELTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GTELTE buildPartial() { - build.buf.validate.conformance.cases.UInt64GTELTE result = new build.buf.validate.conformance.cases.UInt64GTELTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64GTELTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64GTELTE) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64GTELTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64GTELTE other) { - if (other == build.buf.validate.conformance.cases.UInt64GTELTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64GTELTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64GTELTE) - private static final build.buf.validate.conformance.cases.UInt64GTELTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64GTELTE(); - } - - public static build.buf.validate.conformance.cases.UInt64GTELTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64GTELTE 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.UInt64GTELTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTEOrBuilder.java deleted file mode 100644 index 73fc36af..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTELTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64GTELTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64GTELTE) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTEOrBuilder.java deleted file mode 100644 index 76d9acb7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64GTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64GTE) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLT.java deleted file mode 100644 index 5c1719a6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64GTLT} - */ -public final class UInt64GTLT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64GTLT) - UInt64GTLTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64GTLT.class.getName()); - } - // Use UInt64GTLT.newBuilder() to construct. - private UInt64GTLT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64GTLT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64GTLT.class, build.buf.validate.conformance.cases.UInt64GTLT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64GTLT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64GTLT other = (build.buf.validate.conformance.cases.UInt64GTLT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64GTLT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GTLT 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.UInt64GTLT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GTLT 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.UInt64GTLT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64GTLT 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.UInt64GTLT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64GTLT 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.UInt64GTLT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64GTLT 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.UInt64GTLT 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.UInt64GTLT 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.UInt64GTLT 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.UInt64GTLT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64GTLT) - build.buf.validate.conformance.cases.UInt64GTLTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTLT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTLT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64GTLT.class, build.buf.validate.conformance.cases.UInt64GTLT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64GTLT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64GTLT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GTLT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64GTLT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GTLT build() { - build.buf.validate.conformance.cases.UInt64GTLT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64GTLT buildPartial() { - build.buf.validate.conformance.cases.UInt64GTLT result = new build.buf.validate.conformance.cases.UInt64GTLT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64GTLT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64GTLT) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64GTLT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64GTLT other) { - if (other == build.buf.validate.conformance.cases.UInt64GTLT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64GTLT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64GTLT) - private static final build.buf.validate.conformance.cases.UInt64GTLT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64GTLT(); - } - - public static build.buf.validate.conformance.cases.UInt64GTLT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64GTLT 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.UInt64GTLT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLTOrBuilder.java deleted file mode 100644 index e9ca35d8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTLTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64GTLTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64GTLT) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTOrBuilder.java deleted file mode 100644 index bc232834..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64GTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64GTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64GT) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Ignore.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Ignore.java deleted file mode 100644 index 9f84cdae..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64Ignore.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64Ignore} - */ -public final class UInt64Ignore extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64Ignore) - UInt64IgnoreOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64Ignore.class.getName()); - } - // Use UInt64Ignore.newBuilder() to construct. - private UInt64Ignore(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64Ignore() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64Ignore.class, build.buf.validate.conformance.cases.UInt64Ignore.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64Ignore)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64Ignore other = (build.buf.validate.conformance.cases.UInt64Ignore) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64Ignore parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64Ignore 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.UInt64Ignore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64Ignore 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.UInt64Ignore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64Ignore 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.UInt64Ignore parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64Ignore 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.UInt64Ignore parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64Ignore 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.UInt64Ignore 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.UInt64Ignore 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.UInt64Ignore 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.UInt64Ignore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64Ignore) - build.buf.validate.conformance.cases.UInt64IgnoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Ignore_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Ignore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64Ignore.class, build.buf.validate.conformance.cases.UInt64Ignore.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64Ignore.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64Ignore_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64Ignore getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64Ignore.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64Ignore build() { - build.buf.validate.conformance.cases.UInt64Ignore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64Ignore buildPartial() { - build.buf.validate.conformance.cases.UInt64Ignore result = new build.buf.validate.conformance.cases.UInt64Ignore(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64Ignore result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64Ignore) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64Ignore)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64Ignore other) { - if (other == build.buf.validate.conformance.cases.UInt64Ignore.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64Ignore) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64Ignore) - private static final build.buf.validate.conformance.cases.UInt64Ignore DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64Ignore(); - } - - public static build.buf.validate.conformance.cases.UInt64Ignore getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64Ignore 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.UInt64Ignore getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IgnoreOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IgnoreOrBuilder.java deleted file mode 100644 index 1ee32800..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IgnoreOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64IgnoreOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64Ignore) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64In.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64In.java deleted file mode 100644 index 8019dc54..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64In.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64In} - */ -public final class UInt64In extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64In) - UInt64InOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64In.class.getName()); - } - // Use UInt64In.newBuilder() to construct. - private UInt64In(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64In() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64In.class, build.buf.validate.conformance.cases.UInt64In.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64In)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64In other = (build.buf.validate.conformance.cases.UInt64In) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64In parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64In 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.UInt64In parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64In 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.UInt64In parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64In 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.UInt64In parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64In 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.UInt64In parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64In 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.UInt64In 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.UInt64In 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.UInt64In 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.UInt64In} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64In) - build.buf.validate.conformance.cases.UInt64InOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64In_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64In_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64In.class, build.buf.validate.conformance.cases.UInt64In.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64In.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64In_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64In getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64In.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64In build() { - build.buf.validate.conformance.cases.UInt64In result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64In buildPartial() { - build.buf.validate.conformance.cases.UInt64In result = new build.buf.validate.conformance.cases.UInt64In(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64In result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64In) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64In)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64In other) { - if (other == build.buf.validate.conformance.cases.UInt64In.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64In) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64In) - private static final build.buf.validate.conformance.cases.UInt64In DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64In(); - } - - public static build.buf.validate.conformance.cases.UInt64In getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64In 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.UInt64In getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64InOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64InOrBuilder.java deleted file mode 100644 index 47b1e04b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64InOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64InOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64In) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectType.java deleted file mode 100644 index ebd707da..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectType.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64IncorrectType} - */ -public final class UInt64IncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64IncorrectType) - UInt64IncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64IncorrectType.class.getName()); - } - // Use UInt64IncorrectType.newBuilder() to construct. - private UInt64IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64IncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64IncorrectType.class, build.buf.validate.conformance.cases.UInt64IncorrectType.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64IncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64IncorrectType other = (build.buf.validate.conformance.cases.UInt64IncorrectType) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64IncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64IncorrectType 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.UInt64IncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64IncorrectType 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.UInt64IncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64IncorrectType 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.UInt64IncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64IncorrectType 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.UInt64IncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64IncorrectType 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.UInt64IncorrectType 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.UInt64IncorrectType 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.UInt64IncorrectType 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.UInt64IncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64IncorrectType) - build.buf.validate.conformance.cases.UInt64IncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64IncorrectType.class, build.buf.validate.conformance.cases.UInt64IncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64IncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64IncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64IncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64IncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64IncorrectType build() { - build.buf.validate.conformance.cases.UInt64IncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64IncorrectType buildPartial() { - build.buf.validate.conformance.cases.UInt64IncorrectType result = new build.buf.validate.conformance.cases.UInt64IncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64IncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64IncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64IncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64IncorrectType other) { - if (other == build.buf.validate.conformance.cases.UInt64IncorrectType.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64IncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64IncorrectType) - private static final build.buf.validate.conformance.cases.UInt64IncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64IncorrectType(); - } - - public static build.buf.validate.conformance.cases.UInt64IncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64IncorrectType 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.UInt64IncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectTypeOrBuilder.java deleted file mode 100644 index ffe1ea01..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64IncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64IncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64IncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LT.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LT.java deleted file mode 100644 index e064b44f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LT.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64LT} - */ -public final class UInt64LT extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64LT) - UInt64LTOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64LT.class.getName()); - } - // Use UInt64LT.newBuilder() to construct. - private UInt64LT(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64LT() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64LT.class, build.buf.validate.conformance.cases.UInt64LT.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64LT)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64LT other = (build.buf.validate.conformance.cases.UInt64LT) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64LT parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64LT 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.UInt64LT parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64LT 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.UInt64LT parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64LT 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.UInt64LT parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64LT 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.UInt64LT parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64LT 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.UInt64LT 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.UInt64LT 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.UInt64LT 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.UInt64LT} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64LT) - build.buf.validate.conformance.cases.UInt64LTOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LT_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LT_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64LT.class, build.buf.validate.conformance.cases.UInt64LT.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64LT.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LT_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64LT getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64LT.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64LT build() { - build.buf.validate.conformance.cases.UInt64LT result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64LT buildPartial() { - build.buf.validate.conformance.cases.UInt64LT result = new build.buf.validate.conformance.cases.UInt64LT(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64LT result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64LT) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64LT)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64LT other) { - if (other == build.buf.validate.conformance.cases.UInt64LT.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64LT) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64LT) - private static final build.buf.validate.conformance.cases.UInt64LT DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64LT(); - } - - public static build.buf.validate.conformance.cases.UInt64LT getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64LT 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.UInt64LT getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTE.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTE.java deleted file mode 100644 index b195bc4a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTE.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64LTE} - */ -public final class UInt64LTE extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64LTE) - UInt64LTEOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64LTE.class.getName()); - } - // Use UInt64LTE.newBuilder() to construct. - private UInt64LTE(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64LTE() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64LTE.class, build.buf.validate.conformance.cases.UInt64LTE.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64LTE)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64LTE other = (build.buf.validate.conformance.cases.UInt64LTE) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64LTE parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64LTE 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.UInt64LTE parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64LTE 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.UInt64LTE parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64LTE 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.UInt64LTE parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64LTE 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.UInt64LTE parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64LTE 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.UInt64LTE 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.UInt64LTE 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.UInt64LTE 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.UInt64LTE} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64LTE) - build.buf.validate.conformance.cases.UInt64LTEOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LTE_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LTE_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64LTE.class, build.buf.validate.conformance.cases.UInt64LTE.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64LTE.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64LTE_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64LTE getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64LTE.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64LTE build() { - build.buf.validate.conformance.cases.UInt64LTE result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64LTE buildPartial() { - build.buf.validate.conformance.cases.UInt64LTE result = new build.buf.validate.conformance.cases.UInt64LTE(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64LTE result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64LTE) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64LTE)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64LTE other) { - if (other == build.buf.validate.conformance.cases.UInt64LTE.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64LTE) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64LTE) - private static final build.buf.validate.conformance.cases.UInt64LTE DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64LTE(); - } - - public static build.buf.validate.conformance.cases.UInt64LTE getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64LTE 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.UInt64LTE getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTEOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTEOrBuilder.java deleted file mode 100644 index 0bc36953..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTEOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64LTEOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64LTE) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTOrBuilder.java deleted file mode 100644 index 5d73aaee..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64LTOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64LTOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64LT) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64None.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64None.java deleted file mode 100644 index 2fe6e2eb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64None.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64None} - */ -public final class UInt64None extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64None) - UInt64NoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64None.class.getName()); - } - // Use UInt64None.newBuilder() to construct. - private UInt64None(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64None() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64None.class, build.buf.validate.conformance.cases.UInt64None.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64None)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64None other = (build.buf.validate.conformance.cases.UInt64None) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64None parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64None 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.UInt64None parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64None 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.UInt64None parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64None 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.UInt64None parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64None 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.UInt64None parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64None 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.UInt64None 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.UInt64None 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.UInt64None 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.UInt64None} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64None) - build.buf.validate.conformance.cases.UInt64NoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64None_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64None_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64None.class, build.buf.validate.conformance.cases.UInt64None.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64None.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64None_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64None getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64None.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64None build() { - build.buf.validate.conformance.cases.UInt64None result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64None buildPartial() { - build.buf.validate.conformance.cases.UInt64None result = new build.buf.validate.conformance.cases.UInt64None(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64None result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64None) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64None)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64None other) { - if (other == build.buf.validate.conformance.cases.UInt64None.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val"]; - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val"]; - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64None) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64None) - private static final build.buf.validate.conformance.cases.UInt64None DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64None(); - } - - public static build.buf.validate.conformance.cases.UInt64None getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64None 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.UInt64None getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NoneOrBuilder.java deleted file mode 100644 index 2553529c..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NoneOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64NoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64None) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val"]; - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotIn.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotIn.java deleted file mode 100644 index 8c448c91..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotIn.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.UInt64NotIn} - */ -public final class UInt64NotIn extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.UInt64NotIn) - UInt64NotInOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64NotIn.class.getName()); - } - // Use UInt64NotIn.newBuilder() to construct. - private UInt64NotIn(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UInt64NotIn() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64NotIn.class, build.buf.validate.conformance.cases.UInt64NotIn.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeUInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, val_); - } - 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.UInt64NotIn)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.UInt64NotIn other = (build.buf.validate.conformance.cases.UInt64NotIn) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.UInt64NotIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64NotIn 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.UInt64NotIn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64NotIn 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.UInt64NotIn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.UInt64NotIn 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.UInt64NotIn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.UInt64NotIn 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.UInt64NotIn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.UInt64NotIn 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.UInt64NotIn 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.UInt64NotIn 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.UInt64NotIn 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.UInt64NotIn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.UInt64NotIn) - build.buf.validate.conformance.cases.UInt64NotInOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64NotIn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64NotIn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.UInt64NotIn.class, build.buf.validate.conformance.cases.UInt64NotIn.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.UInt64NotIn.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.NumbersProto.internal_static_buf_validate_conformance_cases_UInt64NotIn_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64NotIn getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.UInt64NotIn.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64NotIn build() { - build.buf.validate.conformance.cases.UInt64NotIn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.UInt64NotIn buildPartial() { - build.buf.validate.conformance.cases.UInt64NotIn result = new build.buf.validate.conformance.cases.UInt64NotIn(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.UInt64NotIn result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.UInt64NotIn) { - return mergeFrom((build.buf.validate.conformance.cases.UInt64NotIn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.UInt64NotIn other) { - if (other == build.buf.validate.conformance.cases.UInt64NotIn.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.UInt64NotIn) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.UInt64NotIn) - private static final build.buf.validate.conformance.cases.UInt64NotIn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.UInt64NotIn(); - } - - public static build.buf.validate.conformance.cases.UInt64NotIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64NotIn 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.UInt64NotIn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotInOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotInOrBuilder.java deleted file mode 100644 index 113f6844..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/UInt64NotInOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/numbers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface UInt64NotInOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.UInt64NotIn) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WktAnyProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WktAnyProto.java deleted file mode 100644 index c00128b9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktAnyProto.java +++ /dev/null @@ -1,116 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_any.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class WktAnyProto { - private WktAnyProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WktAnyProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_AnyNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_AnyNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_AnyRequired_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_AnyRequired_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_AnyIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_AnyIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_AnyNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_AnyNotIn_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,buf/validate/conformance/cases/wkt_any" + - ".proto\022\036buf.validate.conformance.cases\032\033" + - "buf/validate/validate.proto\032\031google/prot" + - "obuf/any.proto\"1\n\007AnyNone\022&\n\003val\030\001 \001(\0132\024" + - ".google.protobuf.AnyR\003val\"=\n\013AnyRequired" + - "\022.\n\003val\030\001 \001(\0132\024.google.protobuf.AnyB\006\272H\003" + - "\310\001\001R\003val\"e\n\005AnyIn\022\\\n\003val\030\001 \001(\0132\024.google." + - "protobuf.AnyB4\272H1\242\001.\022,type.googleapis.co" + - "m/google.protobuf.DurationR\003val\"i\n\010AnyNo" + - "tIn\022]\n\003val\030\001 \001(\0132\024.google.protobuf.AnyB5" + - "\272H2\242\001/\032-type.googleapis.com/google.proto" + - "buf.TimestampR\003valB\317\001\n$build.buf.validat" + - "e.conformance.casesB\013WktAnyProtoP\001\242\002\004BVC" + - "C\252\002\036Buf.Validate.Conformance.Cases\312\002\036Buf" + - "\\Validate\\Conformance\\Cases\342\002*Buf\\Valida" + - "te\\Conformance\\Cases\\GPBMetadata\352\002!Buf::" + - "Validate::Conformance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_AnyNone_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_AnyNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_AnyNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_AnyRequired_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_AnyRequired_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_AnyRequired_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_AnyIn_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_AnyIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_AnyIn_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_AnyNotIn_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_AnyNotIn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_AnyNotIn_descriptor, - new java.lang.String[] { "Val", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WktDurationProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WktDurationProto.java deleted file mode 100644 index 16046351..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktDurationProto.java +++ /dev/null @@ -1,259 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_duration.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class WktDurationProto { - private WktDurationProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WktDurationProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationRequired_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationRequired_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationConst_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationConst_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationNotIn_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationNotIn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationLTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationLTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationGTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationGTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationGTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationGTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationFieldWithOtherFields_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_DurationExample_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_DurationExample_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1buf/validate/conformance/cases/wkt_dur" + - "ation.proto\022\036buf.validate.conformance.ca" + - "ses\032\033buf/validate/validate.proto\032\036google" + - "/protobuf/duration.proto\";\n\014DurationNone" + - "\022+\n\003val\030\001 \001(\0132\031.google.protobuf.Duration" + - "R\003val\"G\n\020DurationRequired\0223\n\003val\030\001 \001(\0132\031" + - ".google.protobuf.DurationB\006\272H\003\310\001\001R\003val\"H" + - "\n\rDurationConst\0227\n\003val\030\001 \001(\0132\031.google.pr" + - "otobuf.DurationB\n\272H\007\252\001\004\022\002\010\003R\003val\"J\n\nDura" + - "tionIn\022<\n\003val\030\001 \001(\0132\031.google.protobuf.Du" + - "rationB\017\272H\014\252\001\t:\002\010\001:\003\020\350\007R\003val\"F\n\rDuration" + - "NotIn\0225\n\003val\030\001 \001(\0132\031.google.protobuf.Dur" + - "ationB\010\272H\005\252\001\002B\000R\003val\"C\n\nDurationLT\0225\n\003va" + - "l\030\001 \001(\0132\031.google.protobuf.DurationB\010\272H\005\252" + - "\001\002\032\000R\003val\"F\n\013DurationLTE\0227\n\003val\030\001 \001(\0132\031." + - "google.protobuf.DurationB\n\272H\007\252\001\004\"\002\010\001R\003va" + - "l\"F\n\nDurationGT\0228\n\003val\030\001 \001(\0132\031.google.pr" + - "otobuf.DurationB\013\272H\010\252\001\005*\003\020\350\007R\003val\"H\n\013Dur" + - "ationGTE\0229\n\003val\030\001 \001(\0132\031.google.protobuf." + - "DurationB\014\272H\t\252\001\0062\004\020\300\204=R\003val\"I\n\014DurationG" + - "TLT\0229\n\003val\030\001 \001(\0132\031.google.protobuf.Durat" + - "ionB\014\272H\t\252\001\006\032\002\010\001*\000R\003val\"K\n\016DurationExLTGT" + - "\0229\n\003val\030\001 \001(\0132\031.google.protobuf.Duration" + - "B\014\272H\t\252\001\006\032\000*\002\010\001R\003val\"N\n\016DurationGTELTE\022<\n" + - "\003val\030\001 \001(\0132\031.google.protobuf.DurationB\017\272" + - "H\014\252\001\t\"\003\010\220\0342\002\010 builder) { - super(builder); - } - private WktLevelOne() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WktLevelOne.class, build.buf.validate.conformance.cases.WktLevelOne.Builder.class); - } - - public interface WktLevelTwoOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - * @return Whether the three field is set. - */ - boolean hasThree(); - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - * @return The three. - */ - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree getThree(); - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThreeOrBuilder getThreeOrBuilder(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.WktLevelOne.WktLevelTwo} - */ - public static final class WktLevelTwo extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo) - WktLevelTwoOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WktLevelTwo.class.getName()); - } - // Use WktLevelTwo.newBuilder() to construct. - private WktLevelTwo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WktLevelTwo() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.class, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.Builder.class); - } - - public interface WktLevelThreeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree) - com.google.protobuf.MessageOrBuilder { - - /** - * string uuid = 1 [json_name = "uuid", (.buf.validate.field) = { ... } - * @return The uuid. - */ - java.lang.String getUuid(); - /** - * string uuid = 1 [json_name = "uuid", (.buf.validate.field) = { ... } - * @return The bytes for uuid. - */ - com.google.protobuf.ByteString - getUuidBytes(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree} - */ - public static final class WktLevelThree extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree) - WktLevelThreeOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WktLevelThree.class.getName()); - } - // Use WktLevelThree.newBuilder() to construct. - private WktLevelThree(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WktLevelThree() { - uuid_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_WktLevelThree_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_WktLevelThree_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.class, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.Builder.class); - } - - public static final int UUID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object uuid_ = ""; - /** - * string uuid = 1 [json_name = "uuid", (.buf.validate.field) = { ... } - * @return The uuid. - */ - @java.lang.Override - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uuid_ = s; - return s; - } - } - /** - * string uuid = 1 [json_name = "uuid", (.buf.validate.field) = { ... } - * @return The bytes for uuid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, uuid_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uuid_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uuid_); - } - 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.WktLevelOne.WktLevelTwo.WktLevelThree)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree other = (build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree) obj; - - if (!getUuid() - .equals(other.getUuid())) 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(); - hash = (37 * hash) + UUID_FIELD_NUMBER; - hash = (53 * hash) + getUuid().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree 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.WktLevelOne.WktLevelTwo.WktLevelThree parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree 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.WktLevelOne.WktLevelTwo.WktLevelThree parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree 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.WktLevelOne.WktLevelTwo.WktLevelThree parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree 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.WktLevelOne.WktLevelTwo.WktLevelThree parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree 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.WktLevelOne.WktLevelTwo.WktLevelThree 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.WktLevelOne.WktLevelTwo.WktLevelThree 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.WktLevelOne.WktLevelTwo.WktLevelThree 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.WktLevelOne.WktLevelTwo.WktLevelThree} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree) - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThreeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_WktLevelThree_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_WktLevelThree_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.class, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uuid_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_WktLevelThree_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree build() { - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree buildPartial() { - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree result = new build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.uuid_ = uuid_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree) { - return mergeFrom((build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree other) { - if (other == build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.getDefaultInstance()) return this; - if (!other.getUuid().isEmpty()) { - uuid_ = other.uuid_; - bitField0_ |= 0x00000001; - onChanged(); - } - 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: { - uuid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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.lang.Object uuid_ = ""; - /** - * string uuid = 1 [json_name = "uuid", (.buf.validate.field) = { ... } - * @return The uuid. - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uuid = 1 [json_name = "uuid", (.buf.validate.field) = { ... } - * @return The bytes for uuid. - */ - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uuid = 1 [json_name = "uuid", (.buf.validate.field) = { ... } - * @param value The uuid to set. - * @return This builder for chaining. - */ - public Builder setUuid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - uuid_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string uuid = 1 [json_name = "uuid", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearUuid() { - uuid_ = getDefaultInstance().getUuid(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string uuid = 1 [json_name = "uuid", (.buf.validate.field) = { ... } - * @param value The bytes for uuid to set. - * @return This builder for chaining. - */ - public Builder setUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - uuid_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree) - private static final build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree(); - } - - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WktLevelThree 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.WktLevelOne.WktLevelTwo.WktLevelThree getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int THREE_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three_; - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - * @return Whether the three field is set. - */ - @java.lang.Override - public boolean hasThree() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - * @return The three. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree getThree() { - return three_ == null ? build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.getDefaultInstance() : three_; - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThreeOrBuilder getThreeOrBuilder() { - return three_ == null ? build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.getDefaultInstance() : three_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getThree()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getThree()); - } - 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.WktLevelOne.WktLevelTwo)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo other = (build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo) obj; - - if (hasThree() != other.hasThree()) return false; - if (hasThree()) { - if (!getThree() - .equals(other.getThree())) 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 (hasThree()) { - hash = (37 * hash) + THREE_FIELD_NUMBER; - hash = (53 * hash) + getThree().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo 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.WktLevelOne.WktLevelTwo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo 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.WktLevelOne.WktLevelTwo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo 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.WktLevelOne.WktLevelTwo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo 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.WktLevelOne.WktLevelTwo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo 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.WktLevelOne.WktLevelTwo 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.WktLevelOne.WktLevelTwo 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.WktLevelOne.WktLevelTwo 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.WktLevelOne.WktLevelTwo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo) - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.class, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetThreeFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - three_ = null; - if (threeBuilder_ != null) { - threeBuilder_.dispose(); - threeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo build() { - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo buildPartial() { - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo result = new build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.three_ = threeBuilder_ == null - ? three_ - : threeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo) { - return mergeFrom((build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo other) { - if (other == build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.getDefaultInstance()) return this; - if (other.hasThree()) { - mergeThree(other.getThree()); - } - 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: { - input.readMessage( - internalGetThreeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.Builder, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThreeOrBuilder> threeBuilder_; - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - * @return Whether the three field is set. - */ - public boolean hasThree() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - * @return The three. - */ - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree getThree() { - if (threeBuilder_ == null) { - return three_ == null ? build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.getDefaultInstance() : three_; - } else { - return threeBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - */ - public Builder setThree(build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree value) { - if (threeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - three_ = value; - } else { - threeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - */ - public Builder setThree( - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.Builder builderForValue) { - if (threeBuilder_ == null) { - three_ = builderForValue.build(); - } else { - threeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - */ - public Builder mergeThree(build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree value) { - if (threeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - three_ != null && - three_ != build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.getDefaultInstance()) { - getThreeBuilder().mergeFrom(value); - } else { - three_ = value; - } - } else { - threeBuilder_.mergeFrom(value); - } - if (three_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - */ - public Builder clearThree() { - bitField0_ = (bitField0_ & ~0x00000001); - three_ = null; - if (threeBuilder_ != null) { - threeBuilder_.dispose(); - threeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.Builder getThreeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetThreeFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThreeOrBuilder getThreeOrBuilder() { - if (threeBuilder_ != null) { - return threeBuilder_.getMessageOrBuilder(); - } else { - return three_ == null ? - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.getDefaultInstance() : three_; - } - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree three = 1 [json_name = "three", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.Builder, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThreeOrBuilder> - internalGetThreeFieldBuilder() { - if (threeBuilder_ == null) { - threeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThree.Builder, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.WktLevelThreeOrBuilder>( - getThree(), - getParentForChildren(), - isClean()); - three_ = null; - } - return threeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WktLevelOne.WktLevelTwo) - private static final build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo(); - } - - public static build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WktLevelTwo 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.WktLevelOne.WktLevelTwo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int TWO_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two_; - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - * @return Whether the two field is set. - */ - @java.lang.Override - public boolean hasTwo() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - * @return The two. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo getTwo() { - return two_ == null ? build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.getDefaultInstance() : two_; - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwoOrBuilder getTwoOrBuilder() { - return two_ == null ? build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.getDefaultInstance() : two_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getTwo()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTwo()); - } - 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.WktLevelOne)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WktLevelOne other = (build.buf.validate.conformance.cases.WktLevelOne) obj; - - if (hasTwo() != other.hasTwo()) return false; - if (hasTwo()) { - if (!getTwo() - .equals(other.getTwo())) 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 (hasTwo()) { - hash = (37 * hash) + TWO_FIELD_NUMBER; - hash = (53 * hash) + getTwo().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WktLevelOne parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WktLevelOne 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.WktLevelOne parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WktLevelOne 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.WktLevelOne parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WktLevelOne 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.WktLevelOne parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WktLevelOne 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.WktLevelOne parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WktLevelOne 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.WktLevelOne 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.WktLevelOne 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.WktLevelOne 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.WktLevelOne} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WktLevelOne) - build.buf.validate.conformance.cases.WktLevelOneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WktLevelOne.class, build.buf.validate.conformance.cases.WktLevelOne.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WktLevelOne.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetTwoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - two_ = null; - if (twoBuilder_ != null) { - twoBuilder_.dispose(); - twoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktNestedProto.internal_static_buf_validate_conformance_cases_WktLevelOne_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WktLevelOne.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne build() { - build.buf.validate.conformance.cases.WktLevelOne result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WktLevelOne buildPartial() { - build.buf.validate.conformance.cases.WktLevelOne result = new build.buf.validate.conformance.cases.WktLevelOne(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WktLevelOne result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.two_ = twoBuilder_ == null - ? two_ - : twoBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WktLevelOne) { - return mergeFrom((build.buf.validate.conformance.cases.WktLevelOne)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WktLevelOne other) { - if (other == build.buf.validate.conformance.cases.WktLevelOne.getDefaultInstance()) return this; - if (other.hasTwo()) { - mergeTwo(other.getTwo()); - } - 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: { - input.readMessage( - internalGetTwoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.Builder, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwoOrBuilder> twoBuilder_; - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - * @return Whether the two field is set. - */ - public boolean hasTwo() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - * @return The two. - */ - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo getTwo() { - if (twoBuilder_ == null) { - return two_ == null ? build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.getDefaultInstance() : two_; - } else { - return twoBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - */ - public Builder setTwo(build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo value) { - if (twoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - two_ = value; - } else { - twoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - */ - public Builder setTwo( - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.Builder builderForValue) { - if (twoBuilder_ == null) { - two_ = builderForValue.build(); - } else { - twoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - */ - public Builder mergeTwo(build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo value) { - if (twoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - two_ != null && - two_ != build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.getDefaultInstance()) { - getTwoBuilder().mergeFrom(value); - } else { - two_ = value; - } - } else { - twoBuilder_.mergeFrom(value); - } - if (two_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - */ - public Builder clearTwo() { - bitField0_ = (bitField0_ & ~0x00000001); - two_ = null; - if (twoBuilder_ != null) { - twoBuilder_.dispose(); - twoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.Builder getTwoBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetTwoFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwoOrBuilder getTwoOrBuilder() { - if (twoBuilder_ != null) { - return twoBuilder_.getMessageOrBuilder(); - } else { - return two_ == null ? - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.getDefaultInstance() : two_; - } - } - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.Builder, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwoOrBuilder> - internalGetTwoFieldBuilder() { - if (twoBuilder_ == null) { - twoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo.Builder, build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwoOrBuilder>( - getTwo(), - getParentForChildren(), - isClean()); - two_ = null; - } - return twoBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WktLevelOne) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WktLevelOne) - private static final build.buf.validate.conformance.cases.WktLevelOne DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WktLevelOne(); - } - - public static build.buf.validate.conformance.cases.WktLevelOne getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WktLevelOne 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.WktLevelOne getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WktLevelOneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WktLevelOneOrBuilder.java deleted file mode 100644 index 6f01fbbe..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktLevelOneOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_nested.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WktLevelOneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WktLevelOne) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - * @return Whether the two field is set. - */ - boolean hasTwo(); - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - * @return The two. - */ - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwo getTwo(); - /** - * .buf.validate.conformance.cases.WktLevelOne.WktLevelTwo two = 1 [json_name = "two", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.WktLevelOne.WktLevelTwoOrBuilder getTwoOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WktNestedProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WktNestedProto.java deleted file mode 100644 index 2f365ba9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktNestedProto.java +++ /dev/null @@ -1,101 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_nested.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class WktNestedProto { - private WktNestedProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WktNestedProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_WktLevelOne_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_WktLevelOne_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_WktLevelThree_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_WktLevelThree_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/buf/validate/conformance/cases/wkt_nes" + - "ted.proto\022\036buf.validate.conformance.case" + - "s\032\033buf/validate/validate.proto\"\204\002\n\013WktLe" + - "velOne\022Q\n\003two\030\001 \001(\01327.buf.validate.confo" + - "rmance.cases.WktLevelOne.WktLevelTwoB\006\272H" + - "\003\310\001\001R\003two\032\241\001\n\013WktLevelTwo\022c\n\005three\030\001 \001(\013" + - "2E.buf.validate.conformance.cases.WktLev" + - "elOne.WktLevelTwo.WktLevelThreeB\006\272H\003\310\001\001R" + - "\005three\032-\n\rWktLevelThree\022\034\n\004uuid\030\001 \001(\tB\010\272" + - "H\005r\003\260\001\001R\004uuidB\322\001\n$build.buf.validate.con" + - "formance.casesB\016WktNestedProtoP\001\242\002\004BVCC\252" + - "\002\036Buf.Validate.Conformance.Cases\312\002\036Buf\\V" + - "alidate\\Conformance\\Cases\342\002*Buf\\Validate" + - "\\Conformance\\Cases\\GPBMetadata\352\002!Buf::Va" + - "lidate::Conformance::Casesb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_WktLevelOne_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_WktLevelOne_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WktLevelOne_descriptor, - new java.lang.String[] { "Two", }); - internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_descriptor = - internal_static_buf_validate_conformance_cases_WktLevelOne_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_descriptor, - new java.lang.String[] { "Three", }); - internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_WktLevelThree_descriptor = - internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_WktLevelThree_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WktLevelOne_WktLevelTwo_WktLevelThree_descriptor, - new java.lang.String[] { "Uuid", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WktTimestampProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WktTimestampProto.java deleted file mode 100644 index 08ec0374..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WktTimestampProto.java +++ /dev/null @@ -1,310 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_timestamp.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public final class WktTimestampProto { - private WktTimestampProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WktTimestampProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampNone_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampNone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampRequired_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampRequired_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampConst_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampConst_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampLTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampLTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampGTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampGTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampGTLT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampGTLT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampExLTGT_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampExLTGT_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampExGTELTE_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampExGTELTE_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampLTNow_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampLTNow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampNotLTNow_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampNotLTNow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampGTNow_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampGTNow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampNotGTNow_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampNotGTNow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampWithin_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampWithin_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampLTNowWithin_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampGTNowWithin_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_TimestampExample_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_TimestampExample_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2buf/validate/conformance/cases/wkt_tim" + - "estamp.proto\022\036buf.validate.conformance.c" + - "ases\032\033buf/validate/validate.proto\032\037googl" + - "e/protobuf/timestamp.proto\"=\n\rTimestampN" + - "one\022,\n\003val\030\001 \001(\0132\032.google.protobuf.Times" + - "tampR\003val\"I\n\021TimestampRequired\0224\n\003val\030\001 " + - "\001(\0132\032.google.protobuf.TimestampB\006\272H\003\310\001\001R" + - "\003val\"J\n\016TimestampConst\0228\n\003val\030\001 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\n\272H\007\262\001\004\022\002\010\003R\003val" + - "\"E\n\013TimestampLT\0226\n\003val\030\001 \001(\0132\032.google.pr" + - "otobuf.TimestampB\010\272H\005\262\001\002\032\000R\003val\"H\n\014Times" + - "tampLTE\0228\n\003val\030\001 \001(\0132\032.google.protobuf.T" + - "imestampB\n\272H\007\262\001\004\"\002\010\001R\003val\"H\n\013TimestampGT" + - "\0229\n\003val\030\001 \001(\0132\032.google.protobuf.Timestam" + - "pB\013\272H\010\262\001\005*\003\020\350\007R\003val\"J\n\014TimestampGTE\022:\n\003v" + - "al\030\001 \001(\0132\032.google.protobuf.TimestampB\014\272H" + - "\t\262\001\0062\004\020\300\204=R\003val\"K\n\rTimestampGTLT\022:\n\003val\030" + - "\001 \001(\0132\032.google.protobuf.TimestampB\014\272H\t\262\001" + - "\006\032\002\010\001*\000R\003val\"M\n\017TimestampExLTGT\022:\n\003val\030\001" + - " \001(\0132\032.google.protobuf.TimestampB\014\272H\t\262\001\006" + - "\032\000*\002\010\001R\003val\"P\n\017TimestampGTELTE\022=\n\003val\030\001 " + - "\001(\0132\032.google.protobuf.TimestampB\017\272H\014\262\001\t\"" + - "\003\010\220\0342\002\010\n\003val\030\001 \001(\0132\034.google" + - ".protobuf.DoubleValueB\016\272H\013\022\t!\000\000\000\000\000\000\000\000R\003v" + - "al\"F\n\014WrapperInt64\0226\n\003val\030\001 \001(\0132\033.google" + - ".protobuf.Int64ValueB\007\272H\004\"\002 \000R\003val\"F\n\014Wr" + - "apperInt32\0226\n\003val\030\001 \001(\0132\033.google.protobu" + - "f.Int32ValueB\007\272H\004\032\002 \000R\003val\"H\n\rWrapperUIn" + - "t64\0227\n\003val\030\001 \001(\0132\034.google.protobuf.UInt6" + - "4ValueB\007\272H\0042\002 \000R\003val\"H\n\rWrapperUInt32\0227\n" + - "\003val\030\001 \001(\0132\034.google.protobuf.UInt32Value" + - "B\007\272H\004*\002 \000R\003val\"D\n\013WrapperBool\0225\n\003val\030\001 \001" + - "(\0132\032.google.protobuf.BoolValueB\007\272H\004j\002\010\001R" + - "\003val\"K\n\rWrapperString\022:\n\003val\030\001 \001(\0132\034.goo" + - "gle.protobuf.StringValueB\n\272H\007r\005B\003barR\003va" + - "l\"F\n\014WrapperBytes\0226\n\003val\030\001 \001(\0132\033.google." + - "protobuf.BytesValueB\007\272H\004z\002\020\003R\003val\"V\n\025Wra" + - "pperRequiredString\022=\n\003val\030\001 \001(\0132\034.google" + - ".protobuf.StringValueB\r\272H\nr\005\n\003bar\310\001\001R\003va" + - "l\"X\n\032WrapperRequiredEmptyString\022:\n\003val\030\001" + - " \001(\0132\034.google.protobuf.StringValueB\n\272H\007r" + - "\002\n\000\310\001\001R\003val\"X\n\031WrapperOptionalUuidString" + - "\022;\n\003val\030\001 \001(\0132\034.google.protobuf.StringVa" + - "lueB\013\272H\010r\003\260\001\001\310\001\000R\003val\"T\n\024WrapperRequired" + - "Float\022<\n\003val\030\001 \001(\0132\033.google.protobuf.Flo" + - "atValueB\r\272H\n\n\005%\000\000\000\000\310\001\001R\003valB\324\001\n$build.bu" + - "f.validate.conformance.casesB\020WktWrapper" + - "sProtoP\001\242\002\004BVCC\252\002\036Buf.Validate.Conforman" + - "ce.Cases\312\002\036Buf\\Validate\\Conformance\\Case" + - "s\342\002*Buf\\Validate\\Conformance\\Cases\\GPBMe" + - "tadata\352\002!Buf::Validate::Conformance::Cas" + - "esb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_WrapperNone_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_WrapperNone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperNone_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperFloat_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_cases_WrapperFloat_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperFloat_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperDouble_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_cases_WrapperDouble_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperDouble_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperInt64_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_cases_WrapperInt64_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperInt64_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperInt32_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_conformance_cases_WrapperInt32_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperInt32_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperUInt64_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_conformance_cases_WrapperUInt64_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperUInt64_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperUInt32_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_conformance_cases_WrapperUInt32_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperUInt32_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperBool_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_conformance_cases_WrapperBool_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperBool_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperString_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_conformance_cases_WrapperString_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperString_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperBytes_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_conformance_cases_WrapperBytes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperBytes_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperRequiredString_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_conformance_cases_WrapperRequiredString_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperRequiredString_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_descriptor, - new java.lang.String[] { "Val", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBool.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBool.java deleted file mode 100644 index add10196..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBool.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperBool} - */ -public final class WrapperBool extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperBool) - WrapperBoolOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperBool.class.getName()); - } - // Use WrapperBool.newBuilder() to construct. - private WrapperBool(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperBool() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperBool.class, build.buf.validate.conformance.cases.WrapperBool.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.BoolValue val_; - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getVal() { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperBool)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperBool other = (build.buf.validate.conformance.cases.WrapperBool) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperBool parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperBool 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.WrapperBool parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperBool 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.WrapperBool parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperBool 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.WrapperBool parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperBool 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.WrapperBool parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperBool 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.WrapperBool 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.WrapperBool 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.WrapperBool 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.WrapperBool} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperBool) - build.buf.validate.conformance.cases.WrapperBoolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperBool.class, build.buf.validate.conformance.cases.WrapperBool.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperBool.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBool_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperBool getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperBool.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperBool build() { - build.buf.validate.conformance.cases.WrapperBool result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperBool buildPartial() { - build.buf.validate.conformance.cases.WrapperBool result = new build.buf.validate.conformance.cases.WrapperBool(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperBool result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperBool) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperBool)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperBool other) { - if (other == build.buf.validate.conformance.cases.WrapperBool.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.BoolValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> valBuilder_; - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.BoolValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.BoolValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.BoolValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BoolValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BoolValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperBool) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperBool) - private static final build.buf.validate.conformance.cases.WrapperBool DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperBool(); - } - - public static build.buf.validate.conformance.cases.WrapperBool getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperBool 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.WrapperBool getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBoolOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBoolOrBuilder.java deleted file mode 100644 index c27b3003..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBoolOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperBoolOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperBool) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.BoolValue getVal(); - /** - * .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.BoolValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytes.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytes.java deleted file mode 100644 index 9f884917..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytes.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperBytes} - */ -public final class WrapperBytes extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperBytes) - WrapperBytesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperBytes.class.getName()); - } - // Use WrapperBytes.newBuilder() to construct. - private WrapperBytes(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperBytes() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperBytes.class, build.buf.validate.conformance.cases.WrapperBytes.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.BytesValue val_; - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.BytesValue getVal() { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.BytesValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperBytes)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperBytes other = (build.buf.validate.conformance.cases.WrapperBytes) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperBytes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperBytes 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.WrapperBytes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperBytes 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.WrapperBytes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperBytes 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.WrapperBytes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperBytes 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.WrapperBytes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperBytes 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.WrapperBytes 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.WrapperBytes 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.WrapperBytes 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.WrapperBytes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperBytes) - build.buf.validate.conformance.cases.WrapperBytesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBytes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBytes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperBytes.class, build.buf.validate.conformance.cases.WrapperBytes.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperBytes.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperBytes_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperBytes getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperBytes.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperBytes build() { - build.buf.validate.conformance.cases.WrapperBytes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperBytes buildPartial() { - build.buf.validate.conformance.cases.WrapperBytes result = new build.buf.validate.conformance.cases.WrapperBytes(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperBytes result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperBytes) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperBytes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperBytes other) { - if (other == build.buf.validate.conformance.cases.WrapperBytes.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.BytesValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> valBuilder_; - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.BytesValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.BytesValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.BytesValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.BytesValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.BytesValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BytesValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.BytesValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.BytesValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperBytes) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperBytes) - private static final build.buf.validate.conformance.cases.WrapperBytes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperBytes(); - } - - public static build.buf.validate.conformance.cases.WrapperBytes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperBytes 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.WrapperBytes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytesOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytesOrBuilder.java deleted file mode 100644 index 6091d3f1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperBytesOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperBytesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperBytes) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.BytesValue getVal(); - /** - * .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.BytesValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDouble.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDouble.java deleted file mode 100644 index 0e60ad22..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDouble.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperDouble} - */ -public final class WrapperDouble extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperDouble) - WrapperDoubleOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperDouble.class.getName()); - } - // Use WrapperDouble.newBuilder() to construct. - private WrapperDouble(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperDouble() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperDouble_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperDouble_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperDouble.class, build.buf.validate.conformance.cases.WrapperDouble.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.DoubleValue val_; - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.DoubleValue getVal() { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperDouble)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperDouble other = (build.buf.validate.conformance.cases.WrapperDouble) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperDouble parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperDouble 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.WrapperDouble parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperDouble 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.WrapperDouble parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperDouble 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.WrapperDouble parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperDouble 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.WrapperDouble parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperDouble 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.WrapperDouble 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.WrapperDouble 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.WrapperDouble 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.WrapperDouble} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperDouble) - build.buf.validate.conformance.cases.WrapperDoubleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperDouble_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperDouble_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperDouble.class, build.buf.validate.conformance.cases.WrapperDouble.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperDouble.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperDouble_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperDouble getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperDouble.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperDouble build() { - build.buf.validate.conformance.cases.WrapperDouble result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperDouble buildPartial() { - build.buf.validate.conformance.cases.WrapperDouble result = new build.buf.validate.conformance.cases.WrapperDouble(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperDouble result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperDouble) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperDouble)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperDouble other) { - if (other == build.buf.validate.conformance.cases.WrapperDouble.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.DoubleValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> valBuilder_; - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.DoubleValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.DoubleValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.DoubleValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.DoubleValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DoubleValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperDouble) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperDouble) - private static final build.buf.validate.conformance.cases.WrapperDouble DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperDouble(); - } - - public static build.buf.validate.conformance.cases.WrapperDouble getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperDouble 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.WrapperDouble getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDoubleOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDoubleOrBuilder.java deleted file mode 100644 index ca4af629..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperDoubleOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperDoubleOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperDouble) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.DoubleValue getVal(); - /** - * .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloat.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloat.java deleted file mode 100644 index 667dc229..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloat.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperFloat} - */ -public final class WrapperFloat extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperFloat) - WrapperFloatOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperFloat.class.getName()); - } - // Use WrapperFloat.newBuilder() to construct. - private WrapperFloat(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperFloat() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperFloat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperFloat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperFloat.class, build.buf.validate.conformance.cases.WrapperFloat.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.FloatValue val_; - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.FloatValue getVal() { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperFloat)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperFloat other = (build.buf.validate.conformance.cases.WrapperFloat) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperFloat parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperFloat 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.WrapperFloat parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperFloat 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.WrapperFloat parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperFloat 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.WrapperFloat parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperFloat 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.WrapperFloat parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperFloat 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.WrapperFloat 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.WrapperFloat 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.WrapperFloat 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.WrapperFloat} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperFloat) - build.buf.validate.conformance.cases.WrapperFloatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperFloat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperFloat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperFloat.class, build.buf.validate.conformance.cases.WrapperFloat.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperFloat.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperFloat_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperFloat getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperFloat.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperFloat build() { - build.buf.validate.conformance.cases.WrapperFloat result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperFloat buildPartial() { - build.buf.validate.conformance.cases.WrapperFloat result = new build.buf.validate.conformance.cases.WrapperFloat(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperFloat result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperFloat) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperFloat)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperFloat other) { - if (other == build.buf.validate.conformance.cases.WrapperFloat.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.FloatValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> valBuilder_; - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.FloatValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.FloatValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.FloatValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.FloatValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.FloatValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperFloat) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperFloat) - private static final build.buf.validate.conformance.cases.WrapperFloat DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperFloat(); - } - - public static build.buf.validate.conformance.cases.WrapperFloat getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperFloat 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.WrapperFloat getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloatOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloatOrBuilder.java deleted file mode 100644 index fe277416..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperFloatOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperFloatOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperFloat) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.FloatValue getVal(); - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.FloatValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32.java deleted file mode 100644 index ef62b1f5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperInt32} - */ -public final class WrapperInt32 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperInt32) - WrapperInt32OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperInt32.class.getName()); - } - // Use WrapperInt32.newBuilder() to construct. - private WrapperInt32(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperInt32() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt32_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt32_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperInt32.class, build.buf.validate.conformance.cases.WrapperInt32.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Int32Value val_; - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Int32Value getVal() { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperInt32)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperInt32 other = (build.buf.validate.conformance.cases.WrapperInt32) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperInt32 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperInt32 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.WrapperInt32 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperInt32 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.WrapperInt32 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperInt32 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.WrapperInt32 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperInt32 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.WrapperInt32 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperInt32 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.WrapperInt32 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.WrapperInt32 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.WrapperInt32 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.WrapperInt32} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperInt32) - build.buf.validate.conformance.cases.WrapperInt32OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt32_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt32_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperInt32.class, build.buf.validate.conformance.cases.WrapperInt32.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperInt32.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt32_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperInt32 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperInt32.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperInt32 build() { - build.buf.validate.conformance.cases.WrapperInt32 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperInt32 buildPartial() { - build.buf.validate.conformance.cases.WrapperInt32 result = new build.buf.validate.conformance.cases.WrapperInt32(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperInt32 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperInt32) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperInt32)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperInt32 other) { - if (other == build.buf.validate.conformance.cases.WrapperInt32.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Int32Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Int32Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Int32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Int32Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Int32Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Int32Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int32Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperInt32) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperInt32) - private static final build.buf.validate.conformance.cases.WrapperInt32 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperInt32(); - } - - public static build.buf.validate.conformance.cases.WrapperInt32 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperInt32 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.WrapperInt32 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32OrBuilder.java deleted file mode 100644 index 9d3c52eb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt32OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperInt32OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperInt32) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Int32Value getVal(); - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64.java deleted file mode 100644 index a345790a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperInt64} - */ -public final class WrapperInt64 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperInt64) - WrapperInt64OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperInt64.class.getName()); - } - // Use WrapperInt64.newBuilder() to construct. - private WrapperInt64(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperInt64() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt64_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt64_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperInt64.class, build.buf.validate.conformance.cases.WrapperInt64.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Int64Value val_; - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Int64Value getVal() { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperInt64)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperInt64 other = (build.buf.validate.conformance.cases.WrapperInt64) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperInt64 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperInt64 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.WrapperInt64 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperInt64 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.WrapperInt64 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperInt64 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.WrapperInt64 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperInt64 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.WrapperInt64 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperInt64 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.WrapperInt64 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.WrapperInt64 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.WrapperInt64 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.WrapperInt64} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperInt64) - build.buf.validate.conformance.cases.WrapperInt64OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt64_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt64_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperInt64.class, build.buf.validate.conformance.cases.WrapperInt64.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperInt64.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperInt64_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperInt64 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperInt64.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperInt64 build() { - build.buf.validate.conformance.cases.WrapperInt64 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperInt64 buildPartial() { - build.buf.validate.conformance.cases.WrapperInt64 result = new build.buf.validate.conformance.cases.WrapperInt64(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperInt64 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperInt64) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperInt64)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperInt64 other) { - if (other == build.buf.validate.conformance.cases.WrapperInt64.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Int64Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.Int64Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.Int64Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.Int64Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Int64Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int64Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperInt64) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperInt64) - private static final build.buf.validate.conformance.cases.WrapperInt64 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperInt64(); - } - - public static build.buf.validate.conformance.cases.WrapperInt64 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperInt64 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.WrapperInt64 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64OrBuilder.java deleted file mode 100644 index 26238601..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperInt64OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperInt64OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperInt64) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.Int64Value getVal(); - /** - * .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNone.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNone.java deleted file mode 100644 index 95aa88f4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNone.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperNone} - */ -public final class WrapperNone extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperNone) - WrapperNoneOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperNone.class.getName()); - } - // Use WrapperNone.newBuilder() to construct. - private WrapperNone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperNone() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperNone.class, build.buf.validate.conformance.cases.WrapperNone.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.Int32Value val_; - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.Int32Value getVal() { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - */ - @java.lang.Override - public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperNone)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperNone other = (build.buf.validate.conformance.cases.WrapperNone) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperNone parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperNone 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.WrapperNone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperNone 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.WrapperNone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperNone 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.WrapperNone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperNone 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.WrapperNone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperNone 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.WrapperNone 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.WrapperNone 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.WrapperNone 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.WrapperNone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperNone) - build.buf.validate.conformance.cases.WrapperNoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperNone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperNone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperNone.class, build.buf.validate.conformance.cases.WrapperNone.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperNone.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperNone_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperNone getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperNone.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperNone build() { - build.buf.validate.conformance.cases.WrapperNone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperNone buildPartial() { - build.buf.validate.conformance.cases.WrapperNone result = new build.buf.validate.conformance.cases.WrapperNone(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperNone result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperNone) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperNone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperNone other) { - if (other == build.buf.validate.conformance.cases.WrapperNone.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.Int32Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - * @return The val. - */ - public com.google.protobuf.Int32Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - */ - public Builder setVal(com.google.protobuf.Int32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - */ - public Builder setVal( - com.google.protobuf.Int32Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - */ - public Builder mergeVal(com.google.protobuf.Int32Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.Int32Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - */ - public com.google.protobuf.Int32Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - */ - public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperNone) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperNone) - private static final build.buf.validate.conformance.cases.WrapperNone DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperNone(); - } - - public static build.buf.validate.conformance.cases.WrapperNone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperNone 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.WrapperNone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNoneOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNoneOrBuilder.java deleted file mode 100644 index 50136617..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperNoneOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperNoneOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperNone) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - * @return The val. - */ - com.google.protobuf.Int32Value getVal(); - /** - * .google.protobuf.Int32Value val = 1 [json_name = "val"]; - */ - com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidString.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidString.java deleted file mode 100644 index cbe09403..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidString.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperOptionalUuidString} - */ -public final class WrapperOptionalUuidString extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperOptionalUuidString) - WrapperOptionalUuidStringOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperOptionalUuidString.class.getName()); - } - // Use WrapperOptionalUuidString.newBuilder() to construct. - private WrapperOptionalUuidString(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperOptionalUuidString() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperOptionalUuidString.class, build.buf.validate.conformance.cases.WrapperOptionalUuidString.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.StringValue val_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.StringValue getVal() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperOptionalUuidString)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperOptionalUuidString other = (build.buf.validate.conformance.cases.WrapperOptionalUuidString) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperOptionalUuidString parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperOptionalUuidString 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.WrapperOptionalUuidString parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperOptionalUuidString 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.WrapperOptionalUuidString parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperOptionalUuidString 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.WrapperOptionalUuidString parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperOptionalUuidString 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.WrapperOptionalUuidString parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperOptionalUuidString 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.WrapperOptionalUuidString 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.WrapperOptionalUuidString 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.WrapperOptionalUuidString 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.WrapperOptionalUuidString} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperOptionalUuidString) - build.buf.validate.conformance.cases.WrapperOptionalUuidStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperOptionalUuidString.class, build.buf.validate.conformance.cases.WrapperOptionalUuidString.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperOptionalUuidString.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperOptionalUuidString_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperOptionalUuidString getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperOptionalUuidString.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperOptionalUuidString build() { - build.buf.validate.conformance.cases.WrapperOptionalUuidString result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperOptionalUuidString buildPartial() { - build.buf.validate.conformance.cases.WrapperOptionalUuidString result = new build.buf.validate.conformance.cases.WrapperOptionalUuidString(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperOptionalUuidString result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperOptionalUuidString) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperOptionalUuidString)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperOptionalUuidString other) { - if (other == build.buf.validate.conformance.cases.WrapperOptionalUuidString.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.StringValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valBuilder_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.StringValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.StringValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.StringValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperOptionalUuidString) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperOptionalUuidString) - private static final build.buf.validate.conformance.cases.WrapperOptionalUuidString DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperOptionalUuidString(); - } - - public static build.buf.validate.conformance.cases.WrapperOptionalUuidString getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperOptionalUuidString 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.WrapperOptionalUuidString getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidStringOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidStringOrBuilder.java deleted file mode 100644 index 8a829e4d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperOptionalUuidStringOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperOptionalUuidStringOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperOptionalUuidString) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.StringValue getVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.StringValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyString.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyString.java deleted file mode 100644 index 98cfa1bc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyString.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperRequiredEmptyString} - */ -public final class WrapperRequiredEmptyString extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperRequiredEmptyString) - WrapperRequiredEmptyStringOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperRequiredEmptyString.class.getName()); - } - // Use WrapperRequiredEmptyString.newBuilder() to construct. - private WrapperRequiredEmptyString(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperRequiredEmptyString() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperRequiredEmptyString.class, build.buf.validate.conformance.cases.WrapperRequiredEmptyString.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.StringValue val_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.StringValue getVal() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperRequiredEmptyString)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperRequiredEmptyString other = (build.buf.validate.conformance.cases.WrapperRequiredEmptyString) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperRequiredEmptyString parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperRequiredEmptyString 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.WrapperRequiredEmptyString parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperRequiredEmptyString 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.WrapperRequiredEmptyString parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperRequiredEmptyString 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.WrapperRequiredEmptyString parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperRequiredEmptyString 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.WrapperRequiredEmptyString parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperRequiredEmptyString 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.WrapperRequiredEmptyString 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.WrapperRequiredEmptyString 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.WrapperRequiredEmptyString 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.WrapperRequiredEmptyString} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperRequiredEmptyString) - build.buf.validate.conformance.cases.WrapperRequiredEmptyStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperRequiredEmptyString.class, build.buf.validate.conformance.cases.WrapperRequiredEmptyString.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperRequiredEmptyString.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredEmptyString_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperRequiredEmptyString getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperRequiredEmptyString.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperRequiredEmptyString build() { - build.buf.validate.conformance.cases.WrapperRequiredEmptyString result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperRequiredEmptyString buildPartial() { - build.buf.validate.conformance.cases.WrapperRequiredEmptyString result = new build.buf.validate.conformance.cases.WrapperRequiredEmptyString(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperRequiredEmptyString result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperRequiredEmptyString) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperRequiredEmptyString)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperRequiredEmptyString other) { - if (other == build.buf.validate.conformance.cases.WrapperRequiredEmptyString.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.StringValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valBuilder_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.StringValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.StringValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.StringValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperRequiredEmptyString) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperRequiredEmptyString) - private static final build.buf.validate.conformance.cases.WrapperRequiredEmptyString DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperRequiredEmptyString(); - } - - public static build.buf.validate.conformance.cases.WrapperRequiredEmptyString getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperRequiredEmptyString 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.WrapperRequiredEmptyString getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyStringOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyStringOrBuilder.java deleted file mode 100644 index f9d1070e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredEmptyStringOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperRequiredEmptyStringOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperRequiredEmptyString) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.StringValue getVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.StringValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloat.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloat.java deleted file mode 100644 index 906074c0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloat.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperRequiredFloat} - */ -public final class WrapperRequiredFloat extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperRequiredFloat) - WrapperRequiredFloatOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperRequiredFloat.class.getName()); - } - // Use WrapperRequiredFloat.newBuilder() to construct. - private WrapperRequiredFloat(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperRequiredFloat() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperRequiredFloat.class, build.buf.validate.conformance.cases.WrapperRequiredFloat.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.FloatValue val_; - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.FloatValue getVal() { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperRequiredFloat)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperRequiredFloat other = (build.buf.validate.conformance.cases.WrapperRequiredFloat) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperRequiredFloat parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperRequiredFloat 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.WrapperRequiredFloat parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperRequiredFloat 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.WrapperRequiredFloat parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperRequiredFloat 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.WrapperRequiredFloat parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperRequiredFloat 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.WrapperRequiredFloat parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperRequiredFloat 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.WrapperRequiredFloat 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.WrapperRequiredFloat 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.WrapperRequiredFloat 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.WrapperRequiredFloat} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperRequiredFloat) - build.buf.validate.conformance.cases.WrapperRequiredFloatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperRequiredFloat.class, build.buf.validate.conformance.cases.WrapperRequiredFloat.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperRequiredFloat.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredFloat_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperRequiredFloat getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperRequiredFloat.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperRequiredFloat build() { - build.buf.validate.conformance.cases.WrapperRequiredFloat result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperRequiredFloat buildPartial() { - build.buf.validate.conformance.cases.WrapperRequiredFloat result = new build.buf.validate.conformance.cases.WrapperRequiredFloat(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperRequiredFloat result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperRequiredFloat) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperRequiredFloat)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperRequiredFloat other) { - if (other == build.buf.validate.conformance.cases.WrapperRequiredFloat.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.FloatValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> valBuilder_; - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.FloatValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.FloatValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.FloatValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.FloatValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.FloatValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.FloatValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.FloatValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperRequiredFloat) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperRequiredFloat) - private static final build.buf.validate.conformance.cases.WrapperRequiredFloat DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperRequiredFloat(); - } - - public static build.buf.validate.conformance.cases.WrapperRequiredFloat getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperRequiredFloat 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.WrapperRequiredFloat getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloatOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloatOrBuilder.java deleted file mode 100644 index 8e84a3ab..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredFloatOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperRequiredFloatOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperRequiredFloat) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.FloatValue getVal(); - /** - * .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.FloatValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredString.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredString.java deleted file mode 100644 index ba748a1e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredString.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperRequiredString} - */ -public final class WrapperRequiredString extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperRequiredString) - WrapperRequiredStringOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperRequiredString.class.getName()); - } - // Use WrapperRequiredString.newBuilder() to construct. - private WrapperRequiredString(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperRequiredString() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperRequiredString.class, build.buf.validate.conformance.cases.WrapperRequiredString.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.StringValue val_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.StringValue getVal() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperRequiredString)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperRequiredString other = (build.buf.validate.conformance.cases.WrapperRequiredString) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperRequiredString parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperRequiredString 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.WrapperRequiredString parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperRequiredString 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.WrapperRequiredString parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperRequiredString 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.WrapperRequiredString parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperRequiredString 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.WrapperRequiredString parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperRequiredString 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.WrapperRequiredString 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.WrapperRequiredString 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.WrapperRequiredString 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.WrapperRequiredString} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperRequiredString) - build.buf.validate.conformance.cases.WrapperRequiredStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperRequiredString.class, build.buf.validate.conformance.cases.WrapperRequiredString.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperRequiredString.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperRequiredString_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperRequiredString getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperRequiredString.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperRequiredString build() { - build.buf.validate.conformance.cases.WrapperRequiredString result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperRequiredString buildPartial() { - build.buf.validate.conformance.cases.WrapperRequiredString result = new build.buf.validate.conformance.cases.WrapperRequiredString(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperRequiredString result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperRequiredString) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperRequiredString)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperRequiredString other) { - if (other == build.buf.validate.conformance.cases.WrapperRequiredString.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.StringValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valBuilder_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.StringValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.StringValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.StringValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperRequiredString) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperRequiredString) - private static final build.buf.validate.conformance.cases.WrapperRequiredString DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperRequiredString(); - } - - public static build.buf.validate.conformance.cases.WrapperRequiredString getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperRequiredString 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.WrapperRequiredString getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredStringOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredStringOrBuilder.java deleted file mode 100644 index a562f3a7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperRequiredStringOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperRequiredStringOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperRequiredString) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.StringValue getVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.StringValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperString.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperString.java deleted file mode 100644 index 94e0796e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperString.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperString} - */ -public final class WrapperString extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperString) - WrapperStringOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperString.class.getName()); - } - // Use WrapperString.newBuilder() to construct. - private WrapperString(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperString() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperString.class, build.buf.validate.conformance.cases.WrapperString.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.StringValue val_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.StringValue getVal() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperString)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperString other = (build.buf.validate.conformance.cases.WrapperString) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperString parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperString 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.WrapperString parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperString 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.WrapperString parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperString 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.WrapperString parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperString 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.WrapperString parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperString 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.WrapperString 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.WrapperString 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.WrapperString 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.WrapperString} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperString) - build.buf.validate.conformance.cases.WrapperStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperString.class, build.buf.validate.conformance.cases.WrapperString.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperString.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperString_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperString getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperString.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperString build() { - build.buf.validate.conformance.cases.WrapperString result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperString buildPartial() { - build.buf.validate.conformance.cases.WrapperString result = new build.buf.validate.conformance.cases.WrapperString(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperString result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperString) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperString)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperString other) { - if (other == build.buf.validate.conformance.cases.WrapperString.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.StringValue val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valBuilder_; - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.StringValue getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.StringValue.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.StringValue value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.StringValue.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValue.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.StringValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperString) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperString) - private static final build.buf.validate.conformance.cases.WrapperString DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperString(); - } - - public static build.buf.validate.conformance.cases.WrapperString getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperString 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.WrapperString getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperStringOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperStringOrBuilder.java deleted file mode 100644 index ab09f038..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperStringOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperStringOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperString) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.StringValue getVal(); - /** - * .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.StringValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32.java deleted file mode 100644 index d88ca21d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperUInt32} - */ -public final class WrapperUInt32 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperUInt32) - WrapperUInt32OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperUInt32.class.getName()); - } - // Use WrapperUInt32.newBuilder() to construct. - private WrapperUInt32(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperUInt32() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt32_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt32_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperUInt32.class, build.buf.validate.conformance.cases.WrapperUInt32.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.UInt32Value val_; - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.UInt32Value getVal() { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperUInt32)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperUInt32 other = (build.buf.validate.conformance.cases.WrapperUInt32) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperUInt32 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperUInt32 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.WrapperUInt32 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperUInt32 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.WrapperUInt32 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperUInt32 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.WrapperUInt32 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperUInt32 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.WrapperUInt32 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperUInt32 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.WrapperUInt32 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.WrapperUInt32 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.WrapperUInt32 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.WrapperUInt32} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperUInt32) - build.buf.validate.conformance.cases.WrapperUInt32OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt32_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt32_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperUInt32.class, build.buf.validate.conformance.cases.WrapperUInt32.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperUInt32.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt32_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperUInt32 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperUInt32.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperUInt32 build() { - build.buf.validate.conformance.cases.WrapperUInt32 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperUInt32 buildPartial() { - build.buf.validate.conformance.cases.WrapperUInt32 result = new build.buf.validate.conformance.cases.WrapperUInt32(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperUInt32 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperUInt32) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperUInt32)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperUInt32 other) { - if (other == build.buf.validate.conformance.cases.WrapperUInt32.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.UInt32Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.UInt32Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.UInt32Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.UInt32Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.UInt32Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.UInt32Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperUInt32) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperUInt32) - private static final build.buf.validate.conformance.cases.WrapperUInt32 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperUInt32(); - } - - public static build.buf.validate.conformance.cases.WrapperUInt32 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperUInt32 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.WrapperUInt32 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32OrBuilder.java deleted file mode 100644 index 5c2756f3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt32OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperUInt32OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperUInt32) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.UInt32Value getVal(); - /** - * .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt32ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64.java deleted file mode 100644 index ed0b78a3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -/** - * Protobuf type {@code buf.validate.conformance.cases.WrapperUInt64} - */ -public final class WrapperUInt64 extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.WrapperUInt64) - WrapperUInt64OrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - WrapperUInt64.class.getName()); - } - // Use WrapperUInt64.newBuilder() to construct. - private WrapperUInt64(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WrapperUInt64() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt64_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt64_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperUInt64.class, build.buf.validate.conformance.cases.WrapperUInt64.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private com.google.protobuf.UInt64Value val_; - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public com.google.protobuf.UInt64Value getVal() { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder() { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.WrapperUInt64)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.WrapperUInt64 other = (build.buf.validate.conformance.cases.WrapperUInt64) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.WrapperUInt64 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperUInt64 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.WrapperUInt64 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperUInt64 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.WrapperUInt64 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.WrapperUInt64 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.WrapperUInt64 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.WrapperUInt64 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.WrapperUInt64 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.WrapperUInt64 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.WrapperUInt64 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.WrapperUInt64 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.WrapperUInt64 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.WrapperUInt64} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.WrapperUInt64) - build.buf.validate.conformance.cases.WrapperUInt64OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt64_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt64_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.WrapperUInt64.class, build.buf.validate.conformance.cases.WrapperUInt64.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.WrapperUInt64.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.WktWrappersProto.internal_static_buf_validate_conformance_cases_WrapperUInt64_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperUInt64 getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.WrapperUInt64.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperUInt64 build() { - build.buf.validate.conformance.cases.WrapperUInt64 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.WrapperUInt64 buildPartial() { - build.buf.validate.conformance.cases.WrapperUInt64 result = new build.buf.validate.conformance.cases.WrapperUInt64(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.WrapperUInt64 result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.WrapperUInt64) { - return mergeFrom((build.buf.validate.conformance.cases.WrapperUInt64)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.WrapperUInt64 other) { - if (other == build.buf.validate.conformance.cases.WrapperUInt64.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.UInt64Value val_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> valBuilder_; - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public com.google.protobuf.UInt64Value getVal() { - if (valBuilder_ == null) { - return val_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(com.google.protobuf.UInt64Value value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - com.google.protobuf.UInt64Value.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(com.google.protobuf.UInt64Value value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != com.google.protobuf.UInt64Value.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64Value.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - com.google.protobuf.UInt64Value.getDefaultInstance() : val_; - } - } - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.WrapperUInt64) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.WrapperUInt64) - private static final build.buf.validate.conformance.cases.WrapperUInt64 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.WrapperUInt64(); - } - - public static build.buf.validate.conformance.cases.WrapperUInt64 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WrapperUInt64 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.WrapperUInt64 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64OrBuilder.java deleted file mode 100644 index 7dc92a7f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/WrapperUInt64OrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/wkt_wrappers.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases; - -public interface WrapperUInt64OrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.WrapperUInt64) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - com.google.protobuf.UInt64Value getVal(); - /** - * .google.protobuf.UInt64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - com.google.protobuf.UInt64ValueOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/CustomConstraintsProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/CustomConstraintsProto.java deleted file mode 100644 index 007e21a8..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/CustomConstraintsProto.java +++ /dev/null @@ -1,654 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public final class CustomConstraintsProto { - private CustomConstraintsProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - CustomConstraintsProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_Nested_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_Nested_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_Nested_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_Nested_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_MissingField_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_MissingField_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_IncorrectType_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_IncorrectType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_DynRuntimeError_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_DynRuntimeError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_NowEqualsNow_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_NowEqualsNow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMultipleScalar_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMultipleScalar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionNestedScalar_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionNestedScalar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionOptionalScalar_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionOptionalScalar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionScalar_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionScalar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionEnum_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionEnum_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalar_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalar_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalar_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnum_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnum_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnum_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnum_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapKeys_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapKeys_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapKeys_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapKeys_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalarValues_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalarValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalarValues_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalarValues_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnumValues_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnumValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnumValues_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnumValues_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_ValEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_ValEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalar_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalar_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnum_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnum_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_Msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalarItems_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalarItems_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnumItems_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnumItems_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_Msg_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_Msg_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nJbuf/validate/conformance/cases/custom_" + - "constraints/custom_constraints.proto\0221bu" + - "f.validate.conformance.cases.custom_cons" + - "traints\032\033buf/validate/validate.proto\"\305\001\n" + - "\rNoExpressions\022\014\n\001a\030\001 \001(\005R\001a\022E\n\001b\030\002 \001(\0162" + - "7.buf.validate.conformance.cases.custom_" + - "constraints.EnumR\001b\022U\n\001c\030\003 \001(\0132G.buf.val" + - "idate.conformance.cases.custom_constrain" + - "ts.NoExpressions.NestedR\001c\032\010\n\006Nested\"\303\005\n" + - "\022MessageExpressions\022\014\n\001a\030\001 \001(\005R\001a\022\014\n\001b\030\002" + - " \001(\005R\001b\022E\n\001c\030\003 \001(\01627.buf.validate.confor" + - "mance.cases.custom_constraints.EnumR\001c\022E" + - "\n\001d\030\004 \001(\01627.buf.validate.conformance.cas" + - "es.custom_constraints.EnumR\001d\022Z\n\001e\030\005 \001(\013" + - "2L.buf.validate.conformance.cases.custom" + - "_constraints.MessageExpressions.NestedR\001" + - "e\022Z\n\001f\030\006 \001(\0132L.buf.validate.conformance." + - "cases.custom_constraints.MessageExpressi" + - "ons.NestedR\001f\032x\n\006Nested\022\014\n\001a\030\001 \001(\005R\001a\022\014\n" + - "\001b\030\002 \001(\005R\001b:R\272HO\032M\n\031message_expression_n" + - "ested\0320this.a > this.b ? \'\': \'a must be " + - "greater than b\':\320\001\272H\314\001\032C\n\031message_expres" + - "sion_scalar\022\025a must be less than b\032\017this" + - ".a < this.b\032?\n\027message_expression_enum\022\022" + - "c must not equal d\032\020this.c != this.d\032D\n\030" + - "message_expression_embed\022\022e.a must equal" + - " f.a\032\024this.e.a == this.f.a\"R\n\014MissingFie" + - "ld\022\014\n\001a\030\001 \001(\005R\001a:4\272H1\032/\n\rmissing_field\022\022" + - "b must be positive\032\nthis.b > 0\"g\n\rIncorr" + - "ectType\022\014\n\001a\030\001 \001(\005R\001a:H\272HE\032C\n\016incorrect_" + - "type\022\027a must start with \'foo\'\032\030this.a.st" + - "artsWith(\'foo\')\"}\n\017DynRuntimeError\022\014\n\001a\030" + - "\001 \001(\005R\001a:\\\272HY\032W\n\017dyn_runtime_err\022.dynami" + - "c type tries to use a non-existent field" + - "\032\024dyn(this).b == \'foo\'\"\\\n\014NowEqualsNow:L" + - "\272HI\032G\n\016now_equals_now\022)now should equal " + - "now within an expression\032\nnow == now\"\337\002\n" + - "\035FieldExpressionMultipleScalar\022\275\002\n\003val\030\001" + - " \001(\005B\252\002\272H\246\002\272\001_\n\"field_expression.multipl" + - "e.scalar.1\022/test message field_expressio" + - "n.multiple.scalar.1\032\010this > 0\272\001_\n\"field_" + - "expression.multiple.scalar.2\022/test messa" + - "ge field_expression.multiple.scalar.2\032\010t" + - "his > 1\272\001_\n\"field_expression.multiple.sc" + - "alar.3\022/test message field_expression.mu" + - "ltiple.scalar.3\032\010this > 2R\003val\"\177\n\033FieldE" + - "xpressionNestedScalar\022`\n\006nested\030\001 \001(\0132H." + - "buf.validate.conformance.cases.custom_co" + - "nstraints.FieldExpressionScalarR\006nested\"" + - "\242\001\n\035FieldExpressionOptionalScalar\022y\n\003val" + - "\030\001 \001(\005Bb\272H_\272\001\\\n field_expression.optiona" + - "l.scalar\022-test message field_expression." + - "optional.scalar\032\tthis == 1H\000R\003val\210\001\001B\006\n\004" + - "_val\"{\n\025FieldExpressionScalar\022b\n\003val\030\001 \001" + - "(\005BP\272HM\272\001J\n\027field_expression.scalar\022$tes" + - "t message field_expression.scalar\032\tthis " + - "== 1R\003val\"\257\001\n\023FieldExpressionEnum\022\227\001\n\003va" + - "l\030\001 \001(\01627.buf.validate.conformance.cases" + - ".custom_constraints.EnumBL\272HI\272\001F\n\025field_" + - "expression.enum\022\"test message field_expr" + - "ession.enum\032\tthis == 1R\003val\"\345\001\n\026FieldExp" + - "ressionMessage\022\265\001\n\003val\030\001 \001(\0132M.buf.valid" + - "ate.conformance.cases.custom_constraints" + - ".FieldExpressionMessage.MsgBT\272HQ\272\001N\n\030fie" + - "ld_expression.message\022%test message fiel" + - "d_expression.message\032\013this.a == 1R\003val\032\023" + - "\n\003Msg\022\014\n\001a\030\001 \001(\005R\001a\"\245\002\n\030FieldExpressionM" + - "apScalar\022\320\001\n\003val\030\001 \003(\0132T.buf.validate.co" + - "nformance.cases.custom_constraints.Field" + - "ExpressionMapScalar.ValEntryBh\272He\272\001b\n\033fi" + - "eld_expression.map.scalar\022(test message " + - "field_expression.map.scalar\032\031this.all(k," + - " this[k] == 1)R\003val\0326\n\010ValEntry\022\020\n\003key\030\001" + - " \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\326\002\n\026" + - "FieldExpressionMapEnum\022\312\001\n\003val\030\001 \003(\0132R.b" + - "uf.validate.conformance.cases.custom_con" + - "straints.FieldExpressionMapEnum.ValEntry" + - "Bd\272Ha\272\001^\n\031field_expression.map.enum\022&tes" + - "t message field_expression.map.enum\032\031thi" + - "s.all(k, this[k] == 1)R\003val\032o\n\010ValEntry\022" + - "\020\n\003key\030\001 \001(\005R\003key\022M\n\005value\030\002 \001(\01627.buf.v" + - "alidate.conformance.cases.custom_constra" + - "ints.EnumR\005value:\0028\001\"\223\003\n\031FieldExpression" + - "MapMessage\022\325\001\n\003val\030\001 \003(\0132U.buf.validate." + - "conformance.cases.custom_constraints.Fie" + - "ldExpressionMapMessage.ValEntryBl\272Hi\272\001f\n" + - "\034field_expression.map.message\022)test mess" + - "age field_expression.map.message\032\033this.a" + - "ll(k, this[k].a == 1)R\003val\032\210\001\n\010ValEntry\022" + - "\020\n\003key\030\001 \001(\005R\003key\022f\n\005value\030\002 \001(\0132P.buf.v" + - "alidate.conformance.cases.custom_constra" + - "ints.FieldExpressionMapMessage.MsgR\005valu" + - "e:\0028\001\032\023\n\003Msg\022\014\n\001a\030\001 \001(\005R\001a\"\237\002\n\026FieldExpr" + - "essionMapKeys\022\314\001\n\003val\030\001 \003(\0132R.buf.valida" + - "te.conformance.cases.custom_constraints." + - "FieldExpressionMapKeys.ValEntryBf\272Hc\232\001`\"" + - "^\272\001[\n\031field_expression.map.keys\022&test me" + - "ssage field_expression.map.keys\032\026this ==" + - " 4 || this == 8R\003val\0326\n\010ValEntry\022\020\n\003key\030" + - "\001 \001(\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\264\002\n" + - "\036FieldExpressionMapScalarValues\022\331\001\n\003val\030" + - "\001 \003(\0132Z.buf.validate.conformance.cases.c" + - "ustom_constraints.FieldExpressionMapScal" + - "arValues.ValEntryBk\272Hh\232\001e*c\272\001`\n\"field_ex" + - "pression.map.scalar.values\022/test message" + - " field_expression.map.scalar.values\032\tthi" + - "s == 1R\003val\0326\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003ke" + - "y\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\"\345\002\n\034FieldExp" + - "ressionMapEnumValues\022\323\001\n\003val\030\001 \003(\0132X.buf" + - ".validate.conformance.cases.custom_const" + - "raints.FieldExpressionMapEnumValues.ValE" + - "ntryBg\272Hd\232\001a*_\272\001\\\n field_expression.map." + - "enum.values\022-test message field_expressi" + - "on.map.enum.values\032\tthis == 1R\003val\032o\n\010Va" + - "lEntry\022\020\n\003key\030\001 \001(\005R\003key\022M\n\005value\030\002 \001(\0162" + - "7.buf.validate.conformance.cases.custom_" + - "constraints.EnumR\005value:\0028\001\"\250\003\n\037FieldExp" + - "ressionMapMessageValues\022\336\001\n\003val\030\001 \003(\0132[." + - "buf.validate.conformance.cases.custom_co" + - "nstraints.FieldExpressionMapMessageValue" + - "s.ValEntryBo\272Hl\232\001i*g\272\001d\n#field_expressio" + - "n.map.message.values\0220test message field" + - "_expression.map.message.values\032\013this.a =" + - "= 1R\003val\032\216\001\n\010ValEntry\022\020\n\003key\030\001 \001(\005R\003key\022" + - "l\n\005value\030\002 \001(\0132V.buf.validate.conformanc" + - "e.cases.custom_constraints.FieldExpressi" + - "onMapMessageValues.MsgR\005value:\0028\001\032\023\n\003Msg" + - "\022\014\n\001a\030\001 \001(\005R\001a\"\237\001\n\035FieldExpressionRepeat" + - "edScalar\022~\n\003val\030\001 \003(\005Bl\272Hi\272\001f\n field_exp" + - "ression.repeated.scalar\022-test message fi" + - "eld_expression.repeated.scalar\032\023this.all" + - "(e, e == 1)R\003val\"\323\001\n\033FieldExpressionRepe" + - "atedEnum\022\263\001\n\003val\030\001 \003(\01627.buf.validate.co" + - "nformance.cases.custom_constraints.EnumB" + - "h\272He\272\001b\n\036field_expression.repeated.enum\022" + - "+test message field_expression.repeated." + - "enum\032\023this.all(e, e == 1)R\003val\"\221\002\n\036Field" + - "ExpressionRepeatedMessage\022\331\001\n\003val\030\001 \003(\0132" + - "U.buf.validate.conformance.cases.custom_" + - "constraints.FieldExpressionRepeatedMessa" + - "ge.MsgBp\272Hm\272\001j\n!field_expression.repeate" + - "d.message\022.test message field_expression" + - ".repeated.message\032\025this.all(e, e.a == 1)" + - "R\003val\032\023\n\003Msg\022\014\n\001a\030\001 \001(\005R\001a\"\254\001\n\"FieldExpr" + - "essionRepeatedScalarItems\022\205\001\n\003val\030\001 \003(\005B" + - "s\272Hp\222\001m\"k\272\001h\n&field_expression.repeated." + - "scalar.items\0223test message field_express" + - "ion.repeated.scalar.items\032\tthis == 1R\003va" + - "l\"\337\001\n FieldExpressionRepeatedEnumItems\022\272" + - "\001\n\003val\030\001 \003(\01627.buf.validate.conformance." + - "cases.custom_constraints.EnumBo\272Hl\222\001i\"g\272" + - "\001d\n$field_expression.repeated.enum.items" + - "\0221test message field_expression.repeated" + - ".enum.items\032\tthis == 1R\003val\"\242\002\n#FieldExp" + - "ressionRepeatedMessageItems\022\345\001\n\003val\030\001 \003(" + - "\0132Z.buf.validate.conformance.cases.custo" + - "m_constraints.FieldExpressionRepeatedMes" + - "sageItems.MsgBw\272Ht\222\001q\"o\272\001l\n\'field_expres" + - "sion.repeated.message.items\0224test messag" + - "e field_expression.repeated.message.item" + - "s\032\013this.a == 1R\003val\032\023\n\003Msg\022\014\n\001a\030\001 \001(\005R\001a" + - "**\n\004Enum\022\024\n\020ENUM_UNSPECIFIED\020\000\022\014\n\010ENUM_O" + - "NE\020\001B\267\002\n7build.buf.validate.conformance." + - "cases.custom_constraintsB\026CustomConstrai" + - "ntsProtoP\001\242\002\005BVCCC\252\0020Buf.Validate.Confor" + - "mance.Cases.CustomConstraints\312\0020Buf\\Vali" + - "date\\Conformance\\Cases\\CustomConstraints" + - "\342\002 builder) { - super(builder); - } - private DynRuntimeError() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_DynRuntimeError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_DynRuntimeError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError.class, build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError.Builder.class); - } - - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - 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 { - if (a_ != 0) { - output.writeInt32(1, a_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, a_); - } - 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.custom_constraints.DynRuntimeError)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError other = (build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError) obj; - - if (getA() - != other.getA()) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError 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.custom_constraints.DynRuntimeError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError 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.custom_constraints.DynRuntimeError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError 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.custom_constraints.DynRuntimeError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError 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.custom_constraints.DynRuntimeError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError 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.custom_constraints.DynRuntimeError 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.custom_constraints.DynRuntimeError 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.custom_constraints.DynRuntimeError 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.custom_constraints.DynRuntimeError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.DynRuntimeError) - build.buf.validate.conformance.cases.custom_constraints.DynRuntimeErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_DynRuntimeError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_DynRuntimeError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError.class, build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_DynRuntimeError_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError build() { - build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError result = new build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - 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 8: { - a_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int a_ ; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * int32 a = 1 [json_name = "a"]; - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 a = 1 [json_name = "a"]; - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.DynRuntimeError) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.DynRuntimeError) - private static final build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.DynRuntimeError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DynRuntimeError 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.custom_constraints.DynRuntimeError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/DynRuntimeErrorOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/DynRuntimeErrorOrBuilder.java deleted file mode 100644 index 493adf81..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/DynRuntimeErrorOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface DynRuntimeErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.DynRuntimeError) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - int getA(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/Enum.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/Enum.java deleted file mode 100644 index 7ce7936d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/Enum.java +++ /dev/null @@ -1,124 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf enum {@code buf.validate.conformance.cases.custom_constraints.Enum} - */ -public enum Enum - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ENUM_UNSPECIFIED = 0; - */ - ENUM_UNSPECIFIED(0), - /** - * ENUM_ONE = 1; - */ - ENUM_ONE(1), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Enum.class.getName()); - } - /** - * ENUM_UNSPECIFIED = 0; - */ - public static final int ENUM_UNSPECIFIED_VALUE = 0; - /** - * ENUM_ONE = 1; - */ - public static final int ENUM_ONE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Enum valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Enum forNumber(int value) { - switch (value) { - case 0: return ENUM_UNSPECIFIED; - case 1: return ENUM_ONE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Enum> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Enum findValueByNumber(int number) { - return Enum.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.getDescriptor().getEnumTypes().get(0); - } - - private static final Enum[] VALUES = values(); - - public static Enum valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Enum(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.custom_constraints.Enum) -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionEnum.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionEnum.java deleted file mode 100644 index 11373006..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionEnum.java +++ /dev/null @@ -1,459 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum} - */ -public final class FieldExpressionEnum extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum) - FieldExpressionEnumOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionEnum.class.getName()); - } - // Use FieldExpressionEnum.newBuilder() to construct. - private FieldExpressionEnum(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionEnum() { - val_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionEnum_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionEnum_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override public build.buf.validate.conformance.cases.custom_constraints.Enum getVal() { - build.buf.validate.conformance.cases.custom_constraints.Enum result = build.buf.validate.conformance.cases.custom_constraints.Enum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED : result; - } - - 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 { - if (val_ != build.buf.validate.conformance.cases.custom_constraints.Enum.ENUM_UNSPECIFIED.getNumber()) { - output.writeEnum(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != build.buf.validate.conformance.cases.custom_constraints.Enum.ENUM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, val_); - } - 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.custom_constraints.FieldExpressionEnum)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum) obj; - - if (val_ != other.val_) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + val_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum 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.custom_constraints.FieldExpressionEnum parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum 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.custom_constraints.FieldExpressionEnum parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum 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.custom_constraints.FieldExpressionEnum parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum 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.custom_constraints.FieldExpressionEnum parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum 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.custom_constraints.FieldExpressionEnum 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.custom_constraints.FieldExpressionEnum 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.custom_constraints.FieldExpressionEnum 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.custom_constraints.FieldExpressionEnum} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnumOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionEnum_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionEnum_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionEnum_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum.getDefaultInstance()) return this; - if (other.val_ != 0) { - setValValue(other.getValValue()); - } - 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 8: { - val_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ = 0; - /** - * .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - @java.lang.Override public int getValValue() { - return val_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue(int value) { - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.Enum getVal() { - build.buf.validate.conformance.cases.custom_constraints.Enum result = build.buf.validate.conformance.cases.custom_constraints.Enum.forNumber(val_); - return result == null ? build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(build.buf.validate.conformance.cases.custom_constraints.Enum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionEnum 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.custom_constraints.FieldExpressionEnum getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionEnumOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionEnumOrBuilder.java deleted file mode 100644 index 62e37d6b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionEnumOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionEnumOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionEnum) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The enum numeric value on the wire for val. - */ - int getValValue(); - /** - * .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.custom_constraints.Enum getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnum.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnum.java deleted file mode 100644 index 6e576032..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnum.java +++ /dev/null @@ -1,785 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum} - */ -public final class FieldExpressionMapEnum extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum) - FieldExpressionMapEnumOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionMapEnum.class.getName()); - } - // Use FieldExpressionMapEnum.newBuilder() to construct. - private FieldExpressionMapEnum(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionMapEnum() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnum_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnum_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnum_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.ENUM, - build.buf.validate.conformance.cases.custom_constraints.Enum.ENUM_UNSPECIFIED.getNumber()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private static final - com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, build.buf.validate.conformance.cases.custom_constraints.Enum> valValueConverter = - com.google.protobuf.Internal.MapAdapter.newEnumConverter( - build.buf.validate.conformance.cases.custom_constraints.Enum.internalGetValueMap(), - build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED); - private static final java.util.Map - internalGetAdaptedValMap( - java.util.Map map) { - return new com.google.protobuf.Internal.MapAdapter< - java.lang.Integer, build.buf.validate.conformance.cases.custom_constraints.Enum, java.lang.Integer>( - map, valValueConverter); - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getVal() { - return getValMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValMap() { - return internalGetAdaptedValMap( - internalGetVal().getMap());} - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) - ? valValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.Enum getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getValValue() { - return getValValueMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValValueMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.custom_constraints.FieldExpressionMapEnum)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum 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.custom_constraints.FieldExpressionMapEnum parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum 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.custom_constraints.FieldExpressionMapEnum parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum 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.custom_constraints.FieldExpressionMapEnum parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum 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.custom_constraints.FieldExpressionMapEnum parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum 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.custom_constraints.FieldExpressionMapEnum 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.custom_constraints.FieldExpressionMapEnum 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.custom_constraints.FieldExpressionMapEnum 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.custom_constraints.FieldExpressionMapEnum} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnum_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnum_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnum_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getVal() { - return getValMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValMap() { - return internalGetAdaptedValMap( - internalGetVal().getMap());} - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) - ? valValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.Enum getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getValValue() { - return getValValueMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValValueMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetAdaptedValMap( - internalGetMutableVal().getMutableMap()); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - build.buf.validate.conformance.cases.custom_constraints.Enum value) { - - - internalGetMutableVal().getMutableMap() - .put(key, valValueConverter.doBackward(value)); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetAdaptedValMap( - internalGetMutableVal().getMutableMap()) - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValValue() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putValValue( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllValValue( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionMapEnum 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.custom_constraints.FieldExpressionMapEnum getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumOrBuilder.java deleted file mode 100644 index e445e931..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionMapEnumOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnum) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum defaultValue); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.custom_constraints.Enum getValOrThrow( - int key); - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValValue(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValValueMap(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValValueOrDefault( - int key, - int defaultValue); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValValueOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumValues.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumValues.java deleted file mode 100644 index b5fd5b1a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumValues.java +++ /dev/null @@ -1,785 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues} - */ -public final class FieldExpressionMapEnumValues extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues) - FieldExpressionMapEnumValuesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionMapEnumValues.class.getName()); - } - // Use FieldExpressionMapEnumValues.newBuilder() to construct. - private FieldExpressionMapEnumValues(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionMapEnumValues() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnumValues_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnumValues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnumValues_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.ENUM, - build.buf.validate.conformance.cases.custom_constraints.Enum.ENUM_UNSPECIFIED.getNumber()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private static final - com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, build.buf.validate.conformance.cases.custom_constraints.Enum> valValueConverter = - com.google.protobuf.Internal.MapAdapter.newEnumConverter( - build.buf.validate.conformance.cases.custom_constraints.Enum.internalGetValueMap(), - build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED); - private static final java.util.Map - internalGetAdaptedValMap( - java.util.Map map) { - return new com.google.protobuf.Internal.MapAdapter< - java.lang.Integer, build.buf.validate.conformance.cases.custom_constraints.Enum, java.lang.Integer>( - map, valValueConverter); - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getVal() { - return getValMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValMap() { - return internalGetAdaptedValMap( - internalGetVal().getMap());} - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) - ? valValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.Enum getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getValValue() { - return getValValueMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValValueMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.custom_constraints.FieldExpressionMapEnumValues)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues 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.custom_constraints.FieldExpressionMapEnumValues parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues 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.custom_constraints.FieldExpressionMapEnumValues parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues 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.custom_constraints.FieldExpressionMapEnumValues parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues 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.custom_constraints.FieldExpressionMapEnumValues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues 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.custom_constraints.FieldExpressionMapEnumValues 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.custom_constraints.FieldExpressionMapEnumValues 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.custom_constraints.FieldExpressionMapEnumValues 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.custom_constraints.FieldExpressionMapEnumValues} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnumValues_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnumValues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapEnumValues_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getVal() { - return getValMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValMap() { - return internalGetAdaptedValMap( - internalGetVal().getMap());} - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) - ? valValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.Enum getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getValValue() { - return getValValueMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map - getValValueMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValValueOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetAdaptedValMap( - internalGetMutableVal().getMutableMap()); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - build.buf.validate.conformance.cases.custom_constraints.Enum value) { - - - internalGetMutableVal().getMutableMap() - .put(key, valValueConverter.doBackward(value)); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetAdaptedValMap( - internalGetMutableVal().getMutableMap()) - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValValue() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putValValue( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllValValue( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionMapEnumValues 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.custom_constraints.FieldExpressionMapEnumValues getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumValuesOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumValuesOrBuilder.java deleted file mode 100644 index 20de24c2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapEnumValuesOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionMapEnumValuesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapEnumValues) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.Enum defaultValue); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.custom_constraints.Enum getValOrThrow( - int key); - /** - * Use {@link #getValValueMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValValue(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValValueMap(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValValueOrDefault( - int key, - int defaultValue); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.Enum> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValValueOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapKeys.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapKeys.java deleted file mode 100644 index 67f75ce9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapKeys.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys} - */ -public final class FieldExpressionMapKeys extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys) - FieldExpressionMapKeysOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionMapKeys.class.getName()); - } - // Use FieldExpressionMapKeys.newBuilder() to construct. - private FieldExpressionMapKeys(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionMapKeys() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapKeys_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapKeys_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapKeys_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.custom_constraints.FieldExpressionMapKeys)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys 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.custom_constraints.FieldExpressionMapKeys parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys 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.custom_constraints.FieldExpressionMapKeys parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys 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.custom_constraints.FieldExpressionMapKeys parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys 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.custom_constraints.FieldExpressionMapKeys parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys 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.custom_constraints.FieldExpressionMapKeys 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.custom_constraints.FieldExpressionMapKeys 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.custom_constraints.FieldExpressionMapKeys 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.custom_constraints.FieldExpressionMapKeys} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeysOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapKeys_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapKeys_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapKeys_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionMapKeys 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.custom_constraints.FieldExpressionMapKeys getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapKeysOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapKeysOrBuilder.java deleted file mode 100644 index 8f1ae246..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapKeysOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionMapKeysOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapKeys) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessage.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessage.java deleted file mode 100644 index 0ff81c9f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessage.java +++ /dev/null @@ -1,1105 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage} - */ -public final class FieldExpressionMapMessage extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage) - FieldExpressionMapMessageOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionMapMessage.class.getName()); - } - // Use FieldExpressionMapMessage.newBuilder() to construct. - private FieldExpressionMapMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionMapMessage() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - int getA(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.Builder.class); - } - - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - 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 { - if (a_ != 0) { - output.writeInt32(1, a_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, a_); - } - 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.custom_constraints.FieldExpressionMapMessage.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg) obj; - - if (getA() - != other.getA()) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg 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.custom_constraints.FieldExpressionMapMessage.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg 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.custom_constraints.FieldExpressionMapMessage.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg 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.custom_constraints.FieldExpressionMapMessage.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg 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.custom_constraints.FieldExpressionMapMessage.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg 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.custom_constraints.FieldExpressionMapMessage.Msg 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.custom_constraints.FieldExpressionMapMessage.Msg 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.custom_constraints.FieldExpressionMapMessage.Msg 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.custom_constraints.FieldExpressionMapMessage.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - 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 8: { - a_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int a_ ; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * int32 a = 1 [json_name = "a"]; - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 a = 1 [json_name = "a"]; - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.custom_constraints.FieldExpressionMapMessage.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.custom_constraints.FieldExpressionMapMessage)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage 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.custom_constraints.FieldExpressionMapMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage 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.custom_constraints.FieldExpressionMapMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage 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.custom_constraints.FieldExpressionMapMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage 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.custom_constraints.FieldExpressionMapMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage 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.custom_constraints.FieldExpressionMapMessage 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.custom_constraints.FieldExpressionMapMessage 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.custom_constraints.FieldExpressionMapMessage 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.custom_constraints.FieldExpressionMapMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessage_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal().build(ValDefaultEntryHolder.defaultEntry); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().ensureBuilderMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 static final class ValConverter implements com.google.protobuf.MapFieldBuilder.Converter { - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg build(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.MsgOrBuilder val) { - if (val instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg) { return (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg) val; } - return ((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry defaultEntry() { - return ValDefaultEntryHolder.defaultEntry; - } - }; - private static final ValConverter valConverter = new ValConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.Integer, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.MsgOrBuilder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.Builder> val_; - private com.google.protobuf.MapFieldBuilder - internalGetVal() { - if (val_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(valConverter); - } - return val_; - } - private com.google.protobuf.MapFieldBuilder - internalGetMutableVal() { - if (val_ == null) { - val_ = new com.google.protobuf.MapFieldBuilder<>(valConverter); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().ensureBuilderMap().size(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().ensureBuilderMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getImmutableMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg defaultValue) { - - java.util.Map map = internalGetMutableVal().ensureBuilderMap(); - return map.containsKey(key) ? valConverter.build(map.get(key)) : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg getValOrThrow( - int key) { - - java.util.Map map = internalGetMutableVal().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valConverter.build(map.get(key)); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().clear(); - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().ensureBuilderMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().ensureMessageMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().ensureBuilderMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - for (java.util.Map.Entry e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableVal().ensureBuilderMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.Builder putValBuilderIfAbsent( - int key) { - java.util.Map builderMap = internalGetMutableVal().ensureBuilderMap(); - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.MsgOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg) { - entry = ((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg) entry).toBuilder(); - builderMap.put(key, entry); - } - return (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg.Builder) entry; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionMapMessage 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.custom_constraints.FieldExpressionMapMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageOrBuilder.java deleted file mode 100644 index a74a8026..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionMapMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg defaultValue); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessage.Msg getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageValues.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageValues.java deleted file mode 100644 index 22e2de62..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageValues.java +++ /dev/null @@ -1,1105 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues} - */ -public final class FieldExpressionMapMessageValues extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues) - FieldExpressionMapMessageValuesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionMapMessageValues.class.getName()); - } - // Use FieldExpressionMapMessageValues.newBuilder() to construct. - private FieldExpressionMapMessageValues(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionMapMessageValues() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - int getA(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.Builder.class); - } - - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - 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 { - if (a_ != 0) { - output.writeInt32(1, a_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, a_); - } - 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.custom_constraints.FieldExpressionMapMessageValues.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg) obj; - - if (getA() - != other.getA()) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg 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.custom_constraints.FieldExpressionMapMessageValues.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg 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.custom_constraints.FieldExpressionMapMessageValues.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg 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.custom_constraints.FieldExpressionMapMessageValues.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg 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.custom_constraints.FieldExpressionMapMessageValues.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg 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.custom_constraints.FieldExpressionMapMessageValues.Msg 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.custom_constraints.FieldExpressionMapMessageValues.Msg 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.custom_constraints.FieldExpressionMapMessageValues.Msg 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.custom_constraints.FieldExpressionMapMessageValues.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - 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 8: { - a_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int a_ ; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * int32 a = 1 [json_name = "a"]; - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 a = 1 [json_name = "a"]; - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.custom_constraints.FieldExpressionMapMessageValues.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.custom_constraints.FieldExpressionMapMessageValues)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues 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.custom_constraints.FieldExpressionMapMessageValues parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues 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.custom_constraints.FieldExpressionMapMessageValues parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues 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.custom_constraints.FieldExpressionMapMessageValues parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues 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.custom_constraints.FieldExpressionMapMessageValues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues 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.custom_constraints.FieldExpressionMapMessageValues 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.custom_constraints.FieldExpressionMapMessageValues 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.custom_constraints.FieldExpressionMapMessageValues 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.custom_constraints.FieldExpressionMapMessageValues} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapMessageValues_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal().build(ValDefaultEntryHolder.defaultEntry); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().ensureBuilderMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 static final class ValConverter implements com.google.protobuf.MapFieldBuilder.Converter { - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg build(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.MsgOrBuilder val) { - if (val instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg) { return (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg) val; } - return ((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry defaultEntry() { - return ValDefaultEntryHolder.defaultEntry; - } - }; - private static final ValConverter valConverter = new ValConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.Integer, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.MsgOrBuilder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.Builder> val_; - private com.google.protobuf.MapFieldBuilder - internalGetVal() { - if (val_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(valConverter); - } - return val_; - } - private com.google.protobuf.MapFieldBuilder - internalGetMutableVal() { - if (val_ == null) { - val_ = new com.google.protobuf.MapFieldBuilder<>(valConverter); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().ensureBuilderMap().size(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().ensureBuilderMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getImmutableMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg defaultValue) { - - java.util.Map map = internalGetMutableVal().ensureBuilderMap(); - return map.containsKey(key) ? valConverter.build(map.get(key)) : defaultValue; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg getValOrThrow( - int key) { - - java.util.Map map = internalGetMutableVal().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valConverter.build(map.get(key)); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().clear(); - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().ensureBuilderMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().ensureMessageMap(); - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableVal().ensureBuilderMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - for (java.util.Map.Entry e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableVal().ensureBuilderMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.Builder putValBuilderIfAbsent( - int key) { - java.util.Map builderMap = internalGetMutableVal().ensureBuilderMap(); - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.MsgOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg) { - entry = ((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg) entry).toBuilder(); - builderMap.put(key, entry); - } - return (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg.Builder) entry; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionMapMessageValues 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.custom_constraints.FieldExpressionMapMessageValues getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageValuesOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageValuesOrBuilder.java deleted file mode 100644 index 2e0dba7b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapMessageValuesOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionMapMessageValuesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg getValOrDefault( - int key, - /* nullable */ -build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg defaultValue); - /** - * map<int32, .buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapMessageValues.Msg getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalar.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalar.java deleted file mode 100644 index f0e83279..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalar.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar} - */ -public final class FieldExpressionMapScalar extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar) - FieldExpressionMapScalarOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionMapScalar.class.getName()); - } - // Use FieldExpressionMapScalar.newBuilder() to construct. - private FieldExpressionMapScalar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionMapScalar() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalar_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalar_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.custom_constraints.FieldExpressionMapScalar)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar 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.custom_constraints.FieldExpressionMapScalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar 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.custom_constraints.FieldExpressionMapScalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar 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.custom_constraints.FieldExpressionMapScalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar 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.custom_constraints.FieldExpressionMapScalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar 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.custom_constraints.FieldExpressionMapScalar 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.custom_constraints.FieldExpressionMapScalar 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.custom_constraints.FieldExpressionMapScalar 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.custom_constraints.FieldExpressionMapScalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalar_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalar_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionMapScalar 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.custom_constraints.FieldExpressionMapScalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarOrBuilder.java deleted file mode 100644 index 450f5af5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionMapScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalar) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarValues.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarValues.java deleted file mode 100644 index bbe33592..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarValues.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues} - */ -public final class FieldExpressionMapScalarValues extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues) - FieldExpressionMapScalarValuesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionMapScalarValues.class.getName()); - } - // Use FieldExpressionMapScalarValues.newBuilder() to construct. - private FieldExpressionMapScalarValues(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionMapScalarValues() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalarValues_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalarValues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private static final class ValDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalarValues_ValEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeIntegerMapTo( - output, - internalGetVal(), - ValDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVal().getMap().entrySet()) { - com.google.protobuf.MapEntry - val__ = ValDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, val__); - } - 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.custom_constraints.FieldExpressionMapScalarValues)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues) obj; - - if (!internalGetVal().equals( - other.internalGetVal())) 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 (!internalGetVal().getMap().isEmpty()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + internalGetVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues 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.custom_constraints.FieldExpressionMapScalarValues parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues 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.custom_constraints.FieldExpressionMapScalarValues parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues 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.custom_constraints.FieldExpressionMapScalarValues parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues 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.custom_constraints.FieldExpressionMapScalarValues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues 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.custom_constraints.FieldExpressionMapScalarValues 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.custom_constraints.FieldExpressionMapScalarValues 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.custom_constraints.FieldExpressionMapScalarValues 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.custom_constraints.FieldExpressionMapScalarValues} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalarValues_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableVal(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalarValues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableVal().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMapScalarValues_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = internalGetVal(); - result.val_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues.getDefaultInstance()) return this; - internalGetMutableVal().mergeFrom( - other.internalGetVal()); - bitField0_ |= 0x00000001; - 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.MapEntry - val__ = input.readMessage( - ValDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableVal().getMutableMap().put( - val__.getKey(), val__.getValue()); - bitField0_ |= 0x00000001; - 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 com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> val_; - private com.google.protobuf.MapField - internalGetVal() { - if (val_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValDefaultEntryHolder.defaultEntry); - } - return val_; - } - private com.google.protobuf.MapField - internalGetMutableVal() { - if (val_ == null) { - val_ = com.google.protobuf.MapField.newMapField( - ValDefaultEntryHolder.defaultEntry); - } - if (!val_.isMutable()) { - val_ = val_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return val_; - } - public int getValCount() { - return internalGetVal().getMap().size(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public boolean containsVal( - int key) { - - return internalGetVal().getMap().containsKey(key); - } - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getVal() { - return getValMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.Map getValMap() { - return internalGetVal().getMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetVal().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValOrThrow( - int key) { - - java.util.Map map = - internalGetVal().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableVal().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder removeVal( - int key) { - - internalGetMutableVal().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVal() { - bitField0_ |= 0x00000001; - return internalGetMutableVal().getMutableMap(); - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putVal( - int key, - int value) { - - - internalGetMutableVal().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder putAllVal( - java.util.Map values) { - internalGetMutableVal().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionMapScalarValues 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.custom_constraints.FieldExpressionMapScalarValues getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarValuesOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarValuesOrBuilder.java deleted file mode 100644 index 8e646e39..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMapScalarValuesOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionMapScalarValuesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMapScalarValues) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - boolean containsVal( - int key); - /** - * Use {@link #getValMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVal(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.Map - getValMap(); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrDefault( - int key, - int defaultValue); - /** - * map<int32, int32> val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValOrThrow( - int key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMessage.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMessage.java deleted file mode 100644 index 78ab469a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMessage.java +++ /dev/null @@ -1,992 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage} - */ -public final class FieldExpressionMessage extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage) - FieldExpressionMessageOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionMessage.class.getName()); - } - // Use FieldExpressionMessage.newBuilder() to construct. - private FieldExpressionMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionMessage() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - int getA(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.Builder.class); - } - - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - 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 { - if (a_ != 0) { - output.writeInt32(1, a_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, a_); - } - 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.custom_constraints.FieldExpressionMessage.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg) obj; - - if (getA() - != other.getA()) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg 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.custom_constraints.FieldExpressionMessage.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg 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.custom_constraints.FieldExpressionMessage.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg 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.custom_constraints.FieldExpressionMessage.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg 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.custom_constraints.FieldExpressionMessage.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg 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.custom_constraints.FieldExpressionMessage.Msg 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.custom_constraints.FieldExpressionMessage.Msg 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.custom_constraints.FieldExpressionMessage.Msg 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.custom_constraints.FieldExpressionMessage.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - 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 8: { - a_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int a_ ; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * int32 a = 1 [json_name = "a"]; - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 a = 1 [json_name = "a"]; - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.custom_constraints.FieldExpressionMessage.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val_; - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg getVal() { - return val_ == null ? build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.getDefaultInstance() : val_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.MsgOrBuilder getValOrBuilder() { - return val_ == null ? build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.getDefaultInstance() : val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVal()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVal()); - } - 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.custom_constraints.FieldExpressionMessage)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (!getVal() - .equals(other.getVal())) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage 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.custom_constraints.FieldExpressionMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage 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.custom_constraints.FieldExpressionMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage 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.custom_constraints.FieldExpressionMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage 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.custom_constraints.FieldExpressionMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage 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.custom_constraints.FieldExpressionMessage 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.custom_constraints.FieldExpressionMessage 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.custom_constraints.FieldExpressionMessage 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.custom_constraints.FieldExpressionMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetValFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMessage_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = valBuilder_ == null - ? val_ - : valBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.getDefaultInstance()) return this; - if (other.hasVal()) { - mergeVal(other.getVal()); - } - 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: { - input.readMessage( - internalGetValFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.MsgOrBuilder> valBuilder_; - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg getVal() { - if (valBuilder_ == null) { - return val_ == null ? build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.getDefaultInstance() : val_; - } else { - return valBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - } else { - valBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - val_ = builderForValue.build(); - } else { - valBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder mergeVal(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg value) { - if (valBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - val_ != null && - val_ != build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.getDefaultInstance()) { - getValBuilder().mergeFrom(value); - } else { - val_ = value; - } - } else { - valBuilder_.mergeFrom(value); - } - if (val_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = null; - if (valBuilder_ != null) { - valBuilder_.dispose(); - valBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.Builder getValBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetValFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.MsgOrBuilder getValOrBuilder() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilder(); - } else { - return val_ == null ? - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.getDefaultInstance() : val_; - } - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.MsgOrBuilder>( - getVal(), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionMessage 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.custom_constraints.FieldExpressionMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMessageOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMessageOrBuilder.java deleted file mode 100644 index f2ca2948..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMessageOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg getVal(); - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMessage.MsgOrBuilder getValOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMultipleScalar.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMultipleScalar.java deleted file mode 100644 index cf7180d9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMultipleScalar.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar} - */ -public final class FieldExpressionMultipleScalar extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar) - FieldExpressionMultipleScalarOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionMultipleScalar.class.getName()); - } - // Use FieldExpressionMultipleScalar.newBuilder() to construct. - private FieldExpressionMultipleScalar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionMultipleScalar() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMultipleScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMultipleScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.custom_constraints.FieldExpressionMultipleScalar)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar 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.custom_constraints.FieldExpressionMultipleScalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar 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.custom_constraints.FieldExpressionMultipleScalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar 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.custom_constraints.FieldExpressionMultipleScalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar 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.custom_constraints.FieldExpressionMultipleScalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar 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.custom_constraints.FieldExpressionMultipleScalar 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.custom_constraints.FieldExpressionMultipleScalar 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.custom_constraints.FieldExpressionMultipleScalar 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.custom_constraints.FieldExpressionMultipleScalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMultipleScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMultipleScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionMultipleScalar_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionMultipleScalar 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.custom_constraints.FieldExpressionMultipleScalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMultipleScalarOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMultipleScalarOrBuilder.java deleted file mode 100644 index e76c70d2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionMultipleScalarOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionMultipleScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionMultipleScalar) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionNestedScalar.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionNestedScalar.java deleted file mode 100644 index 7bd2b15d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionNestedScalar.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar} - */ -public final class FieldExpressionNestedScalar extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar) - FieldExpressionNestedScalarOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionNestedScalar.class.getName()); - } - // Use FieldExpressionNestedScalar.newBuilder() to construct. - private FieldExpressionNestedScalar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionNestedScalar() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionNestedScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionNestedScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar.Builder.class); - } - - private int bitField0_; - public static final int NESTED_FIELD_NUMBER = 1; - private build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested_; - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - * @return Whether the nested field is set. - */ - @java.lang.Override - public boolean hasNested() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - * @return The nested. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar getNested() { - return nested_ == null ? build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.getDefaultInstance() : nested_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalarOrBuilder getNestedOrBuilder() { - return nested_ == null ? build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.getDefaultInstance() : nested_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getNested()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNested()); - } - 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.custom_constraints.FieldExpressionNestedScalar)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar) obj; - - if (hasNested() != other.hasNested()) return false; - if (hasNested()) { - if (!getNested() - .equals(other.getNested())) 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 (hasNested()) { - hash = (37 * hash) + NESTED_FIELD_NUMBER; - hash = (53 * hash) + getNested().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar 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.custom_constraints.FieldExpressionNestedScalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar 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.custom_constraints.FieldExpressionNestedScalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar 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.custom_constraints.FieldExpressionNestedScalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar 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.custom_constraints.FieldExpressionNestedScalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar 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.custom_constraints.FieldExpressionNestedScalar 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.custom_constraints.FieldExpressionNestedScalar 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.custom_constraints.FieldExpressionNestedScalar 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.custom_constraints.FieldExpressionNestedScalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionNestedScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionNestedScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetNestedFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - nested_ = null; - if (nestedBuilder_ != null) { - nestedBuilder_.dispose(); - nestedBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionNestedScalar_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.nested_ = nestedBuilder_ == null - ? nested_ - : nestedBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar.getDefaultInstance()) return this; - if (other.hasNested()) { - mergeNested(other.getNested()); - } - 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: { - input.readMessage( - internalGetNestedFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - 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 build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalarOrBuilder> nestedBuilder_; - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - * @return Whether the nested field is set. - */ - public boolean hasNested() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - * @return The nested. - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar getNested() { - if (nestedBuilder_ == null) { - return nested_ == null ? build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.getDefaultInstance() : nested_; - } else { - return nestedBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - */ - public Builder setNested(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar value) { - if (nestedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nested_ = value; - } else { - nestedBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - */ - public Builder setNested( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.Builder builderForValue) { - if (nestedBuilder_ == null) { - nested_ = builderForValue.build(); - } else { - nestedBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - */ - public Builder mergeNested(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar value) { - if (nestedBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - nested_ != null && - nested_ != build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.getDefaultInstance()) { - getNestedBuilder().mergeFrom(value); - } else { - nested_ = value; - } - } else { - nestedBuilder_.mergeFrom(value); - } - if (nested_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - */ - public Builder clearNested() { - bitField0_ = (bitField0_ & ~0x00000001); - nested_ = null; - if (nestedBuilder_ != null) { - nestedBuilder_.dispose(); - nestedBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.Builder getNestedBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetNestedFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalarOrBuilder getNestedOrBuilder() { - if (nestedBuilder_ != null) { - return nestedBuilder_.getMessageOrBuilder(); - } else { - return nested_ == null ? - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.getDefaultInstance() : nested_; - } - } - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalarOrBuilder> - internalGetNestedFieldBuilder() { - if (nestedBuilder_ == null) { - nestedBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalarOrBuilder>( - getNested(), - getParentForChildren(), - isClean()); - nested_ = null; - } - return nestedBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionNestedScalar 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.custom_constraints.FieldExpressionNestedScalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionNestedScalarOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionNestedScalarOrBuilder.java deleted file mode 100644 index bb2ae6c9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionNestedScalarOrBuilder.java +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionNestedScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionNestedScalar) - com.google.protobuf.MessageOrBuilder { - - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - * @return Whether the nested field is set. - */ - boolean hasNested(); - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - * @return The nested. - */ - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar getNested(); - /** - * .buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar nested = 1 [json_name = "nested"]; - */ - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalarOrBuilder getNestedOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionOptionalScalar.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionOptionalScalar.java deleted file mode 100644 index c0eaaf69..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionOptionalScalar.java +++ /dev/null @@ -1,456 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar} - */ -public final class FieldExpressionOptionalScalar extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar) - FieldExpressionOptionalScalarOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionOptionalScalar.class.getName()); - } - // Use FieldExpressionOptionalScalar.newBuilder() to construct. - private FieldExpressionOptionalScalar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionOptionalScalar() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionOptionalScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionOptionalScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.custom_constraints.FieldExpressionOptionalScalar)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar) obj; - - if (hasVal() != other.hasVal()) return false; - if (hasVal()) { - if (getVal() - != other.getVal()) 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 (hasVal()) { - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar 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.custom_constraints.FieldExpressionOptionalScalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar 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.custom_constraints.FieldExpressionOptionalScalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar 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.custom_constraints.FieldExpressionOptionalScalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar 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.custom_constraints.FieldExpressionOptionalScalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar 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.custom_constraints.FieldExpressionOptionalScalar 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.custom_constraints.FieldExpressionOptionalScalar 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.custom_constraints.FieldExpressionOptionalScalar 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.custom_constraints.FieldExpressionOptionalScalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionOptionalScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionOptionalScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionOptionalScalar_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar.getDefaultInstance()) return this; - if (other.hasVal()) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - @java.lang.Override - public boolean hasVal() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionOptionalScalar 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.custom_constraints.FieldExpressionOptionalScalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionOptionalScalarOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionOptionalScalarOrBuilder.java deleted file mode 100644 index dd508f2b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionOptionalScalarOrBuilder.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionOptionalScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionOptionalScalar) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return Whether the val field is set. - */ - boolean hasVal(); - /** - * optional int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnum.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnum.java deleted file mode 100644 index 60cb96ed..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnum.java +++ /dev/null @@ -1,627 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum} - */ -public final class FieldExpressionRepeatedEnum extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum) - FieldExpressionRepeatedEnumOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionRepeatedEnum.class.getName()); - } - // Use FieldExpressionRepeatedEnum.newBuilder() to construct. - private FieldExpressionRepeatedEnum(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionRepeatedEnum() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnum_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnum_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_; - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.custom_constraints.Enum> val_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.custom_constraints.Enum>() { - public build.buf.validate.conformance.cases.custom_constraints.Enum convert(int from) { - build.buf.validate.conformance.cases.custom_constraints.Enum result = build.buf.validate.conformance.cases.custom_constraints.Enum.forNumber(from); - return result == null ? build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED : result; - } - }; - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.custom_constraints.Enum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.Enum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - @java.lang.Override - public java.util.List - getValValueList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - @java.lang.Override - public int getValValue(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeEnumNoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }valMemoizedSerializedSize = dataSize; - } - 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.custom_constraints.FieldExpressionRepeatedEnum)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum) obj; - - if (!val_.equals(other.val_)) 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) + val_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum 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.custom_constraints.FieldExpressionRepeatedEnum parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum 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.custom_constraints.FieldExpressionRepeatedEnum parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum 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.custom_constraints.FieldExpressionRepeatedEnum parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum 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.custom_constraints.FieldExpressionRepeatedEnum parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum 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.custom_constraints.FieldExpressionRepeatedEnum 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.custom_constraints.FieldExpressionRepeatedEnum 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.custom_constraints.FieldExpressionRepeatedEnum 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.custom_constraints.FieldExpressionRepeatedEnum} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnum_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnum_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnum_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum result) { - if (((bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.val_ = val_; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - } - input.popLimit(oldLimit); - 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 com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - private void ensureValIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - val_ = makeMutableCopy(val_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.custom_constraints.Enum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public build.buf.validate.conformance.cases.custom_constraints.Enum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.custom_constraints.Enum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(build.buf.validate.conformance.cases.custom_constraints.Enum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.addInt(value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - for (build.buf.validate.conformance.cases.custom_constraints.Enum value : values) { - val_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - public java.util.List - getValValueList() { - return java.util.Collections.unmodifiableList(val_); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - public int getValValue(int index) { - return val_.getInt(index); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue( - int index, int value) { - ensureValIsMutable(); - val_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addValValue(int value) { - ensureValIsMutable(); - val_.addInt(value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The enum numeric values on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addAllValValue( - java.lang.Iterable values) { - ensureValIsMutable(); - for (int value : values) { - val_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionRepeatedEnum 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.custom_constraints.FieldExpressionRepeatedEnum getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumItems.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumItems.java deleted file mode 100644 index 84d66a7b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumItems.java +++ /dev/null @@ -1,627 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems} - */ -public final class FieldExpressionRepeatedEnumItems extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems) - FieldExpressionRepeatedEnumItemsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionRepeatedEnumItems.class.getName()); - } - // Use FieldExpressionRepeatedEnumItems.newBuilder() to construct. - private FieldExpressionRepeatedEnumItems(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionRepeatedEnumItems() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnumItems_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnumItems_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_; - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.custom_constraints.Enum> val_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - build.buf.validate.conformance.cases.custom_constraints.Enum>() { - public build.buf.validate.conformance.cases.custom_constraints.Enum convert(int from) { - build.buf.validate.conformance.cases.custom_constraints.Enum result = build.buf.validate.conformance.cases.custom_constraints.Enum.forNumber(from); - return result == null ? build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED : result; - } - }; - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.custom_constraints.Enum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.Enum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - @java.lang.Override - public java.util.List - getValValueList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - @java.lang.Override - public int getValValue(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeEnumNoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }valMemoizedSerializedSize = dataSize; - } - 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.custom_constraints.FieldExpressionRepeatedEnumItems)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems) obj; - - if (!val_.equals(other.val_)) 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) + val_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems 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.custom_constraints.FieldExpressionRepeatedEnumItems parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems 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.custom_constraints.FieldExpressionRepeatedEnumItems parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems 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.custom_constraints.FieldExpressionRepeatedEnumItems parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems 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.custom_constraints.FieldExpressionRepeatedEnumItems parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems 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.custom_constraints.FieldExpressionRepeatedEnumItems 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.custom_constraints.FieldExpressionRepeatedEnumItems 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.custom_constraints.FieldExpressionRepeatedEnumItems 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.custom_constraints.FieldExpressionRepeatedEnumItems} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItemsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnumItems_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnumItems_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedEnumItems_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems result) { - if (((bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.val_ = val_; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureValIsMutable(); - val_.addInt(tmpRaw); - } - input.popLimit(oldLimit); - 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 com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - private void ensureValIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - val_ = makeMutableCopy(val_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List getValList() { - return new com.google.protobuf.Internal.IntListAdapter< - build.buf.validate.conformance.cases.custom_constraints.Enum>(val_, val_converter_); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public build.buf.validate.conformance.cases.custom_constraints.Enum getVal(int index) { - return val_converter_.convert(val_.getInt(index)); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.custom_constraints.Enum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(build.buf.validate.conformance.cases.custom_constraints.Enum value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.addInt(value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - for (build.buf.validate.conformance.cases.custom_constraints.Enum value : values) { - val_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - public java.util.List - getValValueList() { - return java.util.Collections.unmodifiableList(val_); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - public int getValValue(int index) { - return val_.getInt(index); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for val to set. - * @return This builder for chaining. - */ - public Builder setValValue( - int index, int value) { - ensureValIsMutable(); - val_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The enum numeric value on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addValValue(int value) { - ensureValIsMutable(); - val_.addInt(value); - onChanged(); - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The enum numeric values on the wire for val to add. - * @return This builder for chaining. - */ - public Builder addAllValValue( - java.lang.Iterable values) { - ensureValIsMutable(); - for (int value : values) { - val_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionRepeatedEnumItems 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.custom_constraints.FieldExpressionRepeatedEnumItems getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumItemsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumItemsOrBuilder.java deleted file mode 100644 index 1ee4464d..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumItemsOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionRepeatedEnumItemsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnumItems) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - build.buf.validate.conformance.cases.custom_constraints.Enum getVal(int index); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - java.util.List - getValValueList(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - int getValValue(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumOrBuilder.java deleted file mode 100644 index e588a1e3..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedEnumOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionRepeatedEnumOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedEnum) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - build.buf.validate.conformance.cases.custom_constraints.Enum getVal(int index); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the enum numeric values on the wire for val. - */ - java.util.List - getValValueList(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.Enum val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the value to return. - * @return The enum numeric value on the wire of val at the given index. - */ - int getValValue(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessage.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessage.java deleted file mode 100644 index 2f1077f9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessage.java +++ /dev/null @@ -1,1153 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage} - */ -public final class FieldExpressionRepeatedMessage extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage) - FieldExpressionRepeatedMessageOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionRepeatedMessage.class.getName()); - } - // Use FieldExpressionRepeatedMessage.newBuilder() to construct. - private FieldExpressionRepeatedMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionRepeatedMessage() { - val_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - int getA(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.Builder.class); - } - - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - 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 { - if (a_ != 0) { - output.writeInt32(1, a_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, a_); - } - 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.custom_constraints.FieldExpressionRepeatedMessage.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg) obj; - - if (getA() - != other.getA()) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg 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.custom_constraints.FieldExpressionRepeatedMessage.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg 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.custom_constraints.FieldExpressionRepeatedMessage.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg 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.custom_constraints.FieldExpressionRepeatedMessage.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg 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.custom_constraints.FieldExpressionRepeatedMessage.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg 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.custom_constraints.FieldExpressionRepeatedMessage.Msg 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.custom_constraints.FieldExpressionRepeatedMessage.Msg 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.custom_constraints.FieldExpressionRepeatedMessage.Msg 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.custom_constraints.FieldExpressionRepeatedMessage.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - 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 8: { - a_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int a_ ; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * int32 a = 1 [json_name = "a"]; - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 a = 1 [json_name = "a"]; - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.custom_constraints.FieldExpressionRepeatedMessage.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg getVal(int index) { - return val_.get(index); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.MsgOrBuilder 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.custom_constraints.FieldExpressionRepeatedMessage)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage) 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.custom_constraints.FieldExpressionRepeatedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage 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.custom_constraints.FieldExpressionRepeatedMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage 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.custom_constraints.FieldExpressionRepeatedMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage 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.custom_constraints.FieldExpressionRepeatedMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage 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.custom_constraints.FieldExpressionRepeatedMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage 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.custom_constraints.FieldExpressionRepeatedMessage 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.custom_constraints.FieldExpressionRepeatedMessage 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.custom_constraints.FieldExpressionRepeatedMessage 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.custom_constraints.FieldExpressionRepeatedMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.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.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessage_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage 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.custom_constraints.FieldExpressionRepeatedMessage result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.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 ? - internalGetValFieldBuilder() : 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: { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg m = - input.readMessage( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.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< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.MsgOrBuilder> valBuilder_; - - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg 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 .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.set(index, value); - onChanged(); - } else { - valBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(index, value); - onChanged(); - } else { - valBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg 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 .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg 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 .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.MsgOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.MsgOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionRepeatedMessage 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.custom_constraints.FieldExpressionRepeatedMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageItems.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageItems.java deleted file mode 100644 index 2f9bfe07..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageItems.java +++ /dev/null @@ -1,1153 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems} - */ -public final class FieldExpressionRepeatedMessageItems extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems) - FieldExpressionRepeatedMessageItemsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionRepeatedMessageItems.class.getName()); - } - // Use FieldExpressionRepeatedMessageItems.newBuilder() to construct. - private FieldExpressionRepeatedMessageItems(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionRepeatedMessageItems() { - val_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Builder.class); - } - - public interface MsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - int getA(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg} - */ - public static final class Msg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg) - MsgOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Msg.class.getName()); - } - // Use Msg.newBuilder() to construct. - private Msg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Msg() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.Builder.class); - } - - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - 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 { - if (a_ != 0) { - output.writeInt32(1, a_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, a_); - } - 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.custom_constraints.FieldExpressionRepeatedMessageItems.Msg)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg) obj; - - if (getA() - != other.getA()) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg 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.custom_constraints.FieldExpressionRepeatedMessageItems.Msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg 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.custom_constraints.FieldExpressionRepeatedMessageItems.Msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg 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.custom_constraints.FieldExpressionRepeatedMessageItems.Msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg 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.custom_constraints.FieldExpressionRepeatedMessageItems.Msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg 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.custom_constraints.FieldExpressionRepeatedMessageItems.Msg 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.custom_constraints.FieldExpressionRepeatedMessageItems.Msg 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.custom_constraints.FieldExpressionRepeatedMessageItems.Msg 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.custom_constraints.FieldExpressionRepeatedMessageItems.Msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.MsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_Msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_Msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_Msg_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - 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 8: { - a_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int a_ ; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * int32 a = 1 [json_name = "a"]; - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 a = 1 [json_name = "a"]; - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Msg 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.custom_constraints.FieldExpressionRepeatedMessageItems.Msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List val_; - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List getValList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public java.util.List - getValOrBuilderList() { - return val_; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public int getValCount() { - return val_.size(); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg getVal(int index) { - return val_.get(index); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.MsgOrBuilder 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.custom_constraints.FieldExpressionRepeatedMessageItems)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems) 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.custom_constraints.FieldExpressionRepeatedMessageItems parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems 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.custom_constraints.FieldExpressionRepeatedMessageItems parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems 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.custom_constraints.FieldExpressionRepeatedMessageItems parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems 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.custom_constraints.FieldExpressionRepeatedMessageItems parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems 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.custom_constraints.FieldExpressionRepeatedMessageItems parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems 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.custom_constraints.FieldExpressionRepeatedMessageItems 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.custom_constraints.FieldExpressionRepeatedMessageItems 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.custom_constraints.FieldExpressionRepeatedMessageItems 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.custom_constraints.FieldExpressionRepeatedMessageItems} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItemsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.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.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedMessageItems_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems 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.custom_constraints.FieldExpressionRepeatedMessageItems result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.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 ? - internalGetValFieldBuilder() : 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: { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg m = - input.readMessage( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.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< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.MsgOrBuilder> valBuilder_; - - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg 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 .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public int getValCount() { - if (valBuilder_ == null) { - return val_.size(); - } else { - return valBuilder_.getCount(); - } - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg getVal(int index) { - if (valBuilder_ == null) { - return val_.get(index); - } else { - return valBuilder_.getMessage(index); - } - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.set(index, value); - onChanged(); - } else { - valBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder setVal( - int index, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.set(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(value); - onChanged(); - } else { - valBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg value) { - if (valBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValIsMutable(); - val_.add(index, value); - onChanged(); - } else { - valBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addVal( - int index, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.Builder builderForValue) { - if (valBuilder_ == null) { - ensureValIsMutable(); - val_.add(index, builderForValue.build()); - onChanged(); - } else { - valBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public Builder addAllVal( - java.lang.Iterable values) { - if (valBuilder_ == null) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - onChanged(); - } else { - valBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg 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 .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg 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 .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.Builder getValBuilder( - int index) { - return internalGetValFieldBuilder().getBuilder(index); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.MsgOrBuilder getValOrBuilder( - int index) { - if (valBuilder_ == null) { - return val_.get(index); } else { - return valBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValOrBuilderList() { - if (valBuilder_ != null) { - return valBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(val_); - } - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.Builder addValBuilder() { - return internalGetValFieldBuilder().addBuilder( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.Builder addValBuilder( - int index) { - return internalGetValFieldBuilder().addBuilder( - index, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.getDefaultInstance()); - } - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - public java.util.List - getValBuilderList() { - return internalGetValFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.MsgOrBuilder> - internalGetValFieldBuilder() { - if (valBuilder_ == null) { - valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg.Builder, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.MsgOrBuilder>( - val_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - val_ = null; - } - return valBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionRepeatedMessageItems 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.custom_constraints.FieldExpressionRepeatedMessageItems getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageItemsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageItemsOrBuilder.java deleted file mode 100644 index ce957f91..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageItemsOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionRepeatedMessageItemsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg getVal(int index); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessageItems.MsgOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageOrBuilder.java deleted file mode 100644 index bac59085..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedMessageOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionRepeatedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValList(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg getVal(int index); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - int getValCount(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - java.util.List - getValOrBuilderList(); - /** - * repeated .buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.Msg val = 1 [json_name = "val", (.buf.validate.field) = { ... } - */ - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedMessage.MsgOrBuilder getValOrBuilder( - int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalar.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalar.java deleted file mode 100644 index cd5fa9ec..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalar.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar} - */ -public final class FieldExpressionRepeatedScalar extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar) - FieldExpressionRepeatedScalarOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionRepeatedScalar.class.getName()); - } - // Use FieldExpressionRepeatedScalar.newBuilder() to construct. - private FieldExpressionRepeatedScalar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionRepeatedScalar() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.custom_constraints.FieldExpressionRepeatedScalar)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar) 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.custom_constraints.FieldExpressionRepeatedScalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar 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.custom_constraints.FieldExpressionRepeatedScalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar 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.custom_constraints.FieldExpressionRepeatedScalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar 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.custom_constraints.FieldExpressionRepeatedScalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar 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.custom_constraints.FieldExpressionRepeatedScalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar 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.custom_constraints.FieldExpressionRepeatedScalar 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.custom_constraints.FieldExpressionRepeatedScalar 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.custom_constraints.FieldExpressionRepeatedScalar 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.custom_constraints.FieldExpressionRepeatedScalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalar_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionRepeatedScalar 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.custom_constraints.FieldExpressionRepeatedScalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarItems.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarItems.java deleted file mode 100644 index 860d4e74..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarItems.java +++ /dev/null @@ -1,540 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems} - */ -public final class FieldExpressionRepeatedScalarItems extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems) - FieldExpressionRepeatedScalarItemsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionRepeatedScalarItems.class.getName()); - } - // Use FieldExpressionRepeatedScalarItems.newBuilder() to construct. - private FieldExpressionRepeatedScalarItems(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionRepeatedScalarItems() { - val_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalarItems_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalarItems_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList val_ = - emptyIntList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - @java.lang.Override - public java.util.List - getValList() { - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - private int valMemoizedSerializedSize = -1; - - 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 { - getSerializedSize(); - if (getValList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(valMemoizedSerializedSize); - } - for (int i = 0; i < val_.size(); i++) { - output.writeInt32NoTag(val_.getInt(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < val_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(val_.getInt(i)); - } - size += dataSize; - if (!getValList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - valMemoizedSerializedSize = dataSize; - } - 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.custom_constraints.FieldExpressionRepeatedScalarItems)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems) 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.custom_constraints.FieldExpressionRepeatedScalarItems parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems 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.custom_constraints.FieldExpressionRepeatedScalarItems parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems 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.custom_constraints.FieldExpressionRepeatedScalarItems parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems 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.custom_constraints.FieldExpressionRepeatedScalarItems parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems 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.custom_constraints.FieldExpressionRepeatedScalarItems parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems 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.custom_constraints.FieldExpressionRepeatedScalarItems 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.custom_constraints.FieldExpressionRepeatedScalarItems 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.custom_constraints.FieldExpressionRepeatedScalarItems 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.custom_constraints.FieldExpressionRepeatedScalarItems} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItemsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalarItems_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalarItems_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionRepeatedScalarItems_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - val_.makeImmutable(); - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems.getDefaultInstance()) return this; - if (!other.val_.isEmpty()) { - if (val_.isEmpty()) { - val_ = other.val_; - val_.makeImmutable(); - bitField0_ |= 0x00000001; - } else { - ensureValIsMutable(); - val_.addAll(other.val_); - } - onChanged(); - } - 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 8: { - int v = input.readInt32(); - ensureValIsMutable(); - val_.addInt(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureValIsMutable(); - while (input.getBytesUntilLimit() > 0) { - val_.addInt(input.readInt32()); - } - input.popLimit(limit); - 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 com.google.protobuf.Internal.IntList val_ = emptyIntList(); - private void ensureValIsMutable() { - if (!val_.isModifiable()) { - val_ = makeMutableCopy(val_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - public java.util.List - getValList() { - val_.makeImmutable(); - return val_; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - public int getValCount() { - return val_.size(); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - public int getVal(int index) { - return val_.getInt(index); - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index to set the value at. - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal( - int index, int value) { - - ensureValIsMutable(); - val_.setInt(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to add. - * @return This builder for chaining. - */ - public Builder addVal(int value) { - - ensureValIsMutable(); - val_.addInt(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param values The val to add. - * @return This builder for chaining. - */ - public Builder addAllVal( - java.lang.Iterable values) { - ensureValIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, val_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - val_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionRepeatedScalarItems 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.custom_constraints.FieldExpressionRepeatedScalarItems getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarItemsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarItemsOrBuilder.java deleted file mode 100644 index 130459d1..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarItemsOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionRepeatedScalarItemsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalarItems) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarOrBuilder.java deleted file mode 100644 index 31d28ec0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionRepeatedScalarOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionRepeatedScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionRepeatedScalar) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return A list containing the val. - */ - java.util.List getValList(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The count of val. - */ - int getValCount(); - /** - * repeated int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param index The index of the element to return. - * @return The val at the given index. - */ - int getVal(int index); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionScalar.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionScalar.java deleted file mode 100644 index bb35d97a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionScalar.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar} - */ -public final class FieldExpressionScalar extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar) - FieldExpressionScalarOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldExpressionScalar.class.getName()); - } - // Use FieldExpressionScalar.newBuilder() to construct. - private FieldExpressionScalar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldExpressionScalar() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.Builder.class); - } - - public static final int VAL_FIELD_NUMBER = 1; - private int val_ = 0; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - - 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 { - if (val_ != 0) { - output.writeInt32(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, val_); - } - 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.custom_constraints.FieldExpressionScalar)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar other = (build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + getVal(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar 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.custom_constraints.FieldExpressionScalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar 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.custom_constraints.FieldExpressionScalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar 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.custom_constraints.FieldExpressionScalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar 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.custom_constraints.FieldExpressionScalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar 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.custom_constraints.FieldExpressionScalar 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.custom_constraints.FieldExpressionScalar 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.custom_constraints.FieldExpressionScalar 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.custom_constraints.FieldExpressionScalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar) - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionScalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionScalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.class, build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_FieldExpressionScalar_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar build() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar result = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar.getDefaultInstance()) return this; - if (other.getVal() != 0) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int val_ ; - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public int getVal() { - return val_; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(int value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar) - private static final build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldExpressionScalar 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.custom_constraints.FieldExpressionScalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionScalarOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionScalarOrBuilder.java deleted file mode 100644 index b12305a4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/FieldExpressionScalarOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface FieldExpressionScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.FieldExpressionScalar) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - int getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/IncorrectType.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/IncorrectType.java deleted file mode 100644 index 56ba70e6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/IncorrectType.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.IncorrectType} - */ -public final class IncorrectType extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.IncorrectType) - IncorrectTypeOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - IncorrectType.class.getName()); - } - // Use IncorrectType.newBuilder() to construct. - private IncorrectType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IncorrectType() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.IncorrectType.class, build.buf.validate.conformance.cases.custom_constraints.IncorrectType.Builder.class); - } - - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - 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 { - if (a_ != 0) { - output.writeInt32(1, a_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, a_); - } - 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.custom_constraints.IncorrectType)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.IncorrectType other = (build.buf.validate.conformance.cases.custom_constraints.IncorrectType) obj; - - if (getA() - != other.getA()) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.IncorrectType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.IncorrectType 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.custom_constraints.IncorrectType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.IncorrectType 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.custom_constraints.IncorrectType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.IncorrectType 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.custom_constraints.IncorrectType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.IncorrectType 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.custom_constraints.IncorrectType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.IncorrectType 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.custom_constraints.IncorrectType 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.custom_constraints.IncorrectType 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.custom_constraints.IncorrectType 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.custom_constraints.IncorrectType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.IncorrectType) - build.buf.validate.conformance.cases.custom_constraints.IncorrectTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_IncorrectType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_IncorrectType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.IncorrectType.class, build.buf.validate.conformance.cases.custom_constraints.IncorrectType.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.IncorrectType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_IncorrectType_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.IncorrectType getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.IncorrectType.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.IncorrectType build() { - build.buf.validate.conformance.cases.custom_constraints.IncorrectType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.IncorrectType buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.IncorrectType result = new build.buf.validate.conformance.cases.custom_constraints.IncorrectType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.IncorrectType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.IncorrectType) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.IncorrectType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.IncorrectType other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.IncorrectType.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - 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 8: { - a_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int a_ ; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * int32 a = 1 [json_name = "a"]; - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 a = 1 [json_name = "a"]; - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.IncorrectType) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.IncorrectType) - private static final build.buf.validate.conformance.cases.custom_constraints.IncorrectType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.IncorrectType(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.IncorrectType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IncorrectType 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.custom_constraints.IncorrectType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/IncorrectTypeOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/IncorrectTypeOrBuilder.java deleted file mode 100644 index 5dba8b84..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/IncorrectTypeOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface IncorrectTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.IncorrectType) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - int getA(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MessageExpressions.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MessageExpressions.java deleted file mode 100644 index 8596c4da..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MessageExpressions.java +++ /dev/null @@ -1,1577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - *
- * A message with message-level custom expressions
- * 
- * - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.MessageExpressions} - */ -public final class MessageExpressions extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.MessageExpressions) - MessageExpressionsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MessageExpressions.class.getName()); - } - // Use MessageExpressions.newBuilder() to construct. - private MessageExpressions(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MessageExpressions() { - c_ = 0; - d_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.class, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Builder.class); - } - - public interface NestedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - int getA(); - - /** - * int32 b = 2 [json_name = "b"]; - * @return The b. - */ - int getB(); - } - /** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested} - */ - public static final class Nested extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested) - NestedOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Nested.class.getName()); - } - // Use Nested.newBuilder() to construct. - private Nested(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Nested() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_Nested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_Nested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.class, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder.class); - } - - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - public static final int B_FIELD_NUMBER = 2; - private int b_ = 0; - /** - * int32 b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public int getB() { - return b_; - } - - 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 { - if (a_ != 0) { - output.writeInt32(1, a_); - } - if (b_ != 0) { - output.writeInt32(2, b_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, a_); - } - if (b_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, b_); - } - 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.custom_constraints.MessageExpressions.Nested)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested other = (build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested) obj; - - if (getA() - != other.getA()) return false; - if (getB() - != other.getB()) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested 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.custom_constraints.MessageExpressions.Nested parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested 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.custom_constraints.MessageExpressions.Nested parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested 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.custom_constraints.MessageExpressions.Nested parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested 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.custom_constraints.MessageExpressions.Nested parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested 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.custom_constraints.MessageExpressions.Nested 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.custom_constraints.MessageExpressions.Nested 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.custom_constraints.MessageExpressions.Nested 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.custom_constraints.MessageExpressions.Nested} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested) - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_Nested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_Nested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.class, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - b_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_Nested_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested build() { - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested result = new build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.b_ = b_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - if (other.getB() != 0) { - setB(other.getB()); - } - 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 8: { - a_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - b_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - 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 int a_ ; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * int32 a = 1 [json_name = "a"]; - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 a = 1 [json_name = "a"]; - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - private int b_ ; - /** - * int32 b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public int getB() { - return b_; - } - /** - * int32 b = 2 [json_name = "b"]; - * @param value The b to set. - * @return This builder for chaining. - */ - public Builder setB(int value) { - - b_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int32 b = 2 [json_name = "b"]; - * @return This builder for chaining. - */ - public Builder clearB() { - bitField0_ = (bitField0_ & ~0x00000002); - b_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested) - private static final build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Nested 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.custom_constraints.MessageExpressions.Nested getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - public static final int B_FIELD_NUMBER = 2; - private int b_ = 0; - /** - * int32 b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public int getB() { - return b_; - } - - public static final int C_FIELD_NUMBER = 3; - private int c_ = 0; - /** - * .buf.validate.conformance.cases.custom_constraints.Enum c = 3 [json_name = "c"]; - * @return The enum numeric value on the wire for c. - */ - @java.lang.Override public int getCValue() { - return c_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum c = 3 [json_name = "c"]; - * @return The c. - */ - @java.lang.Override public build.buf.validate.conformance.cases.custom_constraints.Enum getC() { - build.buf.validate.conformance.cases.custom_constraints.Enum result = build.buf.validate.conformance.cases.custom_constraints.Enum.forNumber(c_); - return result == null ? build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED : result; - } - - public static final int D_FIELD_NUMBER = 4; - private int d_ = 0; - /** - * .buf.validate.conformance.cases.custom_constraints.Enum d = 4 [json_name = "d"]; - * @return The enum numeric value on the wire for d. - */ - @java.lang.Override public int getDValue() { - return d_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum d = 4 [json_name = "d"]; - * @return The d. - */ - @java.lang.Override public build.buf.validate.conformance.cases.custom_constraints.Enum getD() { - build.buf.validate.conformance.cases.custom_constraints.Enum result = build.buf.validate.conformance.cases.custom_constraints.Enum.forNumber(d_); - return result == null ? build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED : result; - } - - public static final int E_FIELD_NUMBER = 5; - private build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e_; - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - * @return Whether the e field is set. - */ - @java.lang.Override - public boolean hasE() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - * @return The e. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested getE() { - return e_ == null ? build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance() : e_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder getEOrBuilder() { - return e_ == null ? build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance() : e_; - } - - public static final int F_FIELD_NUMBER = 6; - private build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f_; - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - * @return Whether the f field is set. - */ - @java.lang.Override - public boolean hasF() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - * @return The f. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested getF() { - return f_ == null ? build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance() : f_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder getFOrBuilder() { - return f_ == null ? build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance() : f_; - } - - 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 { - if (a_ != 0) { - output.writeInt32(1, a_); - } - if (b_ != 0) { - output.writeInt32(2, b_); - } - if (c_ != build.buf.validate.conformance.cases.custom_constraints.Enum.ENUM_UNSPECIFIED.getNumber()) { - output.writeEnum(3, c_); - } - if (d_ != build.buf.validate.conformance.cases.custom_constraints.Enum.ENUM_UNSPECIFIED.getNumber()) { - output.writeEnum(4, d_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getE()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(6, getF()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, a_); - } - if (b_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, b_); - } - if (c_ != build.buf.validate.conformance.cases.custom_constraints.Enum.ENUM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, c_); - } - if (d_ != build.buf.validate.conformance.cases.custom_constraints.Enum.ENUM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, d_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getE()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getF()); - } - 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.custom_constraints.MessageExpressions)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions other = (build.buf.validate.conformance.cases.custom_constraints.MessageExpressions) obj; - - if (getA() - != other.getA()) return false; - if (getB() - != other.getB()) return false; - if (c_ != other.c_) return false; - if (d_ != other.d_) return false; - if (hasE() != other.hasE()) return false; - if (hasE()) { - if (!getE() - .equals(other.getE())) return false; - } - if (hasF() != other.hasF()) return false; - if (hasF()) { - if (!getF() - .equals(other.getF())) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + getB(); - hash = (37 * hash) + C_FIELD_NUMBER; - hash = (53 * hash) + c_; - hash = (37 * hash) + D_FIELD_NUMBER; - hash = (53 * hash) + d_; - if (hasE()) { - hash = (37 * hash) + E_FIELD_NUMBER; - hash = (53 * hash) + getE().hashCode(); - } - if (hasF()) { - hash = (37 * hash) + F_FIELD_NUMBER; - hash = (53 * hash) + getF().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions 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.custom_constraints.MessageExpressions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions 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.custom_constraints.MessageExpressions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions 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.custom_constraints.MessageExpressions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions 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.custom_constraints.MessageExpressions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions 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.custom_constraints.MessageExpressions 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.custom_constraints.MessageExpressions 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.custom_constraints.MessageExpressions 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; - } - /** - *
-   * A message with message-level custom expressions
-   * 
- * - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.MessageExpressions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.MessageExpressions) - build.buf.validate.conformance.cases.custom_constraints.MessageExpressionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.class, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetEFieldBuilder(); - internalGetFFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - b_ = 0; - c_ = 0; - d_ = 0; - e_ = null; - if (eBuilder_ != null) { - eBuilder_.dispose(); - eBuilder_ = null; - } - f_ = null; - if (fBuilder_ != null) { - fBuilder_.dispose(); - fBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MessageExpressions_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions build() { - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions result = new build.buf.validate.conformance.cases.custom_constraints.MessageExpressions(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.MessageExpressions result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.b_ = b_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.c_ = c_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.d_ = d_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.e_ = eBuilder_ == null - ? e_ - : eBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.f_ = fBuilder_ == null - ? f_ - : fBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.MessageExpressions) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.MessageExpressions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.MessageExpressions other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - if (other.getB() != 0) { - setB(other.getB()); - } - if (other.c_ != 0) { - setCValue(other.getCValue()); - } - if (other.d_ != 0) { - setDValue(other.getDValue()); - } - if (other.hasE()) { - mergeE(other.getE()); - } - if (other.hasF()) { - mergeF(other.getF()); - } - 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 8: { - a_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - b_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - c_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - d_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - internalGetEFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - internalGetFFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - 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 int a_ ; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * int32 a = 1 [json_name = "a"]; - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 a = 1 [json_name = "a"]; - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - private int b_ ; - /** - * int32 b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public int getB() { - return b_; - } - /** - * int32 b = 2 [json_name = "b"]; - * @param value The b to set. - * @return This builder for chaining. - */ - public Builder setB(int value) { - - b_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int32 b = 2 [json_name = "b"]; - * @return This builder for chaining. - */ - public Builder clearB() { - bitField0_ = (bitField0_ & ~0x00000002); - b_ = 0; - onChanged(); - return this; - } - - private int c_ = 0; - /** - * .buf.validate.conformance.cases.custom_constraints.Enum c = 3 [json_name = "c"]; - * @return The enum numeric value on the wire for c. - */ - @java.lang.Override public int getCValue() { - return c_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum c = 3 [json_name = "c"]; - * @param value The enum numeric value on the wire for c to set. - * @return This builder for chaining. - */ - public Builder setCValue(int value) { - c_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum c = 3 [json_name = "c"]; - * @return The c. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.Enum getC() { - build.buf.validate.conformance.cases.custom_constraints.Enum result = build.buf.validate.conformance.cases.custom_constraints.Enum.forNumber(c_); - return result == null ? build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum c = 3 [json_name = "c"]; - * @param value The c to set. - * @return This builder for chaining. - */ - public Builder setC(build.buf.validate.conformance.cases.custom_constraints.Enum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - c_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum c = 3 [json_name = "c"]; - * @return This builder for chaining. - */ - public Builder clearC() { - bitField0_ = (bitField0_ & ~0x00000004); - c_ = 0; - onChanged(); - return this; - } - - private int d_ = 0; - /** - * .buf.validate.conformance.cases.custom_constraints.Enum d = 4 [json_name = "d"]; - * @return The enum numeric value on the wire for d. - */ - @java.lang.Override public int getDValue() { - return d_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum d = 4 [json_name = "d"]; - * @param value The enum numeric value on the wire for d to set. - * @return This builder for chaining. - */ - public Builder setDValue(int value) { - d_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum d = 4 [json_name = "d"]; - * @return The d. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.Enum getD() { - build.buf.validate.conformance.cases.custom_constraints.Enum result = build.buf.validate.conformance.cases.custom_constraints.Enum.forNumber(d_); - return result == null ? build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum d = 4 [json_name = "d"]; - * @param value The d to set. - * @return This builder for chaining. - */ - public Builder setD(build.buf.validate.conformance.cases.custom_constraints.Enum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - d_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum d = 4 [json_name = "d"]; - * @return This builder for chaining. - */ - public Builder clearD() { - bitField0_ = (bitField0_ & ~0x00000008); - d_ = 0; - onChanged(); - return this; - } - - private build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder> eBuilder_; - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - * @return Whether the e field is set. - */ - public boolean hasE() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - * @return The e. - */ - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested getE() { - if (eBuilder_ == null) { - return e_ == null ? build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance() : e_; - } else { - return eBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - */ - public Builder setE(build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested value) { - if (eBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - e_ = value; - } else { - eBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - */ - public Builder setE( - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder builderForValue) { - if (eBuilder_ == null) { - e_ = builderForValue.build(); - } else { - eBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - */ - public Builder mergeE(build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested value) { - if (eBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - e_ != null && - e_ != build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance()) { - getEBuilder().mergeFrom(value); - } else { - e_ = value; - } - } else { - eBuilder_.mergeFrom(value); - } - if (e_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - */ - public Builder clearE() { - bitField0_ = (bitField0_ & ~0x00000010); - e_ = null; - if (eBuilder_ != null) { - eBuilder_.dispose(); - eBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - */ - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder getEBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetEFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - */ - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder getEOrBuilder() { - if (eBuilder_ != null) { - return eBuilder_.getMessageOrBuilder(); - } else { - return e_ == null ? - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance() : e_; - } - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder> - internalGetEFieldBuilder() { - if (eBuilder_ == null) { - eBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder>( - getE(), - getParentForChildren(), - isClean()); - e_ = null; - } - return eBuilder_; - } - - private build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder> fBuilder_; - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - * @return Whether the f field is set. - */ - public boolean hasF() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - * @return The f. - */ - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested getF() { - if (fBuilder_ == null) { - return f_ == null ? build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance() : f_; - } else { - return fBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - */ - public Builder setF(build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested value) { - if (fBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - f_ = value; - } else { - fBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - */ - public Builder setF( - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder builderForValue) { - if (fBuilder_ == null) { - f_ = builderForValue.build(); - } else { - fBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - */ - public Builder mergeF(build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested value) { - if (fBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - f_ != null && - f_ != build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance()) { - getFBuilder().mergeFrom(value); - } else { - f_ = value; - } - } else { - fBuilder_.mergeFrom(value); - } - if (f_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - */ - public Builder clearF() { - bitField0_ = (bitField0_ & ~0x00000020); - f_ = null; - if (fBuilder_ != null) { - fBuilder_.dispose(); - fBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - */ - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder getFBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return internalGetFFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - */ - public build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder getFOrBuilder() { - if (fBuilder_ != null) { - return fBuilder_.getMessageOrBuilder(); - } else { - return f_ == null ? - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.getDefaultInstance() : f_; - } - } - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder> - internalGetFFieldBuilder() { - if (fBuilder_ == null) { - fBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder>( - getF(), - getParentForChildren(), - isClean()); - f_ = null; - } - return fBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.MessageExpressions) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.MessageExpressions) - private static final build.buf.validate.conformance.cases.custom_constraints.MessageExpressions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.MessageExpressions(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.MessageExpressions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageExpressions 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.custom_constraints.MessageExpressions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MessageExpressionsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MessageExpressionsOrBuilder.java deleted file mode 100644 index ce5fe4bc..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MessageExpressionsOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface MessageExpressionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.MessageExpressions) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - int getA(); - - /** - * int32 b = 2 [json_name = "b"]; - * @return The b. - */ - int getB(); - - /** - * .buf.validate.conformance.cases.custom_constraints.Enum c = 3 [json_name = "c"]; - * @return The enum numeric value on the wire for c. - */ - int getCValue(); - /** - * .buf.validate.conformance.cases.custom_constraints.Enum c = 3 [json_name = "c"]; - * @return The c. - */ - build.buf.validate.conformance.cases.custom_constraints.Enum getC(); - - /** - * .buf.validate.conformance.cases.custom_constraints.Enum d = 4 [json_name = "d"]; - * @return The enum numeric value on the wire for d. - */ - int getDValue(); - /** - * .buf.validate.conformance.cases.custom_constraints.Enum d = 4 [json_name = "d"]; - * @return The d. - */ - build.buf.validate.conformance.cases.custom_constraints.Enum getD(); - - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - * @return Whether the e field is set. - */ - boolean hasE(); - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - * @return The e. - */ - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested getE(); - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested e = 5 [json_name = "e"]; - */ - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder getEOrBuilder(); - - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - * @return Whether the f field is set. - */ - boolean hasF(); - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - * @return The f. - */ - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested getF(); - /** - * .buf.validate.conformance.cases.custom_constraints.MessageExpressions.Nested f = 6 [json_name = "f"]; - */ - build.buf.validate.conformance.cases.custom_constraints.MessageExpressions.NestedOrBuilder getFOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MissingField.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MissingField.java deleted file mode 100644 index 8781dcb6..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MissingField.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.MissingField} - */ -public final class MissingField extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.MissingField) - MissingFieldOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MissingField.class.getName()); - } - // Use MissingField.newBuilder() to construct. - private MissingField(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MissingField() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MissingField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MissingField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.MissingField.class, build.buf.validate.conformance.cases.custom_constraints.MissingField.Builder.class); - } - - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - 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 { - if (a_ != 0) { - output.writeInt32(1, a_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, a_); - } - 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.custom_constraints.MissingField)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.MissingField other = (build.buf.validate.conformance.cases.custom_constraints.MissingField) obj; - - if (getA() - != other.getA()) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.MissingField parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.MissingField 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.custom_constraints.MissingField parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.MissingField 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.custom_constraints.MissingField parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.MissingField 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.custom_constraints.MissingField parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.MissingField 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.custom_constraints.MissingField parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.MissingField 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.custom_constraints.MissingField 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.custom_constraints.MissingField 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.custom_constraints.MissingField 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.custom_constraints.MissingField} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.MissingField) - build.buf.validate.conformance.cases.custom_constraints.MissingFieldOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MissingField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MissingField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.MissingField.class, build.buf.validate.conformance.cases.custom_constraints.MissingField.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.MissingField.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_MissingField_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MissingField getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.MissingField.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MissingField build() { - build.buf.validate.conformance.cases.custom_constraints.MissingField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.MissingField buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.MissingField result = new build.buf.validate.conformance.cases.custom_constraints.MissingField(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.MissingField result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.MissingField) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.MissingField)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.MissingField other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.MissingField.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - 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 8: { - a_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 int a_ ; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * int32 a = 1 [json_name = "a"]; - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 a = 1 [json_name = "a"]; - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.MissingField) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.MissingField) - private static final build.buf.validate.conformance.cases.custom_constraints.MissingField DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.MissingField(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.MissingField getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MissingField 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.custom_constraints.MissingField getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MissingFieldOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MissingFieldOrBuilder.java deleted file mode 100644 index fc267527..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/MissingFieldOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface MissingFieldOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.MissingField) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - int getA(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NoExpressions.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NoExpressions.java deleted file mode 100644 index d012af3e..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NoExpressions.java +++ /dev/null @@ -1,1081 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - *
- * A message that does not contain any expressions
- * 
- * - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.NoExpressions} - */ -public final class NoExpressions extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.NoExpressions) - NoExpressionsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - NoExpressions.class.getName()); - } - // Use NoExpressions.newBuilder() to construct. - private NoExpressions(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private NoExpressions() { - b_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.class, build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Builder.class); - } - - public interface NestedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested} - */ - public static final class Nested extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested) - NestedOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Nested.class.getName()); - } - // Use Nested.newBuilder() to construct. - private Nested(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Nested() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_Nested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_Nested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.class, build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.Builder.class); - } - - 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 { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.custom_constraints.NoExpressions.Nested)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested other = (build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested) obj; - - 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(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested 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.custom_constraints.NoExpressions.Nested parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested 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.custom_constraints.NoExpressions.Nested parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested 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.custom_constraints.NoExpressions.Nested parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested 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.custom_constraints.NoExpressions.Nested parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested 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.custom_constraints.NoExpressions.Nested 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.custom_constraints.NoExpressions.Nested 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.custom_constraints.NoExpressions.Nested 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.custom_constraints.NoExpressions.Nested} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested) - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.NestedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_Nested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_Nested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.class, build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_Nested_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested build() { - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested result = new build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.getDefaultInstance()) return this; - 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; - 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; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested) - private static final build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Nested 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.custom_constraints.NoExpressions.Nested getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int A_FIELD_NUMBER = 1; - private int a_ = 0; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - - public static final int B_FIELD_NUMBER = 2; - private int b_ = 0; - /** - * .buf.validate.conformance.cases.custom_constraints.Enum b = 2 [json_name = "b"]; - * @return The enum numeric value on the wire for b. - */ - @java.lang.Override public int getBValue() { - return b_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override public build.buf.validate.conformance.cases.custom_constraints.Enum getB() { - build.buf.validate.conformance.cases.custom_constraints.Enum result = build.buf.validate.conformance.cases.custom_constraints.Enum.forNumber(b_); - return result == null ? build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED : result; - } - - public static final int C_FIELD_NUMBER = 3; - private build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c_; - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - * @return Whether the c field is set. - */ - @java.lang.Override - public boolean hasC() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - * @return The c. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested getC() { - return c_ == null ? build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.getDefaultInstance() : c_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.NoExpressions.NestedOrBuilder getCOrBuilder() { - return c_ == null ? build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.getDefaultInstance() : c_; - } - - 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 { - if (a_ != 0) { - output.writeInt32(1, a_); - } - if (b_ != build.buf.validate.conformance.cases.custom_constraints.Enum.ENUM_UNSPECIFIED.getNumber()) { - output.writeEnum(2, b_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getC()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (a_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, a_); - } - if (b_ != build.buf.validate.conformance.cases.custom_constraints.Enum.ENUM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, b_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getC()); - } - 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.custom_constraints.NoExpressions)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.NoExpressions other = (build.buf.validate.conformance.cases.custom_constraints.NoExpressions) obj; - - if (getA() - != other.getA()) return false; - if (b_ != other.b_) return false; - if (hasC() != other.hasC()) return false; - if (hasC()) { - if (!getC() - .equals(other.getC())) 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(); - hash = (37 * hash) + A_FIELD_NUMBER; - hash = (53 * hash) + getA(); - hash = (37 * hash) + B_FIELD_NUMBER; - hash = (53 * hash) + b_; - if (hasC()) { - hash = (37 * hash) + C_FIELD_NUMBER; - hash = (53 * hash) + getC().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions 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.custom_constraints.NoExpressions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions 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.custom_constraints.NoExpressions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions 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.custom_constraints.NoExpressions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions 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.custom_constraints.NoExpressions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions 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.custom_constraints.NoExpressions 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.custom_constraints.NoExpressions 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.custom_constraints.NoExpressions 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; - } - /** - *
-   * A message that does not contain any expressions
-   * 
- * - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.NoExpressions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.NoExpressions) - build.buf.validate.conformance.cases.custom_constraints.NoExpressionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.class, build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.NoExpressions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetCFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - a_ = 0; - b_ = 0; - c_ = null; - if (cBuilder_ != null) { - cBuilder_.dispose(); - cBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NoExpressions_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.NoExpressions getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.NoExpressions.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.NoExpressions build() { - build.buf.validate.conformance.cases.custom_constraints.NoExpressions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.NoExpressions buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.NoExpressions result = new build.buf.validate.conformance.cases.custom_constraints.NoExpressions(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.custom_constraints.NoExpressions result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.a_ = a_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.b_ = b_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.c_ = cBuilder_ == null - ? c_ - : cBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.NoExpressions) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.NoExpressions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.NoExpressions other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.NoExpressions.getDefaultInstance()) return this; - if (other.getA() != 0) { - setA(other.getA()); - } - if (other.b_ != 0) { - setBValue(other.getBValue()); - } - if (other.hasC()) { - mergeC(other.getC()); - } - 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 8: { - a_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - b_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - internalGetCFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - 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 int a_ ; - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - @java.lang.Override - public int getA() { - return a_; - } - /** - * int32 a = 1 [json_name = "a"]; - * @param value The a to set. - * @return This builder for chaining. - */ - public Builder setA(int value) { - - a_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 a = 1 [json_name = "a"]; - * @return This builder for chaining. - */ - public Builder clearA() { - bitField0_ = (bitField0_ & ~0x00000001); - a_ = 0; - onChanged(); - return this; - } - - private int b_ = 0; - /** - * .buf.validate.conformance.cases.custom_constraints.Enum b = 2 [json_name = "b"]; - * @return The enum numeric value on the wire for b. - */ - @java.lang.Override public int getBValue() { - return b_; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum b = 2 [json_name = "b"]; - * @param value The enum numeric value on the wire for b to set. - * @return This builder for chaining. - */ - public Builder setBValue(int value) { - b_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum b = 2 [json_name = "b"]; - * @return The b. - */ - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.Enum getB() { - build.buf.validate.conformance.cases.custom_constraints.Enum result = build.buf.validate.conformance.cases.custom_constraints.Enum.forNumber(b_); - return result == null ? build.buf.validate.conformance.cases.custom_constraints.Enum.UNRECOGNIZED : result; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum b = 2 [json_name = "b"]; - * @param value The b to set. - * @return This builder for chaining. - */ - public Builder setB(build.buf.validate.conformance.cases.custom_constraints.Enum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - b_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.Enum b = 2 [json_name = "b"]; - * @return This builder for chaining. - */ - public Builder clearB() { - bitField0_ = (bitField0_ & ~0x00000002); - b_ = 0; - onChanged(); - return this; - } - - private build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.NoExpressions.NestedOrBuilder> cBuilder_; - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - * @return Whether the c field is set. - */ - public boolean hasC() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - * @return The c. - */ - public build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested getC() { - if (cBuilder_ == null) { - return c_ == null ? build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.getDefaultInstance() : c_; - } else { - return cBuilder_.getMessage(); - } - } - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - */ - public Builder setC(build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested value) { - if (cBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - c_ = value; - } else { - cBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - */ - public Builder setC( - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.Builder builderForValue) { - if (cBuilder_ == null) { - c_ = builderForValue.build(); - } else { - cBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - */ - public Builder mergeC(build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested value) { - if (cBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - c_ != null && - c_ != build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.getDefaultInstance()) { - getCBuilder().mergeFrom(value); - } else { - c_ = value; - } - } else { - cBuilder_.mergeFrom(value); - } - if (c_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - */ - public Builder clearC() { - bitField0_ = (bitField0_ & ~0x00000004); - c_ = null; - if (cBuilder_ != null) { - cBuilder_.dispose(); - cBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - */ - public build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.Builder getCBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetCFieldBuilder().getBuilder(); - } - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - */ - public build.buf.validate.conformance.cases.custom_constraints.NoExpressions.NestedOrBuilder getCOrBuilder() { - if (cBuilder_ != null) { - return cBuilder_.getMessageOrBuilder(); - } else { - return c_ == null ? - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.getDefaultInstance() : c_; - } - } - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.NoExpressions.NestedOrBuilder> - internalGetCFieldBuilder() { - if (cBuilder_ == null) { - cBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested, build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested.Builder, build.buf.validate.conformance.cases.custom_constraints.NoExpressions.NestedOrBuilder>( - getC(), - getParentForChildren(), - isClean()); - c_ = null; - } - return cBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.NoExpressions) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.NoExpressions) - private static final build.buf.validate.conformance.cases.custom_constraints.NoExpressions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.NoExpressions(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.NoExpressions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NoExpressions 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.custom_constraints.NoExpressions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NoExpressionsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NoExpressionsOrBuilder.java deleted file mode 100644 index 14de800b..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NoExpressionsOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface NoExpressionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.NoExpressions) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 a = 1 [json_name = "a"]; - * @return The a. - */ - int getA(); - - /** - * .buf.validate.conformance.cases.custom_constraints.Enum b = 2 [json_name = "b"]; - * @return The enum numeric value on the wire for b. - */ - int getBValue(); - /** - * .buf.validate.conformance.cases.custom_constraints.Enum b = 2 [json_name = "b"]; - * @return The b. - */ - build.buf.validate.conformance.cases.custom_constraints.Enum getB(); - - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - * @return Whether the c field is set. - */ - boolean hasC(); - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - * @return The c. - */ - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested getC(); - /** - * .buf.validate.conformance.cases.custom_constraints.NoExpressions.Nested c = 3 [json_name = "c"]; - */ - build.buf.validate.conformance.cases.custom_constraints.NoExpressions.NestedOrBuilder getCOrBuilder(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NowEqualsNow.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NowEqualsNow.java deleted file mode 100644 index b3ae9422..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NowEqualsNow.java +++ /dev/null @@ -1,358 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -/** - * Protobuf type {@code buf.validate.conformance.cases.custom_constraints.NowEqualsNow} - */ -public final class NowEqualsNow extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.custom_constraints.NowEqualsNow) - NowEqualsNowOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - NowEqualsNow.class.getName()); - } - // Use NowEqualsNow.newBuilder() to construct. - private NowEqualsNow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private NowEqualsNow() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NowEqualsNow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NowEqualsNow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow.class, build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow.Builder.class); - } - - 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 { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.custom_constraints.NowEqualsNow)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow other = (build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow) obj; - - 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(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow 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.custom_constraints.NowEqualsNow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow 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.custom_constraints.NowEqualsNow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow 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.custom_constraints.NowEqualsNow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow 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.custom_constraints.NowEqualsNow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow 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.custom_constraints.NowEqualsNow 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.custom_constraints.NowEqualsNow 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.custom_constraints.NowEqualsNow 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.custom_constraints.NowEqualsNow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.custom_constraints.NowEqualsNow) - build.buf.validate.conformance.cases.custom_constraints.NowEqualsNowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NowEqualsNow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NowEqualsNow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow.class, build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.custom_constraints.CustomConstraintsProto.internal_static_buf_validate_conformance_cases_custom_constraints_NowEqualsNow_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow build() { - build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow buildPartial() { - build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow result = new build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow) { - return mergeFrom((build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow other) { - if (other == build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow.getDefaultInstance()) return this; - 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; - 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; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.custom_constraints.NowEqualsNow) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.custom_constraints.NowEqualsNow) - private static final build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow(); - } - - public static build.buf.validate.conformance.cases.custom_constraints.NowEqualsNow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NowEqualsNow 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.custom_constraints.NowEqualsNow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NowEqualsNowOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NowEqualsNowOrBuilder.java deleted file mode 100644 index d419b51f..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/custom_constraints/NowEqualsNowOrBuilder.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.custom_constraints; - -public interface NowEqualsNowOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.custom_constraints.NowEqualsNow) - com.google.protobuf.MessageOrBuilder { -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/other_package/Embed.java b/conformance/src/main/java/build/buf/validate/conformance/cases/other_package/Embed.java deleted file mode 100644 index c0ff8dd0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/other_package/Embed.java +++ /dev/null @@ -1,1029 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/other_package/embed.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.other_package; - -/** - *
- * Validate message embedding across packages.
- * 
- * - * Protobuf type {@code buf.validate.conformance.cases.other_package.Embed} - */ -public final class Embed extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.other_package.Embed) - EmbedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Embed.class.getName()); - } - // Use Embed.newBuilder() to construct. - private Embed(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Embed() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.other_package.EmbedProto.internal_static_buf_validate_conformance_cases_other_package_Embed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.other_package.EmbedProto.internal_static_buf_validate_conformance_cases_other_package_Embed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.other_package.Embed.class, build.buf.validate.conformance.cases.other_package.Embed.Builder.class); - } - - /** - * Protobuf enum {@code buf.validate.conformance.cases.other_package.Embed.Enumerated} - */ - public enum Enumerated - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ENUMERATED_UNSPECIFIED = 0; - */ - ENUMERATED_UNSPECIFIED(0), - /** - * ENUMERATED_VALUE = 1; - */ - ENUMERATED_VALUE(1), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Enumerated.class.getName()); - } - /** - * ENUMERATED_UNSPECIFIED = 0; - */ - public static final int ENUMERATED_UNSPECIFIED_VALUE = 0; - /** - * ENUMERATED_VALUE = 1; - */ - public static final int ENUMERATED_VALUE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Enumerated valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Enumerated forNumber(int value) { - switch (value) { - case 0: return ENUMERATED_UNSPECIFIED; - case 1: return ENUMERATED_VALUE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Enumerated> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Enumerated findValueByNumber(int number) { - return Enumerated.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.other_package.Embed.getDescriptor().getEnumTypes().get(0); - } - - private static final Enumerated[] VALUES = values(); - - public static Enumerated valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Enumerated(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.other_package.Embed.Enumerated) - } - - public interface DoubleEmbedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.other_package.Embed.DoubleEmbed) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.validate.conformance.cases.other_package.Embed.DoubleEmbed} - */ - public static final class DoubleEmbed extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.other_package.Embed.DoubleEmbed) - DoubleEmbedOrBuilder { - private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleEmbed.class.getName()); - } - // Use DoubleEmbed.newBuilder() to construct. - private DoubleEmbed(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private DoubleEmbed() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.other_package.EmbedProto.internal_static_buf_validate_conformance_cases_other_package_Embed_DoubleEmbed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.other_package.EmbedProto.internal_static_buf_validate_conformance_cases_other_package_Embed_DoubleEmbed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.class, build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.Builder.class); - } - - /** - * Protobuf enum {@code buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated} - */ - public enum DoubleEnumerated - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DOUBLE_ENUMERATED_UNSPECIFIED = 0; - */ - DOUBLE_ENUMERATED_UNSPECIFIED(0), - /** - * DOUBLE_ENUMERATED_VALUE = 1; - */ - DOUBLE_ENUMERATED_VALUE(1), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleEnumerated.class.getName()); - } - /** - * DOUBLE_ENUMERATED_UNSPECIFIED = 0; - */ - public static final int DOUBLE_ENUMERATED_UNSPECIFIED_VALUE = 0; - /** - * DOUBLE_ENUMERATED_VALUE = 1; - */ - public static final int DOUBLE_ENUMERATED_VALUE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DoubleEnumerated valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DoubleEnumerated forNumber(int value) { - switch (value) { - case 0: return DOUBLE_ENUMERATED_UNSPECIFIED; - case 1: return DOUBLE_ENUMERATED_VALUE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DoubleEnumerated> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DoubleEnumerated findValueByNumber(int number) { - return DoubleEnumerated.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.getDescriptor().getEnumTypes().get(0); - } - - private static final DoubleEnumerated[] VALUES = values(); - - public static DoubleEnumerated valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DoubleEnumerated(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.DoubleEnumerated) - } - - 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 { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.other_package.Embed.DoubleEmbed)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed other = (build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed) obj; - - 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(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed 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.other_package.Embed.DoubleEmbed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed 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.other_package.Embed.DoubleEmbed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed 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.other_package.Embed.DoubleEmbed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed 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.other_package.Embed.DoubleEmbed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed 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.other_package.Embed.DoubleEmbed 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.other_package.Embed.DoubleEmbed 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.other_package.Embed.DoubleEmbed 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.other_package.Embed.DoubleEmbed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.other_package.Embed.DoubleEmbed) - build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.other_package.EmbedProto.internal_static_buf_validate_conformance_cases_other_package_Embed_DoubleEmbed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.other_package.EmbedProto.internal_static_buf_validate_conformance_cases_other_package_Embed_DoubleEmbed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.class, build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.other_package.EmbedProto.internal_static_buf_validate_conformance_cases_other_package_Embed_DoubleEmbed_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed build() { - build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed buildPartial() { - build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed result = new build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed) { - return mergeFrom((build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed other) { - if (other == build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed.getDefaultInstance()) return this; - 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; - 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; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.other_package.Embed.DoubleEmbed) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.other_package.Embed.DoubleEmbed) - private static final build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed(); - } - - public static build.buf.validate.conformance.cases.other_package.Embed.DoubleEmbed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleEmbed 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.other_package.Embed.DoubleEmbed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.other_package.Embed)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.other_package.Embed other = (build.buf.validate.conformance.cases.other_package.Embed) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.other_package.Embed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.other_package.Embed 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.other_package.Embed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.other_package.Embed 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.other_package.Embed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.other_package.Embed 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.other_package.Embed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.other_package.Embed 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.other_package.Embed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.other_package.Embed 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.other_package.Embed 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.other_package.Embed 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.other_package.Embed 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; - } - /** - *
-   * Validate message embedding across packages.
-   * 
- * - * Protobuf type {@code buf.validate.conformance.cases.other_package.Embed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.other_package.Embed) - build.buf.validate.conformance.cases.other_package.EmbedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.other_package.EmbedProto.internal_static_buf_validate_conformance_cases_other_package_Embed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.other_package.EmbedProto.internal_static_buf_validate_conformance_cases_other_package_Embed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.other_package.Embed.class, build.buf.validate.conformance.cases.other_package.Embed.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.other_package.Embed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.other_package.EmbedProto.internal_static_buf_validate_conformance_cases_other_package_Embed_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.other_package.Embed.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed build() { - build.buf.validate.conformance.cases.other_package.Embed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.other_package.Embed buildPartial() { - build.buf.validate.conformance.cases.other_package.Embed result = new build.buf.validate.conformance.cases.other_package.Embed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.other_package.Embed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.other_package.Embed) { - return mergeFrom((build.buf.validate.conformance.cases.other_package.Embed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.other_package.Embed other) { - if (other == build.buf.validate.conformance.cases.other_package.Embed.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.other_package.Embed) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.other_package.Embed) - private static final build.buf.validate.conformance.cases.other_package.Embed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.other_package.Embed(); - } - - public static build.buf.validate.conformance.cases.other_package.Embed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Embed 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.other_package.Embed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/other_package/EmbedOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/other_package/EmbedOrBuilder.java deleted file mode 100644 index 86b22bdb..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/other_package/EmbedOrBuilder.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/other_package/embed.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.other_package; - -public interface EmbedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.other_package.Embed) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/other_package/EmbedProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/other_package/EmbedProto.java deleted file mode 100644 index d4b93fcd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/other_package/EmbedProto.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/other_package/embed.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.other_package; - -public final class EmbedProto { - private EmbedProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EmbedProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_other_package_Embed_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_other_package_Embed_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_other_package_Embed_DoubleEmbed_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_other_package_Embed_DoubleEmbed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8buf/validate/conformance/cases/other_p" + - "ackage/embed.proto\022,buf.validate.conform" + - "ance.cases.other_package\032\033buf/validate/v" + - "alidate.proto\"\305\001\n\005Embed\022\031\n\003val\030\001 \001(\003B\007\272H" + - "\004\"\002 \000R\003val\032a\n\013DoubleEmbed\"R\n\020DoubleEnume" + - "rated\022!\n\035DOUBLE_ENUMERATED_UNSPECIFIED\020\000" + - "\022\033\n\027DOUBLE_ENUMERATED_VALUE\020\001\">\n\nEnumera" + - "ted\022\032\n\026ENUMERATED_UNSPECIFIED\020\000\022\024\n\020ENUME" + - "RATED_VALUE\020\001B\222\002\n2build.buf.validate.con" + - "formance.cases.other_packageB\nEmbedProto" + - "P\001\242\002\005BVCCO\252\002+Buf.Validate.Conformance.Ca" + - "ses.OtherPackage\312\002+Buf\\Validate\\Conforma" + - "nce\\Cases\\OtherPackage\342\0027Buf\\Validate\\Co" + - "nformance\\Cases\\OtherPackage\\GPBMetadata" + - "\352\002/Buf::Validate::Conformance::Cases::Ot" + - "herPackageb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - internal_static_buf_validate_conformance_cases_other_package_Embed_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_cases_other_package_Embed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_other_package_Embed_descriptor, - new java.lang.String[] { "Val", }); - internal_static_buf_validate_conformance_cases_other_package_Embed_DoubleEmbed_descriptor = - internal_static_buf_validate_conformance_cases_other_package_Embed_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_cases_other_package_Embed_DoubleEmbed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_cases_other_package_Embed_DoubleEmbed_descriptor, - new java.lang.String[] { }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.field); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/subdirectory/InSubdirectoryProto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/subdirectory/InSubdirectoryProto.java deleted file mode 100644 index a6c383f0..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/subdirectory/InSubdirectoryProto.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/subdirectory/in_subdirectory.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.subdirectory; - -public final class InSubdirectoryProto { - private InSubdirectoryProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - InSubdirectoryProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nAbuf/validate/conformance/cases/subdire" + - "ctory/in_subdirectory.proto\022+buf.validat" + - "e.conformance.cases.subdirectory\032\033buf/va" + - "lidate/validate.protoB\232\002\n1build.buf.vali" + - "date.conformance.cases.subdirectoryB\023InS" + - "ubdirectoryProtoP\001\242\002\005BVCCS\252\002+Buf.Validat" + - "e.Conformance.Cases.Subdirectory\312\002+Buf\\V" + - "alidate\\Conformance\\Cases\\Subdirectory\342\002" + - "7Buf\\Validate\\Conformance\\Cases\\Subdirec" + - "tory\\GPBMetadata\352\002/Buf::Validate::Confor" + - "mance::Cases::Subdirectoryb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/Embed.java b/conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/Embed.java deleted file mode 100644 index 2bd07e83..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/Embed.java +++ /dev/null @@ -1,557 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/yet_another_package/embed2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.yet_another_package; - -/** - *
- * Validate message embedding across packages.
- * 
- * - * Protobuf type {@code buf.validate.conformance.cases.yet_another_package.Embed} - */ -public final class Embed extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.yet_another_package.Embed) - EmbedOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Embed.class.getName()); - } - // Use Embed.newBuilder() to construct. - private Embed(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Embed() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.yet_another_package.Embed2Proto.internal_static_buf_validate_conformance_cases_yet_another_package_Embed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.yet_another_package.Embed2Proto.internal_static_buf_validate_conformance_cases_yet_another_package_Embed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.yet_another_package.Embed.class, build.buf.validate.conformance.cases.yet_another_package.Embed.Builder.class); - } - - /** - * Protobuf enum {@code buf.validate.conformance.cases.yet_another_package.Embed.Enumerated} - */ - public enum Enumerated - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ENUMERATED_UNSPECIFIED = 0; - */ - ENUMERATED_UNSPECIFIED(0), - /** - * ENUMERATED_VALUE = 1; - */ - ENUMERATED_VALUE(1), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Enumerated.class.getName()); - } - /** - * ENUMERATED_UNSPECIFIED = 0; - */ - public static final int ENUMERATED_UNSPECIFIED_VALUE = 0; - /** - * ENUMERATED_VALUE = 1; - */ - public static final int ENUMERATED_VALUE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Enumerated valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Enumerated forNumber(int value) { - switch (value) { - case 0: return ENUMERATED_UNSPECIFIED; - case 1: return ENUMERATED_VALUE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Enumerated> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Enumerated findValueByNumber(int number) { - return Enumerated.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.conformance.cases.yet_another_package.Embed.getDescriptor().getEnumTypes().get(0); - } - - private static final Enumerated[] VALUES = values(); - - public static Enumerated valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Enumerated(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.conformance.cases.yet_another_package.Embed.Enumerated) - } - - public static final int VAL_FIELD_NUMBER = 1; - private long val_ = 0L; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - - 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 { - if (val_ != 0L) { - output.writeInt64(1, val_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (val_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, val_); - } - 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.yet_another_package.Embed)) { - return super.equals(obj); - } - build.buf.validate.conformance.cases.yet_another_package.Embed other = (build.buf.validate.conformance.cases.yet_another_package.Embed) obj; - - if (getVal() - != other.getVal()) 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(); - hash = (37 * hash) + VAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.cases.yet_another_package.Embed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.yet_another_package.Embed 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.yet_another_package.Embed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.yet_another_package.Embed 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.yet_another_package.Embed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.cases.yet_another_package.Embed 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.yet_another_package.Embed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.cases.yet_another_package.Embed 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.yet_another_package.Embed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.cases.yet_another_package.Embed 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.yet_another_package.Embed 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.yet_another_package.Embed 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.yet_another_package.Embed 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; - } - /** - *
-   * Validate message embedding across packages.
-   * 
- * - * Protobuf type {@code buf.validate.conformance.cases.yet_another_package.Embed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.yet_another_package.Embed) - build.buf.validate.conformance.cases.yet_another_package.EmbedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.cases.yet_another_package.Embed2Proto.internal_static_buf_validate_conformance_cases_yet_another_package_Embed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.cases.yet_another_package.Embed2Proto.internal_static_buf_validate_conformance_cases_yet_another_package_Embed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.cases.yet_another_package.Embed.class, build.buf.validate.conformance.cases.yet_another_package.Embed.Builder.class); - } - - // Construct using build.buf.validate.conformance.cases.yet_another_package.Embed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - val_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.cases.yet_another_package.Embed2Proto.internal_static_buf_validate_conformance_cases_yet_another_package_Embed_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.yet_another_package.Embed getDefaultInstanceForType() { - return build.buf.validate.conformance.cases.yet_another_package.Embed.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.cases.yet_another_package.Embed build() { - build.buf.validate.conformance.cases.yet_another_package.Embed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.cases.yet_another_package.Embed buildPartial() { - build.buf.validate.conformance.cases.yet_another_package.Embed result = new build.buf.validate.conformance.cases.yet_another_package.Embed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.cases.yet_another_package.Embed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.val_ = val_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.cases.yet_another_package.Embed) { - return mergeFrom((build.buf.validate.conformance.cases.yet_another_package.Embed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.cases.yet_another_package.Embed other) { - if (other == build.buf.validate.conformance.cases.yet_another_package.Embed.getDefaultInstance()) return this; - if (other.getVal() != 0L) { - setVal(other.getVal()); - } - 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 8: { - val_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 long val_ ; - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - @java.lang.Override - public long getVal() { - return val_; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @param value The val to set. - * @return This builder for chaining. - */ - public Builder setVal(long value) { - - val_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return This builder for chaining. - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.yet_another_package.Embed) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.yet_another_package.Embed) - private static final build.buf.validate.conformance.cases.yet_another_package.Embed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.yet_another_package.Embed(); - } - - public static build.buf.validate.conformance.cases.yet_another_package.Embed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Embed 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.yet_another_package.Embed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/Embed2Proto.java b/conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/Embed2Proto.java deleted file mode 100644 index 68fb4abd..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/cases/yet_another_package/Embed2Proto.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/cases/yet_another_package/embed2.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.cases.yet_another_package; - -public final class Embed2Proto { - private Embed2Proto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Embed2Proto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_cases_yet_another_package_Embed_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_cases_yet_another_package_Embed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n?buf/validate/conformance/cases/yet_ano" + - "ther_package/embed2.proto\0222buf.validate." + - "conformance.cases.yet_another_package\032\033b" + - "uf/validate/validate.proto\"b\n\005Embed\022\031\n\003v" + - "al\030\001 \001(\003B\007\272H\004\"\002 \000R\003val\">\n\nEnumerated\022\032\n\026" + - "ENUMERATED_UNSPECIFIED\020\000\022\024\n\020ENUMERATED_V" + - "ALUE\020\001B\255\002\n8build.buf.validate.conformanc" + - "e.cases.yet_another_packageB\013Embed2Proto" + - "P\001\242\002\005BVCCY\252\0020Buf.Validate.Conformance.Ca" + - "ses.YetAnotherPackage\312\0020Buf\\Validate\\Con" + - "formance\\Cases\\YetAnotherPackage\342\002int64 val = 1 [json_name = "val", (.buf.validate.field) = { ... } - * @return The val. - */ - long getVal(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/CaseResult.java b/conformance/src/main/java/build/buf/validate/conformance/harness/CaseResult.java deleted file mode 100644 index 8488d5d5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/CaseResult.java +++ /dev/null @@ -1,1410 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/results.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -/** - *
- * A case result is a single test case result.
- * 
- * - * Protobuf type {@code buf.validate.conformance.harness.CaseResult} - */ -public final class CaseResult extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.harness.CaseResult) - CaseResultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - CaseResult.class.getName()); - } - // Use CaseResult.newBuilder() to construct. - private CaseResult(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private CaseResult() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_CaseResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_CaseResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.CaseResult.class, build.buf.validate.conformance.harness.CaseResult.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * The case name.
-   * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The case name.
-   * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUCCESS_FIELD_NUMBER = 2; - private boolean success_ = false; - /** - *
-   * Success state of the test case. True if the test case succeeded.
-   * 
- * - * bool success = 2 [json_name = "success"]; - * @return The success. - */ - @java.lang.Override - public boolean getSuccess() { - return success_; - } - - public static final int WANTED_FIELD_NUMBER = 3; - private build.buf.validate.conformance.harness.TestResult wanted_; - /** - *
-   * The expected result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - * @return Whether the wanted field is set. - */ - @java.lang.Override - public boolean hasWanted() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * The expected result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - * @return The wanted. - */ - @java.lang.Override - public build.buf.validate.conformance.harness.TestResult getWanted() { - return wanted_ == null ? build.buf.validate.conformance.harness.TestResult.getDefaultInstance() : wanted_; - } - /** - *
-   * The expected result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - */ - @java.lang.Override - public build.buf.validate.conformance.harness.TestResultOrBuilder getWantedOrBuilder() { - return wanted_ == null ? build.buf.validate.conformance.harness.TestResult.getDefaultInstance() : wanted_; - } - - public static final int GOT_FIELD_NUMBER = 4; - private build.buf.validate.conformance.harness.TestResult got_; - /** - *
-   * The actual result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - * @return Whether the got field is set. - */ - @java.lang.Override - public boolean hasGot() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * The actual result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - * @return The got. - */ - @java.lang.Override - public build.buf.validate.conformance.harness.TestResult getGot() { - return got_ == null ? build.buf.validate.conformance.harness.TestResult.getDefaultInstance() : got_; - } - /** - *
-   * The actual result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - */ - @java.lang.Override - public build.buf.validate.conformance.harness.TestResultOrBuilder getGotOrBuilder() { - return got_ == null ? build.buf.validate.conformance.harness.TestResult.getDefaultInstance() : got_; - } - - public static final int INPUT_FIELD_NUMBER = 5; - private com.google.protobuf.Any input_; - /** - *
-   * The input used to invoke the test case.
-   * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - * @return Whether the input field is set. - */ - @java.lang.Override - public boolean hasInput() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-   * The input used to invoke the test case.
-   * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - * @return The input. - */ - @java.lang.Override - public com.google.protobuf.Any getInput() { - return input_ == null ? com.google.protobuf.Any.getDefaultInstance() : input_; - } - /** - *
-   * The input used to invoke the test case.
-   * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder getInputOrBuilder() { - return input_ == null ? com.google.protobuf.Any.getDefaultInstance() : input_; - } - - public static final int EXPECTED_FAILURE_FIELD_NUMBER = 6; - private boolean expectedFailure_ = false; - /** - *
-   * Denotes if the test is expected to fail. True, if the test case was expected to fail.
-   * 
- * - * bool expected_failure = 6 [json_name = "expectedFailure"]; - * @return The expectedFailure. - */ - @java.lang.Override - public boolean getExpectedFailure() { - return expectedFailure_; - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (success_ != false) { - output.writeBool(2, success_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getWanted()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getGot()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(5, getInput()); - } - if (expectedFailure_ != false) { - output.writeBool(6, expectedFailure_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (success_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, success_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWanted()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getGot()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getInput()); - } - if (expectedFailure_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, expectedFailure_); - } - 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.harness.CaseResult)) { - return super.equals(obj); - } - build.buf.validate.conformance.harness.CaseResult other = (build.buf.validate.conformance.harness.CaseResult) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getSuccess() - != other.getSuccess()) return false; - if (hasWanted() != other.hasWanted()) return false; - if (hasWanted()) { - if (!getWanted() - .equals(other.getWanted())) return false; - } - if (hasGot() != other.hasGot()) return false; - if (hasGot()) { - if (!getGot() - .equals(other.getGot())) return false; - } - if (hasInput() != other.hasInput()) return false; - if (hasInput()) { - if (!getInput() - .equals(other.getInput())) return false; - } - if (getExpectedFailure() - != other.getExpectedFailure()) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + SUCCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSuccess()); - if (hasWanted()) { - hash = (37 * hash) + WANTED_FIELD_NUMBER; - hash = (53 * hash) + getWanted().hashCode(); - } - if (hasGot()) { - hash = (37 * hash) + GOT_FIELD_NUMBER; - hash = (53 * hash) + getGot().hashCode(); - } - if (hasInput()) { - hash = (37 * hash) + INPUT_FIELD_NUMBER; - hash = (53 * hash) + getInput().hashCode(); - } - hash = (37 * hash) + EXPECTED_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExpectedFailure()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.harness.CaseResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.CaseResult 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.harness.CaseResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.CaseResult 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.harness.CaseResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.CaseResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.conformance.harness.CaseResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.CaseResult 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.harness.CaseResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.harness.CaseResult 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.harness.CaseResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.CaseResult 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.harness.CaseResult 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; - } - /** - *
-   * A case result is a single test case result.
-   * 
- * - * Protobuf type {@code buf.validate.conformance.harness.CaseResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.harness.CaseResult) - build.buf.validate.conformance.harness.CaseResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_CaseResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_CaseResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.CaseResult.class, build.buf.validate.conformance.harness.CaseResult.Builder.class); - } - - // Construct using build.buf.validate.conformance.harness.CaseResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetWantedFieldBuilder(); - internalGetGotFieldBuilder(); - internalGetInputFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - success_ = false; - wanted_ = null; - if (wantedBuilder_ != null) { - wantedBuilder_.dispose(); - wantedBuilder_ = null; - } - got_ = null; - if (gotBuilder_ != null) { - gotBuilder_.dispose(); - gotBuilder_ = null; - } - input_ = null; - if (inputBuilder_ != null) { - inputBuilder_.dispose(); - inputBuilder_ = null; - } - expectedFailure_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_CaseResult_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.CaseResult getDefaultInstanceForType() { - return build.buf.validate.conformance.harness.CaseResult.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.harness.CaseResult build() { - build.buf.validate.conformance.harness.CaseResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.CaseResult buildPartial() { - build.buf.validate.conformance.harness.CaseResult result = new build.buf.validate.conformance.harness.CaseResult(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.harness.CaseResult result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.success_ = success_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.wanted_ = wantedBuilder_ == null - ? wanted_ - : wantedBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.got_ = gotBuilder_ == null - ? got_ - : gotBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.input_ = inputBuilder_ == null - ? input_ - : inputBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.expectedFailure_ = expectedFailure_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.harness.CaseResult) { - return mergeFrom((build.buf.validate.conformance.harness.CaseResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.harness.CaseResult other) { - if (other == build.buf.validate.conformance.harness.CaseResult.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getSuccess() != false) { - setSuccess(other.getSuccess()); - } - if (other.hasWanted()) { - mergeWanted(other.getWanted()); - } - if (other.hasGot()) { - mergeGot(other.getGot()); - } - if (other.hasInput()) { - mergeInput(other.getInput()); - } - if (other.getExpectedFailure() != false) { - setExpectedFailure(other.getExpectedFailure()); - } - 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: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - success_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - internalGetWantedFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - internalGetGotFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - internalGetInputFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - expectedFailure_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - 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.lang.Object name_ = ""; - /** - *
-     * The case name.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The case name.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The case name.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The case name.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The case name.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean success_ ; - /** - *
-     * Success state of the test case. True if the test case succeeded.
-     * 
- * - * bool success = 2 [json_name = "success"]; - * @return The success. - */ - @java.lang.Override - public boolean getSuccess() { - return success_; - } - /** - *
-     * Success state of the test case. True if the test case succeeded.
-     * 
- * - * bool success = 2 [json_name = "success"]; - * @param value The success to set. - * @return This builder for chaining. - */ - public Builder setSuccess(boolean value) { - - success_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Success state of the test case. True if the test case succeeded.
-     * 
- * - * bool success = 2 [json_name = "success"]; - * @return This builder for chaining. - */ - public Builder clearSuccess() { - bitField0_ = (bitField0_ & ~0x00000002); - success_ = false; - onChanged(); - return this; - } - - private build.buf.validate.conformance.harness.TestResult wanted_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.harness.TestResult, build.buf.validate.conformance.harness.TestResult.Builder, build.buf.validate.conformance.harness.TestResultOrBuilder> wantedBuilder_; - /** - *
-     * The expected result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - * @return Whether the wanted field is set. - */ - public boolean hasWanted() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * The expected result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - * @return The wanted. - */ - public build.buf.validate.conformance.harness.TestResult getWanted() { - if (wantedBuilder_ == null) { - return wanted_ == null ? build.buf.validate.conformance.harness.TestResult.getDefaultInstance() : wanted_; - } else { - return wantedBuilder_.getMessage(); - } - } - /** - *
-     * The expected result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - */ - public Builder setWanted(build.buf.validate.conformance.harness.TestResult value) { - if (wantedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - wanted_ = value; - } else { - wantedBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The expected result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - */ - public Builder setWanted( - build.buf.validate.conformance.harness.TestResult.Builder builderForValue) { - if (wantedBuilder_ == null) { - wanted_ = builderForValue.build(); - } else { - wantedBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The expected result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - */ - public Builder mergeWanted(build.buf.validate.conformance.harness.TestResult value) { - if (wantedBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - wanted_ != null && - wanted_ != build.buf.validate.conformance.harness.TestResult.getDefaultInstance()) { - getWantedBuilder().mergeFrom(value); - } else { - wanted_ = value; - } - } else { - wantedBuilder_.mergeFrom(value); - } - if (wanted_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - *
-     * The expected result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - */ - public Builder clearWanted() { - bitField0_ = (bitField0_ & ~0x00000004); - wanted_ = null; - if (wantedBuilder_ != null) { - wantedBuilder_.dispose(); - wantedBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The expected result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - */ - public build.buf.validate.conformance.harness.TestResult.Builder getWantedBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetWantedFieldBuilder().getBuilder(); - } - /** - *
-     * The expected result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - */ - public build.buf.validate.conformance.harness.TestResultOrBuilder getWantedOrBuilder() { - if (wantedBuilder_ != null) { - return wantedBuilder_.getMessageOrBuilder(); - } else { - return wanted_ == null ? - build.buf.validate.conformance.harness.TestResult.getDefaultInstance() : wanted_; - } - } - /** - *
-     * The expected result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.harness.TestResult, build.buf.validate.conformance.harness.TestResult.Builder, build.buf.validate.conformance.harness.TestResultOrBuilder> - internalGetWantedFieldBuilder() { - if (wantedBuilder_ == null) { - wantedBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.harness.TestResult, build.buf.validate.conformance.harness.TestResult.Builder, build.buf.validate.conformance.harness.TestResultOrBuilder>( - getWanted(), - getParentForChildren(), - isClean()); - wanted_ = null; - } - return wantedBuilder_; - } - - private build.buf.validate.conformance.harness.TestResult got_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.harness.TestResult, build.buf.validate.conformance.harness.TestResult.Builder, build.buf.validate.conformance.harness.TestResultOrBuilder> gotBuilder_; - /** - *
-     * The actual result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - * @return Whether the got field is set. - */ - public boolean hasGot() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * The actual result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - * @return The got. - */ - public build.buf.validate.conformance.harness.TestResult getGot() { - if (gotBuilder_ == null) { - return got_ == null ? build.buf.validate.conformance.harness.TestResult.getDefaultInstance() : got_; - } else { - return gotBuilder_.getMessage(); - } - } - /** - *
-     * The actual result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - */ - public Builder setGot(build.buf.validate.conformance.harness.TestResult value) { - if (gotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - got_ = value; - } else { - gotBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * The actual result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - */ - public Builder setGot( - build.buf.validate.conformance.harness.TestResult.Builder builderForValue) { - if (gotBuilder_ == null) { - got_ = builderForValue.build(); - } else { - gotBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * The actual result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - */ - public Builder mergeGot(build.buf.validate.conformance.harness.TestResult value) { - if (gotBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - got_ != null && - got_ != build.buf.validate.conformance.harness.TestResult.getDefaultInstance()) { - getGotBuilder().mergeFrom(value); - } else { - got_ = value; - } - } else { - gotBuilder_.mergeFrom(value); - } - if (got_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - *
-     * The actual result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - */ - public Builder clearGot() { - bitField0_ = (bitField0_ & ~0x00000008); - got_ = null; - if (gotBuilder_ != null) { - gotBuilder_.dispose(); - gotBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The actual result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - */ - public build.buf.validate.conformance.harness.TestResult.Builder getGotBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetGotFieldBuilder().getBuilder(); - } - /** - *
-     * The actual result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - */ - public build.buf.validate.conformance.harness.TestResultOrBuilder getGotOrBuilder() { - if (gotBuilder_ != null) { - return gotBuilder_.getMessageOrBuilder(); - } else { - return got_ == null ? - build.buf.validate.conformance.harness.TestResult.getDefaultInstance() : got_; - } - } - /** - *
-     * The actual result.
-     * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.harness.TestResult, build.buf.validate.conformance.harness.TestResult.Builder, build.buf.validate.conformance.harness.TestResultOrBuilder> - internalGetGotFieldBuilder() { - if (gotBuilder_ == null) { - gotBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.harness.TestResult, build.buf.validate.conformance.harness.TestResult.Builder, build.buf.validate.conformance.harness.TestResultOrBuilder>( - getGot(), - getParentForChildren(), - isClean()); - got_ = null; - } - return gotBuilder_; - } - - private com.google.protobuf.Any input_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> inputBuilder_; - /** - *
-     * The input used to invoke the test case.
-     * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - * @return Whether the input field is set. - */ - public boolean hasInput() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * The input used to invoke the test case.
-     * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - * @return The input. - */ - public com.google.protobuf.Any getInput() { - if (inputBuilder_ == null) { - return input_ == null ? com.google.protobuf.Any.getDefaultInstance() : input_; - } else { - return inputBuilder_.getMessage(); - } - } - /** - *
-     * The input used to invoke the test case.
-     * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - */ - public Builder setInput(com.google.protobuf.Any value) { - if (inputBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - input_ = value; - } else { - inputBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The input used to invoke the test case.
-     * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - */ - public Builder setInput( - com.google.protobuf.Any.Builder builderForValue) { - if (inputBuilder_ == null) { - input_ = builderForValue.build(); - } else { - inputBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The input used to invoke the test case.
-     * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - */ - public Builder mergeInput(com.google.protobuf.Any value) { - if (inputBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - input_ != null && - input_ != com.google.protobuf.Any.getDefaultInstance()) { - getInputBuilder().mergeFrom(value); - } else { - input_ = value; - } - } else { - inputBuilder_.mergeFrom(value); - } - if (input_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - *
-     * The input used to invoke the test case.
-     * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - */ - public Builder clearInput() { - bitField0_ = (bitField0_ & ~0x00000010); - input_ = null; - if (inputBuilder_ != null) { - inputBuilder_.dispose(); - inputBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The input used to invoke the test case.
-     * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - */ - public com.google.protobuf.Any.Builder getInputBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetInputFieldBuilder().getBuilder(); - } - /** - *
-     * The input used to invoke the test case.
-     * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - */ - public com.google.protobuf.AnyOrBuilder getInputOrBuilder() { - if (inputBuilder_ != null) { - return inputBuilder_.getMessageOrBuilder(); - } else { - return input_ == null ? - com.google.protobuf.Any.getDefaultInstance() : input_; - } - } - /** - *
-     * The input used to invoke the test case.
-     * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - internalGetInputFieldBuilder() { - if (inputBuilder_ == null) { - inputBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getInput(), - getParentForChildren(), - isClean()); - input_ = null; - } - return inputBuilder_; - } - - private boolean expectedFailure_ ; - /** - *
-     * Denotes if the test is expected to fail. True, if the test case was expected to fail.
-     * 
- * - * bool expected_failure = 6 [json_name = "expectedFailure"]; - * @return The expectedFailure. - */ - @java.lang.Override - public boolean getExpectedFailure() { - return expectedFailure_; - } - /** - *
-     * Denotes if the test is expected to fail. True, if the test case was expected to fail.
-     * 
- * - * bool expected_failure = 6 [json_name = "expectedFailure"]; - * @param value The expectedFailure to set. - * @return This builder for chaining. - */ - public Builder setExpectedFailure(boolean value) { - - expectedFailure_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Denotes if the test is expected to fail. True, if the test case was expected to fail.
-     * 
- * - * bool expected_failure = 6 [json_name = "expectedFailure"]; - * @return This builder for chaining. - */ - public Builder clearExpectedFailure() { - bitField0_ = (bitField0_ & ~0x00000020); - expectedFailure_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.CaseResult) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.harness.CaseResult) - private static final build.buf.validate.conformance.harness.CaseResult DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.harness.CaseResult(); - } - - public static build.buf.validate.conformance.harness.CaseResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CaseResult 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.harness.CaseResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/CaseResultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/harness/CaseResultOrBuilder.java deleted file mode 100644 index 1ace3ad4..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/CaseResultOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/results.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -public interface CaseResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.harness.CaseResult) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The case name.
-   * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The case name.
-   * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Success state of the test case. True if the test case succeeded.
-   * 
- * - * bool success = 2 [json_name = "success"]; - * @return The success. - */ - boolean getSuccess(); - - /** - *
-   * The expected result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - * @return Whether the wanted field is set. - */ - boolean hasWanted(); - /** - *
-   * The expected result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - * @return The wanted. - */ - build.buf.validate.conformance.harness.TestResult getWanted(); - /** - *
-   * The expected result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult wanted = 3 [json_name = "wanted"]; - */ - build.buf.validate.conformance.harness.TestResultOrBuilder getWantedOrBuilder(); - - /** - *
-   * The actual result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - * @return Whether the got field is set. - */ - boolean hasGot(); - /** - *
-   * The actual result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - * @return The got. - */ - build.buf.validate.conformance.harness.TestResult getGot(); - /** - *
-   * The actual result.
-   * 
- * - * .buf.validate.conformance.harness.TestResult got = 4 [json_name = "got"]; - */ - build.buf.validate.conformance.harness.TestResultOrBuilder getGotOrBuilder(); - - /** - *
-   * The input used to invoke the test case.
-   * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - * @return Whether the input field is set. - */ - boolean hasInput(); - /** - *
-   * The input used to invoke the test case.
-   * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - * @return The input. - */ - com.google.protobuf.Any getInput(); - /** - *
-   * The input used to invoke the test case.
-   * 
- * - * .google.protobuf.Any input = 5 [json_name = "input"]; - */ - com.google.protobuf.AnyOrBuilder getInputOrBuilder(); - - /** - *
-   * Denotes if the test is expected to fail. True, if the test case was expected to fail.
-   * 
- * - * bool expected_failure = 6 [json_name = "expectedFailure"]; - * @return The expectedFailure. - */ - boolean getExpectedFailure(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/HarnessProto.java b/conformance/src/main/java/build/buf/validate/conformance/harness/HarnessProto.java deleted file mode 100644 index e7b7bab7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/HarnessProto.java +++ /dev/null @@ -1,136 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/harness.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -public final class HarnessProto { - private HarnessProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - HarnessProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_harness_TestConformanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_harness_TestConformanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_harness_TestConformanceRequest_CasesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_harness_TestConformanceRequest_CasesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_harness_TestConformanceResponse_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_harness_TestConformanceResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_harness_TestConformanceResponse_ResultsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_harness_TestConformanceResponse_ResultsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_harness_TestResult_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_harness_TestResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.buf/validate/conformance/harness/harne" + - "ss.proto\022 buf.validate.conformance.harne" + - "ss\032\033buf/validate/validate.proto\032\031google/" + - "protobuf/any.proto\032 google/protobuf/desc" + - "riptor.proto\"\375\001\n\026TestConformanceRequest\022" + - "8\n\005fdset\030\002 \001(\0132\".google.protobuf.FileDes" + - "criptorSetR\005fdset\022Y\n\005cases\030\003 \003(\0132C.buf.v" + - "alidate.conformance.harness.TestConforma" + - "nceRequest.CasesEntryR\005cases\032N\n\nCasesEnt" + - "ry\022\020\n\003key\030\001 \001(\tR\003key\022*\n\005value\030\002 \001(\0132\024.go" + - "ogle.protobuf.AnyR\005value:\0028\001\"\345\001\n\027TestCon" + - "formanceResponse\022`\n\007results\030\001 \003(\0132F.buf." + - "validate.conformance.harness.TestConform" + - "anceResponse.ResultsEntryR\007results\032h\n\014Re" + - "sultsEntry\022\020\n\003key\030\001 \001(\tR\003key\022B\n\005value\030\002 " + - "\001(\0132,.buf.validate.conformance.harness.T" + - "estResultR\005value:\0028\001\"\374\001\n\nTestResult\022\032\n\007s" + - "uccess\030\001 \001(\010H\000R\007success\022E\n\020validation_er" + - "ror\030\002 \001(\0132\030.buf.validate.ViolationsH\000R\017v" + - "alidationError\022-\n\021compilation_error\030\003 \001(" + - "\tH\000R\020compilationError\022%\n\rruntime_error\030\004" + - " \001(\tH\000R\014runtimeError\022+\n\020unexpected_error" + - "\030\005 \001(\tH\000R\017unexpectedErrorB\010\n\006resultB\332\001\n&" + - "build.buf.validate.conformance.harnessB\014" + - "HarnessProtoP\001\242\002\004BVCH\252\002 Buf.Validate.Con" + - "formance.Harness\312\002 Buf\\Validate\\Conforma" + - "nce\\Harness\342\002,Buf\\Validate\\Conformance\\H" + - "arness\\GPBMetadata\352\002#Buf::Validate::Conf" + - "ormance::Harnessb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.ValidateProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.DescriptorProtos.getDescriptor(), - }); - internal_static_buf_validate_conformance_harness_TestConformanceRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_harness_TestConformanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_harness_TestConformanceRequest_descriptor, - new java.lang.String[] { "Fdset", "Cases", }); - internal_static_buf_validate_conformance_harness_TestConformanceRequest_CasesEntry_descriptor = - internal_static_buf_validate_conformance_harness_TestConformanceRequest_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_harness_TestConformanceRequest_CasesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_harness_TestConformanceRequest_CasesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_harness_TestConformanceResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_harness_TestConformanceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_harness_TestConformanceResponse_descriptor, - new java.lang.String[] { "Results", }); - internal_static_buf_validate_conformance_harness_TestConformanceResponse_ResultsEntry_descriptor = - internal_static_buf_validate_conformance_harness_TestConformanceResponse_descriptor.getNestedTypes().get(0); - internal_static_buf_validate_conformance_harness_TestConformanceResponse_ResultsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_harness_TestConformanceResponse_ResultsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_buf_validate_conformance_harness_TestResult_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_harness_TestResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_harness_TestResult_descriptor, - new java.lang.String[] { "Success", "ValidationError", "CompilationError", "RuntimeError", "UnexpectedError", "Result", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.ValidateProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DescriptorProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptions.java b/conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptions.java deleted file mode 100644 index fa11e1e7..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptions.java +++ /dev/null @@ -1,952 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/results.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -/** - *
- * ResultOptions are the options passed to the test runner to configure the
- * test run.
- * 
- * - * Protobuf type {@code buf.validate.conformance.harness.ResultOptions} - */ -public final class ResultOptions extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.harness.ResultOptions) - ResultOptionsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - ResultOptions.class.getName()); - } - // Use ResultOptions.newBuilder() to construct. - private ResultOptions(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ResultOptions() { - suiteFilter_ = ""; - caseFilter_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.ResultOptions.class, build.buf.validate.conformance.harness.ResultOptions.Builder.class); - } - - public static final int SUITE_FILTER_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object suiteFilter_ = ""; - /** - *
-   * The suite filter is a regex that matches against the suite name.
-   * 
- * - * string suite_filter = 1 [json_name = "suiteFilter"]; - * @return The suiteFilter. - */ - @java.lang.Override - public java.lang.String getSuiteFilter() { - java.lang.Object ref = suiteFilter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - suiteFilter_ = s; - return s; - } - } - /** - *
-   * The suite filter is a regex that matches against the suite name.
-   * 
- * - * string suite_filter = 1 [json_name = "suiteFilter"]; - * @return The bytes for suiteFilter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSuiteFilterBytes() { - java.lang.Object ref = suiteFilter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - suiteFilter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CASE_FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object caseFilter_ = ""; - /** - *
-   * The case filter is a regex that matches against the case name.
-   * 
- * - * string case_filter = 2 [json_name = "caseFilter"]; - * @return The caseFilter. - */ - @java.lang.Override - public java.lang.String getCaseFilter() { - java.lang.Object ref = caseFilter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caseFilter_ = s; - return s; - } - } - /** - *
-   * The case filter is a regex that matches against the case name.
-   * 
- * - * string case_filter = 2 [json_name = "caseFilter"]; - * @return The bytes for caseFilter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCaseFilterBytes() { - java.lang.Object ref = caseFilter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caseFilter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERBOSE_FIELD_NUMBER = 3; - private boolean verbose_ = false; - /** - *
-   * If the test runner should print verbose output.
-   * 
- * - * bool verbose = 3 [json_name = "verbose"]; - * @return The verbose. - */ - @java.lang.Override - public boolean getVerbose() { - return verbose_; - } - - public static final int STRICT_MESSAGE_FIELD_NUMBER = 5; - private boolean strictMessage_ = false; - /** - *
-   * If the violation message must be an exact match.
-   * 
- * - * bool strict_message = 5 [json_name = "strictMessage"]; - * @return The strictMessage. - */ - @java.lang.Override - public boolean getStrictMessage() { - return strictMessage_; - } - - public static final int STRICT_ERROR_FIELD_NUMBER = 6; - private boolean strictError_ = false; - /** - *
-   * If the distinction between runtime and compile time errors must be exact.
-   * 
- * - * bool strict_error = 6 [json_name = "strictError"]; - * @return The strictError. - */ - @java.lang.Override - public boolean getStrictError() { - return strictError_; - } - - 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 { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suiteFilter_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, suiteFilter_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(caseFilter_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, caseFilter_); - } - if (verbose_ != false) { - output.writeBool(3, verbose_); - } - if (strictMessage_ != false) { - output.writeBool(5, strictMessage_); - } - if (strictError_ != false) { - output.writeBool(6, strictError_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suiteFilter_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, suiteFilter_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(caseFilter_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, caseFilter_); - } - if (verbose_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, verbose_); - } - if (strictMessage_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, strictMessage_); - } - if (strictError_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, strictError_); - } - 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.harness.ResultOptions)) { - return super.equals(obj); - } - build.buf.validate.conformance.harness.ResultOptions other = (build.buf.validate.conformance.harness.ResultOptions) obj; - - if (!getSuiteFilter() - .equals(other.getSuiteFilter())) return false; - if (!getCaseFilter() - .equals(other.getCaseFilter())) return false; - if (getVerbose() - != other.getVerbose()) return false; - if (getStrictMessage() - != other.getStrictMessage()) return false; - if (getStrictError() - != other.getStrictError()) 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(); - hash = (37 * hash) + SUITE_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getSuiteFilter().hashCode(); - hash = (37 * hash) + CASE_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getCaseFilter().hashCode(); - hash = (37 * hash) + VERBOSE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVerbose()); - hash = (37 * hash) + STRICT_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStrictMessage()); - hash = (37 * hash) + STRICT_ERROR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStrictError()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.harness.ResultOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.ResultOptions 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.harness.ResultOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.ResultOptions 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.harness.ResultOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.ResultOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.conformance.harness.ResultOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.ResultOptions 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.harness.ResultOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.harness.ResultOptions 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.harness.ResultOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.ResultOptions 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.harness.ResultOptions 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; - } - /** - *
-   * ResultOptions are the options passed to the test runner to configure the
-   * test run.
-   * 
- * - * Protobuf type {@code buf.validate.conformance.harness.ResultOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.harness.ResultOptions) - build.buf.validate.conformance.harness.ResultOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.ResultOptions.class, build.buf.validate.conformance.harness.ResultOptions.Builder.class); - } - - // Construct using build.buf.validate.conformance.harness.ResultOptions.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - suiteFilter_ = ""; - caseFilter_ = ""; - verbose_ = false; - strictMessage_ = false; - strictError_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultOptions_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.ResultOptions getDefaultInstanceForType() { - return build.buf.validate.conformance.harness.ResultOptions.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.harness.ResultOptions build() { - build.buf.validate.conformance.harness.ResultOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.ResultOptions buildPartial() { - build.buf.validate.conformance.harness.ResultOptions result = new build.buf.validate.conformance.harness.ResultOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.harness.ResultOptions result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.suiteFilter_ = suiteFilter_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.caseFilter_ = caseFilter_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.verbose_ = verbose_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.strictMessage_ = strictMessage_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.strictError_ = strictError_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.harness.ResultOptions) { - return mergeFrom((build.buf.validate.conformance.harness.ResultOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.harness.ResultOptions other) { - if (other == build.buf.validate.conformance.harness.ResultOptions.getDefaultInstance()) return this; - if (!other.getSuiteFilter().isEmpty()) { - suiteFilter_ = other.suiteFilter_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getCaseFilter().isEmpty()) { - caseFilter_ = other.caseFilter_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getVerbose() != false) { - setVerbose(other.getVerbose()); - } - if (other.getStrictMessage() != false) { - setStrictMessage(other.getStrictMessage()); - } - if (other.getStrictError() != false) { - setStrictError(other.getStrictError()); - } - 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: { - suiteFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - caseFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - verbose_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 40: { - strictMessage_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: { - strictError_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 48 - 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.lang.Object suiteFilter_ = ""; - /** - *
-     * The suite filter is a regex that matches against the suite name.
-     * 
- * - * string suite_filter = 1 [json_name = "suiteFilter"]; - * @return The suiteFilter. - */ - public java.lang.String getSuiteFilter() { - java.lang.Object ref = suiteFilter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - suiteFilter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The suite filter is a regex that matches against the suite name.
-     * 
- * - * string suite_filter = 1 [json_name = "suiteFilter"]; - * @return The bytes for suiteFilter. - */ - public com.google.protobuf.ByteString - getSuiteFilterBytes() { - java.lang.Object ref = suiteFilter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - suiteFilter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The suite filter is a regex that matches against the suite name.
-     * 
- * - * string suite_filter = 1 [json_name = "suiteFilter"]; - * @param value The suiteFilter to set. - * @return This builder for chaining. - */ - public Builder setSuiteFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - suiteFilter_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The suite filter is a regex that matches against the suite name.
-     * 
- * - * string suite_filter = 1 [json_name = "suiteFilter"]; - * @return This builder for chaining. - */ - public Builder clearSuiteFilter() { - suiteFilter_ = getDefaultInstance().getSuiteFilter(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The suite filter is a regex that matches against the suite name.
-     * 
- * - * string suite_filter = 1 [json_name = "suiteFilter"]; - * @param value The bytes for suiteFilter to set. - * @return This builder for chaining. - */ - public Builder setSuiteFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - suiteFilter_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object caseFilter_ = ""; - /** - *
-     * The case filter is a regex that matches against the case name.
-     * 
- * - * string case_filter = 2 [json_name = "caseFilter"]; - * @return The caseFilter. - */ - public java.lang.String getCaseFilter() { - java.lang.Object ref = caseFilter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - caseFilter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The case filter is a regex that matches against the case name.
-     * 
- * - * string case_filter = 2 [json_name = "caseFilter"]; - * @return The bytes for caseFilter. - */ - public com.google.protobuf.ByteString - getCaseFilterBytes() { - java.lang.Object ref = caseFilter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caseFilter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The case filter is a regex that matches against the case name.
-     * 
- * - * string case_filter = 2 [json_name = "caseFilter"]; - * @param value The caseFilter to set. - * @return This builder for chaining. - */ - public Builder setCaseFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - caseFilter_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The case filter is a regex that matches against the case name.
-     * 
- * - * string case_filter = 2 [json_name = "caseFilter"]; - * @return This builder for chaining. - */ - public Builder clearCaseFilter() { - caseFilter_ = getDefaultInstance().getCaseFilter(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The case filter is a regex that matches against the case name.
-     * 
- * - * string case_filter = 2 [json_name = "caseFilter"]; - * @param value The bytes for caseFilter to set. - * @return This builder for chaining. - */ - public Builder setCaseFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - caseFilter_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean verbose_ ; - /** - *
-     * If the test runner should print verbose output.
-     * 
- * - * bool verbose = 3 [json_name = "verbose"]; - * @return The verbose. - */ - @java.lang.Override - public boolean getVerbose() { - return verbose_; - } - /** - *
-     * If the test runner should print verbose output.
-     * 
- * - * bool verbose = 3 [json_name = "verbose"]; - * @param value The verbose to set. - * @return This builder for chaining. - */ - public Builder setVerbose(boolean value) { - - verbose_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * If the test runner should print verbose output.
-     * 
- * - * bool verbose = 3 [json_name = "verbose"]; - * @return This builder for chaining. - */ - public Builder clearVerbose() { - bitField0_ = (bitField0_ & ~0x00000004); - verbose_ = false; - onChanged(); - return this; - } - - private boolean strictMessage_ ; - /** - *
-     * If the violation message must be an exact match.
-     * 
- * - * bool strict_message = 5 [json_name = "strictMessage"]; - * @return The strictMessage. - */ - @java.lang.Override - public boolean getStrictMessage() { - return strictMessage_; - } - /** - *
-     * If the violation message must be an exact match.
-     * 
- * - * bool strict_message = 5 [json_name = "strictMessage"]; - * @param value The strictMessage to set. - * @return This builder for chaining. - */ - public Builder setStrictMessage(boolean value) { - - strictMessage_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * If the violation message must be an exact match.
-     * 
- * - * bool strict_message = 5 [json_name = "strictMessage"]; - * @return This builder for chaining. - */ - public Builder clearStrictMessage() { - bitField0_ = (bitField0_ & ~0x00000008); - strictMessage_ = false; - onChanged(); - return this; - } - - private boolean strictError_ ; - /** - *
-     * If the distinction between runtime and compile time errors must be exact.
-     * 
- * - * bool strict_error = 6 [json_name = "strictError"]; - * @return The strictError. - */ - @java.lang.Override - public boolean getStrictError() { - return strictError_; - } - /** - *
-     * If the distinction between runtime and compile time errors must be exact.
-     * 
- * - * bool strict_error = 6 [json_name = "strictError"]; - * @param value The strictError to set. - * @return This builder for chaining. - */ - public Builder setStrictError(boolean value) { - - strictError_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * If the distinction between runtime and compile time errors must be exact.
-     * 
- * - * bool strict_error = 6 [json_name = "strictError"]; - * @return This builder for chaining. - */ - public Builder clearStrictError() { - bitField0_ = (bitField0_ & ~0x00000010); - strictError_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.ResultOptions) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.harness.ResultOptions) - private static final build.buf.validate.conformance.harness.ResultOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.harness.ResultOptions(); - } - - public static build.buf.validate.conformance.harness.ResultOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResultOptions 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.harness.ResultOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptionsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptionsOrBuilder.java deleted file mode 100644 index 10b9437a..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultOptionsOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/results.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -public interface ResultOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.harness.ResultOptions) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The suite filter is a regex that matches against the suite name.
-   * 
- * - * string suite_filter = 1 [json_name = "suiteFilter"]; - * @return The suiteFilter. - */ - java.lang.String getSuiteFilter(); - /** - *
-   * The suite filter is a regex that matches against the suite name.
-   * 
- * - * string suite_filter = 1 [json_name = "suiteFilter"]; - * @return The bytes for suiteFilter. - */ - com.google.protobuf.ByteString - getSuiteFilterBytes(); - - /** - *
-   * The case filter is a regex that matches against the case name.
-   * 
- * - * string case_filter = 2 [json_name = "caseFilter"]; - * @return The caseFilter. - */ - java.lang.String getCaseFilter(); - /** - *
-   * The case filter is a regex that matches against the case name.
-   * 
- * - * string case_filter = 2 [json_name = "caseFilter"]; - * @return The bytes for caseFilter. - */ - com.google.protobuf.ByteString - getCaseFilterBytes(); - - /** - *
-   * If the test runner should print verbose output.
-   * 
- * - * bool verbose = 3 [json_name = "verbose"]; - * @return The verbose. - */ - boolean getVerbose(); - - /** - *
-   * If the violation message must be an exact match.
-   * 
- * - * bool strict_message = 5 [json_name = "strictMessage"]; - * @return The strictMessage. - */ - boolean getStrictMessage(); - - /** - *
-   * If the distinction between runtime and compile time errors must be exact.
-   * 
- * - * bool strict_error = 6 [json_name = "strictError"]; - * @return The strictError. - */ - boolean getStrictError(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultSet.java b/conformance/src/main/java/build/buf/validate/conformance/harness/ResultSet.java deleted file mode 100644 index 53560fd2..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultSet.java +++ /dev/null @@ -1,1318 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/results.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -/** - *
- * A result is the result of a test run.
- * 
- * - * Protobuf type {@code buf.validate.conformance.harness.ResultSet} - */ -public final class ResultSet extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.harness.ResultSet) - ResultSetOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - ResultSet.class.getName()); - } - // Use ResultSet.newBuilder() to construct. - private ResultSet(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ResultSet() { - suites_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultSet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.ResultSet.class, build.buf.validate.conformance.harness.ResultSet.Builder.class); - } - - private int bitField0_; - public static final int SUCCESSES_FIELD_NUMBER = 1; - private int successes_ = 0; - /** - *
-   * Count of successes.
-   * 
- * - * int32 successes = 1 [json_name = "successes"]; - * @return The successes. - */ - @java.lang.Override - public int getSuccesses() { - return successes_; - } - - public static final int FAILURES_FIELD_NUMBER = 2; - private int failures_ = 0; - /** - *
-   * Count of failures.
-   * 
- * - * int32 failures = 2 [json_name = "failures"]; - * @return The failures. - */ - @java.lang.Override - public int getFailures() { - return failures_; - } - - public static final int SUITES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List suites_; - /** - *
-   * List of suite results.
-   * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - @java.lang.Override - public java.util.List getSuitesList() { - return suites_; - } - /** - *
-   * List of suite results.
-   * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - @java.lang.Override - public java.util.List - getSuitesOrBuilderList() { - return suites_; - } - /** - *
-   * List of suite results.
-   * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - @java.lang.Override - public int getSuitesCount() { - return suites_.size(); - } - /** - *
-   * List of suite results.
-   * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - @java.lang.Override - public build.buf.validate.conformance.harness.SuiteResults getSuites(int index) { - return suites_.get(index); - } - /** - *
-   * List of suite results.
-   * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - @java.lang.Override - public build.buf.validate.conformance.harness.SuiteResultsOrBuilder getSuitesOrBuilder( - int index) { - return suites_.get(index); - } - - public static final int OPTIONS_FIELD_NUMBER = 4; - private build.buf.validate.conformance.harness.ResultOptions options_; - /** - *
-   * Options used to generate this result.
-   * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - * @return Whether the options field is set. - */ - @java.lang.Override - public boolean hasOptions() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * Options used to generate this result.
-   * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - * @return The options. - */ - @java.lang.Override - public build.buf.validate.conformance.harness.ResultOptions getOptions() { - return options_ == null ? build.buf.validate.conformance.harness.ResultOptions.getDefaultInstance() : options_; - } - /** - *
-   * Options used to generate this result.
-   * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - */ - @java.lang.Override - public build.buf.validate.conformance.harness.ResultOptionsOrBuilder getOptionsOrBuilder() { - return options_ == null ? build.buf.validate.conformance.harness.ResultOptions.getDefaultInstance() : options_; - } - - public static final int EXPECTED_FAILURES_FIELD_NUMBER = 5; - private int expectedFailures_ = 0; - /** - *
-   * Count of expected failures.
-   * 
- * - * int32 expected_failures = 5 [json_name = "expectedFailures"]; - * @return The expectedFailures. - */ - @java.lang.Override - public int getExpectedFailures() { - return expectedFailures_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - for (int i = 0; i < getSuitesCount(); i++) { - if (!getSuites(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (successes_ != 0) { - output.writeInt32(1, successes_); - } - if (failures_ != 0) { - output.writeInt32(2, failures_); - } - for (int i = 0; i < suites_.size(); i++) { - output.writeMessage(3, suites_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getOptions()); - } - if (expectedFailures_ != 0) { - output.writeInt32(5, expectedFailures_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (successes_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, successes_); - } - if (failures_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, failures_); - } - for (int i = 0; i < suites_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, suites_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOptions()); - } - if (expectedFailures_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, expectedFailures_); - } - 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.harness.ResultSet)) { - return super.equals(obj); - } - build.buf.validate.conformance.harness.ResultSet other = (build.buf.validate.conformance.harness.ResultSet) obj; - - if (getSuccesses() - != other.getSuccesses()) return false; - if (getFailures() - != other.getFailures()) return false; - if (!getSuitesList() - .equals(other.getSuitesList())) return false; - if (hasOptions() != other.hasOptions()) return false; - if (hasOptions()) { - if (!getOptions() - .equals(other.getOptions())) return false; - } - if (getExpectedFailures() - != other.getExpectedFailures()) 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(); - hash = (37 * hash) + SUCCESSES_FIELD_NUMBER; - hash = (53 * hash) + getSuccesses(); - hash = (37 * hash) + FAILURES_FIELD_NUMBER; - hash = (53 * hash) + getFailures(); - if (getSuitesCount() > 0) { - hash = (37 * hash) + SUITES_FIELD_NUMBER; - hash = (53 * hash) + getSuitesList().hashCode(); - } - if (hasOptions()) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptions().hashCode(); - } - hash = (37 * hash) + EXPECTED_FAILURES_FIELD_NUMBER; - hash = (53 * hash) + getExpectedFailures(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.harness.ResultSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.ResultSet 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.harness.ResultSet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.ResultSet 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.harness.ResultSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.ResultSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.conformance.harness.ResultSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.ResultSet 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.harness.ResultSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.harness.ResultSet 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.harness.ResultSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.ResultSet 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.harness.ResultSet 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; - } - /** - *
-   * A result is the result of a test run.
-   * 
- * - * Protobuf type {@code buf.validate.conformance.harness.ResultSet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.harness.ResultSet) - build.buf.validate.conformance.harness.ResultSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultSet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.ResultSet.class, build.buf.validate.conformance.harness.ResultSet.Builder.class); - } - - // Construct using build.buf.validate.conformance.harness.ResultSet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetSuitesFieldBuilder(); - internalGetOptionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - successes_ = 0; - failures_ = 0; - if (suitesBuilder_ == null) { - suites_ = java.util.Collections.emptyList(); - } else { - suites_ = null; - suitesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - expectedFailures_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_ResultSet_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.ResultSet getDefaultInstanceForType() { - return build.buf.validate.conformance.harness.ResultSet.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.harness.ResultSet build() { - build.buf.validate.conformance.harness.ResultSet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.ResultSet buildPartial() { - build.buf.validate.conformance.harness.ResultSet result = new build.buf.validate.conformance.harness.ResultSet(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.harness.ResultSet result) { - if (suitesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - suites_ = java.util.Collections.unmodifiableList(suites_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.suites_ = suites_; - } else { - result.suites_ = suitesBuilder_.build(); - } - } - - private void buildPartial0(build.buf.validate.conformance.harness.ResultSet result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.successes_ = successes_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.failures_ = failures_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.options_ = optionsBuilder_ == null - ? options_ - : optionsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.expectedFailures_ = expectedFailures_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.harness.ResultSet) { - return mergeFrom((build.buf.validate.conformance.harness.ResultSet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.harness.ResultSet other) { - if (other == build.buf.validate.conformance.harness.ResultSet.getDefaultInstance()) return this; - if (other.getSuccesses() != 0) { - setSuccesses(other.getSuccesses()); - } - if (other.getFailures() != 0) { - setFailures(other.getFailures()); - } - if (suitesBuilder_ == null) { - if (!other.suites_.isEmpty()) { - if (suites_.isEmpty()) { - suites_ = other.suites_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSuitesIsMutable(); - suites_.addAll(other.suites_); - } - onChanged(); - } - } else { - if (!other.suites_.isEmpty()) { - if (suitesBuilder_.isEmpty()) { - suitesBuilder_.dispose(); - suitesBuilder_ = null; - suites_ = other.suites_; - bitField0_ = (bitField0_ & ~0x00000004); - suitesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetSuitesFieldBuilder() : null; - } else { - suitesBuilder_.addAllMessages(other.suites_); - } - } - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - if (other.getExpectedFailures() != 0) { - setExpectedFailures(other.getExpectedFailures()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getSuitesCount(); i++) { - if (!getSuites(i).isInitialized()) { - return false; - } - } - 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 8: { - successes_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - failures_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - build.buf.validate.conformance.harness.SuiteResults m = - input.readMessage( - build.buf.validate.conformance.harness.SuiteResults.parser(), - extensionRegistry); - if (suitesBuilder_ == null) { - ensureSuitesIsMutable(); - suites_.add(m); - } else { - suitesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - input.readMessage( - internalGetOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - expectedFailures_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - 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 int successes_ ; - /** - *
-     * Count of successes.
-     * 
- * - * int32 successes = 1 [json_name = "successes"]; - * @return The successes. - */ - @java.lang.Override - public int getSuccesses() { - return successes_; - } - /** - *
-     * Count of successes.
-     * 
- * - * int32 successes = 1 [json_name = "successes"]; - * @param value The successes to set. - * @return This builder for chaining. - */ - public Builder setSuccesses(int value) { - - successes_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Count of successes.
-     * 
- * - * int32 successes = 1 [json_name = "successes"]; - * @return This builder for chaining. - */ - public Builder clearSuccesses() { - bitField0_ = (bitField0_ & ~0x00000001); - successes_ = 0; - onChanged(); - return this; - } - - private int failures_ ; - /** - *
-     * Count of failures.
-     * 
- * - * int32 failures = 2 [json_name = "failures"]; - * @return The failures. - */ - @java.lang.Override - public int getFailures() { - return failures_; - } - /** - *
-     * Count of failures.
-     * 
- * - * int32 failures = 2 [json_name = "failures"]; - * @param value The failures to set. - * @return This builder for chaining. - */ - public Builder setFailures(int value) { - - failures_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Count of failures.
-     * 
- * - * int32 failures = 2 [json_name = "failures"]; - * @return This builder for chaining. - */ - public Builder clearFailures() { - bitField0_ = (bitField0_ & ~0x00000002); - failures_ = 0; - onChanged(); - return this; - } - - private java.util.List suites_ = - java.util.Collections.emptyList(); - private void ensureSuitesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - suites_ = new java.util.ArrayList(suites_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.harness.SuiteResults, build.buf.validate.conformance.harness.SuiteResults.Builder, build.buf.validate.conformance.harness.SuiteResultsOrBuilder> suitesBuilder_; - - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public java.util.List getSuitesList() { - if (suitesBuilder_ == null) { - return java.util.Collections.unmodifiableList(suites_); - } else { - return suitesBuilder_.getMessageList(); - } - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public int getSuitesCount() { - if (suitesBuilder_ == null) { - return suites_.size(); - } else { - return suitesBuilder_.getCount(); - } - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public build.buf.validate.conformance.harness.SuiteResults getSuites(int index) { - if (suitesBuilder_ == null) { - return suites_.get(index); - } else { - return suitesBuilder_.getMessage(index); - } - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public Builder setSuites( - int index, build.buf.validate.conformance.harness.SuiteResults value) { - if (suitesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSuitesIsMutable(); - suites_.set(index, value); - onChanged(); - } else { - suitesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public Builder setSuites( - int index, build.buf.validate.conformance.harness.SuiteResults.Builder builderForValue) { - if (suitesBuilder_ == null) { - ensureSuitesIsMutable(); - suites_.set(index, builderForValue.build()); - onChanged(); - } else { - suitesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public Builder addSuites(build.buf.validate.conformance.harness.SuiteResults value) { - if (suitesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSuitesIsMutable(); - suites_.add(value); - onChanged(); - } else { - suitesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public Builder addSuites( - int index, build.buf.validate.conformance.harness.SuiteResults value) { - if (suitesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSuitesIsMutable(); - suites_.add(index, value); - onChanged(); - } else { - suitesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public Builder addSuites( - build.buf.validate.conformance.harness.SuiteResults.Builder builderForValue) { - if (suitesBuilder_ == null) { - ensureSuitesIsMutable(); - suites_.add(builderForValue.build()); - onChanged(); - } else { - suitesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public Builder addSuites( - int index, build.buf.validate.conformance.harness.SuiteResults.Builder builderForValue) { - if (suitesBuilder_ == null) { - ensureSuitesIsMutable(); - suites_.add(index, builderForValue.build()); - onChanged(); - } else { - suitesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public Builder addAllSuites( - java.lang.Iterable values) { - if (suitesBuilder_ == null) { - ensureSuitesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, suites_); - onChanged(); - } else { - suitesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public Builder clearSuites() { - if (suitesBuilder_ == null) { - suites_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - suitesBuilder_.clear(); - } - return this; - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public Builder removeSuites(int index) { - if (suitesBuilder_ == null) { - ensureSuitesIsMutable(); - suites_.remove(index); - onChanged(); - } else { - suitesBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public build.buf.validate.conformance.harness.SuiteResults.Builder getSuitesBuilder( - int index) { - return internalGetSuitesFieldBuilder().getBuilder(index); - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public build.buf.validate.conformance.harness.SuiteResultsOrBuilder getSuitesOrBuilder( - int index) { - if (suitesBuilder_ == null) { - return suites_.get(index); } else { - return suitesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public java.util.List - getSuitesOrBuilderList() { - if (suitesBuilder_ != null) { - return suitesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(suites_); - } - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public build.buf.validate.conformance.harness.SuiteResults.Builder addSuitesBuilder() { - return internalGetSuitesFieldBuilder().addBuilder( - build.buf.validate.conformance.harness.SuiteResults.getDefaultInstance()); - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public build.buf.validate.conformance.harness.SuiteResults.Builder addSuitesBuilder( - int index) { - return internalGetSuitesFieldBuilder().addBuilder( - index, build.buf.validate.conformance.harness.SuiteResults.getDefaultInstance()); - } - /** - *
-     * List of suite results.
-     * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - public java.util.List - getSuitesBuilderList() { - return internalGetSuitesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.harness.SuiteResults, build.buf.validate.conformance.harness.SuiteResults.Builder, build.buf.validate.conformance.harness.SuiteResultsOrBuilder> - internalGetSuitesFieldBuilder() { - if (suitesBuilder_ == null) { - suitesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.harness.SuiteResults, build.buf.validate.conformance.harness.SuiteResults.Builder, build.buf.validate.conformance.harness.SuiteResultsOrBuilder>( - suites_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - suites_ = null; - } - return suitesBuilder_; - } - - private build.buf.validate.conformance.harness.ResultOptions options_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.harness.ResultOptions, build.buf.validate.conformance.harness.ResultOptions.Builder, build.buf.validate.conformance.harness.ResultOptionsOrBuilder> optionsBuilder_; - /** - *
-     * Options used to generate this result.
-     * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - * @return Whether the options field is set. - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Options used to generate this result.
-     * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - * @return The options. - */ - public build.buf.validate.conformance.harness.ResultOptions getOptions() { - if (optionsBuilder_ == null) { - return options_ == null ? build.buf.validate.conformance.harness.ResultOptions.getDefaultInstance() : options_; - } else { - return optionsBuilder_.getMessage(); - } - } - /** - *
-     * Options used to generate this result.
-     * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - */ - public Builder setOptions(build.buf.validate.conformance.harness.ResultOptions value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - options_ = value; - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Options used to generate this result.
-     * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - */ - public Builder setOptions( - build.buf.validate.conformance.harness.ResultOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Options used to generate this result.
-     * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - */ - public Builder mergeOptions(build.buf.validate.conformance.harness.ResultOptions value) { - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - options_ != null && - options_ != build.buf.validate.conformance.harness.ResultOptions.getDefaultInstance()) { - getOptionsBuilder().mergeFrom(value); - } else { - options_ = value; - } - } else { - optionsBuilder_.mergeFrom(value); - } - if (options_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - *
-     * Options used to generate this result.
-     * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - */ - public Builder clearOptions() { - bitField0_ = (bitField0_ & ~0x00000008); - options_ = null; - if (optionsBuilder_ != null) { - optionsBuilder_.dispose(); - optionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Options used to generate this result.
-     * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - */ - public build.buf.validate.conformance.harness.ResultOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetOptionsFieldBuilder().getBuilder(); - } - /** - *
-     * Options used to generate this result.
-     * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - */ - public build.buf.validate.conformance.harness.ResultOptionsOrBuilder getOptionsOrBuilder() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilder(); - } else { - return options_ == null ? - build.buf.validate.conformance.harness.ResultOptions.getDefaultInstance() : options_; - } - } - /** - *
-     * Options used to generate this result.
-     * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.harness.ResultOptions, build.buf.validate.conformance.harness.ResultOptions.Builder, build.buf.validate.conformance.harness.ResultOptionsOrBuilder> - internalGetOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.conformance.harness.ResultOptions, build.buf.validate.conformance.harness.ResultOptions.Builder, build.buf.validate.conformance.harness.ResultOptionsOrBuilder>( - getOptions(), - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - - private int expectedFailures_ ; - /** - *
-     * Count of expected failures.
-     * 
- * - * int32 expected_failures = 5 [json_name = "expectedFailures"]; - * @return The expectedFailures. - */ - @java.lang.Override - public int getExpectedFailures() { - return expectedFailures_; - } - /** - *
-     * Count of expected failures.
-     * 
- * - * int32 expected_failures = 5 [json_name = "expectedFailures"]; - * @param value The expectedFailures to set. - * @return This builder for chaining. - */ - public Builder setExpectedFailures(int value) { - - expectedFailures_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Count of expected failures.
-     * 
- * - * int32 expected_failures = 5 [json_name = "expectedFailures"]; - * @return This builder for chaining. - */ - public Builder clearExpectedFailures() { - bitField0_ = (bitField0_ & ~0x00000010); - expectedFailures_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.ResultSet) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.harness.ResultSet) - private static final build.buf.validate.conformance.harness.ResultSet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.harness.ResultSet(); - } - - public static build.buf.validate.conformance.harness.ResultSet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResultSet 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.harness.ResultSet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultSetOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/harness/ResultSetOrBuilder.java deleted file mode 100644 index 897724b9..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultSetOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/results.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -public interface ResultSetOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.harness.ResultSet) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Count of successes.
-   * 
- * - * int32 successes = 1 [json_name = "successes"]; - * @return The successes. - */ - int getSuccesses(); - - /** - *
-   * Count of failures.
-   * 
- * - * int32 failures = 2 [json_name = "failures"]; - * @return The failures. - */ - int getFailures(); - - /** - *
-   * List of suite results.
-   * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - java.util.List - getSuitesList(); - /** - *
-   * List of suite results.
-   * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - build.buf.validate.conformance.harness.SuiteResults getSuites(int index); - /** - *
-   * List of suite results.
-   * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - int getSuitesCount(); - /** - *
-   * List of suite results.
-   * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - java.util.List - getSuitesOrBuilderList(); - /** - *
-   * List of suite results.
-   * 
- * - * repeated .buf.validate.conformance.harness.SuiteResults suites = 3 [json_name = "suites"]; - */ - build.buf.validate.conformance.harness.SuiteResultsOrBuilder getSuitesOrBuilder( - int index); - - /** - *
-   * Options used to generate this result.
-   * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - * @return Whether the options field is set. - */ - boolean hasOptions(); - /** - *
-   * Options used to generate this result.
-   * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - * @return The options. - */ - build.buf.validate.conformance.harness.ResultOptions getOptions(); - /** - *
-   * Options used to generate this result.
-   * 
- * - * .buf.validate.conformance.harness.ResultOptions options = 4 [json_name = "options"]; - */ - build.buf.validate.conformance.harness.ResultOptionsOrBuilder getOptionsOrBuilder(); - - /** - *
-   * Count of expected failures.
-   * 
- * - * int32 expected_failures = 5 [json_name = "expectedFailures"]; - * @return The expectedFailures. - */ - int getExpectedFailures(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultsProto.java b/conformance/src/main/java/build/buf/validate/conformance/harness/ResultsProto.java deleted file mode 100644 index 4ee93570..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/ResultsProto.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/results.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -public final class ResultsProto { - private ResultsProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - ResultsProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_harness_ResultOptions_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_harness_ResultOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_harness_ResultSet_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_harness_ResultSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_harness_SuiteResults_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_harness_SuiteResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_conformance_harness_CaseResult_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_conformance_harness_CaseResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.buf/validate/conformance/harness/resul" + - "ts.proto\022 buf.validate.conformance.harne" + - "ss\032.buf/validate/conformance/harness/har" + - "ness.proto\032\031google/protobuf/any.proto\032 g" + - "oogle/protobuf/descriptor.proto\"\305\001\n\rResu" + - "ltOptions\022!\n\014suite_filter\030\001 \001(\tR\013suiteFi" + - "lter\022\037\n\013case_filter\030\002 \001(\tR\ncaseFilter\022\030\n" + - "\007verbose\030\003 \001(\010R\007verbose\022%\n\016strict_messag" + - "e\030\005 \001(\010R\rstrictMessage\022!\n\014strict_error\030\006" + - " \001(\010R\013strictErrorJ\004\010\004\020\005R\006strict\"\205\002\n\tResu" + - "ltSet\022\034\n\tsuccesses\030\001 \001(\005R\tsuccesses\022\032\n\010f" + - "ailures\030\002 \001(\005R\010failures\022F\n\006suites\030\003 \003(\0132" + - "..buf.validate.conformance.harness.Suite" + - "ResultsR\006suites\022I\n\007options\030\004 \001(\0132/.buf.v" + - "alidate.conformance.harness.ResultOption" + - "sR\007options\022+\n\021expected_failures\030\005 \001(\005R\020e" + - "xpectedFailures\"\207\002\n\014SuiteResults\022\022\n\004name" + - "\030\001 \001(\tR\004name\022\034\n\tsuccesses\030\002 \001(\005R\tsuccess" + - "es\022\032\n\010failures\030\003 \001(\005R\010failures\022B\n\005cases\030" + - "\004 \003(\0132,.buf.validate.conformance.harness" + - ".CaseResultR\005cases\0228\n\005fdset\030\005 \001(\0132\".goog" + - "le.protobuf.FileDescriptorSetR\005fdset\022+\n\021" + - "expected_failures\030\006 \001(\005R\020expectedFailure" + - "s\"\227\002\n\nCaseResult\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007" + - "success\030\002 \001(\010R\007success\022D\n\006wanted\030\003 \001(\0132," + - ".buf.validate.conformance.harness.TestRe" + - "sultR\006wanted\022>\n\003got\030\004 \001(\0132,.buf.validate" + - ".conformance.harness.TestResultR\003got\022*\n\005" + - "input\030\005 \001(\0132\024.google.protobuf.AnyR\005input" + - "\022)\n\020expected_failure\030\006 \001(\010R\017expectedFail" + - "ureB\332\001\n&build.buf.validate.conformance.h" + - "arnessB\014ResultsProtoP\001\242\002\004BVCH\252\002 Buf.Vali" + - "date.Conformance.Harness\312\002 Buf\\Validate\\" + - "Conformance\\Harness\342\002,Buf\\Validate\\Confo" + - "rmance\\Harness\\GPBMetadata\352\002#Buf::Valida" + - "te::Conformance::Harnessb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - build.buf.validate.conformance.harness.HarnessProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.DescriptorProtos.getDescriptor(), - }); - internal_static_buf_validate_conformance_harness_ResultOptions_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_conformance_harness_ResultOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_harness_ResultOptions_descriptor, - new java.lang.String[] { "SuiteFilter", "CaseFilter", "Verbose", "StrictMessage", "StrictError", }); - internal_static_buf_validate_conformance_harness_ResultSet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_conformance_harness_ResultSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_harness_ResultSet_descriptor, - new java.lang.String[] { "Successes", "Failures", "Suites", "Options", "ExpectedFailures", }); - internal_static_buf_validate_conformance_harness_SuiteResults_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_conformance_harness_SuiteResults_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_harness_SuiteResults_descriptor, - new java.lang.String[] { "Name", "Successes", "Failures", "Cases", "Fdset", "ExpectedFailures", }); - internal_static_buf_validate_conformance_harness_CaseResult_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_conformance_harness_CaseResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_conformance_harness_CaseResult_descriptor, - new java.lang.String[] { "Name", "Success", "Wanted", "Got", "Input", "ExpectedFailure", }); - descriptor.resolveAllFeaturesImmutable(); - build.buf.validate.conformance.harness.HarnessProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DescriptorProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResults.java b/conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResults.java deleted file mode 100644 index 1fe8c681..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResults.java +++ /dev/null @@ -1,1482 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/results.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -/** - *
- * A suite result is a single test suite result.
- * 
- * - * Protobuf type {@code buf.validate.conformance.harness.SuiteResults} - */ -public final class SuiteResults extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.harness.SuiteResults) - SuiteResultsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SuiteResults.class.getName()); - } - // Use SuiteResults.newBuilder() to construct. - private SuiteResults(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SuiteResults() { - name_ = ""; - cases_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_SuiteResults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_SuiteResults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.SuiteResults.class, build.buf.validate.conformance.harness.SuiteResults.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * The suite name.
-   * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * The suite name.
-   * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUCCESSES_FIELD_NUMBER = 2; - private int successes_ = 0; - /** - *
-   * Count of successes.
-   * 
- * - * int32 successes = 2 [json_name = "successes"]; - * @return The successes. - */ - @java.lang.Override - public int getSuccesses() { - return successes_; - } - - public static final int FAILURES_FIELD_NUMBER = 3; - private int failures_ = 0; - /** - *
-   * Count of failures.
-   * 
- * - * int32 failures = 3 [json_name = "failures"]; - * @return The failures. - */ - @java.lang.Override - public int getFailures() { - return failures_; - } - - public static final int CASES_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List cases_; - /** - *
-   * List of case results.
-   * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - @java.lang.Override - public java.util.List getCasesList() { - return cases_; - } - /** - *
-   * List of case results.
-   * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - @java.lang.Override - public java.util.List - getCasesOrBuilderList() { - return cases_; - } - /** - *
-   * List of case results.
-   * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - @java.lang.Override - public int getCasesCount() { - return cases_.size(); - } - /** - *
-   * List of case results.
-   * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - @java.lang.Override - public build.buf.validate.conformance.harness.CaseResult getCases(int index) { - return cases_.get(index); - } - /** - *
-   * List of case results.
-   * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - @java.lang.Override - public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder( - int index) { - return cases_.get(index); - } - - public static final int FDSET_FIELD_NUMBER = 5; - private com.google.protobuf.DescriptorProtos.FileDescriptorSet fdset_; - /** - *
-   * The file descriptor set used to generate this result.
-   * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - * @return Whether the fdset field is set. - */ - @java.lang.Override - public boolean hasFdset() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * The file descriptor set used to generate this result.
-   * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - * @return The fdset. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() { - return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; - } - /** - *
-   * The file descriptor set used to generate this result.
-   * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() { - return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; - } - - public static final int EXPECTED_FAILURES_FIELD_NUMBER = 6; - private int expectedFailures_ = 0; - /** - *
-   * Count of expected failures.
-   * 
- * - * int32 expected_failures = 6 [json_name = "expectedFailures"]; - * @return The expectedFailures. - */ - @java.lang.Override - public int getExpectedFailures() { - return expectedFailures_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasFdset()) { - if (!getFdset().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (successes_ != 0) { - output.writeInt32(2, successes_); - } - if (failures_ != 0) { - output.writeInt32(3, failures_); - } - for (int i = 0; i < cases_.size(); i++) { - output.writeMessage(4, cases_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getFdset()); - } - if (expectedFailures_ != 0) { - output.writeInt32(6, expectedFailures_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (successes_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, successes_); - } - if (failures_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, failures_); - } - for (int i = 0; i < cases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, cases_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getFdset()); - } - if (expectedFailures_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, expectedFailures_); - } - 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.harness.SuiteResults)) { - return super.equals(obj); - } - build.buf.validate.conformance.harness.SuiteResults other = (build.buf.validate.conformance.harness.SuiteResults) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getSuccesses() - != other.getSuccesses()) return false; - if (getFailures() - != other.getFailures()) return false; - if (!getCasesList() - .equals(other.getCasesList())) return false; - if (hasFdset() != other.hasFdset()) return false; - if (hasFdset()) { - if (!getFdset() - .equals(other.getFdset())) return false; - } - if (getExpectedFailures() - != other.getExpectedFailures()) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + SUCCESSES_FIELD_NUMBER; - hash = (53 * hash) + getSuccesses(); - hash = (37 * hash) + FAILURES_FIELD_NUMBER; - hash = (53 * hash) + getFailures(); - if (getCasesCount() > 0) { - hash = (37 * hash) + CASES_FIELD_NUMBER; - hash = (53 * hash) + getCasesList().hashCode(); - } - if (hasFdset()) { - hash = (37 * hash) + FDSET_FIELD_NUMBER; - hash = (53 * hash) + getFdset().hashCode(); - } - hash = (37 * hash) + EXPECTED_FAILURES_FIELD_NUMBER; - hash = (53 * hash) + getExpectedFailures(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.harness.SuiteResults parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.SuiteResults 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.harness.SuiteResults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.SuiteResults 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.harness.SuiteResults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.SuiteResults parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.conformance.harness.SuiteResults parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.SuiteResults 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.harness.SuiteResults parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.harness.SuiteResults 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.harness.SuiteResults parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.SuiteResults 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.harness.SuiteResults 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; - } - /** - *
-   * A suite result is a single test suite result.
-   * 
- * - * Protobuf type {@code buf.validate.conformance.harness.SuiteResults} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.harness.SuiteResults) - build.buf.validate.conformance.harness.SuiteResultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_SuiteResults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_SuiteResults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.SuiteResults.class, build.buf.validate.conformance.harness.SuiteResults.Builder.class); - } - - // Construct using build.buf.validate.conformance.harness.SuiteResults.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetCasesFieldBuilder(); - internalGetFdsetFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - successes_ = 0; - failures_ = 0; - if (casesBuilder_ == null) { - cases_ = java.util.Collections.emptyList(); - } else { - cases_ = null; - casesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - fdset_ = null; - if (fdsetBuilder_ != null) { - fdsetBuilder_.dispose(); - fdsetBuilder_ = null; - } - expectedFailures_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.harness.ResultsProto.internal_static_buf_validate_conformance_harness_SuiteResults_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.SuiteResults getDefaultInstanceForType() { - return build.buf.validate.conformance.harness.SuiteResults.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.harness.SuiteResults build() { - build.buf.validate.conformance.harness.SuiteResults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.SuiteResults buildPartial() { - build.buf.validate.conformance.harness.SuiteResults result = new build.buf.validate.conformance.harness.SuiteResults(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.conformance.harness.SuiteResults result) { - if (casesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - cases_ = java.util.Collections.unmodifiableList(cases_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.cases_ = cases_; - } else { - result.cases_ = casesBuilder_.build(); - } - } - - private void buildPartial0(build.buf.validate.conformance.harness.SuiteResults result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.successes_ = successes_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.failures_ = failures_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.fdset_ = fdsetBuilder_ == null - ? fdset_ - : fdsetBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.expectedFailures_ = expectedFailures_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.harness.SuiteResults) { - return mergeFrom((build.buf.validate.conformance.harness.SuiteResults)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.harness.SuiteResults other) { - if (other == build.buf.validate.conformance.harness.SuiteResults.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getSuccesses() != 0) { - setSuccesses(other.getSuccesses()); - } - if (other.getFailures() != 0) { - setFailures(other.getFailures()); - } - if (casesBuilder_ == null) { - if (!other.cases_.isEmpty()) { - if (cases_.isEmpty()) { - cases_ = other.cases_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureCasesIsMutable(); - cases_.addAll(other.cases_); - } - onChanged(); - } - } else { - if (!other.cases_.isEmpty()) { - if (casesBuilder_.isEmpty()) { - casesBuilder_.dispose(); - casesBuilder_ = null; - cases_ = other.cases_; - bitField0_ = (bitField0_ & ~0x00000008); - casesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetCasesFieldBuilder() : null; - } else { - casesBuilder_.addAllMessages(other.cases_); - } - } - } - if (other.hasFdset()) { - mergeFdset(other.getFdset()); - } - if (other.getExpectedFailures() != 0) { - setExpectedFailures(other.getExpectedFailures()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasFdset()) { - if (!getFdset().isInitialized()) { - return false; - } - } - 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: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - successes_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - failures_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - build.buf.validate.conformance.harness.CaseResult m = - input.readMessage( - build.buf.validate.conformance.harness.CaseResult.parser(), - extensionRegistry); - if (casesBuilder_ == null) { - ensureCasesIsMutable(); - cases_.add(m); - } else { - casesBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - input.readMessage( - internalGetFdsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - expectedFailures_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - 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.lang.Object name_ = ""; - /** - *
-     * The suite name.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The suite name.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The suite name.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The suite name.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The suite name.
-     * 
- * - * string name = 1 [json_name = "name"]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int successes_ ; - /** - *
-     * Count of successes.
-     * 
- * - * int32 successes = 2 [json_name = "successes"]; - * @return The successes. - */ - @java.lang.Override - public int getSuccesses() { - return successes_; - } - /** - *
-     * Count of successes.
-     * 
- * - * int32 successes = 2 [json_name = "successes"]; - * @param value The successes to set. - * @return This builder for chaining. - */ - public Builder setSuccesses(int value) { - - successes_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Count of successes.
-     * 
- * - * int32 successes = 2 [json_name = "successes"]; - * @return This builder for chaining. - */ - public Builder clearSuccesses() { - bitField0_ = (bitField0_ & ~0x00000002); - successes_ = 0; - onChanged(); - return this; - } - - private int failures_ ; - /** - *
-     * Count of failures.
-     * 
- * - * int32 failures = 3 [json_name = "failures"]; - * @return The failures. - */ - @java.lang.Override - public int getFailures() { - return failures_; - } - /** - *
-     * Count of failures.
-     * 
- * - * int32 failures = 3 [json_name = "failures"]; - * @param value The failures to set. - * @return This builder for chaining. - */ - public Builder setFailures(int value) { - - failures_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Count of failures.
-     * 
- * - * int32 failures = 3 [json_name = "failures"]; - * @return This builder for chaining. - */ - public Builder clearFailures() { - bitField0_ = (bitField0_ & ~0x00000004); - failures_ = 0; - onChanged(); - return this; - } - - private java.util.List cases_ = - java.util.Collections.emptyList(); - private void ensureCasesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - cases_ = new java.util.ArrayList(cases_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.harness.CaseResult, build.buf.validate.conformance.harness.CaseResult.Builder, build.buf.validate.conformance.harness.CaseResultOrBuilder> casesBuilder_; - - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public java.util.List getCasesList() { - if (casesBuilder_ == null) { - return java.util.Collections.unmodifiableList(cases_); - } else { - return casesBuilder_.getMessageList(); - } - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public int getCasesCount() { - if (casesBuilder_ == null) { - return cases_.size(); - } else { - return casesBuilder_.getCount(); - } - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public build.buf.validate.conformance.harness.CaseResult getCases(int index) { - if (casesBuilder_ == null) { - return cases_.get(index); - } else { - return casesBuilder_.getMessage(index); - } - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public Builder setCases( - int index, build.buf.validate.conformance.harness.CaseResult value) { - if (casesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCasesIsMutable(); - cases_.set(index, value); - onChanged(); - } else { - casesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public Builder setCases( - int index, build.buf.validate.conformance.harness.CaseResult.Builder builderForValue) { - if (casesBuilder_ == null) { - ensureCasesIsMutable(); - cases_.set(index, builderForValue.build()); - onChanged(); - } else { - casesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) { - if (casesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCasesIsMutable(); - cases_.add(value); - onChanged(); - } else { - casesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public Builder addCases( - int index, build.buf.validate.conformance.harness.CaseResult value) { - if (casesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCasesIsMutable(); - cases_.add(index, value); - onChanged(); - } else { - casesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public Builder addCases( - build.buf.validate.conformance.harness.CaseResult.Builder builderForValue) { - if (casesBuilder_ == null) { - ensureCasesIsMutable(); - cases_.add(builderForValue.build()); - onChanged(); - } else { - casesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public Builder addCases( - int index, build.buf.validate.conformance.harness.CaseResult.Builder builderForValue) { - if (casesBuilder_ == null) { - ensureCasesIsMutable(); - cases_.add(index, builderForValue.build()); - onChanged(); - } else { - casesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public Builder addAllCases( - java.lang.Iterable values) { - if (casesBuilder_ == null) { - ensureCasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cases_); - onChanged(); - } else { - casesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public Builder clearCases() { - if (casesBuilder_ == null) { - cases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - casesBuilder_.clear(); - } - return this; - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public Builder removeCases(int index) { - if (casesBuilder_ == null) { - ensureCasesIsMutable(); - cases_.remove(index); - onChanged(); - } else { - casesBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder( - int index) { - return internalGetCasesFieldBuilder().getBuilder(index); - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder( - int index) { - if (casesBuilder_ == null) { - return cases_.get(index); } else { - return casesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public java.util.List - getCasesOrBuilderList() { - if (casesBuilder_ != null) { - return casesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cases_); - } - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() { - return internalGetCasesFieldBuilder().addBuilder( - build.buf.validate.conformance.harness.CaseResult.getDefaultInstance()); - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder( - int index) { - return internalGetCasesFieldBuilder().addBuilder( - index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance()); - } - /** - *
-     * List of case results.
-     * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - public java.util.List - getCasesBuilderList() { - return internalGetCasesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.harness.CaseResult, build.buf.validate.conformance.harness.CaseResult.Builder, build.buf.validate.conformance.harness.CaseResultOrBuilder> - internalGetCasesFieldBuilder() { - if (casesBuilder_ == null) { - casesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.conformance.harness.CaseResult, build.buf.validate.conformance.harness.CaseResult.Builder, build.buf.validate.conformance.harness.CaseResultOrBuilder>( - cases_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - cases_ = null; - } - return casesBuilder_; - } - - private com.google.protobuf.DescriptorProtos.FileDescriptorSet fdset_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> fdsetBuilder_; - /** - *
-     * The file descriptor set used to generate this result.
-     * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - * @return Whether the fdset field is set. - */ - public boolean hasFdset() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * The file descriptor set used to generate this result.
-     * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - * @return The fdset. - */ - public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() { - if (fdsetBuilder_ == null) { - return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; - } else { - return fdsetBuilder_.getMessage(); - } - } - /** - *
-     * The file descriptor set used to generate this result.
-     * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - */ - public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) { - if (fdsetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fdset_ = value; - } else { - fdsetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The file descriptor set used to generate this result.
-     * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - */ - public Builder setFdset( - com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) { - if (fdsetBuilder_ == null) { - fdset_ = builderForValue.build(); - } else { - fdsetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The file descriptor set used to generate this result.
-     * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - */ - public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) { - if (fdsetBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - fdset_ != null && - fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) { - getFdsetBuilder().mergeFrom(value); - } else { - fdset_ = value; - } - } else { - fdsetBuilder_.mergeFrom(value); - } - if (fdset_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - *
-     * The file descriptor set used to generate this result.
-     * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - */ - public Builder clearFdset() { - bitField0_ = (bitField0_ & ~0x00000010); - fdset_ = null; - if (fdsetBuilder_ != null) { - fdsetBuilder_.dispose(); - fdsetBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The file descriptor set used to generate this result.
-     * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - */ - public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetFdsetFieldBuilder().getBuilder(); - } - /** - *
-     * The file descriptor set used to generate this result.
-     * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - */ - public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() { - if (fdsetBuilder_ != null) { - return fdsetBuilder_.getMessageOrBuilder(); - } else { - return fdset_ == null ? - com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; - } - } - /** - *
-     * The file descriptor set used to generate this result.
-     * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> - internalGetFdsetFieldBuilder() { - if (fdsetBuilder_ == null) { - fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>( - getFdset(), - getParentForChildren(), - isClean()); - fdset_ = null; - } - return fdsetBuilder_; - } - - private int expectedFailures_ ; - /** - *
-     * Count of expected failures.
-     * 
- * - * int32 expected_failures = 6 [json_name = "expectedFailures"]; - * @return The expectedFailures. - */ - @java.lang.Override - public int getExpectedFailures() { - return expectedFailures_; - } - /** - *
-     * Count of expected failures.
-     * 
- * - * int32 expected_failures = 6 [json_name = "expectedFailures"]; - * @param value The expectedFailures to set. - * @return This builder for chaining. - */ - public Builder setExpectedFailures(int value) { - - expectedFailures_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Count of expected failures.
-     * 
- * - * int32 expected_failures = 6 [json_name = "expectedFailures"]; - * @return This builder for chaining. - */ - public Builder clearExpectedFailures() { - bitField0_ = (bitField0_ & ~0x00000020); - expectedFailures_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.SuiteResults) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.harness.SuiteResults) - private static final build.buf.validate.conformance.harness.SuiteResults DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.harness.SuiteResults(); - } - - public static build.buf.validate.conformance.harness.SuiteResults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuiteResults 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.harness.SuiteResults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResultsOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResultsOrBuilder.java deleted file mode 100644 index cabfbf27..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/SuiteResultsOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/results.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -public interface SuiteResultsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.harness.SuiteResults) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The suite name.
-   * 
- * - * string name = 1 [json_name = "name"]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * The suite name.
-   * 
- * - * string name = 1 [json_name = "name"]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Count of successes.
-   * 
- * - * int32 successes = 2 [json_name = "successes"]; - * @return The successes. - */ - int getSuccesses(); - - /** - *
-   * Count of failures.
-   * 
- * - * int32 failures = 3 [json_name = "failures"]; - * @return The failures. - */ - int getFailures(); - - /** - *
-   * List of case results.
-   * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - java.util.List - getCasesList(); - /** - *
-   * List of case results.
-   * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - build.buf.validate.conformance.harness.CaseResult getCases(int index); - /** - *
-   * List of case results.
-   * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - int getCasesCount(); - /** - *
-   * List of case results.
-   * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - java.util.List - getCasesOrBuilderList(); - /** - *
-   * List of case results.
-   * 
- * - * repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; - */ - build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder( - int index); - - /** - *
-   * The file descriptor set used to generate this result.
-   * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - * @return Whether the fdset field is set. - */ - boolean hasFdset(); - /** - *
-   * The file descriptor set used to generate this result.
-   * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - * @return The fdset. - */ - com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset(); - /** - *
-   * The file descriptor set used to generate this result.
-   * 
- * - * .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"]; - */ - com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder(); - - /** - *
-   * Count of expected failures.
-   * 
- * - * int32 expected_failures = 6 [json_name = "expectedFailures"]; - * @return The expectedFailures. - */ - int getExpectedFailures(); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequest.java b/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequest.java deleted file mode 100644 index dec9a911..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequest.java +++ /dev/null @@ -1,887 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/harness.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -/** - *
- * TestConformanceRequest is the request for Conformance Tests.
- * The FileDescriptorSet is the FileDescriptorSet to test against.
- * The cases map is a map of case name to the Any message that represents the case.
- * 
- * - * Protobuf type {@code buf.validate.conformance.harness.TestConformanceRequest} - */ -public final class TestConformanceRequest extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.harness.TestConformanceRequest) - TestConformanceRequestOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TestConformanceRequest.class.getName()); - } - // Use TestConformanceRequest.newBuilder() to construct. - private TestConformanceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TestConformanceRequest() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetCases(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.TestConformanceRequest.class, build.buf.validate.conformance.harness.TestConformanceRequest.Builder.class); - } - - private int bitField0_; - public static final int FDSET_FIELD_NUMBER = 2; - private com.google.protobuf.DescriptorProtos.FileDescriptorSet fdset_; - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - * @return Whether the fdset field is set. - */ - @java.lang.Override - public boolean hasFdset() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - * @return The fdset. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() { - return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; - } - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() { - return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; - } - - public static final int CASES_FIELD_NUMBER = 3; - private static final class CasesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Any> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceRequest_CasesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Any.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Any> cases_; - private com.google.protobuf.MapField - internalGetCases() { - if (cases_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CasesDefaultEntryHolder.defaultEntry); - } - return cases_; - } - public int getCasesCount() { - return internalGetCases().getMap().size(); - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - @java.lang.Override - public boolean containsCases( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCases().getMap().containsKey(key); - } - /** - * Use {@link #getCasesMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCases() { - return getCasesMap(); - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - @java.lang.Override - public java.util.Map getCasesMap() { - return internalGetCases().getMap(); - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - @java.lang.Override - public /* nullable */ -com.google.protobuf.Any getCasesOrDefault( - java.lang.String key, - /* nullable */ -com.google.protobuf.Any defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCases().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - @java.lang.Override - public com.google.protobuf.Any getCasesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCases().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasFdset()) { - if (!getFdset().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getFdset()); - } - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetCases(), - CasesDefaultEntryHolder.defaultEntry, - 3); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFdset()); - } - for (java.util.Map.Entry entry - : internalGetCases().getMap().entrySet()) { - com.google.protobuf.MapEntry - cases__ = CasesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, cases__); - } - 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.harness.TestConformanceRequest)) { - return super.equals(obj); - } - build.buf.validate.conformance.harness.TestConformanceRequest other = (build.buf.validate.conformance.harness.TestConformanceRequest) obj; - - if (hasFdset() != other.hasFdset()) return false; - if (hasFdset()) { - if (!getFdset() - .equals(other.getFdset())) return false; - } - if (!internalGetCases().equals( - other.internalGetCases())) 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 (hasFdset()) { - hash = (37 * hash) + FDSET_FIELD_NUMBER; - hash = (53 * hash) + getFdset().hashCode(); - } - if (!internalGetCases().getMap().isEmpty()) { - hash = (37 * hash) + CASES_FIELD_NUMBER; - hash = (53 * hash) + internalGetCases().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.harness.TestConformanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.TestConformanceRequest 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.harness.TestConformanceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.TestConformanceRequest 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.harness.TestConformanceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.TestConformanceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.conformance.harness.TestConformanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.TestConformanceRequest 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.harness.TestConformanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.harness.TestConformanceRequest 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.harness.TestConformanceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.TestConformanceRequest 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.harness.TestConformanceRequest 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; - } - /** - *
-   * TestConformanceRequest is the request for Conformance Tests.
-   * The FileDescriptorSet is the FileDescriptorSet to test against.
-   * The cases map is a map of case name to the Any message that represents the case.
-   * 
- * - * Protobuf type {@code buf.validate.conformance.harness.TestConformanceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.harness.TestConformanceRequest) - build.buf.validate.conformance.harness.TestConformanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetCases(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMutableCases(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.TestConformanceRequest.class, build.buf.validate.conformance.harness.TestConformanceRequest.Builder.class); - } - - // Construct using build.buf.validate.conformance.harness.TestConformanceRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetFdsetFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fdset_ = null; - if (fdsetBuilder_ != null) { - fdsetBuilder_.dispose(); - fdsetBuilder_ = null; - } - internalGetMutableCases().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceRequest_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.TestConformanceRequest getDefaultInstanceForType() { - return build.buf.validate.conformance.harness.TestConformanceRequest.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.harness.TestConformanceRequest build() { - build.buf.validate.conformance.harness.TestConformanceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.TestConformanceRequest buildPartial() { - build.buf.validate.conformance.harness.TestConformanceRequest result = new build.buf.validate.conformance.harness.TestConformanceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.harness.TestConformanceRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.fdset_ = fdsetBuilder_ == null - ? fdset_ - : fdsetBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.cases_ = internalGetCases().build(CasesDefaultEntryHolder.defaultEntry); - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.harness.TestConformanceRequest) { - return mergeFrom((build.buf.validate.conformance.harness.TestConformanceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.harness.TestConformanceRequest other) { - if (other == build.buf.validate.conformance.harness.TestConformanceRequest.getDefaultInstance()) return this; - if (other.hasFdset()) { - mergeFdset(other.getFdset()); - } - internalGetMutableCases().mergeFrom( - other.internalGetCases()); - bitField0_ |= 0x00000002; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasFdset()) { - if (!getFdset().isInitialized()) { - return false; - } - } - 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 18: { - input.readMessage( - internalGetFdsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - cases__ = input.readMessage( - CasesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableCases().ensureBuilderMap().put( - cases__.getKey(), cases__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 26 - 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 com.google.protobuf.DescriptorProtos.FileDescriptorSet fdset_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> fdsetBuilder_; - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - * @return Whether the fdset field is set. - */ - public boolean hasFdset() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - * @return The fdset. - */ - public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() { - if (fdsetBuilder_ == null) { - return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; - } else { - return fdsetBuilder_.getMessage(); - } - } - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - */ - public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) { - if (fdsetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fdset_ = value; - } else { - fdsetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - */ - public Builder setFdset( - com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) { - if (fdsetBuilder_ == null) { - fdset_ = builderForValue.build(); - } else { - fdsetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - */ - public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) { - if (fdsetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - fdset_ != null && - fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) { - getFdsetBuilder().mergeFrom(value); - } else { - fdset_ = value; - } - } else { - fdsetBuilder_.mergeFrom(value); - } - if (fdset_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - */ - public Builder clearFdset() { - bitField0_ = (bitField0_ & ~0x00000001); - fdset_ = null; - if (fdsetBuilder_ != null) { - fdsetBuilder_.dispose(); - fdsetBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - */ - public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetFdsetFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - */ - public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() { - if (fdsetBuilder_ != null) { - return fdsetBuilder_.getMessageOrBuilder(); - } else { - return fdset_ == null ? - com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; - } - } - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> - internalGetFdsetFieldBuilder() { - if (fdsetBuilder_ == null) { - fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>( - getFdset(), - getParentForChildren(), - isClean()); - fdset_ = null; - } - return fdsetBuilder_; - } - - private static final class CasesConverter implements com.google.protobuf.MapFieldBuilder.Converter { - @java.lang.Override - public com.google.protobuf.Any build(com.google.protobuf.AnyOrBuilder val) { - if (val instanceof com.google.protobuf.Any) { return (com.google.protobuf.Any) val; } - return ((com.google.protobuf.Any.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry defaultEntry() { - return CasesDefaultEntryHolder.defaultEntry; - } - }; - private static final CasesConverter casesConverter = new CasesConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, com.google.protobuf.AnyOrBuilder, com.google.protobuf.Any, com.google.protobuf.Any.Builder> cases_; - private com.google.protobuf.MapFieldBuilder - internalGetCases() { - if (cases_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(casesConverter); - } - return cases_; - } - private com.google.protobuf.MapFieldBuilder - internalGetMutableCases() { - if (cases_ == null) { - cases_ = new com.google.protobuf.MapFieldBuilder<>(casesConverter); - } - bitField0_ |= 0x00000002; - onChanged(); - return cases_; - } - public int getCasesCount() { - return internalGetCases().ensureBuilderMap().size(); - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - @java.lang.Override - public boolean containsCases( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCases().ensureBuilderMap().containsKey(key); - } - /** - * Use {@link #getCasesMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCases() { - return getCasesMap(); - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - @java.lang.Override - public java.util.Map getCasesMap() { - return internalGetCases().getImmutableMap(); - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - @java.lang.Override - public /* nullable */ -com.google.protobuf.Any getCasesOrDefault( - java.lang.String key, - /* nullable */ -com.google.protobuf.Any defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = internalGetMutableCases().ensureBuilderMap(); - return map.containsKey(key) ? casesConverter.build(map.get(key)) : defaultValue; - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - @java.lang.Override - public com.google.protobuf.Any getCasesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = internalGetMutableCases().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return casesConverter.build(map.get(key)); - } - public Builder clearCases() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableCases().clear(); - return this; - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - public Builder removeCases( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableCases().ensureBuilderMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCases() { - bitField0_ |= 0x00000002; - return internalGetMutableCases().ensureMessageMap(); - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - public Builder putCases( - java.lang.String key, - com.google.protobuf.Any value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableCases().ensureBuilderMap() - .put(key, value); - bitField0_ |= 0x00000002; - return this; - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - public Builder putAllCases( - java.util.Map values) { - for (java.util.Map.Entry e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableCases().ensureBuilderMap() - .putAll(values); - bitField0_ |= 0x00000002; - return this; - } - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - public com.google.protobuf.Any.Builder putCasesBuilderIfAbsent( - java.lang.String key) { - java.util.Map builderMap = internalGetMutableCases().ensureBuilderMap(); - com.google.protobuf.AnyOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.protobuf.Any.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.protobuf.Any) { - entry = ((com.google.protobuf.Any) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.protobuf.Any.Builder) entry; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.TestConformanceRequest) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.harness.TestConformanceRequest) - private static final build.buf.validate.conformance.harness.TestConformanceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.harness.TestConformanceRequest(); - } - - public static build.buf.validate.conformance.harness.TestConformanceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestConformanceRequest 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.harness.TestConformanceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequestOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequestOrBuilder.java deleted file mode 100644 index 2981e7c5..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/harness.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -public interface TestConformanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.harness.TestConformanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - * @return Whether the fdset field is set. - */ - boolean hasFdset(); - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - * @return The fdset. - */ - com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset(); - /** - * .google.protobuf.FileDescriptorSet fdset = 2 [json_name = "fdset"]; - */ - com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder(); - - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - int getCasesCount(); - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - boolean containsCases( - java.lang.String key); - /** - * Use {@link #getCasesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCases(); - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - java.util.Map - getCasesMap(); - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - /* nullable */ -com.google.protobuf.Any getCasesOrDefault( - java.lang.String key, - /* nullable */ -com.google.protobuf.Any defaultValue); - /** - * map<string, .google.protobuf.Any> cases = 3 [json_name = "cases"]; - */ - com.google.protobuf.Any getCasesOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponse.java b/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponse.java deleted file mode 100644 index a0e79630..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponse.java +++ /dev/null @@ -1,681 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/harness.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -/** - *
- * TestConformanceResponse is the response for Conformance Tests.
- * The results map is a map of case name to the TestResult.
- * 
- * - * Protobuf type {@code buf.validate.conformance.harness.TestConformanceResponse} - */ -public final class TestConformanceResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.harness.TestConformanceResponse) - TestConformanceResponseOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TestConformanceResponse.class.getName()); - } - // Use TestConformanceResponse.newBuilder() to construct. - private TestConformanceResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TestConformanceResponse() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetResults(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.TestConformanceResponse.class, build.buf.validate.conformance.harness.TestConformanceResponse.Builder.class); - } - - public static final int RESULTS_FIELD_NUMBER = 1; - private static final class ResultsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, build.buf.validate.conformance.harness.TestResult> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceResponse_ResultsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - build.buf.validate.conformance.harness.TestResult.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, build.buf.validate.conformance.harness.TestResult> results_; - private com.google.protobuf.MapField - internalGetResults() { - if (results_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResultsDefaultEntryHolder.defaultEntry); - } - return results_; - } - public int getResultsCount() { - return internalGetResults().getMap().size(); - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - @java.lang.Override - public boolean containsResults( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetResults().getMap().containsKey(key); - } - /** - * Use {@link #getResultsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResults() { - return getResultsMap(); - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - @java.lang.Override - public java.util.Map getResultsMap() { - return internalGetResults().getMap(); - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.harness.TestResult getResultsOrDefault( - java.lang.String key, - /* nullable */ -build.buf.validate.conformance.harness.TestResult defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetResults().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - @java.lang.Override - public build.buf.validate.conformance.harness.TestResult getResultsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetResults().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessage - .serializeStringMapTo( - output, - internalGetResults(), - ResultsDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetResults().getMap().entrySet()) { - com.google.protobuf.MapEntry - results__ = ResultsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, results__); - } - 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.harness.TestConformanceResponse)) { - return super.equals(obj); - } - build.buf.validate.conformance.harness.TestConformanceResponse other = (build.buf.validate.conformance.harness.TestConformanceResponse) obj; - - if (!internalGetResults().equals( - other.internalGetResults())) 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 (!internalGetResults().getMap().isEmpty()) { - hash = (37 * hash) + RESULTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetResults().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.harness.TestConformanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.TestConformanceResponse 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.harness.TestConformanceResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.TestConformanceResponse 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.harness.TestConformanceResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.TestConformanceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.conformance.harness.TestConformanceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.TestConformanceResponse 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.harness.TestConformanceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.harness.TestConformanceResponse 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.harness.TestConformanceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.TestConformanceResponse 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.harness.TestConformanceResponse 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; - } - /** - *
-   * TestConformanceResponse is the response for Conformance Tests.
-   * The results map is a map of case name to the TestResult.
-   * 
- * - * Protobuf type {@code buf.validate.conformance.harness.TestConformanceResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.harness.TestConformanceResponse) - build.buf.validate.conformance.harness.TestConformanceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetResults(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableResults(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.TestConformanceResponse.class, build.buf.validate.conformance.harness.TestConformanceResponse.Builder.class); - } - - // Construct using build.buf.validate.conformance.harness.TestConformanceResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableResults().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestConformanceResponse_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.TestConformanceResponse getDefaultInstanceForType() { - return build.buf.validate.conformance.harness.TestConformanceResponse.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.harness.TestConformanceResponse build() { - build.buf.validate.conformance.harness.TestConformanceResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.TestConformanceResponse buildPartial() { - build.buf.validate.conformance.harness.TestConformanceResponse result = new build.buf.validate.conformance.harness.TestConformanceResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.harness.TestConformanceResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.results_ = internalGetResults().build(ResultsDefaultEntryHolder.defaultEntry); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.harness.TestConformanceResponse) { - return mergeFrom((build.buf.validate.conformance.harness.TestConformanceResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.harness.TestConformanceResponse other) { - if (other == build.buf.validate.conformance.harness.TestConformanceResponse.getDefaultInstance()) return this; - internalGetMutableResults().mergeFrom( - other.internalGetResults()); - bitField0_ |= 0x00000001; - 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.MapEntry - results__ = input.readMessage( - ResultsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableResults().ensureBuilderMap().put( - results__.getKey(), results__.getValue()); - bitField0_ |= 0x00000001; - 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 static final class ResultsConverter implements com.google.protobuf.MapFieldBuilder.Converter { - @java.lang.Override - public build.buf.validate.conformance.harness.TestResult build(build.buf.validate.conformance.harness.TestResultOrBuilder val) { - if (val instanceof build.buf.validate.conformance.harness.TestResult) { return (build.buf.validate.conformance.harness.TestResult) val; } - return ((build.buf.validate.conformance.harness.TestResult.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry defaultEntry() { - return ResultsDefaultEntryHolder.defaultEntry; - } - }; - private static final ResultsConverter resultsConverter = new ResultsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, build.buf.validate.conformance.harness.TestResultOrBuilder, build.buf.validate.conformance.harness.TestResult, build.buf.validate.conformance.harness.TestResult.Builder> results_; - private com.google.protobuf.MapFieldBuilder - internalGetResults() { - if (results_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(resultsConverter); - } - return results_; - } - private com.google.protobuf.MapFieldBuilder - internalGetMutableResults() { - if (results_ == null) { - results_ = new com.google.protobuf.MapFieldBuilder<>(resultsConverter); - } - bitField0_ |= 0x00000001; - onChanged(); - return results_; - } - public int getResultsCount() { - return internalGetResults().ensureBuilderMap().size(); - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - @java.lang.Override - public boolean containsResults( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetResults().ensureBuilderMap().containsKey(key); - } - /** - * Use {@link #getResultsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResults() { - return getResultsMap(); - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - @java.lang.Override - public java.util.Map getResultsMap() { - return internalGetResults().getImmutableMap(); - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - @java.lang.Override - public /* nullable */ -build.buf.validate.conformance.harness.TestResult getResultsOrDefault( - java.lang.String key, - /* nullable */ -build.buf.validate.conformance.harness.TestResult defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = internalGetMutableResults().ensureBuilderMap(); - return map.containsKey(key) ? resultsConverter.build(map.get(key)) : defaultValue; - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - @java.lang.Override - public build.buf.validate.conformance.harness.TestResult getResultsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = internalGetMutableResults().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return resultsConverter.build(map.get(key)); - } - public Builder clearResults() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableResults().clear(); - return this; - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - public Builder removeResults( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableResults().ensureBuilderMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableResults() { - bitField0_ |= 0x00000001; - return internalGetMutableResults().ensureMessageMap(); - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - public Builder putResults( - java.lang.String key, - build.buf.validate.conformance.harness.TestResult value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableResults().ensureBuilderMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - public Builder putAllResults( - java.util.Map values) { - for (java.util.Map.Entry e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableResults().ensureBuilderMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - public build.buf.validate.conformance.harness.TestResult.Builder putResultsBuilderIfAbsent( - java.lang.String key) { - java.util.Map builderMap = internalGetMutableResults().ensureBuilderMap(); - build.buf.validate.conformance.harness.TestResultOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = build.buf.validate.conformance.harness.TestResult.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof build.buf.validate.conformance.harness.TestResult) { - entry = ((build.buf.validate.conformance.harness.TestResult) entry).toBuilder(); - builderMap.put(key, entry); - } - return (build.buf.validate.conformance.harness.TestResult.Builder) entry; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.TestConformanceResponse) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.harness.TestConformanceResponse) - private static final build.buf.validate.conformance.harness.TestConformanceResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.harness.TestConformanceResponse(); - } - - public static build.buf.validate.conformance.harness.TestConformanceResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestConformanceResponse 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.harness.TestConformanceResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponseOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponseOrBuilder.java deleted file mode 100644 index 8c67cbad..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestConformanceResponseOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/harness.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -public interface TestConformanceResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.harness.TestConformanceResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - int getResultsCount(); - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - boolean containsResults( - java.lang.String key); - /** - * Use {@link #getResultsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getResults(); - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - java.util.Map - getResultsMap(); - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - /* nullable */ -build.buf.validate.conformance.harness.TestResult getResultsOrDefault( - java.lang.String key, - /* nullable */ -build.buf.validate.conformance.harness.TestResult defaultValue); - /** - * map<string, .buf.validate.conformance.harness.TestResult> results = 1 [json_name = "results"]; - */ - build.buf.validate.conformance.harness.TestResult getResultsOrThrow( - java.lang.String key); -} diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/TestResult.java b/conformance/src/main/java/build/buf/validate/conformance/harness/TestResult.java deleted file mode 100644 index f6c3ad09..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestResult.java +++ /dev/null @@ -1,1447 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/harness.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -/** - *
- * TestResult is the result of a single test. Only one of the fields will be set.
- * 
- * - * Protobuf type {@code buf.validate.conformance.harness.TestResult} - */ -public final class TestResult extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.conformance.harness.TestResult) - TestResultOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TestResult.class.getName()); - } - // Use TestResult.newBuilder() to construct. - private TestResult(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TestResult() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.TestResult.class, build.buf.validate.conformance.harness.TestResult.Builder.class); - } - - private int resultCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object result_; - public enum ResultCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - SUCCESS(1), - VALIDATION_ERROR(2), - COMPILATION_ERROR(3), - RUNTIME_ERROR(4), - UNEXPECTED_ERROR(5), - RESULT_NOT_SET(0); - private final int value; - private ResultCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResultCase valueOf(int value) { - return forNumber(value); - } - - public static ResultCase forNumber(int value) { - switch (value) { - case 1: return SUCCESS; - case 2: return VALIDATION_ERROR; - case 3: return COMPILATION_ERROR; - case 4: return RUNTIME_ERROR; - case 5: return UNEXPECTED_ERROR; - case 0: return RESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); - } - - public static final int SUCCESS_FIELD_NUMBER = 1; - /** - *
-   * success is true if the test succeeded.
-   * 
- * - * bool success = 1 [json_name = "success"]; - * @return Whether the success field is set. - */ - @java.lang.Override - public boolean hasSuccess() { - return resultCase_ == 1; - } - /** - *
-   * success is true if the test succeeded.
-   * 
- * - * bool success = 1 [json_name = "success"]; - * @return The success. - */ - @java.lang.Override - public boolean getSuccess() { - if (resultCase_ == 1) { - return (java.lang.Boolean) result_; - } - return false; - } - - public static final int VALIDATION_ERROR_FIELD_NUMBER = 2; - /** - *
-   * validation_error is the error if the test failed due to validation errors.
-   * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - * @return Whether the validationError field is set. - */ - @java.lang.Override - public boolean hasValidationError() { - return resultCase_ == 2; - } - /** - *
-   * validation_error is the error if the test failed due to validation errors.
-   * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - * @return The validationError. - */ - @java.lang.Override - public build.buf.validate.Violations getValidationError() { - if (resultCase_ == 2) { - return (build.buf.validate.Violations) result_; - } - return build.buf.validate.Violations.getDefaultInstance(); - } - /** - *
-   * validation_error is the error if the test failed due to validation errors.
-   * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - */ - @java.lang.Override - public build.buf.validate.ViolationsOrBuilder getValidationErrorOrBuilder() { - if (resultCase_ == 2) { - return (build.buf.validate.Violations) result_; - } - return build.buf.validate.Violations.getDefaultInstance(); - } - - public static final int COMPILATION_ERROR_FIELD_NUMBER = 3; - /** - *
-   * compilation_error is the error if the test failed due to compilation errors.
-   * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @return Whether the compilationError field is set. - */ - public boolean hasCompilationError() { - return resultCase_ == 3; - } - /** - *
-   * compilation_error is the error if the test failed due to compilation errors.
-   * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @return The compilationError. - */ - public java.lang.String getCompilationError() { - java.lang.Object ref = ""; - if (resultCase_ == 3) { - ref = result_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (resultCase_ == 3) { - result_ = s; - } - return s; - } - } - /** - *
-   * compilation_error is the error if the test failed due to compilation errors.
-   * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @return The bytes for compilationError. - */ - public com.google.protobuf.ByteString - getCompilationErrorBytes() { - java.lang.Object ref = ""; - if (resultCase_ == 3) { - ref = result_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (resultCase_ == 3) { - result_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RUNTIME_ERROR_FIELD_NUMBER = 4; - /** - *
-   * runtime_error is the error if the test failed due to runtime errors.
-   * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @return Whether the runtimeError field is set. - */ - public boolean hasRuntimeError() { - return resultCase_ == 4; - } - /** - *
-   * runtime_error is the error if the test failed due to runtime errors.
-   * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @return The runtimeError. - */ - public java.lang.String getRuntimeError() { - java.lang.Object ref = ""; - if (resultCase_ == 4) { - ref = result_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (resultCase_ == 4) { - result_ = s; - } - return s; - } - } - /** - *
-   * runtime_error is the error if the test failed due to runtime errors.
-   * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @return The bytes for runtimeError. - */ - public com.google.protobuf.ByteString - getRuntimeErrorBytes() { - java.lang.Object ref = ""; - if (resultCase_ == 4) { - ref = result_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (resultCase_ == 4) { - result_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNEXPECTED_ERROR_FIELD_NUMBER = 5; - /** - *
-   * unexpected_error is any other error that may have occurred.
-   * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @return Whether the unexpectedError field is set. - */ - public boolean hasUnexpectedError() { - return resultCase_ == 5; - } - /** - *
-   * unexpected_error is any other error that may have occurred.
-   * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @return The unexpectedError. - */ - public java.lang.String getUnexpectedError() { - java.lang.Object ref = ""; - if (resultCase_ == 5) { - ref = result_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (resultCase_ == 5) { - result_ = s; - } - return s; - } - } - /** - *
-   * unexpected_error is any other error that may have occurred.
-   * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @return The bytes for unexpectedError. - */ - public com.google.protobuf.ByteString - getUnexpectedErrorBytes() { - java.lang.Object ref = ""; - if (resultCase_ == 5) { - ref = result_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (resultCase_ == 5) { - result_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (resultCase_ == 1) { - output.writeBool( - 1, (boolean)((java.lang.Boolean) result_)); - } - if (resultCase_ == 2) { - output.writeMessage(2, (build.buf.validate.Violations) result_); - } - if (resultCase_ == 3) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, result_); - } - if (resultCase_ == 4) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, result_); - } - if (resultCase_ == 5) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, result_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resultCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 1, (boolean)((java.lang.Boolean) result_)); - } - if (resultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (build.buf.validate.Violations) result_); - } - if (resultCase_ == 3) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, result_); - } - if (resultCase_ == 4) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, result_); - } - if (resultCase_ == 5) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, result_); - } - 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.harness.TestResult)) { - return super.equals(obj); - } - build.buf.validate.conformance.harness.TestResult other = (build.buf.validate.conformance.harness.TestResult) obj; - - if (!getResultCase().equals(other.getResultCase())) return false; - switch (resultCase_) { - case 1: - if (getSuccess() - != other.getSuccess()) return false; - break; - case 2: - if (!getValidationError() - .equals(other.getValidationError())) return false; - break; - case 3: - if (!getCompilationError() - .equals(other.getCompilationError())) return false; - break; - case 4: - if (!getRuntimeError() - .equals(other.getRuntimeError())) return false; - break; - case 5: - if (!getUnexpectedError() - .equals(other.getUnexpectedError())) return false; - break; - case 0: - default: - } - 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(); - switch (resultCase_) { - case 1: - hash = (37 * hash) + SUCCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSuccess()); - break; - case 2: - hash = (37 * hash) + VALIDATION_ERROR_FIELD_NUMBER; - hash = (53 * hash) + getValidationError().hashCode(); - break; - case 3: - hash = (37 * hash) + COMPILATION_ERROR_FIELD_NUMBER; - hash = (53 * hash) + getCompilationError().hashCode(); - break; - case 4: - hash = (37 * hash) + RUNTIME_ERROR_FIELD_NUMBER; - hash = (53 * hash) + getRuntimeError().hashCode(); - break; - case 5: - hash = (37 * hash) + UNEXPECTED_ERROR_FIELD_NUMBER; - hash = (53 * hash) + getUnexpectedError().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.conformance.harness.TestResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.TestResult 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.harness.TestResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.TestResult 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.harness.TestResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.conformance.harness.TestResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.conformance.harness.TestResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.TestResult 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.harness.TestResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.conformance.harness.TestResult 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.harness.TestResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.conformance.harness.TestResult 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.harness.TestResult 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; - } - /** - *
-   * TestResult is the result of a single test. Only one of the fields will be set.
-   * 
- * - * Protobuf type {@code buf.validate.conformance.harness.TestResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.conformance.harness.TestResult) - build.buf.validate.conformance.harness.TestResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.conformance.harness.TestResult.class, build.buf.validate.conformance.harness.TestResult.Builder.class); - } - - // Construct using build.buf.validate.conformance.harness.TestResult.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (validationErrorBuilder_ != null) { - validationErrorBuilder_.clear(); - } - resultCase_ = 0; - result_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.conformance.harness.HarnessProto.internal_static_buf_validate_conformance_harness_TestResult_descriptor; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.TestResult getDefaultInstanceForType() { - return build.buf.validate.conformance.harness.TestResult.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.conformance.harness.TestResult build() { - build.buf.validate.conformance.harness.TestResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.conformance.harness.TestResult buildPartial() { - build.buf.validate.conformance.harness.TestResult result = new build.buf.validate.conformance.harness.TestResult(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.conformance.harness.TestResult result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.conformance.harness.TestResult result) { - result.resultCase_ = resultCase_; - result.result_ = this.result_; - if (resultCase_ == 2 && - validationErrorBuilder_ != null) { - result.result_ = validationErrorBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.conformance.harness.TestResult) { - return mergeFrom((build.buf.validate.conformance.harness.TestResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.conformance.harness.TestResult other) { - if (other == build.buf.validate.conformance.harness.TestResult.getDefaultInstance()) return this; - switch (other.getResultCase()) { - case SUCCESS: { - setSuccess(other.getSuccess()); - break; - } - case VALIDATION_ERROR: { - mergeValidationError(other.getValidationError()); - break; - } - case COMPILATION_ERROR: { - resultCase_ = 3; - result_ = other.result_; - onChanged(); - break; - } - case RUNTIME_ERROR: { - resultCase_ = 4; - result_ = other.result_; - onChanged(); - break; - } - case UNEXPECTED_ERROR: { - resultCase_ = 5; - result_ = other.result_; - onChanged(); - break; - } - case RESULT_NOT_SET: { - break; - } - } - 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 8: { - result_ = input.readBool(); - resultCase_ = 1; - break; - } // case 8 - case 18: { - input.readMessage( - internalGetValidationErrorFieldBuilder().getBuilder(), - extensionRegistry); - resultCase_ = 2; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - resultCase_ = 3; - result_ = s; - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - resultCase_ = 4; - result_ = s; - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - resultCase_ = 5; - result_ = s; - break; - } // case 42 - 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 resultCase_ = 0; - private java.lang.Object result_; - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); - } - - public Builder clearResult() { - resultCase_ = 0; - result_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - *
-     * success is true if the test succeeded.
-     * 
- * - * bool success = 1 [json_name = "success"]; - * @return Whether the success field is set. - */ - public boolean hasSuccess() { - return resultCase_ == 1; - } - /** - *
-     * success is true if the test succeeded.
-     * 
- * - * bool success = 1 [json_name = "success"]; - * @return The success. - */ - public boolean getSuccess() { - if (resultCase_ == 1) { - return (java.lang.Boolean) result_; - } - return false; - } - /** - *
-     * success is true if the test succeeded.
-     * 
- * - * bool success = 1 [json_name = "success"]; - * @param value The success to set. - * @return This builder for chaining. - */ - public Builder setSuccess(boolean value) { - - resultCase_ = 1; - result_ = value; - onChanged(); - return this; - } - /** - *
-     * success is true if the test succeeded.
-     * 
- * - * bool success = 1 [json_name = "success"]; - * @return This builder for chaining. - */ - public Builder clearSuccess() { - if (resultCase_ == 1) { - resultCase_ = 0; - result_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Violations, build.buf.validate.Violations.Builder, build.buf.validate.ViolationsOrBuilder> validationErrorBuilder_; - /** - *
-     * validation_error is the error if the test failed due to validation errors.
-     * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - * @return Whether the validationError field is set. - */ - @java.lang.Override - public boolean hasValidationError() { - return resultCase_ == 2; - } - /** - *
-     * validation_error is the error if the test failed due to validation errors.
-     * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - * @return The validationError. - */ - @java.lang.Override - public build.buf.validate.Violations getValidationError() { - if (validationErrorBuilder_ == null) { - if (resultCase_ == 2) { - return (build.buf.validate.Violations) result_; - } - return build.buf.validate.Violations.getDefaultInstance(); - } else { - if (resultCase_ == 2) { - return validationErrorBuilder_.getMessage(); - } - return build.buf.validate.Violations.getDefaultInstance(); - } - } - /** - *
-     * validation_error is the error if the test failed due to validation errors.
-     * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - */ - public Builder setValidationError(build.buf.validate.Violations value) { - if (validationErrorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - result_ = value; - onChanged(); - } else { - validationErrorBuilder_.setMessage(value); - } - resultCase_ = 2; - return this; - } - /** - *
-     * validation_error is the error if the test failed due to validation errors.
-     * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - */ - public Builder setValidationError( - build.buf.validate.Violations.Builder builderForValue) { - if (validationErrorBuilder_ == null) { - result_ = builderForValue.build(); - onChanged(); - } else { - validationErrorBuilder_.setMessage(builderForValue.build()); - } - resultCase_ = 2; - return this; - } - /** - *
-     * validation_error is the error if the test failed due to validation errors.
-     * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - */ - public Builder mergeValidationError(build.buf.validate.Violations value) { - if (validationErrorBuilder_ == null) { - if (resultCase_ == 2 && - result_ != build.buf.validate.Violations.getDefaultInstance()) { - result_ = build.buf.validate.Violations.newBuilder((build.buf.validate.Violations) result_) - .mergeFrom(value).buildPartial(); - } else { - result_ = value; - } - onChanged(); - } else { - if (resultCase_ == 2) { - validationErrorBuilder_.mergeFrom(value); - } else { - validationErrorBuilder_.setMessage(value); - } - } - resultCase_ = 2; - return this; - } - /** - *
-     * validation_error is the error if the test failed due to validation errors.
-     * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - */ - public Builder clearValidationError() { - if (validationErrorBuilder_ == null) { - if (resultCase_ == 2) { - resultCase_ = 0; - result_ = null; - onChanged(); - } - } else { - if (resultCase_ == 2) { - resultCase_ = 0; - result_ = null; - } - validationErrorBuilder_.clear(); - } - return this; - } - /** - *
-     * validation_error is the error if the test failed due to validation errors.
-     * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - */ - public build.buf.validate.Violations.Builder getValidationErrorBuilder() { - return internalGetValidationErrorFieldBuilder().getBuilder(); - } - /** - *
-     * validation_error is the error if the test failed due to validation errors.
-     * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - */ - @java.lang.Override - public build.buf.validate.ViolationsOrBuilder getValidationErrorOrBuilder() { - if ((resultCase_ == 2) && (validationErrorBuilder_ != null)) { - return validationErrorBuilder_.getMessageOrBuilder(); - } else { - if (resultCase_ == 2) { - return (build.buf.validate.Violations) result_; - } - return build.buf.validate.Violations.getDefaultInstance(); - } - } - /** - *
-     * validation_error is the error if the test failed due to validation errors.
-     * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Violations, build.buf.validate.Violations.Builder, build.buf.validate.ViolationsOrBuilder> - internalGetValidationErrorFieldBuilder() { - if (validationErrorBuilder_ == null) { - if (!(resultCase_ == 2)) { - result_ = build.buf.validate.Violations.getDefaultInstance(); - } - validationErrorBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Violations, build.buf.validate.Violations.Builder, build.buf.validate.ViolationsOrBuilder>( - (build.buf.validate.Violations) result_, - getParentForChildren(), - isClean()); - result_ = null; - } - resultCase_ = 2; - onChanged(); - return validationErrorBuilder_; - } - - /** - *
-     * compilation_error is the error if the test failed due to compilation errors.
-     * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @return Whether the compilationError field is set. - */ - @java.lang.Override - public boolean hasCompilationError() { - return resultCase_ == 3; - } - /** - *
-     * compilation_error is the error if the test failed due to compilation errors.
-     * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @return The compilationError. - */ - @java.lang.Override - public java.lang.String getCompilationError() { - java.lang.Object ref = ""; - if (resultCase_ == 3) { - ref = result_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (resultCase_ == 3) { - result_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * compilation_error is the error if the test failed due to compilation errors.
-     * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @return The bytes for compilationError. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCompilationErrorBytes() { - java.lang.Object ref = ""; - if (resultCase_ == 3) { - ref = result_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (resultCase_ == 3) { - result_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * compilation_error is the error if the test failed due to compilation errors.
-     * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @param value The compilationError to set. - * @return This builder for chaining. - */ - public Builder setCompilationError( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - resultCase_ = 3; - result_ = value; - onChanged(); - return this; - } - /** - *
-     * compilation_error is the error if the test failed due to compilation errors.
-     * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @return This builder for chaining. - */ - public Builder clearCompilationError() { - if (resultCase_ == 3) { - resultCase_ = 0; - result_ = null; - onChanged(); - } - return this; - } - /** - *
-     * compilation_error is the error if the test failed due to compilation errors.
-     * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @param value The bytes for compilationError to set. - * @return This builder for chaining. - */ - public Builder setCompilationErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - resultCase_ = 3; - result_ = value; - onChanged(); - return this; - } - - /** - *
-     * runtime_error is the error if the test failed due to runtime errors.
-     * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @return Whether the runtimeError field is set. - */ - @java.lang.Override - public boolean hasRuntimeError() { - return resultCase_ == 4; - } - /** - *
-     * runtime_error is the error if the test failed due to runtime errors.
-     * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @return The runtimeError. - */ - @java.lang.Override - public java.lang.String getRuntimeError() { - java.lang.Object ref = ""; - if (resultCase_ == 4) { - ref = result_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (resultCase_ == 4) { - result_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * runtime_error is the error if the test failed due to runtime errors.
-     * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @return The bytes for runtimeError. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRuntimeErrorBytes() { - java.lang.Object ref = ""; - if (resultCase_ == 4) { - ref = result_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (resultCase_ == 4) { - result_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * runtime_error is the error if the test failed due to runtime errors.
-     * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @param value The runtimeError to set. - * @return This builder for chaining. - */ - public Builder setRuntimeError( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - resultCase_ = 4; - result_ = value; - onChanged(); - return this; - } - /** - *
-     * runtime_error is the error if the test failed due to runtime errors.
-     * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @return This builder for chaining. - */ - public Builder clearRuntimeError() { - if (resultCase_ == 4) { - resultCase_ = 0; - result_ = null; - onChanged(); - } - return this; - } - /** - *
-     * runtime_error is the error if the test failed due to runtime errors.
-     * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @param value The bytes for runtimeError to set. - * @return This builder for chaining. - */ - public Builder setRuntimeErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - resultCase_ = 4; - result_ = value; - onChanged(); - return this; - } - - /** - *
-     * unexpected_error is any other error that may have occurred.
-     * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @return Whether the unexpectedError field is set. - */ - @java.lang.Override - public boolean hasUnexpectedError() { - return resultCase_ == 5; - } - /** - *
-     * unexpected_error is any other error that may have occurred.
-     * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @return The unexpectedError. - */ - @java.lang.Override - public java.lang.String getUnexpectedError() { - java.lang.Object ref = ""; - if (resultCase_ == 5) { - ref = result_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (resultCase_ == 5) { - result_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * unexpected_error is any other error that may have occurred.
-     * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @return The bytes for unexpectedError. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUnexpectedErrorBytes() { - java.lang.Object ref = ""; - if (resultCase_ == 5) { - ref = result_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (resultCase_ == 5) { - result_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * unexpected_error is any other error that may have occurred.
-     * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @param value The unexpectedError to set. - * @return This builder for chaining. - */ - public Builder setUnexpectedError( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - resultCase_ = 5; - result_ = value; - onChanged(); - return this; - } - /** - *
-     * unexpected_error is any other error that may have occurred.
-     * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @return This builder for chaining. - */ - public Builder clearUnexpectedError() { - if (resultCase_ == 5) { - resultCase_ = 0; - result_ = null; - onChanged(); - } - return this; - } - /** - *
-     * unexpected_error is any other error that may have occurred.
-     * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @param value The bytes for unexpectedError to set. - * @return This builder for chaining. - */ - public Builder setUnexpectedErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - resultCase_ = 5; - result_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.conformance.harness.TestResult) - } - - // @@protoc_insertion_point(class_scope:buf.validate.conformance.harness.TestResult) - private static final build.buf.validate.conformance.harness.TestResult DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.conformance.harness.TestResult(); - } - - public static build.buf.validate.conformance.harness.TestResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TestResult 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.harness.TestResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/conformance/src/main/java/build/buf/validate/conformance/harness/TestResultOrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/harness/TestResultOrBuilder.java deleted file mode 100644 index 997c2530..00000000 --- a/conformance/src/main/java/build/buf/validate/conformance/harness/TestResultOrBuilder.java +++ /dev/null @@ -1,146 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/conformance/harness/harness.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate.conformance.harness; - -public interface TestResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.conformance.harness.TestResult) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * success is true if the test succeeded.
-   * 
- * - * bool success = 1 [json_name = "success"]; - * @return Whether the success field is set. - */ - boolean hasSuccess(); - /** - *
-   * success is true if the test succeeded.
-   * 
- * - * bool success = 1 [json_name = "success"]; - * @return The success. - */ - boolean getSuccess(); - - /** - *
-   * validation_error is the error if the test failed due to validation errors.
-   * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - * @return Whether the validationError field is set. - */ - boolean hasValidationError(); - /** - *
-   * validation_error is the error if the test failed due to validation errors.
-   * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - * @return The validationError. - */ - build.buf.validate.Violations getValidationError(); - /** - *
-   * validation_error is the error if the test failed due to validation errors.
-   * 
- * - * .buf.validate.Violations validation_error = 2 [json_name = "validationError"]; - */ - build.buf.validate.ViolationsOrBuilder getValidationErrorOrBuilder(); - - /** - *
-   * compilation_error is the error if the test failed due to compilation errors.
-   * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @return Whether the compilationError field is set. - */ - boolean hasCompilationError(); - /** - *
-   * compilation_error is the error if the test failed due to compilation errors.
-   * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @return The compilationError. - */ - java.lang.String getCompilationError(); - /** - *
-   * compilation_error is the error if the test failed due to compilation errors.
-   * 
- * - * string compilation_error = 3 [json_name = "compilationError"]; - * @return The bytes for compilationError. - */ - com.google.protobuf.ByteString - getCompilationErrorBytes(); - - /** - *
-   * runtime_error is the error if the test failed due to runtime errors.
-   * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @return Whether the runtimeError field is set. - */ - boolean hasRuntimeError(); - /** - *
-   * runtime_error is the error if the test failed due to runtime errors.
-   * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @return The runtimeError. - */ - java.lang.String getRuntimeError(); - /** - *
-   * runtime_error is the error if the test failed due to runtime errors.
-   * 
- * - * string runtime_error = 4 [json_name = "runtimeError"]; - * @return The bytes for runtimeError. - */ - com.google.protobuf.ByteString - getRuntimeErrorBytes(); - - /** - *
-   * unexpected_error is any other error that may have occurred.
-   * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @return Whether the unexpectedError field is set. - */ - boolean hasUnexpectedError(); - /** - *
-   * unexpected_error is any other error that may have occurred.
-   * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @return The unexpectedError. - */ - java.lang.String getUnexpectedError(); - /** - *
-   * unexpected_error is any other error that may have occurred.
-   * 
- * - * string unexpected_error = 5 [json_name = "unexpectedError"]; - * @return The bytes for unexpectedError. - */ - com.google.protobuf.ByteString - getUnexpectedErrorBytes(); - - build.buf.validate.conformance.harness.TestResult.ResultCase getResultCase(); -} diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index a4b76b9530d66f5e68d973ea569d8e19de379189..9bbc975c742b298b441bfb90dbc124400a3751b9 100644 GIT binary patch delta 34744 zcmXuJV_+R@)3u$(Y~1X)v28cDZQE*`9qyPrXx!Mg8{4+s*nWFo&-eX5|IMs5>pW(< z=OJ4cAZzeZfy=9lI!r-0aXh8xKdlGq)X)o#ON+mC6t7t0WtgR!HN%?__cvdWdtQC< zrFQ;?l@%CxY55`8y(t7?1P_O7(6pv~(~l!kHB;z2evtUsGHzEDL+y4*no%g#AsI~i zJ%SFMv{j__Yaxnn2NtDK+!1XZX`CB}DGMIT{#8(iAk*`?VagyHx&|p8npkmz=-n!f z3D+^yIjP`D&Lfz500rpq#dJE`vM|-N7=`uN0z86BpiMcCOCS^;6CUG4o1I)W{q6Gv z1vZB6+|7An``GNoG7D!xJGJd_Qv(M-kdVdsIJ?CrXFEH^@Ts83}QX}1%P6KQFNz^-=) z<|qo#qmR!Nonr$p*Uu1Jo2c~KLTrvc*Yw%L+`IL}y|kd+t{NCrXaP=7C00CO?=pgp z!fyr#XFfFXO6z2TP5P1W{H_`$PKzUiGtJd!U52%yAJf}~tgXF`1#}@y`cZl9y{J-A zyUA&-X)+^N?W=2Fm_ce2w$C6>YWp7MgXa{7=kwwy9guBx26=MnPpuSt zB4}vo3{qxa+*{^oHxe7;JMNMp>F`iNv>0!MsFtnb+5eEZ$WI z0M9}rA&cgQ^Q8t_ojofiHaKuhvIB{B9I}3`Dsy3vW8ibigX}Kc912|UZ1uhH?RuHU=i&ePe2w%65)nBkHr7Bx5WwMZj%1B53sUEj0bxI( zEbS%WOUw)3-B0`-m0!{mk7Q%={B#7C^Si>C04@P|qm7$Oxn3ki)G_oNQBTh6CN6d_kt@UKx1Ezdo5)J0Gdf@TcW|{ zdz1V?a>zldA7_5*Pjn6kDj|sbUqt-7X z5+oajeC}*6oi~vxZ#Ac&85cYcC$5OKUnYPv$Y~>H@)mnTtALo*>>5&=0QMr5{5?S; zCDF=RI@94n(!~sa`4Y{JLxgcvRqMM&T!}rRd~Kl#_X4Z&85;})o4W*g>?TaAVXSWB zeY#!8qz^hmC6FERsjTnC)1Xu1UPd7_LfuNvuVqF8(}Jfar=T-K9iChEuZi-FH(P%u zzLrjpq|?}8?g1Vnw^&{eqw~QY0f*9c71&*<5#9f5JlhJmG~IuV*8~nEBLr`KrvOvs zkOLdlZ58K?u>1{vAU0CtT>Il<I{Q8#A!lO7#73V&iN13;oV?Hl?N5xDK63)Rp3%5reb&3n5OQ|9H zDpYEI%JQXcrs^o*SCFY~iYf-VM<`7Tl@+kQS3tfR-fyH_JDaz5SYEMU-bTCLQ=JVG ze?ZPcj95Tci|bVvSZk3^enqQ?pIcZn24V=YT{cf-L|P&{-%%^ql$)^Vu~)Ida=h$bZAMQEi$MM|&b zY8;D;aEba_`W^=VdKfttW)h_zjRA&0A^T*tF*%+}TZQCOvFqKUu=xf1Bx@T?&~S(J zopXniA?s%}Q4p9~F(Ty{8wt$l4oHeT(#U6sAu4>Q+~a;}I>0>??v*wfke}0TwPaeE zj3gWtfNlD{jRgy7;S9PS?su5pnobi%Zoe0LVpw%`<)V=yT~Ht_UUXIna4YUa;p=-T4df6^;bz%;@|$F zK;s9#K@9hqZCST!66N0uPB+FT*kq22%ovtJ%<9ArE%hcX^!(Lz;3?kCZ@Ak*MThjTOKU&t+uJdN*6t$;DDmh zFStdHO>r)8L@qO}K@H~7Z);#f6WU{@Icn7Tc^|IZ`;K^ek9eCWdync`kWCt2s%D-k zE$wyPCui$@gJJ9Q`CtixbMF(GiCCbm`ut(~ce-G|Ji|PZ3~DHlG`Asn;skVhnu0r_ zgGbdmfl|er`87x@uYmd8A+!-3V95GE4&_^9N@hp4SC4 zeFU+Z3Ou&G! zlvZy|iHIIX3X2-Yb7YJ#{SYE9lCoixO+}(|u+H@Z6Rz-l1eZ7{I;vk+Y7kP7ev>hG zv|(I<4?N{EXMSvRgUhbQhDoP1&A;SEUGGep8*!@4u)fNbl3%cts<&=m5<5pi7M-HQ zPS#svbXWu2n&m*K6jL#@xm3VSMJxnxve5J6w1qGv`2>5<6F!uzGVHP1A(_xI7CWlX zm6*wpT@dmQ&pAlm`r~T;)>m5HK^H^cM`pCSoh{;-CE43rMkg<;HnZaCHfMq1LoN0S z%%7|$y~&k6wpiY@rsdCY9ZDh%9W6Pf=2^p=;iv-Ah^ACxwK3VmI}SMNneTa9n%biL z#GoojRHxa}R2zOo!G@<8M-B6vNp?)@_>#mYku#pe{O~t?~}1 zE8`)=BstIRk5W*xZw@2=89@ds?eQ~mxzkrA`y<$oR8bmaUw=rE%lFmzHY&aY8?<-N zp1|bb$(XrOMmiYy{pH#)D1GOmv5aj_?waU~*h~s{VZ&H_PhoXYz`C8Pss{ymY_hPG zt{NY&nPMH#FRvwR+T0(Xo2#T6;=oFmRgA9b-HVY72d|~YF+6v$F%sY0 zS#^LF7sTj>Itvyi!~){Hit*~3imOG*Xh51qLz+!W~`vUBVeZZ5&k34SD%Ha%5#aclSzMfoGWjiq9#rl}j zOf*8NY>VN(`W!DxaBgjBzj3oUAVlLY{R}tiZZ0o>K$vwr?+eggZ!q74m2t?lkvm9z zAmL2=W$jQJL>SSrbIOibe734A(K^B8`M@uao!`E$p+9D!rBea8Oxb|p5r3o4##G8K zMr0I9y&`21{@m=Bi+4tTJ-xy(DB_mG$kYv+qw&VBM(A9^wP9;Yo*6{#5tMpfa;m2FC+%l@ zk_cKXg-d&YUIj3(x{)aNwYGYjSHiOQK2K#yWt$vQomhbnF;Qhkxl`+;i{&+t{PrY` zp5r28&|UvmUK|&Jlv>oX4>XE87Zns?fiE6c;VP7BixT*6n}Zsbv$wd{gXyrE&Sd zhRlv!-{%~xv6yNvx@3^@JEa$={&giRpqZG>`{93 zEjM}YI1i6JSx$DJa&NWcl0M;igxX;est*nz=W16zMfJ0#+s{>Eo>bxmCi)m*43hU1 z;FL43I}nWszjSS%*F1UYt^)4?D6&pDEt1(atK(DKY1pAkNMG`a>_ec;KiT z^xMBBZ9i=;!_hNGlYp^uR0FW^lcBrs_c3ZvhcctW4*T^-DD^OU{{hK8yHahyGyCK& zL0>f0XW|wvi4f`bNTfO+P*Ao^L@8~ezagtl%l z{(2uo71sT3rKTQ-L#Y5Rsy#x)Eo+HQranZmk;r_Hf7WWkRq&QmP{?}do0X=;3U_UYspffJl7v*Y&GnW;M7$C-5ZlL*MU|q*6`Lvx$g^ z6>MRgOZ>~=OyR3>WL0pgh2_ znG)RNd_;ufNwgQ9L6U@`!5=xjzpK_UfYftHOJ)|hrycrpgn-sCKdQ{BY&OEV3`roT|=4I#PT@q`6Lx=Lem2M&k4ghOSjXPH5<%cDd>`!rE} z5;hyRQ|6o>*}@SFEzb7b%5iY}9vOMRGpIQqt%%m)iSpQ@iSAU+A{CmB^&-04fQlV9 z14~oE=?j{b{xE*X^1H)eezKTE27;-=UfNvQZ0kZ+m76{6xqAyTrEB&Oe`Mx{4N;}5 zXp%ojp}JYx6PE}Z`IBO3qWsZEfVPa4EEz0vnsFNkQ!kG8tcec&)k$+s&XmPErROoNxeTh9fATBk)w1g|9*~&S!%r0u6+FTn}dK-qa7cfK~tkJlV zMi{BX!>lQsZhSQUWAf(M6+McPrv>)j<*T&hC!*?qq{@ABJWX z@!~2Y1rhy*Z|x`DZUBuyayz}Kv5Pzrh}1wiHT{9|fh`Wl%ao=lRSwEFl*wy6BZ%vo zrt9Ocbicd1q$a{F6`4#ZQ6vJa@`}IGz+xUr*=6TF^GR?`u{1to&gqJpwf$LN0?G&! zsLNiG+}M+c{*j-Q4I zO!=lj&~{29Os}hgEv`iJ1tU)dx}=ob>DHSHKX|FVu2Y#pO|SsigHRgg4?!FX2>b3W z`m}xI<#_02adGka0TuAIg89kS?>*lKyI)T)Pa)|12XfH;k9}#=dzH6TiciCNO->e9m>!W)l&4B zd74@>_LL9OuJ&v5e0)l7ME@xW)9K@*LUd1RY}Vs_${3YC%+LfSR^H+I=(7Szh2nKB z_8bMoty|M+k9A|hGURVePvMf0XY9NYOiC@h^MLs-X@(8PV4zI7A155!RnZrBE9R1> zuI4E`=JTxyJ#d`!(9_s?T2jxEM*E`){wGI`DBFIz%ouW`Y0cKDfXAGN{};aMpLRvZ zu`PZ-3(+Tsh?UKAr)TQQ;2Jz(kv8{R#!c9Tyeev55@5@Ng*c4-ZQ6vC?o#5>6{;?gVfAIr-+^g>3b$}13U^~?gce6s6k-4ulnzWlFpq}*)2 zd0!wP{2>3U+zYiPaNr+-6O`J;M2Cb`H5hjDXw(1oKK!?dN#Y~ygl{H2|9$( zVg7`gf9*O%Db^Bm6_d808Q!r%K;IUSa(r^hW`w)~)m<)kJ(>{IbCs-LkKJ5Qk~Ujv z|5`OBU>lb7(1IAMvx%~sj+&>%6+_-Pj&OOMzMrkXW}gMmCPOw5zddR}{r9blK&1(w z^6?`m=qMI=B*p~LklFLvlX{LflRXecS#lV$LVwi$+9F8zyE29LgL> zW6R-6z&3x-zL({$nMnbhu|plRO8S_EavN?EKrr+c&Tt;Mk)NC0e|cvyXk%VKb5VIc z;|DN^5)t^}tr&-2q)SbwrF>=k$moYK;yA{Q1!I940KmPvg_Ogb81w$_)i3FgFWG+MS?k=BpkVGk-bRhBF;xJ}wnGN{)?gbry^3=P1@$k^#z9*@tmmB+TZ|L@3#3Z+x z8hJE({GEeEWj#+MnUSN^~c!=G+yW^j=cfN_0!}%(J-f1`G}w^}xi!T8BJDOCri{mGBU? zsKXxeN*=L#<-p_aj6cHtYWMJ+;F`HLeW5cpmeVAhFfy+Y=0rIqqyJ-NRIu-aE*Mvr zVnC-RDR`d1nnQu|^S79I>%9=bPNx1JLOJnB**Y`2WCq zctq<)Cq2^Z%=$*&;QxX30;642;y+=mlMLec6{KA208FQ~_S&tiFQW zp2{C3nyrmgkh+HRmG+$_y19m~0z~b`Mo+m6)Qq82p5)Z6ePn&B=!*twk7Rz%zzm-R z>Qj!PE3XMBY)N-xO(=VpO6=Cky5kpl}fQztM7QzvG#a}5$>2$f5w|}b8=3E)cNQw<%e1xAEwaRHu zhHCGB4Uzs6x3A=7uUBC0({&iNH{!7JgQHVa+ zKfQItwD}sd;587x?M_hzpR|TKtTH^4{`G7*87o_wJrFlmrEjk=jvA z6xBPKYjFB9{0Sj0rBL-z9BuBY_3c||UjVgv2kqw2m<@4#>zfx&8Uhq8u+)q68y+P~ zLT;>P#tv|UD62Nvl`H+UVUXPoFG3>Wt-!sX*=4{XxV|GSC+alg10pP~VaA>^}sRr1I4~ zffa2?H+84k=_w8oc8CQ4Ak-bhjCJIsbX{NQ1Xsi*Ad{!x=^8D6kYup?i~Kr;o`d=$ z*xal=(NL$A?w8d;U8P=`Q;4mh?g@>aqpU}kg5rnx7TExzfX4E=ozb0kFcyc?>p6P# z5=t~3MDR*d{BLI~7ZZG&APgBa4B&r^(9lJO!tGxM7=ng?Py&aN;erj&h``@-V8OA> z=sQ4diM!6K=su^WMbU@R%Tj@%jT5prt8I39 zd3t`Tcw$2G!3;f!#<>>SQ<>g6}Q{xB|sx_%QKm2`NxN|Zl%?Ck6Lu_EMC?*eRxdgS!3zYU#OnO~0&UFei zmP3k9!70^O24j5;G-fH6%T}X{EdO(%*+7ThlNGAh;l?$&{eZ-l`j281o@47x+6Z*DC`R2CkPo{1Behvlt!4${0Q?fBx)iIw$Ky zI#xvxKs1U`uMgeZg5fD>s5AYH*n=+UaRzS?ogn6WwBPK3Gib5@Jj!sZN^tm>M&*r@ zjbBoF7uXJU2MW~JK3%Xa3R}3zsP7qHEqbnC%eKsJ51+% zVAT-eRHwD)0YlfK2&rN549*};CJ8I;dj8rD^PR(>#n?Jccsqx&wF#We;Auv9Vm%-} z3HjpBGp$t5^S$XhJmYAP0q_qM@^#D}NM1FmCCyo;F|wv3_ci@$MA<3An0Aa|>_M&S z%qGjO@w{NI$VKyDF@w5W*6XK~5S`S$@ABWh@uaFIBq~VqOl99dhS}?}3N#JizIfYYt`ZKK0i_e#E;P0)VXh-V!w+qX%^-I0^ok>HAm5)tbBZlYov@XkUL zU}l}NDq{%pc=rmBC>Xi>Y5j9N2WrO58FxmLTZ=$@Fn3>(8~6sbkJ;;Uw!F8zXNoF@ zpW;OS^aL|+aN@xwRNj^&9iX;XxRUuPo`ti>k3Hi3cugt`C(EwuQ&d2lyfO` ze!0fi{eHhU1yN+o%J22|{prPvPOs1S?1eUuGUkR zmzMlCXZtW)ABWasAn53}?BqtPMJ*g>L1i6{$HmoEb@h(kILnMp(2!H!rG?MNH`1V0 zotb`;u#Yz0BZrT1ffVTCV!?{L^z8q11_21ptR0ITbOcaZ!mlWhC_AZb>?2IDV|b_y z9lVt3)0d@W=lNp1ArE;h_;DDQX^_;WtsSIO<;Ly&(#O~Xw$R0~W|xdQk*Y(b2=vLV zt8HX8=;#;$=y}!;Qku2HJbGEzF`2_~&i$&ogHUe5vhx}FLR}K_Mp)J{n*Va2<|pk$ z4tI(7v3A%Z7Z0|ZWw#7%$U#*mv+`Ujlh^N(t63xFt_%*WoJ^oq!U0j+Bx`<>q!J&0sWy4&{@#*BOr-s ztZ68f;l0UT3wf@RRC}_ufMr6rQ69Woa@1sZ50Ww|{yfp8!7rMOh_POTE;|zamq+4OObJ-VeTK|D|h?mfR$^lA{E7pk8DRDz*j&r<&fR>GaG*d zYaJ*q5#n251XIpR6F1o-w>LZ)Cb6Ma^6tCfcOItn1o;$#H?^jqOd(PA)B3HaTlJK zw!~?nh-v-_WBi5*B=IuTZOX2sa{1I!#%VMd5eGe1VcL6 zQ!aDft}>TjlwzEJ9Kr6MWh1MoNNWr$5_?z9BJ=>^_M59+CGj=}Ln)NrZ;Fja%!0oU zAg07?Nw&^fIc9udtYSulVBb-USUpElN!VfpJc>kPV`>B3S$7`SO$B21eH8mymldT} zxRNhSd-uFb&1$^B)%$-O(C$#Ug&+KvM;E9xA=CE*?PIa5wDF_ibV2lMo(Zygl8QK5 zPgH1R(6)1XT9GZ6^ol$p>4UH@5-KV66NF$AH-qOb>-b~+*7)DYsUe&Is0yTx=pn8N zs&2Z4fZ1Wk=dz>AXIfd%>ad=rb-Womi{nVVTfd26+mCx`6ukuQ?gjAROtw&Tuo&w$|&=rEzNzwpuy0 zsqq)r5`=Mst4=HCtEV^^8%+Dv2x+_}4v7qEXSjKf%dOhGh~(FDkBW<~+z&*#4T>r@ z>i7T5TGc96MfD%hr~nK9!%r{Ns9=7fui)N%GN8MvuIrox)(0nNg2{McUIC6nq>dD+ zNvX69vvf=Pw1@x}^K{@%UCL734;&AVta#($&l2E|*VUaKW@h`X*L*;1Kl4tajl}GQ z$K>;*$3y1(<^32Cg8ugi^ZII=I&ina>q@GC&~gQ#Z88(nOj;*j z1{hyEq|R_0v7LZNKB|3jqZPqZOuUG(SuM^Z>0@mzsKqVbRrkTz#TRZ0sTQ|%XiYcE zEE5{9jEB+2Sdga|veYSFZEzOuepHGusAO#pg&R(%Ob@V0Lw;AfQJ{aLUJxnbe`q(m zadg^fXYiWr+mm2akb*J?y`w(!KAL8OfFD!mVWiWrgScgp9^yoh3lNNUxd?YyvgUL z>+!2VXP7Fzq zYQ?(9-r*?N*cJCK&)pbYzuv%R{b;TB_wC1V3nO#12V0ucgp);>!N=;G=l;({KZF>) zNAo=0m|3Zu*PNLa-2v=3r5>-hVI_xYdz0m*f-zUW_=eDqiM3j4MPnS~eIRNdw466? z)yxHI@6d7gL2Qj<_@72W{GDyINBy%X6X&_cF1(##v^}87YGZ87HgfH$&epf>Jlia4 zw53K1M6=Px@YCVTUk!%_MjyBeaWy7c40i47-3B{voi|&|7aXza!(OB~E)U;f>5Wd3&@#UP~gkM*qmK=aeZ zkP}gn%JmKK34}KdEu)4E2~qN)EnAhj>)4dbq&RbLu$BD&kJSoIvr$3A#S%P~l$l1A z!96hNdtFXsta!b+enJ@G;6rv-Rd=IQ_llL#tSGk-mpQi(mhop;lObiTQIARXw~&d> zVuCSG$T&zi?#&PT-fP)`*-d@gc;+tOPDaUA*6>RIrf67& zpZ<1ie#4rJ3HEu>v7sF={4;oXv?_MwEI-^o-Lr@rW%%cd0TR2q`p=rkMOKYzOs&^$ z=xW*e)6p-B(0Ek7w8+!@Cks9>$_#zi44MLyL9X?{sDlihX%V;$%a;wd&RL*XGcb$` zvU}#qxz8wAT)*NQ+lXO>AI`^r7B&IQ3J&{cVNn0aWa)(!fQtV+mm~`vsH24+xI|q{ z4ce$OB1hrqGLn;H#=~Rx%T#b|hN`d6SXt=;Jd=DNX3LO9R8xLX@6p3>SnZO7M+96a z1s=zJKd%qy0#GWLeFgc~?fsCw^$6lG;B*54&@n#>q$#nRSr?2GA4YaSSl5~B2k}R_ zfJE-$C~{O_6Rh6BJbWFuoaeXEI!Q-YSA9EvSG_sjB~-*hf_PM~mJ6BL+IcaF)8$+; z*4A4W&+_Mn6~tF|M8Sz57BxO=W9ZJrNPtdhME>$sS6)etinxj{YkK){@Q${`Vc~dX zLT4UYjwuC>dH8AAjQb{Ji>eMvJ5rH-4a(K{4EyLrCDtta)u#>`V_AvyS?Y(;FRT8L ze`JXZP4s~Quq$m=6NI@}`( z`>o3kbSApxcHP;1Mds3&41!_0r619~@AQr9TW*Swk`Q1JNmIk%nKm(ZbZMHEi z4n%vC0MuAKNz2njKLk~w|6u!|y7FN!SXk5=7>^^p-R4w7R;~G!v<{>H3%SC-?>8jAP&ka=owuQ$sKwU4e8EVyc6V2IpBR56HthbwJ*XdwnwrW4 zcR7oGg7kCmj(q{#ka1d85mRVIo0`1v3+B--4RXv$hGb545y#j7bmu0*>BLnTRZ+mp z29%AP8Id+57Q(6`ep^<tq}GO1dvJ*8~jxjiH0quR*Poy%N3@c8rhlO6YR@LBk%l zux{&bK~LvKYq%d;Tzl|VS=?rkBUD-j$YY-xX)z`zUfH^&($ZYco(Xc1tr|9rwx}=- zk`E2Wwkh*HIVsWej-nJ6HNH)7rWDlB0@`{QG*0)&P+~Ng{m^kG#J*^p`drM(`dnd& z9$U+FH=rXh2py-N$l_0)@|JY;X1hVL`@}qxNi@Zy5hI)@(af%=1cl~L3{fxZWys9G-hLv z*%jvhoba^ePB8YL)`%d%=t6Yh*c5p1S7`+BPjOD*#q4~gv#bn0wOaf_K0SiGC{jp8 zAc_Vk31hKTSUiEU7XNk7`D}S-RUrYb<7%)k+tV0zZ7(}vQN@0C5EI<=$$qW}m7f7I zk>dMLd+kSjN4{OaxBJ^_h?FayJ`Yr)3eC$jdk1@jEzVT=a?{BSjp?&?qPX=xO!ttw zN_s#<#Ve(0i_|cRa=MC2=8MonmoT5)UtF&Wr9-b2ng>>zv{8$*UcIBIXSZ3)x727q zy{r>bdOh?E;ZI(^io=P3`o*tLdsjkjM!rGae!v5QH<3-OBW(XcRhvM!(b)Yas?oK? z$5)Y*YS^_d9H-ZP^_iVooK6EE1(akYvmNkXQGH1`kXg()p94|_F8B@_ABt*7QTmYk z47RyNSjX8nMW&@VZIQ`1WB%-*W4oN#|M}EKDCC_@HQ9!BenOQ{0{i#>IaQkyU-HOT z#8ueeQdKezCP`+p0{|o?!axX6WB@{OJTR;qfs(;uKp@Kjq4Dr)^>R9T+^$ohEYKB= zQx_P+t?e3z}3#W ztf10?br2MbSVn%*3!j2QFu;=K)-ueTmgyYq;%9HjJL_W=dV$#21FIjyv}d3@oIy+c z?IcrTw17F6oYGMQA=66yCh`48DJb}^Q?8r3Lei%QJ!qpxnt5`aP%aJL9ltY7#;qzq)qdoGzpYx=gz7Lz$JJZ4?^Nr`!1MK@k z47M)#_%Bezu?xD<{tFcQ{{@OiDQRGst}MJJdOtp%(wvCymmU}NKvIK%z%RysueJ$h zMe(J;-iblcWW>90Ptma{$`%AUZi8_y>pQy*1GpoiiS>`GK9%)TGXC!$FDO5REO0l^ z&lv``tj^Y#F@DP6&qSkCYO-b8O*XVx^8O@0D}Wv-tbz7`pYOlCS4pVmi!~|4dv-5i^8laoUpk zxH@-rdRED~DyWrZO2290e;bISH8z$=kcmp_ct)+edl012<`vnqx}D^FD$twK8)RpVW@yMvk8CRc&d*ku^a#%~2|u>f%{up2Q6x9Mdt&e&@t?_bEXURy{+@>{ zJjDZB-f~7aGc%-QXc7g4fF1tUfP-hsa@qS*#N2_g3675xMqbzyQnC~pK_jH^3k}w%a6jCW!C?MU zo{9eUxt*=#6(neNmoNf#hiRNdGBu|Q(@9s7|H`J*IMWuCEyE4;3IJtKS-n7f+C1=O z89gY4%6N}DeX%EYz8B!^9f5Sf8V2S}yTJ>r+}=RsLXtADv|&$w!dxTz4oSIuz=8S> ze%G>2|5coCh@K)cA(h6O>kRSfAQt>H_fE#}H@p)v`Tw>aulOfNhyS)7=rI4b9Co$DH=Jd$I?iu%Tq!e%aPW7DXN#iTjDG0TqkpLrhBBzR8`k zD7XbvwV1f*5U7kBxrIxHO}NcgSmCK*P*zt<4FpS5V5@~j2g+wGN-WtIbV``U0-3X< z(0T||f@~2Ebo3UuxzrdG=FuH~6+|7!VsYU$0Z;OEL^Mr^S^zSSbYwE3A~U-vOJDyUDUStXfD%K9;#`BD_z>Zb zYj83mc+8KTgEK6`Y;^Q6ku|@W3|m*M55gt8^^WdrxGslExn_2O8$_a0M&&_Be0KPA zDd|?nYAOvUkTJUXZ7l2Ml&#rK04@AJabu&@g=pIr~b;eo^(8BT(?FunH$AF3j*ZiHB%C({8I)tTa3VRkn) z=9uW|9))}J#GUqRh<&w4yL15QpK%2bM)-YYq2tcqZmh#_)@tYAn7$!Z+6(FhAPs2p z^%a8A6xo5O-hgk)a=r7#iC9Sn=%vgrQsl}WCq)N+4q*=_VT+ac3I+*3lJQ&#epf@`!?G!7S(!aZGWqpGk8(*`ig}*V&iyhzH;xtxA$y_N z>)-lw)z%-mcQ3s#`hcb*fp;U`yikM&{Z0^!k1?*j(d(dK9Vw#6o;HRAhEj6!& zxJ$%z@#hubu+iCATwZBgyl$DO;-%^6*lhP|m`wV*S9e%1oP-d7}LFzNb-nbg&b zLeV~*+>vogxCnjjqMaj6y1jn;s7GQLf{ZSY20O#1YGg;yjg-{KM81iL;0{|;LN@@* z6ST#KrKAJTzEMTb{1d?&eNzE47+;ZFtJ8pB_U~EkOk=`-6MB) zTaU^zm3`7P2kZ;D_=u#Q2t;SHzo8P1xqM5!?7^WSE#u5XoolRV{Q}doTaC)1S08Zy7GJ?pd&8Jjw z`*_`ev(<+Ra2R&CQf7cb97~c^x3voFRhQSEV_1pF(I!QUWEkUh<2Uq?3Cz9FxIKeB|n?CuVkX7tAhr<4Ej#%Cq?uB5e^<(Tu{>54T z!(6b8DmhS=>>S)e9h|J%5}ljxfXIRDVa(%*0*xTQ{+ zUjroY*#_U^>b1Teuc$T-egClH97?IE<0#OhF0Y9ByTKPxej00P`|jMJVCqxQ>44F0 z6StS1JT#Ng(}>CWNb0uNM*qkV5JF(s$Hm`S`+O2LRS#bpUMgwU)x`e2u1#H8woa1YGZIsxydK5$JP$cfI67I1 zBE?jjeY6QO_arp9gg1v9k)(iTssRJl7=WdW!5$tkQ-3&w4c|W=|Bh|HOKy{C>%J3@ zZ|8r+H6nd{{iLE~*`b<}mmrmA{8WRDdlJ%rL%W#To}q01jQ%5ZNy@MC_fzCo_!q8x zb46H1v;|CrZ;mdn-6=g>sqK$5H<)H5rH0*n+c!YnE5YQcu{wHPyVztNP`)K`bv3XO ziFeTQst%KJAd9G3SLmUQ|V9fRRc;+ zPd%sGo1p@XsJh&z8?psQ1@NnY|!@p3%Mm9gi!S*yNThSTSi>xCoEGLx%T*dPC_ zK3J4iwp-OZ&1%b#}32cNRbgvhDTdd7->2vcnO3Mt%o zR22P|KlOg^Lw}@|mzlgUh+KF7hZA-R_k=AFARuTl!02E$Fun#45CtF|+z(y&M--)~ zkX(>sZe#6y_I>oP0}9KH=o`);bPVMO1Tg8k$trp`n2F7Ga^3Z^)#GsOamw&Zg{k!R z#))|f#dP=GU6 zM#KYRBI_eOICiiDR%oBa@n|ggpZJs>v7kQ|)(*x)4xxl6;d76Fl^)QGde*sDZnRit zpWm`UgACR9MH}@~KMp!Y^x#))Vw2>dEk%BKQY#ne{MWqyu__rdoOP0@hS7`G*TR#L zKP;$iLuM2_a){&S^B&D>F@2K;u0F-emkql27M7pe;`+bWflrlI6l9i)&m!9 zKWFwavy<&Bo0Kl4Wl3ARX|f3|khWV=npfMjo3u0yW&5B^b|=Zw-JP&I+cv0p1uCG| z3tkm1a=nURe4rq`*qB%GQMYwPaSWuNfK$rL>_?LeS`IYFZsza~WVW>x%gOxnvRx z*+DI|8n1eKAd%MfOd>si)x&xwi?gu4uHlk~b)mR^xaN%tF_YS3`PXTOwZ^2D9%$Urcby(HWpXn)Q`l!( z7~B_`-0v|36B}x;VwyL(+LqL^S(#KO-+*rJ%orw!fW>yhrco2DwP|GaST2(=ha0EE zZ19qo=BQLbbD5T&9aev)`AlY7yEtL0B7+0ZSiPda4nN~5m_3M9g@G++9U}U;kH`MO+ zQay!Ks-p(j%H||tGzyxHJ2i6Z)>qJ43K#WK*pcaSCRz9rhJS8)X|qkVTTAI)+G?-CUhe%3*J+vM3T=l2Gz?`71c#Z>vkG;A zuZ%vF)I?Bave3%9GUt}zq?{3V&`zQGE16cF8xc#K9>L^p+u?0-go3_WdI?oXJm@Ps6m_FK9%;;epp{iCXIh1z3D?~<4AhPkZ^c-4Z}mO zp@Sa4T#L5>h5BGOn|LS(TA@KB1^r67<@Qp!Vz2yF573JoDBug@iPQ=tr2+7*HcE3(5`Q%{A2 zp%psJG}nJ3lQR>^#z-QI>~|DG_2_261`HHDVmM&*2h2e|uG(OXl?228C|G32{9e%Onc=sVwIVZ=g2{K5s0>v2}V&CZi1_2LA=x)v|&YrWGaH zEe3L=lw}aSiEdWu&2-C5U0O~MpQ2Hj-U8)KQrLg0Wd|XyOt&Gc+g8oC4%@84Q6i;~ zUD^(7ILW`xAcSq1{tW_H3V};43Qpy=%}6HgWDX*C(mPbTgZ`b#A1n`J`|P_^ zx}DxFYEfhc*9DOGsB|m6m#OKsf?;{9-fv{=aPG1$)qI2n`vZ(R8tkySy+d9K1lag&7%F>R(e|_M^wtOmO}n{57Qw z_vv`gm^%s{UN#wnolnujDm_G>W|Bf7g-(AmgR@NtZ2eh!Qb2zWnb$~{NW1qO zOTcT2Y7?BIUmW`dIxST86w{i29$%&}BAXT16@Jl@frJ+a&w-axF1}39sPrZJ3aEbt zugKOG^x537N}*?=(nLD0AKlRpFN5+rz4Uc@PUz|z!k0T|Q|Gq?$bX?pHPS7GG|tpo z&U5}*Zofm%3vR!Q0%370n6-F)0oiLg>VhceaHsY}R>WW2OFytn+z*ke3mBmT0^!HS z{?Ov5rHI*)$%ugasY*W+rL!Vtq)mS`qS@{Gu$O)=8mc?!f0)jjE=p@Ik&KJ_`%4rb z1i-IUdQr3{Zqa|IQA0yz#h--?B>gS@PLTLt6F=3=v*e6s_6w`a%Y2=WmZ&nvqvZtioX0@ykkZ- zm~1cDi>knLm|k~oI5N*eLWoQ&$b|xXCok~ue6B1u&ZPh{SE*bray2(AeBLZMQN#*k zfT&{(5Tr1M2FFltdRtjY)3bk;{gPbHOBtiZ9gNYUs+?A3#)#p@AuY)y3dz(8Dk?cL zCoks}DlcP97juU)dKR8D(GN~9{-WS|ImophC>G;}QVazzTZ6^z91{5<+mRYFhrQeg z|Kn=LOySHXZqU8F1`dXWOJ?NViPE%&FB1@$8!ntuI?)geXh|#JJC1+G^n$h4F)g-P z4WJMPQn{p=fQtw0)}uk;u*&O2z+G5?iW_=1kTy(!AJzj}de{a9WHY+*SqJ7`={VTi)3NK|)*W3PUT#5a$D6oyqH%5zjdO$5 zICHx_V;1Z)4A(rT6aasvZ{{r`HnxK7^fMLS1{;H{o<8j5hz*F@WkKQmDI*Q%Kf$Mo!EpQ)=HV^lsj9KSz->ROVIrXAI0!Q?WUosf8t6CR*rl382^sU3q@($L~E zC(AoyIjS&2(el|I$ za*8oAtqGQs+O~huhBCOFw(^b&bol)FWsp15Sra3v%&#wXz*!kSi!sV>mhe(I=_Zxmz&E1>i6=yB*_X4M#ktdNg7_G}MVRGQ z7^zX=+mQ}1xtg7JN9E(QI&?4}=tP2#z2<7N%zf9rxzynL~!MgNpRvXaU69c*^X2(c?$=h&o~Fvv z06*{JdsM!gF$KALcW(}@Q&Alo`@3h!H3j^@5rFMp8l6-q!cb?1iS$oZfU+}A2< z)&2ZoL34kkSnbf=4>qd%guV7zM1p=amds@nhpkK7mRJlb?9zYI&?4ftd8+RvAYdk~CGE?#q!Bv= zbv1U(iVppMjz8~#Q+|Qzg4qLZ`D&RlZDh_GOr@SyE+h)n%I=lThPD;HsPfbNCEF{k zD;(61l99D=ufxyqS5%Vut1xOqGImJeufdwBLvf7pUVhHb`8`+K+G9 z>llAJ&Yz^XE0;ErC#SR#-@%O3X5^A_t2Kyaba-4~$hvC_#EaAd{YEAr)E*E92q=tk zV;;C}>B}0)oT=NEeZjg^LHx}p zic<&Fy$hApNZFROZbBJ@g_Jp>@Gn*Vg{XhVs!-LSmQL#^6Bh-iT+7Dn)vRT+0ti(1 zYyOQu{Vmgyvx3Tuxk5HG!x2a+(#>q7#Xji%f&ZxT@A*$m8~z`DDl?{&1=gKHThhqt zSBmSpx#kQc$Dh6W76k!dHlhS6V2(R4jj!#3(W?oQfEJB+-dxZOV?gj++sK_7-?qEM1^V z=Sxex)M5X+P{^{c^h3!k*jCU>7pYQ}gsEf>>V^n1+ji40tL#-AxLjHx42bchIx9Z< zz`>51CG4Iboc%m0DAfvd3@b}vv4%oRoYZpZ*dW?+yTcduQlxreAz&6V(Tac9Xw3_` zNotT9g&r{F_{!Xb%hDPJqn`CWqDwai4M@7F4CQ?@C{H~rqxXwD(MFpB4!uljQmH~( zTXJJj3MEVHkt7r8!^R;bp!H=&%-OG&ONKIOgLJtng(VD0u9%2LuXKe7h$?9lQ^#cL zOo}gOx^+ixt2Izmb6{J`u0VexU0j}8Is+?LWLGvQ66Pg0ax4n^G+xW-rwp&fIZ0}l zI?y~wn^6o3{jj*VSEQ}tBVn1#sVTQB(l&Gf(sriC0DKR8#{);Sgb5%k`%l#BfM#W| zfN5C8APnl5w%nrNi{BWrDgudYAZLGEQKTzz^rV(Bst!UI7|8?nB_w}@?_pYX_G?9i zgK?yo0}({MC^6DiO!bB88kijN>+BCQ8v!rg{Y zz$`Hf$tB*WdxSPHMMkJ{&p0(l zyXx|^X_VUQBdh9)?_2P1TViiYqy+91$zg%3%OjzWyY=X^f7I)2-34bDVCEhECAi z^YqS9x@(kD(Bto;VDKfgIo z-)s_q)d2mr4O;DTUTgjOe4f51kd6T9`xa6_AUP*N{jz%!Z0E!Dqq}JlfPZ2EyGN*E zoPHJ^rT;z^0vaI03Z(WcdHTh1suHxs?;>yWLj~GlkAQ#jSWq|nUE}m()bBZ1`Rh^o zO`d+Ar$33kry+En{&JjrML}&gUj3pUFE58(t|p~g@k3p&-uvoFzpGktUMnQ6RxDA& zibYl_A!{@9au^_fB@6;1XHLORS}C(Hi&J8=@>Kw66&QJD@w>_I1XJuBW3_vn?f~bb zTv3_J^W1+E?921QNo!MQiLHISD9?+dP0BsAK+yB?l009uXXMOteoGX;?5I|RG_v#B zf~l?TPy3zGkT`N>WlZRa=k7Vdbz-66IQ979fX!i7Wen@lu-oEcweu$76ZXrc&JWRf z!tLRg2JqNG{;`-H@L` zKHfgY-Lve@vsPT7B0@716|Z$Z-Z{!WV;qGHV!`h!S>b)rZpc`9J))^79ey;7@-=zZ zjys+j=U6maKhDddqZ}XQffIbFYn)R657nRGEG#j`M-Gni4deWVXcr=HoNok4SKTPT zIW&LDw*WrceS&Wj^l1|q_VHWu{Pt**e2;MKxqf%Gt#e^JAKy{jQz4T)LUa6XN40EO zCKLskF@9&B?+PnEe(xB+KN|M<@$&ZP{jM;DemSl!tAG2{Iisge|}6`>*BENm!G2E!s_XsaUit2`a&pfn!ggt)wG<~No zFFD~p(1PRvhIRZaPhi})MXmEm6+(X?Aw+GxB}7gAxHKo)H7d=m&r6ljuG2KX{&D9A zNUe9Q=^7yych#S!-Q!YKbbka8)p==Am-8`N5_Qz~j7dxLQeaeCHYTma$)Fy}ORKS4 z5sf%}(j`4U=~Aq(!-|ZRRXvQijeGJ^%cq3itmW;FI)JsU8k4pNmCazDyH9@=bqwS9 zq)y8?KhH}MpVTd^>?u+Cs!&l|6KH<*pikOqr$wK%YZ7(>z%vWLb^+m&cCQ+h_MDo+ zaXmPW7CD|K$-d&cg$&GVPEi#)hPjGYx|SBxatca)&Ig?*6~uiQKE)tF7l+ci4JvbZ>vQo}1mB?m;{w?j6>1xBD9F+2p#Y zP3U>vfnMicQVHdhK1yDCfacJHG?$*GdGs93XO$LkB~?nFAfNOoRY`xRs9JiG7CM&D zd5!=ra;zY~qn6HhG|^&58(rYoNlP4qwA7KN3mvymz;PR0%5d!IoDF1vxVxNS5wG&fEt`JYIGi>i=Fq;YUc>8aXv_wIKNAm zI$xs8oUc$5M((w)<+NMQ6{7X7iz)2tqz$eebh#@<&91|=(KSq0xZX>fTn|!v{~LlTjaOXR{3kxDZfD5rHpl>gbmAU z@|wOa$t%grx`7}nA|ePPsN0Y)k&2=Mc4?uE@gW0-f>S_2bO;VnKt&W3k$KKdvZh@& z*WWKa@7#~`b#Kuyw9kqd zj%CMuQ9ESPc-)MbM#7}YUL)ZP_L{+siDWcU?e8%n3A4VsFYJpNeLjn2bT>CI3NCJ< zwecm{{XNM@ga#75hHnwEW-M&QOfzo9!Zfi7EH$DX3S}9p>0NY#8jZt#!W_KUc?R>k@Ky-w6=+Da+_s0GJldl zF|P?(31@{B7bweeajQGYky;y%9NZK$oyN7RTWNn&2`?k9Jytjwmk||M(3Z!M&NOYw zT}t~sPOp`iw~(CAw<+U2uUl%xEN7WOyk@N3`M9ikM-q9|HZC|6CJ8jAUA zst!H<<<&6(6Zvbpj!BrzUo!>VHN3A3vo$EF5-6b1Q~ajXENB~lhUA@|>x6=N0u#cf zv&w(qgG`^+5=HoNur`2lvR~b&P zjumO|P8X;=d`c+z1YJlY7&H@Dz-Rts$X0IYE9kSIlqGZ7utSx^+ z2hOEC-eXviWZXQ9;$Va+WlHlU%y|f~w(|)o@(5J0o|3MQ2O@+B<@r*H4*65)(r^JT zq+<*b06XMGclsEElst5dEfFJ;AQfYhRt}O0CVKdGh4Tk3-(^-{kukZb*3oM$ZffpG zMs;jtk2ZjAsn%mND4R~OS73JDbj^Q440{oS&4<@VUYMInc0xxy?FE@$J_^n)b|gY+ zOj;8Pk^)6$w9nbnMms3RSr6q(9wP_)v01|=P}UbkXoS_1#FCl?>&9cjCHOS!yEJqiGd`83Nj00{X6dHFN84%)I^*MZ=*Ihw5FxD0YSJHV{j!9v(DT#k7##q~$ z87Dig!k3EiMO;k|9XhYz8cGVPukGe$N5@yNtQgngIs(U-9QZ2c^1uxg$A}#co1|!Z zzB|+=CrR6lxT%N&|8??u1*Z?CRaGbp6;&#}$uQEzu(M6Tdss;dZl=hPN*%ZG@^9f* zig-F9Wi2cjmjWEC+i?dU`nP`xymRwO$9K3IY`|SvRL^9Jg6|TlJNEL9me$rRD1MJ| z>27?VB1%1i)w5-V-5-nCMyMszfCx0@xjILKpFhA4*}fl9HYZ~jTYYU@{12DS2OXo0 z_u+ot_~UfZNaN>@w4Es$Ye>i&qhgqtxJf9xi6El-@UNPeQ>aXcYVxOUA--x3v1 z3e=7+%#m@}QuMTjN3n--=-{@rNtyYdYS@LJ(G?*np*HILbUeo)+l8N#+F-;^(8w>i z8Q6til8Y^NG7_qa*-n2|4}(k<-HF~R0v*cP7bxlTWNJ1s6#Rz!N zCYesAbm(}4qp%-;B%AF-LyS5Q6@Q|V&Y2ar$uWn(?UstqXy;5$ZOCC_?L$F z@o#dk--?Co{)CGEP^73Kb_^>`G8sAN)M@iNKQLBj>QAcHjIw0!1 zl6{UYd;|bA+CcC#3IGYysWLa4!KA}CsEV#c)JpJcF~NX9mrX2WwItXv+s%I2>x#v) zy%5xDSB`&bU!9COR@6LwbI|OQ&5mf&L^GGZnOXEOLshxOs;Y;ikp^M(l-^>J(o0NIdbt5`(fTq>p%?cG z;%aHXhv=-@!20#xf*q)++kt8IJ5cG{ff?Sy9hfzQIroA8N>Git>3xOUNhe8nUspSV z`GL0DK}<_w!3gRCwOvD~m+Zn6jxTMde<_?egr$S1OySh6XsS!0Wh)wJPX+xd11YQ= zMq7X2tU;U;Xx|ObfO}%y{pchi>ryaM2zAy50_$ltt(ew6h#CF@+U74D#H@hdQ=dX_ z=OChf#oerWnu~l=x>~Mog;wwL7Nl^Iw=e}~8;XZ%co+bp)3O z{Mryc`*3ryyIC*S%Zu;8Y_D3bFAn%8NTYv?y_%Q4zR-DvE(Q*~>ec+JSA76q7D#_w zFR&HI@z>V`9-)xr*ME%7~<$Ykd?U8uZ~EqUe&AlGDqP{uUvna zvy#q%0y2VKf%UxO(ZC2ECkuzLyY#6cJTru6Q`qZQQ+VF1`jr8+bHIwcJg}=iko8FE zDt(bW8pbOr>?{5KLASE=YFFv&(&IM|P6@wK(5#jhxh@Pe7u_QKd{x@L_-HM=1`rX8`BDds3pf+|$)DBqpXrDP>JcOxubC$Dy60;8(mfG^6yXE(+N*UWMW? zA~?H-#B7S@URtmlHC|7dnB!Lqc0vjGi`-tNgQ8uO67%USUuhq}WcpRIpksgNqrx{V z>QkbTfi6_2l0TUk5SXdbPt}D^kwXm^fm04 z^i66Xn0`pLmnhX(P0|TezLiFcQ{E0~v*cmmAR2|PETl7Ls>OakCexUmie^yDw3ccuqd5(wV_6?YM+ zegsV{M=^n{F2a}~qL}DfhDok9nC!X$C9WV!U15~DF2xl0YLvS#K!rPqsqS7(b8m## zZA(3F3H0v&0Z>Z^2u=i$A;aa9-FaPq+e!m55QhI)wY9F+db;s$6+CraswhRp8$lEl zK|$~`-A=dB?15xkFT_5GZ{dXqUibh$lsH=z5gEwL{Q2fjNZvnQ-vDf4Uf{9czi8aM zO&Q!$+;Vr_pzYS&Ac<0?Wu}tYi;@J__n)1+zBq-Wa3ZrY|-n%;+_{BHn|APLH8qfZ}ZXXee!oA>_rzc+m4JD1L)i(VEV-##+;VR(`_BX|7?J@w}DMF>dQQU2}9yj%!XlJ+7xu zIfcB_n#gK7M~}5mjK%ZXMBLy#M!UMUrMK^dti7wUK3mA;FyM@9@onhp=9ppXx^0+a z7(K1q4$i{(u8tiYyW$!Bbn6oV5`vTwt6-<~`;D9~Xq{z`b&lCuCZ~6vv9*bR3El1- zFdbLR<^1FowCbdGTI=6 z$L96-7^dOw5%h5Q7W&>&!&;Mn2Q_!R$8q%hXb#KUj|lRF+m8fk1+7xZPmO|he;<1L zsac`b)EJ~7EpH$ntqD?q8u;tBAStwrzt+K>nq0Mc>(;G;#%f-$?9kmw=}g1wDm#OQM0@K7K=BR+dhUV`*uus`*ND&2x<wG1HL5>74*j@^8Jn_YA_uTKbCF<(bN-6P0vID7dbLE1xY%jjOZPtc z2-(JHfiJCYX>+!y8B2Fm({k0cWxASSs+u_ov64=P?sTYo&rYDDXH?fxvxb>b^|M;q z%}uJ?X5}V30@O1vluQ2hQy*NBwd}kGo8BE>42WYjZn#(~NPFpjeuet!0YO{7M+Et4 zK+vY}8zNGM)1X58C@IM67?0@^Gy_2zq62KcgNW)S%~!UX1LIg~{{L&cVH^pxv&RS8 z7h5Dqhv+b?!UT{rMg#O##tHOouVIW{%W|QnHnAUyjkuZ(R@l7FPsbEG&X{YTZxd6? zGc~wOFg0-e2%mI+LeRc9Mi3vb*?iSmEU7hC;l7%nHAo*ucCtc$edXLFXlD(Sys;Aj z`;iBG;@fw21qcpYFGU6D0@j_)KD&L`tcGuKP_k_u+uZ@Sh<3$bA}GmGrYql z`YBOYe}rLeq-7bVTG?6wpk_57A#-P&*=D9tDbG+8N86Ovlm%$~Fhhg1!#<%uJPW4P+L>rOa{&N2gbFd3Fh-nnA8 zlL@IrHd6K33HFYag|7^pP;EZ&_CU5|tx*P)T5w<3xsYB7C+*ZJvZ7o_)pdFg0Mq37s%lo=)Pp+u-bBo85|bFx@z znXN$P1N#N~1jF)^LHc?61qH?2r$7+}^DzU=b4Sh0ILA`+DkZGwe8`w6RaaLOy2{+; z*G-qRoS@LWVrj2g$m_QBE_9ft8J2%>-hNdge!7N;!t-RmW$Sx$dLFwX06)v6%V+3+ zI_SpK&${J_g&{nfAAf~@mBoJzd1aB-d!go}pMC=xBXEb1?t=6Z2khtQWf04f1vH2D zAzR~Tj#erum;iqZ)uy9mW#IE(g6{gBs0m8`Hho^9SLk>6WYl=|`BSI?aM#~0G0T@g zhZQIE7P486_X7pDDlh!Lpxdh5G=KJg4;1hc2-bl zI9c0tmCMY}Qn=5b(4Vqv{|sKKb)cXA9B?~>}U6*`p`RQ9+ELmfJLHahw z(?8R{AQudS8<=zg^lz2qD}8im+_uhWqYUr=fMT#sIo${8zZfe2N&j7)tPfNL^8Z2} z6)v8;x|<$fDzHr5?L0g@AOmYTwm%3~HQmw+c~!W5LEVM>2|z;BF)jd7U&jQ>xPb5h zeEn5a91wogI=6UL`b7g^&v-q5Y#V}Z4=>PWem5wViJ&4Bv3xeU=0-BSSJgLq4+X0GzB+;^$X5GmqzaR*xhkIN?DGhN6_q3Am7=yuN- zb_|MEpaRpI;Cvp9%i(}%s}RtlP5ojEwsLfL7&QhevV-Nsj0eq<1@D5yAlgMl5n&O9 zX|Vqp%RY4oNyRFF7sWu6%!Dt0yWz|+d4`L7CrbsM*o^`YllRPf2_m#~2I3w7AEh+I zzBIIu%uA#2wR>--P{=o&yasGhV$95c?|JRlO>qdUDA33j5IN=@U7M#9+aa>fFb^X45 z?2QBBpdyCETfk(qrO_G9QH{AF(1{Qg6c9(jWVU>`9kPNV#kqZxKsnG@ z%?+|N3y9-DUAf>)sBX#CYB(Ss;o`eS>0TYtk8(ugt>(!)?E#S%6uC82XIZqAYlIHH zMHZAe8xkWHvSk$;54;FuF~4*RSLzf()!C1J`J>iHkKBN2e70b?Xqa3NOvAB(w2*)%usxAitdXR zXsosCjl0P-*iH$V%MrP>2!E3ZHl@yU_+CN1fffNwny;LnWvPf(q;(3vd z)}hwfgz-(OR5H?(nx==K>;(!(<@t9;uhDT<@L}{HO(kEVmC@_oXQ(0S**-;H@pAPM zql=DME;|u{PV`eSkr1cw8-cy+VdH~Tho_^5PQzI5hn0Vy#^@BR|0?|QZJ6^W2bop9*@$1i0N4&+iqmgc&o1yom5?K6W zxbL!%ch!H^B7N{Ew#U$ikDm9zAzzB|J{M9$Mf%ALP$`-!(j_?i*`%M1k~*I7dLkp< z=!h>iQXd~_`k9coWTEF$u+PukkXqb;1zKnw?ZnMCAU$*2j^CZL_F4f6AMEu3*y|O1 zH*on~MrSW(JZQTj(qC~jzsPRd?74SC6t~&Ho{fJ*H*AMvXXx@p@_Al3UkBY^gXE8Bdj+ z^csKuPu+aSU<4<E+ z*bM#6<ud+wQMn*g0ivOoLF2sMG zMX|YA+;yTTVpqi0qIi@1?JkN$!q*sv^Y<6UyZ3E5ufmiwQi z%d*cc_c?mG&n@>~qR-1dx7`0aeM9!S<^Jm^0J+aC`obd`xi4Gp$3(a6bIbj-cuMM7 zii;+o|1H4kBUC4nix*$<2{av@xW8pXsPUVs;6 zJVT3+(1xAt?9Q3@Iqyu)%%8u%egjy8DR6vr^rrerZ%S*Q{Fc6`FJH6}@8{p6nQo%F$e3uUKnOSQ}Q)_}#>H zIS{p_QQ;x^w&N3pj&F1Hkiv+)I9^?SyjnF{bf|wGg%C(Lf+V!)h2xUId=T2E9mcN1L$QF^ z5g2*u_)h#xV5qoL+7?I^OWPS_a6JtT*$mPcAHy(mJmUtoz)Z1zp0^RJebf|pVGWIs zQB0nO8D@fneP+6d6PT}AA2UVLt7UKlb7PprygKtn-5>!^V1XRwIrG!}4+mn=`W zBk<_rS~lAZls_hOj;GnnAs;L$9u zaRbuj_dhXN_<^afP)`ndO!qW}o+exVj;Uj$zv1Tc32vVWmrHP`CoJ`Zxvp@$E4=rv z{Dp%8tK5(97c5fP{T{ZAA#Omvi%lqOVetgT%V6phEDiQ6oM7cL#+QIm<(v8kP)i30 z>q=X}6rk(Ww~ zN);x^iv)>V)F>R%WhPu8Gn7lW${nB1g?2dLWg6t73{<@%o=iq^d`ejx{msu;S`%=Y z2!BRo(WJ^CT4hqAYqXBuA|4G-hEb5yvQw2Bx7zVRpD;RR2ccOu@PhR3faoc zzJIZ5StRhvJT*c`VV6u>2x;0SlCBHsQ7n>YhA$6iQU$Rd`#A*0pf5UAX^2~Qi`Ky%f6RGsoueIc_WKEcM!=sZzkijF|}LFs~GM=v-1aFc3dl?tifz zSiqvXmL+l|5-?ahOL%3?PG<>&D{-(~{sG3$mZG!I^`lqCHWOSn}?5JWosiW?}R7Hz45Z6M; z|I3ZkC#9f+gJwObwvJ7+lKPKs9)HS$N-3eNAWZc~d`TP=sY$X_md=Li)LwW?#|kR6 zy$#RzQ>|l?27Kf`O2bZM(f5 zT<@B@DC9-<3~{+a6@$%* zbtze+^?#(ya}=}LbSblhT0Q6Rm4>3=gi)o*G!B_6$tq*ItV%e0&U6FU!uj0%!h9}S zX6NEZ9}oimg4WPW?76Hk0#QwuQj$)~3QJw+v|eX=>YZgbHMJs34ZXEzFL($9Pw6>L zDO8nGd&N^$GQH4GKq$+GsmsL%*AWQpwp1!JQ-AyUofV|o;~RKj0^!|%nF=P~ai{JL zHLCol`|FQ7a$D7+PR6Mx&`hnhg>;JWrBjTd0T_>aUBJK||PoA}xw zjpy>>3&$74TY?_p_n~D4+YZ_`VA~C};yEAv@pMP)u1z-biGn_klvcL6s zU`UFOa5WKV3&fLwP#~_QGqNI?vZjX9e_Ddmyv`La8Jre}B_kXk=J63Dn>GS%Nl7ty zD3D2o(^4iZ3mZc%E$ibOHj%F0n#U)zib4~{uoPZTL$0P|m2+KIQ#3oub%T7-d~5T@ z=GJh6j|NV-!5BPIEvv`*E?MCW0ZmUuQo58-cw|hMG8wK%_B(RtIFDydO?RP^e__!P zX;g|RlA4P24jtif(}ij>mC-fQG-YluEa|d!vZky=`ljZ$Ff1r&IZhWinz9xVW74RO zYid$XF*J6~9#4m@lhthw1!$|R%I2dC^$n%=%E!^TkD;QWai13pu*d@!Y6y9c-dw2l zpbj-&crkx2s<6ZhH|C13WnOqNe@}d^VDJ{l;le5kl8?)VY1pm@y|@qed$1aQ;y}@) zL?Jvc0$AuFD-SZv*SVC~K`>q0t1Aq34UJs|`lF_(@D?xDV66bu6ClOSK1t`Q>F~QK z56Cm(MI(a3aT7ypQO-6;vTAZ&m6Uwuwr6=LD-tLFL&h0P zIO1GPDmNp0`#UM72-bPfjP(o)4PIiAp{Ai!ThwhM9u`&DL*e7r45@}qS>??T@1^nnVwqpqQ|k{%dq*L zC>flElRbiyesX2Z>T19VbuXQiV{#@+&4oMF+fTiOA{>-6PSIjcOoKFS6iq+l;13qz z9r6xO;T=vS2R}50ccv2#o=Q|h+CAJH)AW%6InA}KX&=!}FH#s5e>yTlWkaW!*oqO6 z8SU{JVB)Hl0v zvZTX1MRnmt>R(Ase@{zh`Mq(VYx=EF{=B@5S3GzLuQCMxe}@eW>)Mz!MD4@r)31AQ z0&md9FQ^oyd75EqanI>gGg*_2aw+Y?TZJByZ%K~Lw>>z6cc`nDyCqzBkH{8`(LOG~ zi!9q#KEQ__ypNCak(H{r@CidzT+zgq{Y+dopW-YvxkPDIf8F?;VQslqQT}{=AzZ6F zxnZyS=YB7*X}^!B6yLBv)PF1Vi?pQN^vOp4KT@~m?Cor>*}GrNCrA8Eop<;|;99Y} zKl%=)R=@D=O1lzz203Idf@c;Io*aod|N(Ldvd&;<#t}{mYn$t?;DCw($YAa`5v;U*>3p2K6PL7 zys(f}dR3lZQ!YEl$O}x4oh@DO@qatRvqM}Vm)_j>J-94ELt=Krd$CtZ8|QKA>}ys5b|I0wKk~(gw@WTg-gz-E z-n{phQ@gf~i|(7xw!Vj%cOG@#m!2tdzIT#XUxY_=#kr=;#50FJdPiKX;<6g%q5bcD(S^wB;}3Jp@7< zZ8SLqRYg^%-#s)lqC8l`qOsgr%x+u3JE@b!)d9qQ{Pr~%n=KFw@&Ec@m*Rq_0JbiJ-FiiY_(H~OychZCO!23^?kxr zsb6t9-n)(!fBU=h#GNC%a*MbEeJ^QR$1+>KO}iv^@kf((?fv)jjy!#k$T;iB`fx9s zvzxcKJl2e6tM1)!{qv34mp6vCtlhS;y6DDUlXXfveK%ZiQ8{u;>;0mt%BNQ^#D=u4 zTW8me!45Xh8a%S}8iHk*; zc34jqTp|rTRNYt_aaJ*KIuAv!@??P}v9jPJZ-M46271&EMPA8~VY0rX2RK?0r?4_G z=%c8Lbe^oZLUeMavnp62{G3T(ETUTH>k3u~IlNU5tQh%hJ`)sE-+Mq6Yk?H9f)CP} zY_Lp}$-xIK5$7WgHUV@9%T1u`HvwI*i(Pa>H^(8RR7~s8;^31S^uMk^xyMjTmQSU{F9Y?c8LA z6*jEkA*0EOD@2*(y1`E9U7;!i9~1$43N=S==mjf!yh29?-XUURV9-M`*{~m^2y+-k vO&Z*)1cp)oP!FoJdnQj@>B$Ny9`3IcWx78NY!UY=EiM6G;6aIVL4^VU&1=uc delta 34727 zcmXV%Ra6`cvxO5Z$lx}3aCi6M?oM!bCpZ&qa2?#;f(LgPoZ#+m!6j&boByo)(og-+ zYgN^*s&7}fEx`25!_*O>gBqKvn~dOCN!``g&ecy%t0`n>G*p;ir0B{<{sUU9M>#WqH4lTN!~PgB@D;`rIdQ#hRw z?T|`wO^O=zovKDMVjuZHAeratT0Q-HK<95;BTTtc%A5Bo>Z{jfiz& z$W5u4#(O_eLYQDY_i&xqzVd#y&cR>MOQU@-w1GN((w{b+PM;=Y3ndBGVv|>|_=ZIC zB^E2+XVovHYl%!I#}4)Pma4)hM2Ly6E;&R5LmOnMf-Qz43>#K*j*LSWoYxxIR5Csm zuHXA8{`YgmqApC|BgY0wGwj-im6rmS^jrAbN8^PEIHj1WH#AVVuUA2HXj&Vm*QD^# zWX8+sR14XM!@6HrfzFpcC$ZXlhjA{{oq5cs&VRBUX2VwX$fdjO~`3n~1})#Bxr5Vh%KwFov=k zW;Jy5qsvC$lw>?*BsoPIo}YgJN>u)C^4Abbjx$NW@n5S8aN_T0BeAXWjz#dQ=3v*# zRQrjH1%R&krxBrfITop};aQdE=ZRgLN%n%+^y5BOs|pO6lg|I3prX{gSgQuRK%177 zlE#t+nHbT~VSO995imTaX&SCB&pgp`Izkg}-NV zI%~Z42T+^_9-gw;yOI&!oZf=H(Cot~)w4^gX&q(zg`7ekm4un&?FuaJQKIrLF$<_% zR;ok9K%L!NlTYgW8?uhX&TS?ojtu~oLm(`7iY<5Ci@V)7+gRHbb!o0OipVh)`vKW) zp9OVLDkaP@Sn!ZRa zpfwY36ct~JlEsS7_Dr%e0UL8^zRSsSv3K)+n$b@Xq9*^-p|AFj(*#}L-%5Z}D@Zl%y2gokn7l;Zr z3CK}pP8BDR1$L~R{R^BwKH~@v9m;O_$00a5MMXTe!u0FG^=2=_f-XZR!DQeQ`5S_$ zO>mOUF8Y-Wfl3P|Mk-VDsBp`X&=kMQl<>nt9$C)^A<4v@xtW>qn@`Z)`|gCedb?$A z^S(N0{?3!oy|^tx0p&<-D62OWo$gVhEodpMi;O#DM7P>i6bnTf$_=~8)PdQ+^h30pu>DfM=LQT20!&5)= zGdR6}f=YHb45NFG9?dd44$Dm~B6k3w1%E%atidmZ`Kaw4q&8yb+5=wqe`pXWH0J%);cCo710p3&(EMuAI{aKjT^Z!u)Eq~b?HpnrSE9ftF4Ibs#HFpuPR zyT$g5JIX12nSw?q!}IY^iHMikUh8V)gjx{JN@8Am6<$2Mz^mHY*_n$LNj)%w6Vs2|Kwpq;J=(VFf`y)>|;A@J@8mL zpw=k%oRd`%OdUL*1^Bd27^<|sYM9NqMxOfyc56FSDcG3u;oJKCAOsBvw)JlyBt5jT zQZ;fkKI1}9MJMtnCEG?ZUph^R-lV{%Av1S91fH#pacM-EI@93$Z)d@UUxu6ruJMHVl=>YjT8reRi0SjW8t!4qJkSw2EWvi_K%!>35@JDfw9#W$~G@9?4ubk&}M9<~>f3`r6~|Hun&D&#w^ zZ2xrK!I3O(3uNXz*JhWWdgESs3jPCOS_W_J;0ggAduavgNUuLi`PfS*0$=1$q$C-# z>ca0l=Pm+p9&+rJQNFKvb%8vn0!qW9SGnIO&tjv!kv980`FquGKanhc(YAwQTGx)(9c1fRnojjxST~<*=y|?=9V1w`t~7Ag$5h)P#FwB7FM=E`e^youj?Nh^d}|GOC7mPW z_H&16WtD5M9H)i@@=Vzo^f`%yIQZ-qGuCko?CP8h^B$X|UkaKazJe>9C00F82u$Iz zFOjPU5)>;*KBg9UezT$OL$aW(Ogut^COwjSO2!@-ZbW#lHVfb_k?7DlEGcbl^tn{p z#+go${sx^TPB3R5272wadT(x2lACj6Y4~LktAm z<+#pEqlksdo%9?Q29%rP9C+LM*WZM-N-e*wX85OOu}J7Zrt%9iGjxN358Fy5GGaNA zlr-b*b{4zqiK)A~_jjEnJhRaVOdID52{6I%oS^X6)EYS(>ZE6NKd-S?F}lIJNYkBz zX=;apb)xyAi#nMFCj#Ex($CGiR?oF|gei))16?8E-mB*}o2=$UtMDZxq+&Q?liP(n z&Ni8pBpgnCai7%!7$wG2n4{^JeW)f-h&_$4648~!d7<~p8apf5f~7e0n$lV_qbrLM zH6T|df(D0@=>WA5f5yN)2BIZFqObOK5I*vhD*2~PZSt*83>fM))aLjXIEokDF;KGw zZ_75?2$lhYW)I_!@r8QpYKr4p27lOeG~ESg#8)LE@pH;oozO*hv19;A7iT#2eow_h z8?gZtDstc~s|f{hFXH|~d~zQ~z_94FB&hp$n~Uv_DB!2y<6&VqZs>-fmUU^yuJGdJ zNCHP?2Q+FZr?J{^_M3`92rOWnrL2vymWZ&0dYxz>Kv&GXWgwxTKz)<+J43r&!q}II z1DmfLl8nu-xGa?TgsrX45d}j{QAC!m8iO1JU=|Pb8D@9FE-V0hJEA?F)srec5$GqD z8(`^KQozt$N;6ts8^+R_uiy|d8MO=#Jvd3z_#2aHXjF94XkEdq3myI_UvT|r>1&LP zU*Mm7Fk}T$qbutLyH`@m{L57Mlkq!hAMe>2-o(8*axogLh^b!!{|amH_{Hrdu!4kWol?jSB%l2>w;Jry$!mf_nbz9_B1#8bWJwL@w!No42F zZ!YAr(^WO;wuxHb`%ZD(qKIOW&)L%j)eAUf-WERo1D?D~FV`np( z5x$@RPj8}2Rbm<>mRjfuPFJ`nN>>ltyp;oE9#K9IU>+pE$;Cq!IYr!NXvc_-MDFXBXW=Z9LZM(k9}OKqEKn5 zMk4%l_POO{UM$2M+YvQV#N~$?Ycqe>LbTz9ur0(-Wp!^8a^GDh7h{U~8h980RG|9E z6RPnEU0ccY1fEIdJfnZ?3Nl4X0Ag>*m6>|oajhbexf9~a8(K`2Ys~o)z{jnuOj93V zg4L4K@x2Dewt5Bok=03M@JIhBSWy2hwxcxRv7ukj`8uYPGrMdH0q!`qHJ^xDQ_bLG ze*?ZCvMv^t`JI7rlqLPEo^WJ0b^>d@C~mI!Zv)-ljBg#u;uvw%ZXMqZsz8Mxdtvbh zbK^eGn90ynsgjzKUOl)O`l3#-uY%L?tj;+Edgz+awV132>9Z-?mj*}u ziM4~P{Pc$s;}v&zYF)Te5J7W2!$o`EH|~F3NfA2NjF&~?@K5S*f_mv2@wT};{Sj`b z%#^~iJN17>qQ6aej~{ubsrhkBAD`C(j7{y)+hU@!^SU03F0Vu6vU3+>!lN@MLR}42 zLOtGS+@f@~=id z8&aK=-2+Pz*y)te)kF3xgyS?qgp@L;G(tM1&#!4p&Z$yX2<+lj>VWT1tiO4`_h^}* zQ@WGd`H9t~sH>+NT2d{O5(~BeYjG#5=s&k0J)iACkpC8u;rFz@_E-w@s0bAs_;b>+ zeR6?5n@}4wjy}GSL@%#%!-~chg|$Q=CE38#Hj0u5P4^Y-V?j(=38#%L#%l4={T(Rq z=x*H|^!EG)+e-leqrbec5?(g)@Op(cHsVg4*>F$Xb=BheCE*5LdSmdwZ-MSJs@@i{5t){y; zxAVyon;`>Rns;YH^`c&M3QdxzNaJl(Byct8a9v38fkXaJ_<=8oe=(6%mZ}CJAQ}2r z#oHZ)q;H0pGydy~@02e)oeVW*rQaD_OLr+)29*|p(gAHd<9*JxBnu0W61lNr+cO_= zX$B`VmPwyz9?FV9j3-@v0D7Z1Z}O;#KZ!@Gm7ZeKORcLQsPN8= zAZRd8VWqow?b1Kp8!AiYk8acC$>6xHuUZWkNk~?EqKsUr2$iixV=zYwM9laPwn)(W z7b-$PlwKh6n5^&Rs$#s&98P1ch#7FGNN6yU!Nwzcesp2Ylw~C1F@G^YA!PF|a$MJ+ z{!r?468ju$sWQLL=o~SYP|CBJ7(3`;c^t;TL4ScL$Pvv>N+5iugRLdmL zaD(CzY&3J+N)7MS)Jw`U8u*IevtEAUKN4~AiL82B$4Bl5oK#No3jGEW-o4`>c%G#8 z!h<$iX*efTk1lnM-d*7Db6h_94Y@IcQg@UJ1-g76_d9@vHWB%F55WG&!4DAy{K)Xv zz~7iiiq(J#G*Jdb2F>RKFnc3y>bIwlQ_Jhzoc4h(EOVm|0C}@X1v`lf-*wuaH5_H)kg%$_&tAkc`-Mk_04t+f0A_7=y20O8`7#X)4WDMOUpG*Z~n ziH5Zevf@*c28LS>z60h(QH92FxJHOKTj&>ep>z##ag+Tm*{QU<#Sk`f3)1y<#hgNV zkGRx3`qggo)?FK!Vd`6U+lA@MVk3QlsjDj#M*^!8JsEqK;p+%l%NyiKg#EX^3GBuk zlh2;u`5~mtZgY!005*{*dmF!OsrxVg*Rpvf{ieqF1ZPV6Mm4vb&^x06M8jn4XO#a* zXJhi$qNRT@M;;!sLq`lbqmcnAsSvSakQ{XcfmP-CU5_ini_P>t3m1P+(5I3tq028F zE8xAnu-M!FQ{&(q8oC{RXMCqw5&ri5tvt$=P|_J!+#m6Iz;U2BaX7}7%E%i{`jgjM^OfP1@K6wN+iSJ-2z7%MfLBS2$+zC|(5j4tu zq@N1d5n}UyXF>Bz{_%qT2O=&{@hkb|g++>5oZPMe%j~Ee^;OCr)Y7u{V4m&Qf@%WD zEUKEu%teX>pmF5DMIP1!>pm1D);32{D-N5>U4W*9kTO|z(Tb#n-@+j!vWj-S8aRy<(xvQm zwZ-#hyB%RQf|G(r&oI7iZhf^pG13lCEWA>mk}rI8IFlm%*!~#7;2xQps>NS2$f@g2 z1EoM!1ML(HjM)=bp>Z>u=jEM5{Ir>yFJ{m8hLv-$1jxB4a{4HNUhk+Rj5-H8}G za~r&Uoh}bQzyC)f6#o3mEkwFNhaD8_~{CW03Dv2Tbl4{ zAFamTS$i&ZYWmae1aCxVNIKrj+u4g3%D96}iqw8~HBu+gFA&*oRP5Z`MikjjDgYjq zkf0&#_Xj->@bJ>!}JGl=t1|~ zGIx9!u63fRtm^?=^0z=^H2SZA43p1deVixbphteFyrqycaRq6DLy2$x4nxgB;-Dug zzoN<>vK7~UxLPDR{wE0ps6mN9MKC>dWM{~@#F)ne0*ExL**#VrA^|@km1xCtF`2N( ze{G#meS3J5(rIs2)mwi>518)j5=wQ+Q`|O{br)MyktYd}-u+5QYQmrBU2ckYE7#Z$ z>MgHjknqi-2`)(Z+pJ?ah4UMg*D%PFgHFMnKg?{GSZZ*f3V+g@129FH@79v%&$&v32_So*G$-3SIp6 zYTlLgF2}s>)U;QtdWf5P&xikI0p1eg2{G!w0+xXNuYf%n#X#fou8}EYvAw$zmrjK&OZkS!$REMr$*aG zyPPjsYd_SXp#Vt9NGI*R;-*4~Gz)&7!zq>hh7)i?8PzCAAv(pNcUGlPNf^OXS$=bx(V#ji2eMF6q{U@ z9?ldp%YEsl;)d%}_Qs81OX>!2>kyChh!-n0Xd@2C1cI2qkRk&b4)(?@KY|?%qMoYb zEi7l}n$O`v+T31;YZF(;FEwj`I8Dz*9fbKrE)8#&?joolVY~3YbZuJwfRt4-kCOM; zcm34HXKH>;a?joGLqjIBG|B??@rS`LSU(l!vxSyfKmGa^x5&S$gvrsrlVT0@Yw#bP z-3#zdbm1;n!DpT@>AnxkZ4llVa;h^fj?R3uN5?-F)SLb}a%TBE=HM5_U*{K=ddu;L7kJ## zqyyGh;WY5rpvMm)$*xZHv!CUlc{zU8huQp`KmQT*yq*ugOu_#Kt-kRa+ODx`Va(;{ zLMO*lsSV`U%+u>-R9GmwqgWulP#>jO9|V60TBE z5ONjntHY2V_MmDJHr3CyuL5X%IlQKbDRch~>EBrwAM? zvOJj&z#NzlWa*K*VEZgjP#cAQ-HRG&mC)aqyjY19GP$U zSKm`d_gXzrLE_^a!9R<~vT9n;>{y3F`!rB%M5psN(yv*%*}F{akxIj9`XBf6jg8a| z^a*Bnpt%;w7P)rXQ8ZkhEt)_RlV=QxL5Ub(IPe9H%T>phrx_UNUT(Tx_Ku09G2}!K($6 zk&bmp@^oUdf8qZpAqrEe`R@M|WEk$lzm$X=&;cRF7^D#Nd;~}a8z$(h7q%A88yb=# zVd1n3r|vPZuhe!9QR*ZtnjELX5i*NoXH%d1E1O1wmebT~HX0F~DbFxk=J^<v|BCiebRdAHYXxOo$YS#BHYecz?S6CX@AcF_k;#_IF+JIV*5|%lV=Y;Ql?=b^ zt}1qN)~qaKnz~KZRf9Aa7U5S&Opz~;SF2ojOSD3HP8WYTbvlEyYK~);#wr+UO8_Sl z$-Yx3B~JYU!uChjzf0v1TKYAtsRkH`QZeF8Q$_`7iPJ79{8V(jbX4T=-LF59vw>au zY6LS|t!~Zz>*ops1&9o5w z3lQx+lhgdg^4d0r-%q!s(A$J%XYhUx~)v|ptx_cU#?44pnz*s$G%3=wh_01 z5l7f$uM;P6oqhM8F|$4h0me5--syUE%vI)HuhLv@kL`s1eP@buw&}80Umf5QOXBlP zAY(8r9}paD1p*&Bir^3<@3Cc4Mr>EpoDHghr{U$hcD8$^OZ6bZS{UYhl_*Otp}Be} z-P^9U7tc!@aodKCp{~TV6o}?M9xG$hN$Kr>|7e~E4mJK>_yjrqF@Kk1;fHw1PP`UI z1Aoa$7yGRMrUVO0M9$rM;=Glzi>SO8!lqon9E_1^0b)CsR0%Nv-$st+be?a*qJkqI zUNaqi*6Y^E>qlHH+*M=aj?)y2r>RGkG?X;Rv!7JG6Uz=^g7B`jEKEvgUq)s3Fw|zFMdak((XwlUaSRN4hGMrH zn2xFaLH!t8txnTiQW;qUWd^m#<3zgCp(=5~i~xw9lU{R~o1qSo#Sh1_4W5(^hL%O9 zOauMH!uGL}u?hV!4V~#?F-<;)X<)4B$u1F4 zf=%}>{b#f`$Ixo^Du_42V6Wir?Muh`(!izQSV9Y3d-MCQT|9bs zIlCtJP7*;A%^1-=u(Laj97hG}uP6Hq0+DzAjB^|$CG(?e_adMTiO&^_9WwrW4H!ju zWEYrjLw<{fSyh-yiPOP{O;c|453fxkp`E;k&)d^wYK=ipbD_kG$u*Ro!kQJOppV5* zP4o#ab%r@RITbag_zHMKF5$z8fJd1L+D8G@m^`*H->XyF$E{x;d;A+T`A zR!1#O!ed)ai|TF054f1+K6 zTDH=fps}vL7=Yl3_R)o948I{CP*`f1v{E~-xX#PaLvb?#qQRElOF-pVuL>d8_�{ zSCu|?z-R)71@L#eM!y^Z6p;ZjzlW@gZzHJC3~O?Pk5QEa0q(aFy!-~pFZ%vBM{a0B zOfAZFmYc{!vg!PSF@l2U zJK`=N@CTmAO4Wuqv6k{SNl?~rs-CcW0VFIdAj^B2Wacs>M@3N&63=c06V6Rf2sR|QLucLaU zKEq5=F9zA=+3ZT|OlY$lIrFmvTV4H!iv+MxhtKJ%j}wlD3qAoT@g^}Cw`#0dsQnXX zETbS9p{IGl{fkz7ld(7^$~HEkkh7pv3NYi8<1qwOw!a|xaQ$TntGU7;01Z4?b9D8N zBh&aOYgatY!f;X<$(oO>v=8iOcEG%aUvS8Uu1du6!YK*G&VLOXlHRCKu=FF(IkNo_ z!128k!z=B?9(@872S5v{*=6WjNH3gAJAUYkC%^7Y;H4r>$kZZC%?&3E-qa#4n-YG$ z{5tlV`bCK=X~Idzr7&v8p)y!whKx;pP;V!X^4&igR1g*2j}8HyVC+>KqbPFthf}+i z5*V2^NBvmwfWIU)3;IBGEwFtYFWVWUoB2RyvL7S*E#d%FT_ytxM895Q4V_PCQh+>< zlu~L{SuQcQ?il+AeFdE87H!P8>HgIJjkGW8@`{o5wNd6uVn=dNX5$aDi14$pTSR=` z!YTmifM=Cy`Z=%xX-u&9>1bJBw3nKr0@mO&YfAp~^V^fzVJyvwMY(hM5 z=T^FaQL~&c{7fIT@FE@vI;GbS=Go0=v=3x<1AaB@b>U z;-hwvu#U||CUj!>9G3YgO6yQX+H)L6*ozXXaV=U_b`_DQWq#`f$?cZ;??y9(AcTLq zHrc9U_$w&NRKgWZ>e};_T#tf-g1TX#Ttj{JjKjCJqlf63U8$=~02ty9Nn3p2WX;CqqYS% zz5QZEArIj!d6Y0VI^JFWKudu=NFUPF=6TxRR|reQB5_2vIn)qBV}S3;MX1}04E3Mt z#5d$zK8z>OW^i7tXPB6e%UCqcK(le)>M}pUp6H17YHZ$`4urRAwERt6^`Bj>zwymc z6H+f|4zhQjlg1Gy%93Sw`uMScxrA;vQE~ta!zM?jz@&c;IxYkrPHXB+h4)S0@SIgF zdm{UTZqxJaxzBR!!`71;K*uco18U~X>AK&Pu-C&`R?B-Aj0=_$cxPzn{MlJK>ywJq zsw-Yj{^>7%vDCYw^iw(od$~o-Pz6ks8aQ}A1JFWnE@Ez_SYh@cOMFVY`?D$Y&Z~a1 zd>zg|c6+o8_xSfEUIvTsdiN&WOe=n|xS;8X;CYLvf)|=u($YtOu_6J z0tW_ukuKXj2f=f}eva;=T4k7`&zTqf{?>lGm&{Fe_;9R2b^^i}Krru0>ta|4^_A$H z7DO?PFho!p4A2C|$W~JYbWN&eW(4R;;Tmhz zkr;EbZ4D?Birca@{afZpp_|p2YAInGJ`1Fkz7A$droV0#{h=lZdX+xO4B%I?B_3ac z=7FCkf`P*_R`SaCnBPG1Jd|Abx!brVL zIt?Rv1@qnIGKpG7W-M54@Oi;BujL}Xdacfmc_9q?u&4#P2hPg`({??ZOOjRFnps_D z-f(IqU)UUW`f&U}`A@568jBEz<~CX~Yv+1et@-+dsV3RVrNTx?H9ht?VAAS0D1{G? zJbr4_B_Tqy_Ag;Xppzr)KXQ9QX}21eoMW|m_{|BBHJ*=OjhvNq(4HgLp`u-X3tw>X z9A?^?H5zIU4r9K*QM+{?cdUL9B5b=rk!&F@Nffz-w_pG9&x+7;!Am0;Llsa02xfYC z*PtggCwO@a;vLXCgarLHOaCqh;)QBGzd)|oeVtn=&wvyz)rOR3B)bLn=ZqpwZHq0G z#6YvZtco3reVEzgsfMR6A16B&XJA|n?MuIu8bp_){SA_{zu;H?8${rR&r^T3v9C(nb5F3yeC zBCfU1>1a`bLUbS{A0x;?CCtvBD58$7u3>y2A_P9vigNVLI2|Lin+b~C-EytjMOHW0NTui}pkxXdFdIJ$-J+Bm$%CN%mac~u zc65u)RMsVt!-|8Ysv6BvqDBlFKElp~B6L!lpd@XpeV9f#ZPtB*A?b!2cQ>(0KpkD3 zcX2g{WebJL!6EmdE>s!+V>?WUff2Qb1G0)SgHlNwmhKjxqoM~UZ>S=G#3}dZqbOgm zLQr$%IH~rG-VibZjQxA+wx_MOF@JC7m(z5WFp@?e-&dnA^W!f5(1q_mx7SHG&7Mjz zJ*FkzBLiO~YXM}_WN$-^LB=)#9j0}Ig(60{oTJ7L{`hY&|LX}pO&lXsa+ZJY)@FOggOhohsSKci~64T#~a*U>?#ib&8;moQD4mX2U+S(Fg|)$9R86W zITbI3PGBmng{xAMx7@wkfPyHgTBnY--U-MN(8g4;hg*?%-H-2y9+fMsROmUruu~DJ zD`y+zHt;&kEmb0pX<5f>5axt7b!mHhGZrk)cPJl8fFV}4Hof{DHc?nmlNe4OZlh%Hw~gDORC9fFH@ z(dp|iOIbEM2+*ogN5G5IIj5N6dcX2{rbl=|y=_lReUu(wdD=vfPY1!pN@X;H)!7M& zsVSTH?G;8EjqWqJgt8F#raa9{%Ig46>|d7k@)*edY9u$q-2MD_g(YtesUb(fF@ zeIca^`q$v%I*l@1*pSA^WwV15>IOc#+Fmv`%pKtg3<1=cn#Ja|#i_eqW9ZRn2w?3Zu_&o>0hrKEWdq=wCF&fL1pI33H z5NrC$5!#iQpC~h3&=-FwKV0nX1y6cWqW7`fBi39 zRr%M}*B_mXH{5;YJwIOwK9T9bU^f*OUt#~R;VnR}qpl2)y`p76Dk90bpUnmP%jt$sr^*lRURZhg{Jc|t% zzJ@`+8sVJPXQ1iJ<*|KHnVaNh6Bw9w7(H5d@A2z)pFDaQHfA+~;ft*Wl5TXgXt$X+ zw>HuHuNiPuH}l);i?tm23b}z`d*)Fc#9aSTR0**x64KPFxH=waD^aF`<3*U+;u(Jl z%Vml|ibUgNPW@Mu(3F&xqqX`Ywa;f)vz@_@ai=KchFb+T#v=)>bVeCp(|;s8%R{-yG(vI#MB|PpTf%;Q_dytxihYgUEEp*4UnBD2i zFzwhlAsbs^rvyOn1@$Y4a#xL*#mfe*-%9pKM;rMxBrQ{x6g=Z)-ac6r2QHFaIB3Cb z)MlIq>|a&HnWt;JF7aNioc_56#kOM7`*3HQOh2zj587o#jVvMmd0^Lq^}+G*kE4L@ zyr1bonUrLt{25*}164@vq#vyAHWXa=#coq+BP`G?NvJ{D6iI(?WK_#=?Sghj z1PAobWSn&T1JN2+aDKWLzLa-vkU}op+rSMu-^54o|YB$BNlXsc4)Pk+N;1Zjv_2G@*gdMul2v zus9!wq9-nM_j*C2j*4}T#EOpQH+mG;>6M45k1Bv!l)vdjfmgsSe9%ze*37SC0>9_L zi$J!Ziite+mT#sPW;8{9EdmpRcM_V2yctTOVr}V45Ya@X%iVpnLr%`<6JxcpQZJW7 z8cdPFktXB1WhRl~Hl4PUPw4E0+n*{!yDCO9mjal(#n-SeE6ATb`3BWpmcOoQtW0YC&i_4DFt9eMt#<$YtDl1dXA!$_EIQN?X#w1#3P}!YVg2_+D)GMjl zY@_EZ_ZKP?D)_w?>J6RZnB*Q7Ruv~$QHEOp7abg-XyAe)|FAORoics58~_N@dE!`8kvn*VMyv=fg8F zE;Y1gK-hU9#R`_&5n`$v&+@j=#2b-LIZsY&v=}NAOjfOB3*&2UItP}{OqgRpGh>_f zh%mJf#U&@U;;T#cyP}$M2?X^}$+%Xb$hdUMG3A`>ty6>%4yuP<(Yi8VcxH+@{t9(T zEf55zdju@GID-2&%(4Va<|Ra3khy_F5iqDnK(rPsYx`73WPueFWRJV)QFt_0MR4ew z^AAwRM+u8@ln#u7JFYkT)O+ zi#|KR&In+^((C^Qz6W~{byGrm-eEQBwWk;Gru$Vq&12PTBnehngdy#zSGdTlw| zntnZVw0Zw8@x6+gX%7C`9GLL`vpHbla6TX+B7XSrfgEy0hYHbGenBTju?E1^# zcPx@a{i?zW3ISa;V@%Kjgr2)Vx3UHv;v0j#v5i!do{bld!wDqWoiXLi;bP20NC_Q1 zWmLa5QI~_)A`d}#*aQ+SfANbQB7Qd!Ncl(>6 zheiX141UI3v(dtiSKg*zR;+|a*Uv_OU@_I@u$Sw%+tp%rqDxg~Va^*|OD%zXAYe6! z!Osuw69pNHQ-?@qEDa7bt^Ga?Xa(5g6(KJGSSDy#r$D2V;~$a?q6O+}b4^#6wsf5E zX_GK0Km%Z@vtZr~zNs08B zzlMH4(M*)#G5 zynvFiw~srA#@cLNhHk`!r@!W}8-+5UBM7C2P^oZ%kc0uzbTp>FHRO=xYa=v)0aQul z9UgNxrY#bF^%AFxsI;{sv#0ekRc8}5bc+e-tghcK-OU0FGl`O!q9lk-bQK3kz*s7? zV*U~Q9=~-fem_OJizGL{$4*=a7|@ZKwLY%#p@2?FP3Q>15nTl#b(ZW{k6q`Nx zOMonpItf;aZ4(|66znCH7E27N)R9I&GsIJ z*ClS8kTkcOvZ{S>Fv|`^GkxEX=rkW1(MQX6IyC;Za75_)p3!=|BF|6pLRsYUq@}YIj4k#cwM<(2dKCeZZpd6cJ$fz6 zXU8ca+ou~;k@S379zHDD8S5)O*BT7~{)Dj3LCoshK9dt=*UEKo$P_!yxozT=ZtBkj zev^`G~ zc4AoF3d|9i#^@>JywzuSvW7krJ{v(4IX&@ZU5})Jy)F_p647?_s=B2@mHHAWI5l=- znNFit0x5-AIV}8zv2z;Y-K9McGGqK{hU0@PjRaEJG*_X4Jo*Ua=DamQ8b7f09*Mazbhhn6LBj%&=C`Zw8uz@XoMbA z%j)N=G34Q-&zQal!IQE=*PWyC%Nzbkc?SQz^J9l> z3}_mkctbvtd6Vvr=Tx5dQ|k=lg-=zHk76OjP=g9IPH_%tWed^LXiY9Cazf??c$snr zz!4}Hl4G4@_xpkYJf2FXoKOO9-6J)oiWYVXuSJAY&Q`aFnV)5L@nU~x9O9VuEbZmm zRJHYpRyw?}bQVa47oYcRa)$0@{Whq+Eszd#|A;H146&zmxR5#?^3=Qdiij=KX-Bvd zk&plq0|^#&B~AjImXrDvvJ40$v(^a!JSp>w3$@6tFc)7&spiek=YVmKkS2(%uo;S; zqBCrWkh+zGsP=MQ_NEL>&43-zSnE7k>kbEB)jJWqRV5}k>J?*Rcn)jx=c`6*MZ~|i z%~^le&(UQK^+n_>?xxUQts<>aPR-TgOJSE6Uvk5ZUkP+>VveCD#mghIG(nOynL#Rs z2$vVgxk2{9-OsO=D`|Z%@x3w)&CjCgeKN0P_V|BE-c%IL`c-nXVk9#S-YNj3*P!-C z^7XvFA|Fc zQxCIu-q?|)UMe%sa3wKx=4brU5@->gWRLT4CltHUIy;}a|KrUJ{a?72odi_$Jtv~g zkQWC&u|Ui#HMR{#IS~nXxMkhhGSf zY@Od4)>#^qTHlZOA6ih(()g<+OnN3wb6{Q^(N3|JFQ>wk@M>uhX) zr)h?8eW=WL#|vUm?PV9~lwWnXh-FzzJ%!x>#?s)dgZwur=+ie)NL%H#f~c%;e2_O? ztRDfj%ldcOwjk(ny5_GYpz}QMZ&YY${hM|O2AyZWre5QzFI62O!>~tkqcDdtBY{-$ zuP(XeSh@3Xk*0o^Wa)qAsTKNxZe}ik_%)PtKt<$f>wWvxMo*99^R)3&;*5cJd|r=q^}Qw~=ZGkr7Dg^@4b4T-b$ zv#R2Xe!$2km%(4C))AfZ26hixuAF}-+f zZwfDSoMo+1_8Bu$7xPtlaoSMSxTLFO1~#1+>uc(Djj`l$TpKz(SF{%R8g%NC7!}{IaPsNc}&S&M`WZu4&tu*tTukwv8*!#C9^# z72CG$WMbR4ZQGgo=6>GqNB3UctM{K?)xCF}Rdo~rsc4{MqGT*X7Wi1f9D7k%cwP1a?U&RIrc`PKXV&fRKgI#_d$X(&SXS1O&!lRovJGQJQVg60S*AF9wDZ zh9=X$yV0h)E%*z&CuydVyRSQ+JH9@TQ=dpevf`7)2Bn*IUCx&ilfbHu<}m{SoElh7 z39m})DpJWpAR!Qp@x3%)%4JbzWB4LPxVLQRSboj0EXO)iCbQ->>+)1T{T~oy%}-k zZPiD;=v1*g?z+0TArLF-QXVcw-NDyEHfrSgjtgkt>ep=3P%Q6WnvrJt z+4RwtdR4Q#RUS7xS~!Qbs=E;lje z53Oy>LXWHQ$2v+95NE2^FeUsgp1y4FyvUw1VadDrg*G_B4otGbMYIlWq>so@%yJ!C zV+>DAk}AXSYO|>TXO$oecP3UZixgcI-#ccF znJq7up8Zjx1AN0)D-mL!udb@{XsbvCrCnAgur+f+WxIfw{$K!o4 zfn|*egR+@Cqfbd)SeHLedNl(erm}_}Clq=82-p7cA`8%vq@&iJlk<}*b;&T@mm@wX z}1cA((mK@yos zPW0ZW@JX#qtMNijTe@pH1gG4`^<{AR@h;s(T} z&3#(~u$Qi#%j!zW{ss#Xsm|DQOrmKNB0cK9N~^$rZJLyDEKoClR=V$R;aujtgT#1b zA`U4#ht`VKoHWuito?@~br1x@B1L^j>cuo=exM!L_g$Gz0SpZ^`C+o-yaA}LPlf0= z^n~1R7J(vVSULvS{$R8709Q#R@ZbWBjZyY(AbHaC(7|(oHtzZ@NbtoHn;_g=+H3fa zy!pe)r}Lf|tftQ|FMWp`rny9HZ;N&8jH3-LHf6@ zM&!|x^O%ZcPJiq#EK4mpID>Rd469b;u>zA+kvrUva9OQIDXPl_*T6IGn29GAYKQ0n zASA;!l#^KpqRw`sb%#}-2}Ud`ZK&<)htt;RIog2CA2(DI+sP*f^;yl%Jzz6%{0}^a#h=NyKLgPR? z+h)#g+PQn_^B*+snviZU(joHWllOKpV9D$p5IwQbsoi6pC_`)m%$bm~s>3~@oHT|MFt~;^&e$k z`!AZ@c$^%MzW3|Jt;kr?yNKC`4g;qphv-mowYqO~qxIDHG&T*1Il;sp@iK|H~; zRY8%8d5`6`s8oac%2s^AFKN^&{3cN##QttYZ`4w%O1kG)vS3r_nko@(3WSWY^hy%k zD_xZkb0hmkTBJdfu$mY-P*DN?TlRxM-eP1OB3FiJK5ogaE%S@t)Zzn*d&`8NQU6AL zC9qU0aDA(=vpOu~8PPvMOGiOGcbw0;i&OIZa_^2(khD z;&117LsI_yz=<&pOSpyG0=nv1z6nB$uqp6DxHM4~*{6ytIT39}>Z<;BowyqFU@THt z9tvb``MojCN=M7LPJs?9k>}02!$N}>-Hdf5sj+7zPsGcEpJ72v5=@DHxVbShM znTCaXY66l$r(TQRo{5JpXcn1GZ4$yFyu=I%t%@xcR3pUKP%~9_4y2j%Q(-)PkDfn} z9I;eUk*#9=IplZ{KjMiWV(J5dk%FI*g!Mq0g2h}Kb^c8wfG~@54Ml|sRB_zCI<@{6 z^>GrT2@cGf?mzHC4F8I^S9r33+|on(dnh|1Z>%)RxVYT~j~E*AoAP*jexWIP76myS zPmxHAcOLo4+KFvX7leBb75ClA;yi&nJL{!SU3@ zWMvA{qx5Pu{sRs@9^q`F3_ray9*Q&n76E5u$F_G0Tl}P{sn+HS)^78+pUqFXayKO{ zi^~-OJkHkEj&_t9g1Y0<`H^--_8B+x!zqT9=#17`5WUA@RUk-mPwZ;c+8RhB+N`=K znJs*ymvdg07$&iKn$G*Mk6>^D1*zhr9ipPUJ%R8Yk{s78rc=2jq zx?!bk{FtF%6OeF@OlMxwiOa{3JZqSunUzIK$Krxk3j28$=JhtBUVAPyC$e(tOs@2&>aIiai+vP@s~9CD!K+B*cxuJH5{ZoroEdkOb07;B!(&?FM&tYiDzMEi^#Kvu)$>mUMf_&sIXt9V z1`|{6PuR}`LE+?M@z!%&B1y|M_RaF73@U??hm`07>sJ^Y!2lLnd(8Vpp>y1ny1lr3 zl!y`Wp!J+)z{ok;P0$-LP(J+_fL&p*f0=;J+-ts3-7_(rS04#pN+)SQz)n%tOxR6_ z@iS9s7}z{TeV+AZUSI^TvB)a<)51kpw?}19ciIMhgxJi+fk$dzsUIxLVQ}Nw6>zz% zYtr38Z538+YKBWeW51rNm{Tpg2qKiX&!^s#!ve?C(NY6ft*#v{M7+r!kFvwni9Vg9 zVE>1ImnPXi@nY&lD&bwEzxTI{dNtF18pL$JC~#UVZdYp;{nAd(+?7ql2-I0p0a3h^ zdE7VU7KJ)trJ-z)KsCRt^QH%e#W!F~rPh@w4+*$@ zK4)>+_gDsG){RQP2XFWefCz@LxK4qr#%x=WmPy&Qi9cIKa_7gh__E4y=^U1@#vNfA=^ut28X2_ieyr<^WqKZ6Z-Or8MH|Ad<`?oNVuOc^D;a300H_ zM@89Pv5h{>T$*iPbD?^mIOFe&5u_Bf2CQ{5|AFdS+Fwi*XSv_QuaOXm*g$E@V6`8E zQRKWE^)Z_$Y0gO|a~q&cE+vcV=jv9uS%8|>#SnVFD4{g@06WNT*HBsw>2!tC0{d{{ z-?m)$6BB^p0Jsu~0e@^&+QoxKB>XGk((rAyZ?!zC_Y&)X*aR~{dd)P4=tBS}&bgS2 z{qy^PL8LkzJ@}LlCE)1?0?Rcsi(8&_kltfWR6M$DM zB@k7TLP~t7P?uK;Ts)*HwZe_wZDjbBZM%!6b?Jhxe7&{7sfsC;9!MX@l+!aDwGefQ z4x^TY#)Apr3tC6_!dw?x(%AL$?5VUr|4VvE0UoX+_onVuhyG zjno6xQ`GYfpa&yn`;1$$&NDY>HXLD&54al2@3A?CO|q4u_Avv9^NpXV^|y@IoDy42y31Z)~eiGpE6 zjFQWawJp?DvP0va!#N^er>_g=QN4?!$QgS^+?fbZUO$e-pB_^&i#<6xi*}@zikhr) zQ3p!O-n4OUat{Ysi^*BT_O2f8jyx#;l8S9XRMCoMZ2A)_ zX({EoS{qBU0kjhm%{)Y@gbA}dPEho2-^nP_{xyxl3R{(C!oi@~ily18z0RaLa0~`Q z-}?ov&mj*bb++L+Cn&la1{QW6ioeY&-ik0^fbt>FeFp7$E%vk?b`~WsQnvbzyglt2 z9`}pj;QLZOF2GfJW`1Ani=s|17tLg$8U+`!R+s>XANYrUg=l>KXV@4VJI=(f0lM4q zc{QF7gEfqt;%le{C3*5Z;l{WC zFSAqZwN$9H)7C|NkiQGy?ue@E(A}7Xg?|NcL2!wKV2fX9dAtshHJ||p-F=%=!ny8q z6#06TOF*fvSQIa|E4OQ!zt_m$j8YEAXLb#*=)p7dhKLDe#O1>ypGw~Mhuiss4SE&o zUCOJU9zDRJ%X0NAEI1iD47H_vlSGZkF~C$89(cGGOkm&MeNlaq=G0Z^LGoC#&+(5; zaLHJmE~eLwe)P>Soonm@y#9COv=j>${%>Y)XCS}#)W(vgsSVQX`2E(M^D$y3#n~@U zgV@DGaFc@HzP4;aOZH2b_Z$V?;5?hCMg* zn!6cCC{y}g^m+AoL?$;eAC=f(GWM_EJYNcPYf@{mDE%^ugN=T0ugCc2Ib$OHbSS~)R(7Omi zjZ9k3U(d1-{M$k<#<4`~+j1kbgN}?&yxq;C&cE~NugdUGNRR`qr}^`}2t-ziw}9Yu zND&z4NgN_teN~?NfvUpDyi>c_B^0D$$U%w_9IM8HxQLYy){J#zv$J|XC2k3T=4g!TR3r2+)_P(#EJsgpZU#ejJ820y9k*w+P@sqnB zl9o~obFSN-5jU6z9D=9cynbWie^HJCnF-Ek_hYH71W5_lcLsNLo|gKJBcNoqk5c#` ze{rg+LtS})^(X{gJxq+Am1Jg{hJ6adCBk8!+}{d>I_;u1kC3In1Oy{5Hv>zNHJZs5 znjAml*}FNZQo=Ul=BGBKuJg#6S6ZrlZyojk7hV6B@O&_H#+`Ni^H}s&=v1+EevijAm=O*FaVtKKpajjc} ztaO=b1DMn~BYxd*1Ljzw4}l3A@`qiyNuq=mV%qB(#Sat#fi05rT^EFLO~bNLgjSc> zSJeJCu>K0517vo(tmJk=ys?J>M|?&{ev!nS5H~cObS#1rSXcN(j8<2c>5`D6w2tf7 zjkvK{8I{la@AP+{l|PZ5ymZ+vIZ)x*a@lgzr?3`tKDAD@YKBNf+PeRun(}CTCE(QK$%Jyv^`vksei?l5pL8gQ{6s0E?fw#I?&W!G9 z+C)pZbxWvq8L3$`GAe}p$97nO+37R48}bxo#dEr&Qg2J#ZMnsBo=g#@IeASh%rv$3 zCyobcB()INWZIHZD`1NqVUEe;JpLx>!$#$~`lfTHjZNvIt*&KmP29<5qHD)>(a~>x zDT_5fVT~3K%Ybc3xNBC1#@T$N^+~ISZ6!Z%293?xQi>N0^`8#KfX@*0`rA@o@8FAT zsB`&GEUOCN_|)~=lHXT#bL%f2XZWAqP55N5u%n`YbLctRQH>0A*QR;vQFGqagnY+W1#k`J)!VJdJRaXokyH%~~(F{OUSN8mX&?MrQyK$stRrJN_8j?Wp zkvR4O{4Z^Vqxx%u2m=IUj^=*~`lcNV5Y9)}4C60QCd=D9OJJjRd!f6-KB(4iLqL0d z06RKXrX;z+KDpkwUBP~_lcJsC)qGnR83P3c9A(LFOs=@F++QC+{gdCcPuUTcIvlZ| z1hzapkd$@yJ+ayMyfQFU1*rdhojeGzLl{LMmVJLfqNj@w~3XBub!DJCFknUoW~z8qjLV2$^@+>HX1 zzkSZ4A3OtiiMH9G)F{x8-`pxn7O@+>p8bL7A}3@y3{7A@M8Vy*CAVFWIF!T1DH%dJu5FlvnwyLF0#cSdT1$M6# zZ18qzTQfAt9;sl^A2aK%_~@pCg>_Qp()DFxmpa6s=1SZ4*=uzdMYCjqo;X(5oMhv{ z(dB(zEBvvp#a1pisvEaXUh>{EKF)%>rO~fl_8B-_Ime(8ne*WlnsG* z=ur;WDhz}R_=p6&Me__0Dnqa)Vm(Gjshb;d)FwR&H(;EMbdzAFeKFCT-Ig4E$-4aK zGi-#-;?EInxP?iXbRq=$>IBkhmhdo$FOD!Kejf)(j0kQ2kZL;=o?Rn5)dp>0x9TTa zCPh;SH*Hd8zFU~s1yV6Aqabc3g)G)YP&0~_iN4(1;c@Mm-(~T@_R?w9F6{(DUIimi zp3cI_mO`0P?HWD-gKBwij}GDE1U1oqsx#4xf_P&!$(ge3=p}rPpg(z7QtSLwVp%wr z)b0###i4ADrG59KZ8H5jrgmQYIGWL*j+|7cc$#s65id0@KZnq(3&wC@I#!RvrVJD` zc}=SdM#lo1wY7qQ?%8r4UAkOF5s^!cBg2nM=0e+U=;dHNa8Rk z6OSdR1P^6%75kui(xcdvAns#PwNEUe)W6QKvx++Gk|I@P=%B{I!M1%mN#BD~Z&~S> z$J6!HZEokW811c=}jB3iJ%ga)vN0pvV7DdI!MQ|gk(^k^%8^T$}3nBR>8|jLy4Kc zE=NuJDc;yGJK4Q)RVO0FMbi#2d?W{tqrvP2@CjY;agYympLu+8SM^1Bm^UyXv=)A) z$BGy?QAf}MC3Q9vaj5ue2ht+%CG->!2?Xo*aAjdD>+D7_N2BVDezDXJyMf0#@!V-l zodn=f$EwhwvPjP_`FNCTC?>YxIjNyQ{JA`OmQ^H@t*Ugyq^(rOx@Jb)%18SEeuX)K#ChVAWHY=G3=!Nw39B8L}Up9V)+ma4^A&pH?m z!ZxP?A|Ow92k*S%zgJf&B;)6NY_3^}60 zB^*Tq4Y^#YePB|#FBZNY8^FhrqL)yz@kIB=2}87#%Sz7pTM@ebhNF*?h-zOlGaGfv zZQ6P7qKX#@;EeeS%nI0kqiA2Vr6}63Y&%v5y0ML^&*z*~kj@ok`vxQmDwUd}iS^e} z-?Z%5Rm&l#PM70=N&Wo!2i0KZ&gRQpo@dtJqbT)p_hI@y$KO)UOh{V+3hcj2VhIFR)|`=Pg4tx(@};;bTtOsuNyB$QXe9pmHv*L z1ben*Fi>HnWoMC*FSQmeJ=SCE7~L=5TdT2brdx>Lpwa+1d|$6We068K6Wxxe&F!baQ|&s7pR zl$NXuC6`oi3J}9TYEA17G5kP5aP5fSaDISnI#xzANK&8QAygL9p|IKcF>Js?yRHxU zXvzf=6iuHcb=PWBZ^DVxxF3fDUpU6wevU*hwgyKVtY3u>XIdUCa0x^aO19CqYHPS9 zu`dYUXsTy$uB%DR^04ViJd4h7l#|9UlYmL0#XJR0%{SPhqaVrB&z{5U&dg+Rrx@9o zO385wN^)BuxZOicKQ)$`=k7N#;9Rnz+VF@5%Y`gGshFy8Hw5qg1W|DShA!yJt9nJq z$TD$(FaiuiWu6WUWb_!WUy*ZE@V4svwd&C@-1t~Z{HSQZ`B<(gJ*A@AOX3QZPVwMQNTn>MiKs)cfbC0;XP9g$wQ(ssw*!|cIBS)~BQVg{XNM;6Q z;Z4vGuyho7&kMD)b8KPy{I)E0CA9=YS*^)sySa<+o{t^_`#Wr&9lM#6YQ7DV>6?p(hnyN`!Gj7pUlUK!ybM`VhCQNEdRJw0Ukd^J@oN^+6;{FFz;7a!3hiE!Py)C;^8Cbt>|>vA@hw*yV9$+*+F}_|C^C{ z^$4FY6yp6QXa@b-Xbg5FDP(X<&GfJpd+IZhw5H3X1pyX`UgqephJAD<7@yKcmyak{ zBe-1l&h}3?t;+`H{Z5<-0A-Ed?nmf4oZn+6q=JKLD0`|9;b#lCP+P-NR`c8`gG}~o za_Wop;jix$On;U>r}s_Z#~q-fxnlbMCTVSaw6-|ETsY)HQi$+ZohweoYG;J!#MmYU zJ-&E}<7=c5?zK`~6X1y;X3s^0gnjdu`^z8PyA=m4zB2}%OVJ>2-(KV1!c_UG5tvz;-b<-P>67PMe-{!%S$+ge-~q#h{~r!iBIm0yR$+-JIM$&8J3`IN$zZby7XCwIYN&KX**xR?3#I`P@$25sP73{J~Fr{&VSx zWjo4(!WZY0!WRLG+&5_hs+36ennIRCGszV{g{c&nVv<_CY*JB76~&P_B3|dIkxj~o zswLyq+@`s3IgBXdfGL(JNd6+zp~TOG2=b5kop^*4-kRP~>$H7FNTn$aAkWn2(`%K@ zrFm>^ze(m-JNeWHOSG8y%D)sDXEXClyF~dn{9#!|`|qY&trq!g^80r!*MCE+{w?so ziMQ>7@&6_Yxnljhy1zm7fOt$qRr3GE8*nPAj(P{1Ed#RkgKMS8Kldx-Y36B97IYsk z|9}y6IW9i}gPJn_ITCs#0(+!0^=F_B17!!Ja0Fejsus9etsKjEH{|gRobo=RabqWx z+E&({i>_*%E@=1X|NH^2N9Z7gBRCL{zZm~NrH23ixJRLXwVMH>*4=hnF@c(Vhz6L? zfp{Y5=prJH88g|6MHz78O^o71L#>V^fpA29VW_j}65@zQ*^j4uK+%Uk_aBf(U@o9> zNJyvCe618gc(S4%qX--Jg9r=UYJd}3g)VM{2sg3JVv3zB=}QO#SbJNpmK#M~YdHii zU{sg3c`hw~d2=^L3ugw$bl$tWmJOz@l-DIhqBt!HD{X}KbwYy==H+zrbaN?|>TEYr z0CKrru|C>d!2)@Ga^_fEG(5+9tE4#&&R_0^_9d@-J|c81x}VBM4}h2AIy2OFiy9l) z2iDN_TbnQHnDsiZ1q<~HtUsOfO(hHZK(R8@n&|X&-gme5v8YW}j;=D)lv_A@`oA1+ zNUKZ`vXjqpP>7Wn$t?Ru;6+8)qSGP}KP5OAm_7UIg5B&VzSzLZ|8a+!1NZ5<@uMGk zC%5@!@%x4*mY3luwenb&Jx8X{=A`6&qZX+C^T;Z}lVq*`rMsN|JN}nXopeTxk#y!Q z1;nHgX~8#Wp%Il5CkUX>H2{TkrZ7rd*OxBTr?aAamEB~ISQMB2*=}#sQIjND1HPa_ z`VzU_VYSd?wZLZglgn%4^}vuEa|9P^noEhB(MO`zY_m{qND#(h`HJd6D$kG_kme5{oszd&i( zEO$uPV&<4Nk5pW9Y~0A>hUeCvz*EBZtGT4R@XC&cP9DRNGq&SM(;Fuyixh&|s@)*| z@R`oGyCdd^huhWJ8piCIg>D{fJaRF-E(BkVkmZr9$R)jZlgrWyD^K@hc1=v&CD8pe z|GW*rcuG~5uTj?g8(^WxCdG#oo4vAFn|A@Rd|ExPvW?j!sPofTRq+M|eN6jwD!arC z+^(8p%`i9gjQ87zSIaT_w`yIkE5IZBJF{Y3?WWGaHoew93sB1j*FTe;A{Yecfk@wu zpS8McksjKqHCMF1dFHK)V52~|0NiRI9G!n8tyZOz2fMkVdBpl=JIpar9_Zchau!WviRC`DxWD%D3h_317BbUl44j1a4&^ zGs$RKV+L}b>ga6jc(uQI1uWd|5+t!4_96Io%_HvJhrg2uY)acmo&SFF&mSd9q|{jTx^fJvbGU$-P~^aGpDRPn#1$1;sIRL24$V+`egtex zE0k}VA5-#zF0nBs%l&y#BhpJ~zUqR^xco=d$&7V*PH zZ=(514Nu-@FP;;Wg?->1LF)jYHi}1_6XDz?5r0lRq0^lXaH8k<3vAvt#)oP8Jqopn zrAsa?bw*t^03OdK3HpRM0`p{7XB=%X>0D6C*+UeG(3y##xz;tUM1{^fo^F%pfTlLd z#?dCv%;ETjo#!e$C)Lv`iA+?t?z5~zU%{cd-;DX>v_MGiYDW9< zxgX|zu<79r0gb4~B!MrWUytBX=pu9m7rpvVIlw0`O1cN41Fb?v&Z6_1mp2eH4{GvQB3CrHZWyrJ;VnXLHO@%E zN}Lo;kSiq2fzh`?=X#gM-#%8;q(d{1S4eY6v`^npV%ZZaTx~x^K8$(CSiZ=xP0G{T zc0(O^50=d&>c_p$N43*lVIrBX3n(=G{Ivvw*be|0`dVQ&l^=&sB&pxb7BL=}$~X|` ztZcSIzQG9LxDz1?LIBcJ3y2zUcP~kNIxR=HnK=Z z$Wk>Vx#^8P+vXHHZAm8UFFR3!#hHtX@Y<}(s$-Omy#$v~zLk0N7ajAJ`o~JX()PFc zWrpRbuu*pK0Y{Qv34&GzdRHoS@k8)D4bmvj40_&)M`F5^D#&F=t-fRWF}}{L+uiU-6_d--48;;BRMD~TQn3cBij`+7B^`ye zsH$AndXoEoe5G+SztfZ>ycU7WwiDI7j(Hy<<)HI8pVpN-D@n?jWThZq|4u{WT}l92 zgM;60dekYz?-Rl2H}NbCJEz1jbe>FP6mCEO|JH z3_(<5pMGGP-K>)xQsP2Z@yxwywe=+~J8hr?y<61l@QJh!w3q+x(#_Sz9{Bx!pLVXL z{iT(lg=r-K!a?=*bUB9|;0w>|#mOz~OgdS&|qCbH}A(#|zMe z6uhN4%e@WH%s+CNx4`g<@yk+@jM2&i3I*YUczoxe{`UFds_i7|K$3OrDWvUK^)PS? z(^0gc@Mr-vEMRId6m`k1!K4hmkN3)Qk5^@QXnC&?+bWtOgAP#?ryk z-yqkXeE_ZvHcB`Ny#azmP1R>8^$}PRZmr+)@s90MQEgqYX4H|wG8~Ib$fDbyeKRg zCr8v{0HDv)uS^-HK1K0?s1#GqxSF3QK#JA|7|!-3K+AsTY$58G27<7Yzi!9C&IH3NshKKtMbEHyh%yHtJl3+Aey;Lh59(yqb??B4IeD zm9F)fMrB^tbIcgRMuM#3d^gvtS4S7aPR#7$h;)>PH|;*1>MMn6A&JiwkKa5Ur9(F% zL1dS_1Db1u`Yo_*JP-F_C^XB9Z1L%C4q+orHgXL8I1Qzx`W4jrt?5EU|8G;!NSzWeNG&Hjli{v-u-D zK|+c?Ehk)<>H{WSI-Kn-rf=uD{+^_AaB*JD!npc%U;;R6;)=QgB=CEuocaaljF4O^ zzh3^FZZYf2_(J=uj?=7+#$yjMqav7#SK`)IPa+SN+=qlo_e!s_>W_|fWSCEG>IbO+ z4~)$s6yV~rwtl@A73o)$Yk~A`&@)zpUu5o!>pQ^bK5JG@s%yBlD8XJoz4WyhRr{-` z?Y1%AV;Q(Y+WnWiWpoZI&hV+9#4!9`FijOI@(C?1UzJ^>n9lL#QAP-l!i{zRSv<6R z-q_H#O;B*_X_3TXT$HKUC@(K30Wj4E%Fq<+eqfFlpWALXdOM@zUE?2&^x{Qy^^Dtt z*Y?F&^c#zfut^`~ypB85(1^?KWviDYa?{pmRuWi<*D~0!==#k1&d;P@9dzR${4gPB zwpXZ4yV+KSPcXZie_65QSFS_9K!xMM7Tp>3_QvsJ%!ks=-y`(=P~s!T>LVL`=9Fn( zwrA;<@ShpH%kZK^?dCHz9;K;XWzc*$k8w!=)r;%MyJB`A{(L~!RKHz5kLw!7l}#vm zfdT(gIdpqd2PW;L{|mA*)jiC@ld6k!y~x7Vq+SD5%{FE28WGgeY&{kY))D6f*D25Q zZIKpb)^m&1>KPLxb=G4OC^kX6rCPowoo~yKCR>iMApU@GvgktHya9$ou^;6|xY1)2 z77Yy*2*QhNRl*Z61(u(lX+Cs`!LhAByn$as6T5%IiG(Yp|Eglf-rG+vBMiH zNSRL~4z>Ds_`*DKHWA$IFyjUaiNWXB=oRPVpNREz~ zJdb0>;6p5v6{Ap$$6i?8IF(M#@^o+V%BY6TpW3(m|8$-~te>WSGA)dn=IQI+0JCc+ z1Y5UG&yN3{fgyr)pIgpUQ2yMG@mf>~r-@em=hB4Fs zPb*keoJx*#qEzubR$|G;*rVNlJ}u6i+w3bM2#6>C|3n4uC`O>oe;pP>cTvtnX++y$ zFws|ab+tA7kWz5b7Keh1RemB!_9(Q5T@M&c7%-2FA?<6G&u6~%6Ya&Z<`zguZ-j1N zUEO57^4w-*X9xj--;nh%YI{#dM+)aj25BoK?+CuStuN0U+pt}!hZAcsK7(+$L-+A| zi75A`YLcPLxgP>|q589cvPj-(Q-~QFwVzNdrq#xNZy(E{6RzPeFY#v$sNQj|a;fsnxzI(QS z{VxM!EhB2fwQ1s@ODoItDdL!WmT2NhHhUwuspBfFUp5T@DIKRY>vG>{lLz)G7BuoJ zwpEerKA-82becp1o*+DJ>_L7^2=fnU_9O77RM<8@$jNktpD?X$roUS71EkVyD%j1m zi;9B(0p=z`tb2#kAf~F~b4j)G>2^Cov%uDKasoo}w8VVriKr*Tw%&Zqj7~!Sy7;1^ zYXoZCSciBN^qHn`ZBGtWsl93LukGbpBV!*@Rb@_{ngsW#*s99n=UBvfoEUa;`FK47AVK3Z(Kk(`VMK%yB0isQfAzy_3+`v+SvC`vx<*mRenZ{rYe)+FRhOGb8<>o1JfoC4lLp|Q8h!ZVWpYp z07yBY#DyLjqm#Ft%nC9?=7gD;Q5ew0z{kR7g;rohjNHvfHj3lzM9_A+B0g#t*@*@9 z{}HX0C=Zbt-1H1+v=)mJxzxka&}Zhp+WrDpM_JLG{nPm;I$-s3wqsAM49srLc&@FG zsSi5S^wPxDXRWkHj_AgJiOi0$SLF4XOF4+)uII;p@9csmNs#=Xu4Mh=zwZ!?83ZP2 zzXTmw?U#$InVqt;gQJO)TX9nQFNFeHunGU#0U(YKcfCc z84#4Am^@i|WI`3q8)xJJ+WL)Ocu)OW2EQ`trvMLoSx7zacwbm6zN#CgSZU@pQ&aCR zzPAo}yMO;2Yk{QA8Ljy|n6|eiR65#dv@I{WPE?jW&`jF2*oHy1oZ>3f(Lw{$22i%J z$ZZ{W>v0DF&zlND9Quc`Ob->B+m;Wh#&kr5&d1KptP&lKZ9ffd_z-{i1>s?(MC!Kc zlN4XC!04kblxYWJQI%0fNorJ=_(cb@oSD@zFgPu`gNv;sJ&Wo;RFc77Cbj}ZF(=}_ zh1nhC;t&HEzIbjDwXMUM;e~)lHeGv;tp?ha{OFqb#^J_IjDbO#@TZH90(P5p*I5hvP54 zxh0t^54jbYv)5d@)6zndct=vo?){V~T9*+g0?@lE_Ss9^nBNUh9nOK$dv>AWhxfFD z6#^xKpSd@D+*JeQIFJmZj}rJa8ls@5H2WI&ZSG5fxHg^_xoapOW%| zOow14uOw#3p6V1%SNXsjPT39#z4-#;Op=pZXA{=Qs?W9GHMIeh)t^7o0(woLngo8H z4+<`;3k_TF3ii8&u70}@15*aHJ6uf>^L}bt?G_vGHDOJ#Bov{K;>*h3QRG}&gQA@e z9uuwy{Gu;!pid-0$Sm*--v8_BhG$5_$izneQaowLRi9<@l0X3jTqMppT7(t&mgqZd zDr(dm2mtDIXaq9!9H6->&ZG}aZPHH0aT{I$=!SpgV87(Dkm)+bc$OZ3T-qn z!OMiD!w1mEJvir zW2aB4yS38ZKex_!?|*;5l|zc^%zwxkMacgz)ng?gr$HrASK=q_C1C*z{EtQAsZzj) zn*sykJ8fjxA4I<3d*+5lhOqoVgp!?FJjzN0Y?J=AZu#rr?qUAAdP^kq z!-%j2#;2oW!dx)?7og3^T15{9j>1Wj-ZG`KT3Kyn$y9=lHG4H9e)>KgFRGv=@ zc=wADdn#VCmndt<5**Fy^goF*{V1TuD`h;j(UT&s-&L=ek|zL~ziK8}$2jZC2=^h57nb&+Xj0;6SK0M{Not zdZz(j4-L_ilW$;OzN@|ih7mQU2i-~jJ|$tSoAseoPDM>*%W1v2)MgWKlT^6ZZHGNF z8c*EwJ6_0X#_|qDK*Y&GQL+Wb5n00*6lHD1u^afa915W- zT?Loj+aB5k@$jc%8FKd!@1QnC~E88_D_bL04aMukP?cxyVom601|3fVoQoI-RZwN7@6Q2ln#~spKR=Ry(6IxzC zF#%G+G2D|id5_3Z6hUrCG9IDR-DvGwThMI#;US{nZ6p)-TOnW1-kx0TTX2w&(1xm(aP0F71hR_K*TMY<5a+Phx^w{W=@t17gH^mSK(im&ZG=( zHY+&j8`#KC*)CXO1mRNQ2prSNvye;Fm5%5KQCx; z+dA2~9tVLR*2#}wl3kX<%G~y*mW&hYC(@b49;C3o^Z~v_7$_x*N|I|v`&i45IX|B1=4vaVd3PpNY;;~A ztC*Q@XS!v7{8;phXUsnbA-TMXmOWsCxte$qib6tBnljH_wrg(qy)J~r(YKJKiI^@L z32i1FU~UBL+>rPfVS4sWYUk4F-yrQH&d^$snQ+bh=Grrl*yp_Y6P_G42ksY7{XDy!@BpD zR7o?eFWUQz?llUyQc1AcFyYNn=wV8H2Y518w=C)>qG}Dt!QVs|`{G*hTt>yKL6|Aws-73L-7Tq6n*O^57tyDvcRy5%UYtiLUv~R9V`;&h>u37{T3v< zEBXKCudNlzz882L^h?Hd@5OHmzJA%W>qTRDqg3I?%i+B{zU6xQGfmPHm>A*ke=Wu%L&yh?jK4PyH&G0^GizJmh0C&7taf*Z*5)C+PrUhW`)J}iYwoBdLQi! zymZKrJCpl-q=9Zvghi#~YAfIYXmtHkldpVts$g2*daUr-xl%9PhOn4}vooBx z>sA*WndWYo;?1g_Qz?|5Q#tKlD@&m0iOKa%0)at}MK@K>9kr5nK3KR%deeuEts7sf z9Dg_AUd*L9mK#SdF{`(~aW#FXyi>J;`E;$gPED!!y#?=?Rxim}-+3Z4@##G+!MZhz z50xuMN%s8Om$^jdSm8%LMah3l>iHvAE_{D<+mdXX^!xL>&-kvnt+rg?s><9=mrW;J z&Qr=2>`l|(aq0Wtdz>+x-?%TZ)a{LWl(}xNs*L|lqZ_YV_D(#0Z&u%0rJSw3cc&kg zTTm!^QnsnpO-XUv+E03`riaII-*pXraqE>~$i|mBB|)aSMoyPc3anhatYF66U$rZK z@Pj%~f{}?Yf+zRPUCBB*p(;Xgvemp~mc!G9W=>u>PmIY$U~=F*naQ;RqLUx26kvti zt^R+WC=uynoD+HdCGWoQ!JlHzW4QPvi zy~J8z4dn~9WW=t+?#W_cFh)`QKm$p!HY@l>rpW?}M47_1;Syepv}BO) z$+1T4#Ch@z3~DGQ#h6Y$uviIrMFm75 z_%L*!57z*(4vNChmOzE>vXH}}85rgOPp3!q)hcU-$qx2Xliyn_gY1-rpH~bFEJqZh zgzZ5py}_#B$KL`~*`cTsa%7ln@8|(`KjI`-1_pf;RUXchA1oD}+`rUR8gbAhx`j5A z?=OvI1)s+^*>RaD(_NscOXVhOdMbiVM;w*|Je&{3bX^~yLfOd=mdVS&4_g5`R2N0j zt5C2L43-axH1|&#=Wr3=B#r3YSm5zuZm+d94eoZBHsE zKUgk1*`f-PT@V9^3=9e=25qVaDwLVLbA`MNVnm36K^{dBLpRu2{@vi5DT5dWK~EIW&pHfkaU4roNf6g>=uCr>T__Rcg`=}3c15@4P_ a%EQ2*fnt2> /dev/null && printf '%s -' "$PWD" ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum @@ -206,7 +205,7 @@ fi DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' # Collect all arguments for the java command: -# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, # and any embedded shellness will be escaped. # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be # treated as '${Hostname}' itself on the command line. diff --git a/src/main/java/build/buf/validate/AnyRules.java b/src/main/java/build/buf/validate/AnyRules.java deleted file mode 100644 index 96fc0333..00000000 --- a/src/main/java/build/buf/validate/AnyRules.java +++ /dev/null @@ -1,1061 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type.
- * 
- * - * Protobuf type {@code buf.validate.AnyRules} - */ -public final class AnyRules extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.AnyRules) - AnyRulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - AnyRules.class.getName()); - } - // Use AnyRules.newBuilder() to construct. - private AnyRules(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private AnyRules() { - in_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - notIn_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_AnyRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_AnyRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.AnyRules.class, build.buf.validate.AnyRules.Builder.class); - } - - public static final int IN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList in_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * `in` requires the field's `type_url` to be equal to one of the
-   * specified values. If it doesn't match any of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * //  The `value` field must have a `type_url` equal to one of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string in = 2 [json_name = "in"]; - * @return A list containing the in. - */ - public com.google.protobuf.ProtocolStringList - getInList() { - return in_; - } - /** - *
-   * `in` requires the field's `type_url` to be equal to one of the
-   * specified values. If it doesn't match any of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * //  The `value` field must have a `type_url` equal to one of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string in = 2 [json_name = "in"]; - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field's `type_url` to be equal to one of the
-   * specified values. If it doesn't match any of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * //  The `value` field must have a `type_url` equal to one of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string in = 2 [json_name = "in"]; - * @param index The index of the element to return. - * @return The in at the given index. - */ - public java.lang.String getIn(int index) { - return in_.get(index); - } - /** - *
-   * `in` requires the field's `type_url` to be equal to one of the
-   * specified values. If it doesn't match any of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * //  The `value` field must have a `type_url` equal to one of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string in = 2 [json_name = "in"]; - * @param index The index of the value to return. - * @return The bytes of the in at the given index. - */ - public com.google.protobuf.ByteString - getInBytes(int index) { - return in_.getByteString(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList notIn_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * // The field `value` must not have a `type_url` equal to any of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @return A list containing the notIn. - */ - public com.google.protobuf.ProtocolStringList - getNotInList() { - return notIn_; - } - /** - *
-   * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * // The field `value` must not have a `type_url` equal to any of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * // The field `value` must not have a `type_url` equal to any of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public java.lang.String getNotIn(int index) { - return notIn_.get(index); - } - /** - *
-   * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * // The field `value` must not have a `type_url` equal to any of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @param index The index of the value to return. - * @return The bytes of the notIn at the given index. - */ - public com.google.protobuf.ByteString - getNotInBytes(int index) { - return notIn_.getByteString(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 < in_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, in_.getRaw(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, notIn_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < in_.size(); i++) { - dataSize += computeStringSizeNoTag(in_.getRaw(i)); - } - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < notIn_.size(); i++) { - dataSize += computeStringSizeNoTag(notIn_.getRaw(i)); - } - size += dataSize; - size += 1 * getNotInList().size(); - } - 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.AnyRules)) { - return super.equals(obj); - } - build.buf.validate.AnyRules other = (build.buf.validate.AnyRules) obj; - - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) 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 (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.AnyRules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.AnyRules 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.AnyRules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.AnyRules 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.AnyRules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.AnyRules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.AnyRules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.AnyRules 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.AnyRules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.AnyRules 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.AnyRules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.AnyRules 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.AnyRules 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; - } - /** - *
-   * AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type.
-   * 
- * - * Protobuf type {@code buf.validate.AnyRules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.AnyRules) - build.buf.validate.AnyRulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_AnyRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_AnyRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.AnyRules.class, build.buf.validate.AnyRules.Builder.class); - } - - // Construct using build.buf.validate.AnyRules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - in_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - notIn_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_AnyRules_descriptor; - } - - @java.lang.Override - public build.buf.validate.AnyRules getDefaultInstanceForType() { - return build.buf.validate.AnyRules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.AnyRules build() { - build.buf.validate.AnyRules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.AnyRules buildPartial() { - build.buf.validate.AnyRules result = new build.buf.validate.AnyRules(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.AnyRules result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.AnyRules) { - return mergeFrom((build.buf.validate.AnyRules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.AnyRules other) { - if (other == build.buf.validate.AnyRules.getDefaultInstance()) return this; - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - bitField0_ |= 0x00000001; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - bitField0_ |= 0x00000002; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - 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 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - ensureInIsMutable(); - in_.add(bs); - break; - } // case 18 - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - ensureNotInIsMutable(); - notIn_.add(bs); - break; - } // case 26 - 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 com.google.protobuf.LazyStringArrayList in_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = new com.google.protobuf.LazyStringArrayList(in_); - } - bitField0_ |= 0x00000001; - } - /** - *
-     * `in` requires the field's `type_url` to be equal to one of the
-     * specified values. If it doesn't match any of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * //  The `value` field must have a `type_url` equal to one of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string in = 2 [json_name = "in"]; - * @return A list containing the in. - */ - public com.google.protobuf.ProtocolStringList - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field's `type_url` to be equal to one of the
-     * specified values. If it doesn't match any of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * //  The `value` field must have a `type_url` equal to one of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string in = 2 [json_name = "in"]; - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field's `type_url` to be equal to one of the
-     * specified values. If it doesn't match any of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * //  The `value` field must have a `type_url` equal to one of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string in = 2 [json_name = "in"]; - * @param index The index of the element to return. - * @return The in at the given index. - */ - public java.lang.String getIn(int index) { - return in_.get(index); - } - /** - *
-     * `in` requires the field's `type_url` to be equal to one of the
-     * specified values. If it doesn't match any of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * //  The `value` field must have a `type_url` equal to one of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string in = 2 [json_name = "in"]; - * @param index The index of the value to return. - * @return The bytes of the in at the given index. - */ - public com.google.protobuf.ByteString - getInBytes(int index) { - return in_.getByteString(index); - } - /** - *
-     * `in` requires the field's `type_url` to be equal to one of the
-     * specified values. If it doesn't match any of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * //  The `value` field must have a `type_url` equal to one of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string in = 2 [json_name = "in"]; - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureInIsMutable(); - in_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field's `type_url` to be equal to one of the
-     * specified values. If it doesn't match any of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * //  The `value` field must have a `type_url` equal to one of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string in = 2 [json_name = "in"]; - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureInIsMutable(); - in_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field's `type_url` to be equal to one of the
-     * specified values. If it doesn't match any of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * //  The `value` field must have a `type_url` equal to one of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string in = 2 [json_name = "in"]; - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field's `type_url` to be equal to one of the
-     * specified values. If it doesn't match any of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * //  The `value` field must have a `type_url` equal to one of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string in = 2 [json_name = "in"]; - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field's `type_url` to be equal to one of the
-     * specified values. If it doesn't match any of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * //  The `value` field must have a `type_url` equal to one of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string in = 2 [json_name = "in"]; - * @param value The bytes of the in to add. - * @return This builder for chaining. - */ - public Builder addInBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureInIsMutable(); - in_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList notIn_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = new com.google.protobuf.LazyStringArrayList(notIn_); - } - bitField0_ |= 0x00000002; - } - /** - *
-     * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * // The field `value` must not have a `type_url` equal to any of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @return A list containing the notIn. - */ - public com.google.protobuf.ProtocolStringList - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * // The field `value` must not have a `type_url` equal to any of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * // The field `value` must not have a `type_url` equal to any of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public java.lang.String getNotIn(int index) { - return notIn_.get(index); - } - /** - *
-     * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * // The field `value` must not have a `type_url` equal to any of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @param index The index of the value to return. - * @return The bytes of the notIn at the given index. - */ - public com.google.protobuf.ByteString - getNotInBytes(int index) { - return notIn_.getByteString(index); - } - /** - *
-     * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * // The field `value` must not have a `type_url` equal to any of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureNotInIsMutable(); - notIn_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * // The field `value` must not have a `type_url` equal to any of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureNotInIsMutable(); - notIn_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * // The field `value` must not have a `type_url` equal to any of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * // The field `value` must not have a `type_url` equal to any of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; - onChanged(); - return this; - } - /** - *
-     * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-     *
-     * ```proto
-     * message MyAny {
-     * // The field `value` must not have a `type_url` equal to any of the specified values.
-     * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @param value The bytes of the notIn to add. - * @return This builder for chaining. - */ - public Builder addNotInBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureNotInIsMutable(); - notIn_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.AnyRules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.AnyRules) - private static final build.buf.validate.AnyRules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.AnyRules(); - } - - public static build.buf.validate.AnyRules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnyRules 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.AnyRules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/AnyRulesOrBuilder.java b/src/main/java/build/buf/validate/AnyRulesOrBuilder.java deleted file mode 100644 index acd7a873..00000000 --- a/src/main/java/build/buf/validate/AnyRulesOrBuilder.java +++ /dev/null @@ -1,157 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface AnyRulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.AnyRules) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * `in` requires the field's `type_url` to be equal to one of the
-   * specified values. If it doesn't match any of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * //  The `value` field must have a `type_url` equal to one of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string in = 2 [json_name = "in"]; - * @return A list containing the in. - */ - java.util.List - getInList(); - /** - *
-   * `in` requires the field's `type_url` to be equal to one of the
-   * specified values. If it doesn't match any of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * //  The `value` field must have a `type_url` equal to one of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string in = 2 [json_name = "in"]; - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field's `type_url` to be equal to one of the
-   * specified values. If it doesn't match any of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * //  The `value` field must have a `type_url` equal to one of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string in = 2 [json_name = "in"]; - * @param index The index of the element to return. - * @return The in at the given index. - */ - java.lang.String getIn(int index); - /** - *
-   * `in` requires the field's `type_url` to be equal to one of the
-   * specified values. If it doesn't match any of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * //  The `value` field must have a `type_url` equal to one of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.in = ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string in = 2 [json_name = "in"]; - * @param index The index of the value to return. - * @return The bytes of the in at the given index. - */ - com.google.protobuf.ByteString - getInBytes(int index); - - /** - *
-   * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * // The field `value` must not have a `type_url` equal to any of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @return A list containing the notIn. - */ - java.util.List - getNotInList(); - /** - *
-   * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * // The field `value` must not have a `type_url` equal to any of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * // The field `value` must not have a `type_url` equal to any of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - java.lang.String getNotIn(int index); - /** - *
-   * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
-   *
-   * ```proto
-   * message MyAny {
-   * // The field `value` must not have a `type_url` equal to any of the specified values.
-   * google.protobuf.Any value = 1 [(buf.validate.field).any.not_in = ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 3 [json_name = "notIn"]; - * @param index The index of the value to return. - * @return The bytes of the notIn at the given index. - */ - com.google.protobuf.ByteString - getNotInBytes(int index); -} diff --git a/src/main/java/build/buf/validate/BoolRules.java b/src/main/java/build/buf/validate/BoolRules.java deleted file mode 100644 index 29bbc1f8..00000000 --- a/src/main/java/build/buf/validate/BoolRules.java +++ /dev/null @@ -1,875 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * BoolRules describes the constraints applied to `bool` values. These rules
- * may also be applied to the `google.protobuf.BoolValue` Well-Known-Type.
- * 
- * - * Protobuf type {@code buf.validate.BoolRules} - */ -public final class BoolRules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - BoolRules> implements - // @@protoc_insertion_point(message_implements:buf.validate.BoolRules) - BoolRulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BoolRules.class.getName()); - } - // Use BoolRules.newBuilder() to construct. - private BoolRules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private BoolRules() { - example_ = emptyBooleanList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_BoolRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_BoolRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.BoolRules.class, build.buf.validate.BoolRules.Builder.class); - } - - private int bitField0_; - public static final int CONST_FIELD_NUMBER = 1; - private boolean const_ = false; - /** - *
-   * `const` requires the field value to exactly match the specified boolean value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBool {
-   * // value must equal true
-   * bool value = 1 [(buf.validate.field).bool.const = true];
-   * }
-   * ```
-   * 
- * - * optional bool const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified boolean value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBool {
-   * // value must equal true
-   * bool value = 1 [(buf.validate.field).bool.const = true];
-   * }
-   * ```
-   * 
- * - * optional bool const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public boolean getConst() { - return const_; - } - - public static final int EXAMPLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.BooleanList example_ = - emptyBooleanList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBool {
-   * bool value = 1 [
-   * (buf.validate.field).bool.example = 1,
-   * (buf.validate.field).bool.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBool {
-   * bool value = 1 [
-   * (buf.validate.field).bool.example = 1,
-   * (buf.validate.field).bool.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBool {
-   * bool value = 1 [
-   * (buf.validate.field).bool.example = 1,
-   * (buf.validate.field).bool.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public boolean getExample(int index) { - return example_.getBoolean(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(1, const_); - } - for (int i = 0; i < example_.size(); i++) { - output.writeBool(2, example_.getBoolean(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, const_); - } - { - int dataSize = 0; - dataSize = 1 * getExampleList().size(); - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.BoolRules)) { - return super.equals(obj); - } - build.buf.validate.BoolRules other = (build.buf.validate.BoolRules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getConst()); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.BoolRules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.BoolRules 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.BoolRules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.BoolRules 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.BoolRules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.BoolRules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.BoolRules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.BoolRules 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.BoolRules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.BoolRules 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.BoolRules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.BoolRules 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.BoolRules 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; - } - /** - *
-   * BoolRules describes the constraints applied to `bool` values. These rules
-   * may also be applied to the `google.protobuf.BoolValue` Well-Known-Type.
-   * 
- * - * Protobuf type {@code buf.validate.BoolRules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.BoolRules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.BoolRules) - build.buf.validate.BoolRulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_BoolRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_BoolRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.BoolRules.class, build.buf.validate.BoolRules.Builder.class); - } - - // Construct using build.buf.validate.BoolRules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = false; - example_ = emptyBooleanList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_BoolRules_descriptor; - } - - @java.lang.Override - public build.buf.validate.BoolRules getDefaultInstanceForType() { - return build.buf.validate.BoolRules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.BoolRules build() { - build.buf.validate.BoolRules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.BoolRules buildPartial() { - build.buf.validate.BoolRules result = new build.buf.validate.BoolRules(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.BoolRules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.BoolRules) { - return mergeFrom((build.buf.validate.BoolRules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.BoolRules other) { - if (other == build.buf.validate.BoolRules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000002; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 8: { - const_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - boolean v = input.readBool(); - ensureExampleIsMutable(); - example_.addBoolean(v); - break; - } // case 16 - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureExampleIsMutable(alloc / 1); - while (input.getBytesUntilLimit() > 0) { - example_.addBoolean(input.readBool()); - } - input.popLimit(limit); - break; - } // case 18 - 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 boolean const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified boolean value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBool {
-     * // value must equal true
-     * bool value = 1 [(buf.validate.field).bool.const = true];
-     * }
-     * ```
-     * 
- * - * optional bool const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified boolean value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBool {
-     * // value must equal true
-     * bool value = 1 [(buf.validate.field).bool.const = true];
-     * }
-     * ```
-     * 
- * - * optional bool const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public boolean getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified boolean value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBool {
-     * // value must equal true
-     * bool value = 1 [(buf.validate.field).bool.const = true];
-     * }
-     * ```
-     * 
- * - * optional bool const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(boolean value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified boolean value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBool {
-     * // value must equal true
-     * bool value = 1 [(buf.validate.field).bool.const = true];
-     * }
-     * ```
-     * 
- * - * optional bool const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.BooleanList example_ = emptyBooleanList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000002; - } - private void ensureExampleIsMutable(int capacity) { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_, capacity); - } - bitField0_ |= 0x00000002; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBool {
-     * bool value = 1 [
-     * (buf.validate.field).bool.example = 1,
-     * (buf.validate.field).bool.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBool {
-     * bool value = 1 [
-     * (buf.validate.field).bool.example = 1,
-     * (buf.validate.field).bool.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBool {
-     * bool value = 1 [
-     * (buf.validate.field).bool.example = 1,
-     * (buf.validate.field).bool.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public boolean getExample(int index) { - return example_.getBoolean(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBool {
-     * bool value = 1 [
-     * (buf.validate.field).bool.example = 1,
-     * (buf.validate.field).bool.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, boolean value) { - - ensureExampleIsMutable(); - example_.setBoolean(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBool {
-     * bool value = 1 [
-     * (buf.validate.field).bool.example = 1,
-     * (buf.validate.field).bool.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(boolean value) { - - ensureExampleIsMutable(); - example_.addBoolean(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBool {
-     * bool value = 1 [
-     * (buf.validate.field).bool.example = 1,
-     * (buf.validate.field).bool.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBool {
-     * bool value = 1 [
-     * (buf.validate.field).bool.example = 1,
-     * (buf.validate.field).bool.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyBooleanList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.BoolRules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.BoolRules) - private static final build.buf.validate.BoolRules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.BoolRules(); - } - - public static build.buf.validate.BoolRules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoolRules 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.BoolRules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/BoolRulesOrBuilder.java b/src/main/java/build/buf/validate/BoolRulesOrBuilder.java deleted file mode 100644 index 4178a1b3..00000000 --- a/src/main/java/build/buf/validate/BoolRulesOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface BoolRulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.BoolRules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified boolean value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBool {
-   * // value must equal true
-   * bool value = 1 [(buf.validate.field).bool.const = true];
-   * }
-   * ```
-   * 
- * - * optional bool const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified boolean value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBool {
-   * // value must equal true
-   * bool value = 1 [(buf.validate.field).bool.const = true];
-   * }
-   * ```
-   * 
- * - * optional bool const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - boolean getConst(); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBool {
-   * bool value = 1 [
-   * (buf.validate.field).bool.example = 1,
-   * (buf.validate.field).bool.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBool {
-   * bool value = 1 [
-   * (buf.validate.field).bool.example = 1,
-   * (buf.validate.field).bool.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBool {
-   * bool value = 1 [
-   * (buf.validate.field).bool.example = 1,
-   * (buf.validate.field).bool.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bool example = 2 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - boolean getExample(int index); -} diff --git a/src/main/java/build/buf/validate/BytesRules.java b/src/main/java/build/buf/validate/BytesRules.java deleted file mode 100644 index c75dc87e..00000000 --- a/src/main/java/build/buf/validate/BytesRules.java +++ /dev/null @@ -1,3291 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * BytesRules describe the constraints applied to `bytes` values. These rules
- * may also be applied to the `google.protobuf.BytesValue` Well-Known-Type.
- * 
- * - * Protobuf type {@code buf.validate.BytesRules} - */ -public final class BytesRules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - BytesRules> implements - // @@protoc_insertion_point(message_implements:buf.validate.BytesRules) - BytesRulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - BytesRules.class.getName()); - } - // Use BytesRules.newBuilder() to construct. - private BytesRules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private BytesRules() { - const_ = com.google.protobuf.ByteString.EMPTY; - pattern_ = ""; - prefix_ = com.google.protobuf.ByteString.EMPTY; - suffix_ = com.google.protobuf.ByteString.EMPTY; - contains_ = com.google.protobuf.ByteString.EMPTY; - in_ = emptyList(com.google.protobuf.ByteString.class); - notIn_ = emptyList(com.google.protobuf.ByteString.class); - example_ = emptyList(com.google.protobuf.ByteString.class); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_BytesRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_BytesRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.BytesRules.class, build.buf.validate.BytesRules.Builder.class); - } - - private int bitField0_; - private int wellKnownCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object wellKnown_; - public enum WellKnownCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - IP(10), - IPV4(11), - IPV6(12), - WELLKNOWN_NOT_SET(0); - private final int value; - private WellKnownCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static WellKnownCase valueOf(int value) { - return forNumber(value); - } - - public static WellKnownCase forNumber(int value) { - switch (value) { - case 10: return IP; - case 11: return IPV4; - case 12: return IPV6; - case 0: return WELLKNOWN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public WellKnownCase - getWellKnownCase() { - return WellKnownCase.forNumber( - wellKnownCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString const_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-   * `const` requires the field value to exactly match the specified bytes
-   * value. If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be "\x01\x02\x03\x04"
-   * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
-   * }
-   * ```
-   * 
- * - * optional bytes const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified bytes
-   * value. If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be "\x01\x02\x03\x04"
-   * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
-   * }
-   * ```
-   * 
- * - * optional bytes const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public com.google.protobuf.ByteString getConst() { - return const_; - } - - public static final int LEN_FIELD_NUMBER = 13; - private long len_ = 0L; - /** - *
-   * `len` requires the field value to have the specified length in bytes.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value length must be 4 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
-   * }
-   * ```
-   * 
- * - * optional uint64 len = 13 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return Whether the len field is set. - */ - @java.lang.Override - public boolean hasLen() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * `len` requires the field value to have the specified length in bytes.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value length must be 4 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
-   * }
-   * ```
-   * 
- * - * optional uint64 len = 13 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return The len. - */ - @java.lang.Override - public long getLen() { - return len_; - } - - public static final int MIN_LEN_FIELD_NUMBER = 2; - private long minLen_ = 0L; - /** - *
-   * `min_len` requires the field value to have at least the specified minimum
-   * length in bytes.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value length must be at least 2 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return Whether the minLen field is set. - */ - @java.lang.Override - public boolean hasMinLen() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-   * `min_len` requires the field value to have at least the specified minimum
-   * length in bytes.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value length must be at least 2 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return The minLen. - */ - @java.lang.Override - public long getMinLen() { - return minLen_; - } - - public static final int MAX_LEN_FIELD_NUMBER = 3; - private long maxLen_ = 0L; - /** - *
-   * `max_len` requires the field value to have at most the specified maximum
-   * length in bytes.
-   * If the field value exceeds the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be at most 6 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return Whether the maxLen field is set. - */ - @java.lang.Override - public boolean hasMaxLen() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-   * `max_len` requires the field value to have at most the specified maximum
-   * length in bytes.
-   * If the field value exceeds the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be at most 6 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return The maxLen. - */ - @java.lang.Override - public long getMaxLen() { - return maxLen_; - } - - public static final int PATTERN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object pattern_ = ""; - /** - *
-   * `pattern` requires the field value to match the specified regular
-   * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-   * The value of the field must be valid UTF-8 or validation will fail with a
-   * runtime error.
-   * If the field value doesn't match the pattern, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must match regex pattern "^[a-zA-Z0-9]+$".
-   * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return Whether the pattern field is set. - */ - @java.lang.Override - public boolean hasPattern() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-   * `pattern` requires the field value to match the specified regular
-   * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-   * The value of the field must be valid UTF-8 or validation will fail with a
-   * runtime error.
-   * If the field value doesn't match the pattern, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must match regex pattern "^[a-zA-Z0-9]+$".
-   * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The pattern. - */ - @java.lang.Override - public java.lang.String getPattern() { - java.lang.Object ref = pattern_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - pattern_ = s; - } - return s; - } - } - /** - *
-   * `pattern` requires the field value to match the specified regular
-   * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-   * The value of the field must be valid UTF-8 or validation will fail with a
-   * runtime error.
-   * If the field value doesn't match the pattern, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must match regex pattern "^[a-zA-Z0-9]+$".
-   * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The bytes for pattern. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPatternBytes() { - java.lang.Object ref = pattern_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREFIX_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString prefix_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-   * `prefix` requires the field value to have the specified bytes at the
-   * beginning of the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value does not have prefix \x01\x02
-   * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
-   * }
-   * ```
-   * 
- * - * optional bytes prefix = 5 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return Whether the prefix field is set. - */ - @java.lang.Override - public boolean hasPrefix() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-   * `prefix` requires the field value to have the specified bytes at the
-   * beginning of the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value does not have prefix \x01\x02
-   * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
-   * }
-   * ```
-   * 
- * - * optional bytes prefix = 5 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return The prefix. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPrefix() { - return prefix_; - } - - public static final int SUFFIX_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString suffix_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-   * `suffix` requires the field value to have the specified bytes at the end
-   * of the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value does not have suffix \x03\x04
-   * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
-   * }
-   * ```
-   * 
- * - * optional bytes suffix = 6 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return Whether the suffix field is set. - */ - @java.lang.Override - public boolean hasSuffix() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-   * `suffix` requires the field value to have the specified bytes at the end
-   * of the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value does not have suffix \x03\x04
-   * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
-   * }
-   * ```
-   * 
- * - * optional bytes suffix = 6 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return The suffix. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSuffix() { - return suffix_; - } - - public static final int CONTAINS_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString contains_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-   * `contains` requires the field value to have the specified bytes anywhere in
-   * the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```protobuf
-   * message MyBytes {
-   * // value does not contain \x02\x03
-   * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
-   * }
-   * ```
-   * 
- * - * optional bytes contains = 7 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return Whether the contains field is set. - */ - @java.lang.Override - public boolean hasContains() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-   * `contains` requires the field value to have the specified bytes anywhere in
-   * the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```protobuf
-   * message MyBytes {
-   * // value does not contain \x02\x03
-   * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
-   * }
-   * ```
-   * 
- * - * optional bytes contains = 7 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return The contains. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContains() { - return contains_; - } - - public static final int IN_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.ProtobufList in_ = - emptyList(com.google.protobuf.ByteString.class); - /** - *
-   * `in` requires the field value to be equal to one of the specified
-   * values. If the field value doesn't match any of the specified values, an
-   * error message is generated.
-   *
-   * ```protobuf
-   * message MyBytes {
-   * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified
-   * values. If the field value doesn't match any of the specified values, an
-   * error message is generated.
-   *
-   * ```protobuf
-   * message MyBytes {
-   * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified
-   * values. If the field value doesn't match any of the specified values, an
-   * error message is generated.
-   *
-   * ```protobuf
-   * message MyBytes {
-   * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public com.google.protobuf.ByteString getIn(int index) { - return in_.get(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.ProtobufList notIn_ = - emptyList(com.google.protobuf.ByteString.class); - /** - *
-   * `not_in` requires the field value to be not equal to any of the specified
-   * values.
-   * If the field value matches any of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to be not equal to any of the specified
-   * values.
-   * If the field value matches any of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to be not equal to any of the specified
-   * values.
-   * If the field value matches any of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public com.google.protobuf.ByteString getNotIn(int index) { - return notIn_.get(index); - } - - public static final int IP_FIELD_NUMBER = 10; - /** - *
-   * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IP address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
-   * }
-   * ```
-   * 
- * - * bool ip = 10 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return Whether the ip field is set. - */ - @java.lang.Override - public boolean hasIp() { - return wellKnownCase_ == 10; - } - /** - *
-   * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IP address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
-   * }
-   * ```
-   * 
- * - * bool ip = 10 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return The ip. - */ - @java.lang.Override - public boolean getIp() { - if (wellKnownCase_ == 10) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int IPV4_FIELD_NUMBER = 11; - /** - *
-   * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IPv4 address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4 = 11 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4 field is set. - */ - @java.lang.Override - public boolean hasIpv4() { - return wellKnownCase_ == 11; - } - /** - *
-   * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IPv4 address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4 = 11 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return The ipv4. - */ - @java.lang.Override - public boolean getIpv4() { - if (wellKnownCase_ == 11) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int IPV6_FIELD_NUMBER = 12; - /** - *
-   * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IPv6 address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6 = 12 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6 field is set. - */ - @java.lang.Override - public boolean hasIpv6() { - return wellKnownCase_ == 12; - } - /** - *
-   * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IPv6 address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6 = 12 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return The ipv6. - */ - @java.lang.Override - public boolean getIpv6() { - if (wellKnownCase_ == 12) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int EXAMPLE_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.ProtobufList example_ = - emptyList(com.google.protobuf.ByteString.class); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBytes {
-   * bytes value = 1 [
-   * (buf.validate.field).bytes.example = "\x01\x02",
-   * (buf.validate.field).bytes.example = "\x02\x03"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBytes {
-   * bytes value = 1 [
-   * (buf.validate.field).bytes.example = "\x01\x02",
-   * (buf.validate.field).bytes.example = "\x02\x03"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBytes {
-   * bytes value = 1 [
-   * (buf.validate.field).bytes.example = "\x01\x02",
-   * (buf.validate.field).bytes.example = "\x02\x03"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public com.google.protobuf.ByteString getExample(int index) { - return example_.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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBytes(1, const_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeUInt64(2, minLen_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeUInt64(3, maxLen_); - } - if (((bitField0_ & 0x00000010) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, pattern_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeBytes(5, prefix_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeBytes(6, suffix_); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeBytes(7, contains_); - } - for (int i = 0; i < in_.size(); i++) { - output.writeBytes(8, in_.get(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeBytes(9, notIn_.get(i)); - } - if (wellKnownCase_ == 10) { - output.writeBool( - 10, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 11) { - output.writeBool( - 11, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 12) { - output.writeBool( - 12, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeUInt64(13, len_); - } - for (int i = 0; i < example_.size(); i++) { - output.writeBytes(14, example_.get(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, const_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, minLen_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, maxLen_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pattern_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, prefix_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, suffix_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, contains_); - } - { - int dataSize = 0; - for (int i = 0; i < in_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(in_.get(i)); - } - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < notIn_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(notIn_.get(i)); - } - size += dataSize; - size += 1 * getNotInList().size(); - } - if (wellKnownCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 10, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 11, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 12, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(13, len_); - } - { - int dataSize = 0; - for (int i = 0; i < example_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(example_.get(i)); - } - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.BytesRules)) { - return super.equals(obj); - } - build.buf.validate.BytesRules other = (build.buf.validate.BytesRules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (!getConst() - .equals(other.getConst())) return false; - } - if (hasLen() != other.hasLen()) return false; - if (hasLen()) { - if (getLen() - != other.getLen()) return false; - } - if (hasMinLen() != other.hasMinLen()) return false; - if (hasMinLen()) { - if (getMinLen() - != other.getMinLen()) return false; - } - if (hasMaxLen() != other.hasMaxLen()) return false; - if (hasMaxLen()) { - if (getMaxLen() - != other.getMaxLen()) return false; - } - if (hasPattern() != other.hasPattern()) return false; - if (hasPattern()) { - if (!getPattern() - .equals(other.getPattern())) return false; - } - if (hasPrefix() != other.hasPrefix()) return false; - if (hasPrefix()) { - if (!getPrefix() - .equals(other.getPrefix())) return false; - } - if (hasSuffix() != other.hasSuffix()) return false; - if (hasSuffix()) { - if (!getSuffix() - .equals(other.getSuffix())) return false; - } - if (hasContains() != other.hasContains()) return false; - if (hasContains()) { - if (!getContains() - .equals(other.getContains())) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getWellKnownCase().equals(other.getWellKnownCase())) return false; - switch (wellKnownCase_) { - case 10: - if (getIp() - != other.getIp()) return false; - break; - case 11: - if (getIpv4() - != other.getIpv4()) return false; - break; - case 12: - if (getIpv6() - != other.getIpv6()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst().hashCode(); - } - if (hasLen()) { - hash = (37 * hash) + LEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLen()); - } - if (hasMinLen()) { - hash = (37 * hash) + MIN_LEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinLen()); - } - if (hasMaxLen()) { - hash = (37 * hash) + MAX_LEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxLen()); - } - if (hasPattern()) { - hash = (37 * hash) + PATTERN_FIELD_NUMBER; - hash = (53 * hash) + getPattern().hashCode(); - } - if (hasPrefix()) { - hash = (37 * hash) + PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getPrefix().hashCode(); - } - if (hasSuffix()) { - hash = (37 * hash) + SUFFIX_FIELD_NUMBER; - hash = (53 * hash) + getSuffix().hashCode(); - } - if (hasContains()) { - hash = (37 * hash) + CONTAINS_FIELD_NUMBER; - hash = (53 * hash) + getContains().hashCode(); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (wellKnownCase_) { - case 10: - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIp()); - break; - case 11: - hash = (37 * hash) + IPV4_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIpv4()); - break; - case 12: - hash = (37 * hash) + IPV6_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIpv6()); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.BytesRules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.BytesRules 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.BytesRules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.BytesRules 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.BytesRules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.BytesRules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.BytesRules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.BytesRules 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.BytesRules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.BytesRules 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.BytesRules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.BytesRules 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.BytesRules 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; - } - /** - *
-   * BytesRules describe the constraints applied to `bytes` values. These rules
-   * may also be applied to the `google.protobuf.BytesValue` Well-Known-Type.
-   * 
- * - * Protobuf type {@code buf.validate.BytesRules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.BytesRules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.BytesRules) - build.buf.validate.BytesRulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_BytesRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_BytesRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.BytesRules.class, build.buf.validate.BytesRules.Builder.class); - } - - // Construct using build.buf.validate.BytesRules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = com.google.protobuf.ByteString.EMPTY; - len_ = 0L; - minLen_ = 0L; - maxLen_ = 0L; - pattern_ = ""; - prefix_ = com.google.protobuf.ByteString.EMPTY; - suffix_ = com.google.protobuf.ByteString.EMPTY; - contains_ = com.google.protobuf.ByteString.EMPTY; - in_ = emptyList(com.google.protobuf.ByteString.class); - notIn_ = emptyList(com.google.protobuf.ByteString.class); - example_ = emptyList(com.google.protobuf.ByteString.class); - wellKnownCase_ = 0; - wellKnown_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_BytesRules_descriptor; - } - - @java.lang.Override - public build.buf.validate.BytesRules getDefaultInstanceForType() { - return build.buf.validate.BytesRules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.BytesRules build() { - build.buf.validate.BytesRules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.BytesRules buildPartial() { - build.buf.validate.BytesRules result = new build.buf.validate.BytesRules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.BytesRules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.len_ = len_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.minLen_ = minLen_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.maxLen_ = maxLen_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.pattern_ = pattern_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.prefix_ = prefix_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.suffix_ = suffix_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.contains_ = contains_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.BytesRules result) { - result.wellKnownCase_ = wellKnownCase_; - result.wellKnown_ = this.wellKnown_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.BytesRules) { - return mergeFrom((build.buf.validate.BytesRules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.BytesRules other) { - if (other == build.buf.validate.BytesRules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (other.hasLen()) { - setLen(other.getLen()); - } - if (other.hasMinLen()) { - setMinLen(other.getMinLen()); - } - if (other.hasMaxLen()) { - setMaxLen(other.getMaxLen()); - } - if (other.hasPattern()) { - pattern_ = other.pattern_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasPrefix()) { - setPrefix(other.getPrefix()); - } - if (other.hasSuffix()) { - setSuffix(other.getSuffix()); - } - if (other.hasContains()) { - setContains(other.getContains()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000100; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000200; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00002000; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getWellKnownCase()) { - case IP: { - setIp(other.getIp()); - break; - } - case IPV4: { - setIpv4(other.getIpv4()); - break; - } - case IPV6: { - setIpv6(other.getIpv6()); - break; - } - case WELLKNOWN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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: { - const_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - minLen_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 24: { - maxLen_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: { - pattern_ = input.readBytes(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: { - prefix_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: { - suffix_ = input.readBytes(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: { - contains_ = input.readBytes(); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureInIsMutable(); - in_.add(v); - break; - } // case 66 - case 74: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureNotInIsMutable(); - notIn_.add(v); - break; - } // case 74 - case 80: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 10; - break; - } // case 80 - case 88: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 11; - break; - } // case 88 - case 96: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 12; - break; - } // case 96 - case 104: { - len_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 104 - case 114: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureExampleIsMutable(); - example_.add(v); - break; - } // case 114 - 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 wellKnownCase_ = 0; - private java.lang.Object wellKnown_; - public WellKnownCase - getWellKnownCase() { - return WellKnownCase.forNumber( - wellKnownCase_); - } - - public Builder clearWellKnown() { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.ByteString const_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * `const` requires the field value to exactly match the specified bytes
-     * value. If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be "\x01\x02\x03\x04"
-     * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
-     * }
-     * ```
-     * 
- * - * optional bytes const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified bytes
-     * value. If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be "\x01\x02\x03\x04"
-     * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
-     * }
-     * ```
-     * 
- * - * optional bytes const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public com.google.protobuf.ByteString getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified bytes
-     * value. If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be "\x01\x02\x03\x04"
-     * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
-     * }
-     * ```
-     * 
- * - * optional bytes const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified bytes
-     * value. If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be "\x01\x02\x03\x04"
-     * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
-     * }
-     * ```
-     * 
- * - * optional bytes const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = getDefaultInstance().getConst(); - onChanged(); - return this; - } - - private long len_ ; - /** - *
-     * `len` requires the field value to have the specified length in bytes.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value length must be 4 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
-     * }
-     * ```
-     * 
- * - * optional uint64 len = 13 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return Whether the len field is set. - */ - @java.lang.Override - public boolean hasLen() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * `len` requires the field value to have the specified length in bytes.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value length must be 4 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
-     * }
-     * ```
-     * 
- * - * optional uint64 len = 13 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return The len. - */ - @java.lang.Override - public long getLen() { - return len_; - } - /** - *
-     * `len` requires the field value to have the specified length in bytes.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value length must be 4 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
-     * }
-     * ```
-     * 
- * - * optional uint64 len = 13 [json_name = "len", (.buf.validate.predefined) = { ... } - * @param value The len to set. - * @return This builder for chaining. - */ - public Builder setLen(long value) { - - len_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `len` requires the field value to have the specified length in bytes.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value length must be 4 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
-     * }
-     * ```
-     * 
- * - * optional uint64 len = 13 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLen() { - bitField0_ = (bitField0_ & ~0x00000002); - len_ = 0L; - onChanged(); - return this; - } - - private long minLen_ ; - /** - *
-     * `min_len` requires the field value to have at least the specified minimum
-     * length in bytes.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value length must be at least 2 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return Whether the minLen field is set. - */ - @java.lang.Override - public boolean hasMinLen() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * `min_len` requires the field value to have at least the specified minimum
-     * length in bytes.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value length must be at least 2 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return The minLen. - */ - @java.lang.Override - public long getMinLen() { - return minLen_; - } - /** - *
-     * `min_len` requires the field value to have at least the specified minimum
-     * length in bytes.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value length must be at least 2 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @param value The minLen to set. - * @return This builder for chaining. - */ - public Builder setMinLen(long value) { - - minLen_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * `min_len` requires the field value to have at least the specified minimum
-     * length in bytes.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value length must be at least 2 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearMinLen() { - bitField0_ = (bitField0_ & ~0x00000004); - minLen_ = 0L; - onChanged(); - return this; - } - - private long maxLen_ ; - /** - *
-     * `max_len` requires the field value to have at most the specified maximum
-     * length in bytes.
-     * If the field value exceeds the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be at most 6 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return Whether the maxLen field is set. - */ - @java.lang.Override - public boolean hasMaxLen() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * `max_len` requires the field value to have at most the specified maximum
-     * length in bytes.
-     * If the field value exceeds the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be at most 6 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return The maxLen. - */ - @java.lang.Override - public long getMaxLen() { - return maxLen_; - } - /** - *
-     * `max_len` requires the field value to have at most the specified maximum
-     * length in bytes.
-     * If the field value exceeds the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be at most 6 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @param value The maxLen to set. - * @return This builder for chaining. - */ - public Builder setMaxLen(long value) { - - maxLen_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * `max_len` requires the field value to have at most the specified maximum
-     * length in bytes.
-     * If the field value exceeds the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be at most 6 bytes.
-     * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearMaxLen() { - bitField0_ = (bitField0_ & ~0x00000008); - maxLen_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object pattern_ = ""; - /** - *
-     * `pattern` requires the field value to match the specified regular
-     * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-     * The value of the field must be valid UTF-8 or validation will fail with a
-     * runtime error.
-     * If the field value doesn't match the pattern, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must match regex pattern "^[a-zA-Z0-9]+$".
-     * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return Whether the pattern field is set. - */ - public boolean hasPattern() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * `pattern` requires the field value to match the specified regular
-     * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-     * The value of the field must be valid UTF-8 or validation will fail with a
-     * runtime error.
-     * If the field value doesn't match the pattern, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must match regex pattern "^[a-zA-Z0-9]+$".
-     * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The pattern. - */ - public java.lang.String getPattern() { - java.lang.Object ref = pattern_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - pattern_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `pattern` requires the field value to match the specified regular
-     * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-     * The value of the field must be valid UTF-8 or validation will fail with a
-     * runtime error.
-     * If the field value doesn't match the pattern, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must match regex pattern "^[a-zA-Z0-9]+$".
-     * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The bytes for pattern. - */ - public com.google.protobuf.ByteString - getPatternBytes() { - java.lang.Object ref = pattern_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `pattern` requires the field value to match the specified regular
-     * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-     * The value of the field must be valid UTF-8 or validation will fail with a
-     * runtime error.
-     * If the field value doesn't match the pattern, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must match regex pattern "^[a-zA-Z0-9]+$".
-     * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @param value The pattern to set. - * @return This builder for chaining. - */ - public Builder setPattern( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pattern_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * `pattern` requires the field value to match the specified regular
-     * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-     * The value of the field must be valid UTF-8 or validation will fail with a
-     * runtime error.
-     * If the field value doesn't match the pattern, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must match regex pattern "^[a-zA-Z0-9]+$".
-     * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearPattern() { - pattern_ = getDefaultInstance().getPattern(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * `pattern` requires the field value to match the specified regular
-     * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-     * The value of the field must be valid UTF-8 or validation will fail with a
-     * runtime error.
-     * If the field value doesn't match the pattern, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must match regex pattern "^[a-zA-Z0-9]+$".
-     * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @param value The bytes for pattern to set. - * @return This builder for chaining. - */ - public Builder setPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - pattern_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString prefix_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * `prefix` requires the field value to have the specified bytes at the
-     * beginning of the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value does not have prefix \x01\x02
-     * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
-     * }
-     * ```
-     * 
- * - * optional bytes prefix = 5 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return Whether the prefix field is set. - */ - @java.lang.Override - public boolean hasPrefix() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * `prefix` requires the field value to have the specified bytes at the
-     * beginning of the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value does not have prefix \x01\x02
-     * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
-     * }
-     * ```
-     * 
- * - * optional bytes prefix = 5 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return The prefix. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPrefix() { - return prefix_; - } - /** - *
-     * `prefix` requires the field value to have the specified bytes at the
-     * beginning of the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value does not have prefix \x01\x02
-     * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
-     * }
-     * ```
-     * 
- * - * optional bytes prefix = 5 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @param value The prefix to set. - * @return This builder for chaining. - */ - public Builder setPrefix(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - prefix_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `prefix` requires the field value to have the specified bytes at the
-     * beginning of the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value does not have prefix \x01\x02
-     * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
-     * }
-     * ```
-     * 
- * - * optional bytes prefix = 5 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearPrefix() { - bitField0_ = (bitField0_ & ~0x00000020); - prefix_ = getDefaultInstance().getPrefix(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString suffix_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * `suffix` requires the field value to have the specified bytes at the end
-     * of the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value does not have suffix \x03\x04
-     * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
-     * }
-     * ```
-     * 
- * - * optional bytes suffix = 6 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return Whether the suffix field is set. - */ - @java.lang.Override - public boolean hasSuffix() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * `suffix` requires the field value to have the specified bytes at the end
-     * of the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value does not have suffix \x03\x04
-     * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
-     * }
-     * ```
-     * 
- * - * optional bytes suffix = 6 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return The suffix. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSuffix() { - return suffix_; - } - /** - *
-     * `suffix` requires the field value to have the specified bytes at the end
-     * of the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value does not have suffix \x03\x04
-     * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
-     * }
-     * ```
-     * 
- * - * optional bytes suffix = 6 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @param value The suffix to set. - * @return This builder for chaining. - */ - public Builder setSuffix(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - suffix_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `suffix` requires the field value to have the specified bytes at the end
-     * of the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value does not have suffix \x03\x04
-     * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
-     * }
-     * ```
-     * 
- * - * optional bytes suffix = 6 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearSuffix() { - bitField0_ = (bitField0_ & ~0x00000040); - suffix_ = getDefaultInstance().getSuffix(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString contains_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * `contains` requires the field value to have the specified bytes anywhere in
-     * the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```protobuf
-     * message MyBytes {
-     * // value does not contain \x02\x03
-     * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
-     * }
-     * ```
-     * 
- * - * optional bytes contains = 7 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return Whether the contains field is set. - */ - @java.lang.Override - public boolean hasContains() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * `contains` requires the field value to have the specified bytes anywhere in
-     * the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```protobuf
-     * message MyBytes {
-     * // value does not contain \x02\x03
-     * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
-     * }
-     * ```
-     * 
- * - * optional bytes contains = 7 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return The contains. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContains() { - return contains_; - } - /** - *
-     * `contains` requires the field value to have the specified bytes anywhere in
-     * the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```protobuf
-     * message MyBytes {
-     * // value does not contain \x02\x03
-     * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
-     * }
-     * ```
-     * 
- * - * optional bytes contains = 7 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @param value The contains to set. - * @return This builder for chaining. - */ - public Builder setContains(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - contains_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `contains` requires the field value to have the specified bytes anywhere in
-     * the string.
-     * If the field value doesn't meet the requirement, an error message is generated.
-     *
-     * ```protobuf
-     * message MyBytes {
-     * // value does not contain \x02\x03
-     * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
-     * }
-     * ```
-     * 
- * - * optional bytes contains = 7 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearContains() { - bitField0_ = (bitField0_ & ~0x00000080); - contains_ = getDefaultInstance().getContains(); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.ProtobufList in_ = emptyList(com.google.protobuf.ByteString.class); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000100; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified
-     * values. If the field value doesn't match any of the specified values, an
-     * error message is generated.
-     *
-     * ```protobuf
-     * message MyBytes {
-     * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified
-     * values. If the field value doesn't match any of the specified values, an
-     * error message is generated.
-     *
-     * ```protobuf
-     * message MyBytes {
-     * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified
-     * values. If the field value doesn't match any of the specified values, an
-     * error message is generated.
-     *
-     * ```protobuf
-     * message MyBytes {
-     * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public com.google.protobuf.ByteString getIn(int index) { - return in_.get(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified
-     * values. If the field value doesn't match any of the specified values, an
-     * error message is generated.
-     *
-     * ```protobuf
-     * message MyBytes {
-     * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureInIsMutable(); - in_.set(index, value); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified
-     * values. If the field value doesn't match any of the specified values, an
-     * error message is generated.
-     *
-     * ```protobuf
-     * message MyBytes {
-     * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureInIsMutable(); - in_.add(value); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified
-     * values. If the field value doesn't match any of the specified values, an
-     * error message is generated.
-     *
-     * ```protobuf
-     * message MyBytes {
-     * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified
-     * values. If the field value doesn't match any of the specified values, an
-     * error message is generated.
-     *
-     * ```protobuf
-     * message MyBytes {
-     * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyList(com.google.protobuf.ByteString.class); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.ProtobufList notIn_ = emptyList(com.google.protobuf.ByteString.class); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000200; - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the specified
-     * values.
-     * If the field value matches any of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the specified
-     * values.
-     * If the field value matches any of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the specified
-     * values.
-     * If the field value matches any of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public com.google.protobuf.ByteString getNotIn(int index) { - return notIn_.get(index); - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the specified
-     * values.
-     * If the field value matches any of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureNotInIsMutable(); - notIn_.set(index, value); - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the specified
-     * values.
-     * If the field value matches any of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureNotInIsMutable(); - notIn_.add(value); - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the specified
-     * values.
-     * If the field value matches any of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the specified
-     * values.
-     * If the field value matches any of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-     * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-     * }
-     * ```
-     * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyList(com.google.protobuf.ByteString.class); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - - /** - *
-     * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IP address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
-     * }
-     * ```
-     * 
- * - * bool ip = 10 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return Whether the ip field is set. - */ - public boolean hasIp() { - return wellKnownCase_ == 10; - } - /** - *
-     * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IP address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
-     * }
-     * ```
-     * 
- * - * bool ip = 10 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return The ip. - */ - public boolean getIp() { - if (wellKnownCase_ == 10) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IP address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
-     * }
-     * ```
-     * 
- * - * bool ip = 10 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @param value The ip to set. - * @return This builder for chaining. - */ - public Builder setIp(boolean value) { - - wellKnownCase_ = 10; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IP address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
-     * }
-     * ```
-     * 
- * - * bool ip = 10 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIp() { - if (wellKnownCase_ == 10) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IPv4 address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4 = 11 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4 field is set. - */ - public boolean hasIpv4() { - return wellKnownCase_ == 11; - } - /** - *
-     * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IPv4 address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4 = 11 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return The ipv4. - */ - public boolean getIpv4() { - if (wellKnownCase_ == 11) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IPv4 address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4 = 11 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @param value The ipv4 to set. - * @return This builder for chaining. - */ - public Builder setIpv4(boolean value) { - - wellKnownCase_ = 11; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     *
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IPv4 address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4 = 11 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIpv4() { - if (wellKnownCase_ == 11) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IPv6 address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6 = 12 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6 field is set. - */ - public boolean hasIpv6() { - return wellKnownCase_ == 12; - } - /** - *
-     * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IPv6 address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6 = 12 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return The ipv6. - */ - public boolean getIpv6() { - if (wellKnownCase_ == 12) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IPv6 address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6 = 12 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @param value The ipv6 to set. - * @return This builder for chaining. - */ - public Builder setIpv6(boolean value) { - - wellKnownCase_ = 12; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
-     * If the field value doesn't meet this constraint, an error message is generated.
-     * ```proto
-     * message MyBytes {
-     * // value must be a valid IPv6 address
-     * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6 = 12 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIpv6() { - if (wellKnownCase_ == 12) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.ProtobufList example_ = emptyList(com.google.protobuf.ByteString.class); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00002000; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBytes {
-     * bytes value = 1 [
-     * (buf.validate.field).bytes.example = "\x01\x02",
-     * (buf.validate.field).bytes.example = "\x02\x03"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBytes {
-     * bytes value = 1 [
-     * (buf.validate.field).bytes.example = "\x01\x02",
-     * (buf.validate.field).bytes.example = "\x02\x03"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBytes {
-     * bytes value = 1 [
-     * (buf.validate.field).bytes.example = "\x01\x02",
-     * (buf.validate.field).bytes.example = "\x02\x03"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public com.google.protobuf.ByteString getExample(int index) { - return example_.get(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBytes {
-     * bytes value = 1 [
-     * (buf.validate.field).bytes.example = "\x01\x02",
-     * (buf.validate.field).bytes.example = "\x02\x03"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureExampleIsMutable(); - example_.set(index, value); - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBytes {
-     * bytes value = 1 [
-     * (buf.validate.field).bytes.example = "\x01\x02",
-     * (buf.validate.field).bytes.example = "\x02\x03"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureExampleIsMutable(); - example_.add(value); - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBytes {
-     * bytes value = 1 [
-     * (buf.validate.field).bytes.example = "\x01\x02",
-     * (buf.validate.field).bytes.example = "\x02\x03"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyBytes {
-     * bytes value = 1 [
-     * (buf.validate.field).bytes.example = "\x01\x02",
-     * (buf.validate.field).bytes.example = "\x02\x03"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyList(com.google.protobuf.ByteString.class); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.BytesRules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.BytesRules) - private static final build.buf.validate.BytesRules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.BytesRules(); - } - - public static build.buf.validate.BytesRules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BytesRules 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.BytesRules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/BytesRulesOrBuilder.java b/src/main/java/build/buf/validate/BytesRulesOrBuilder.java deleted file mode 100644 index 3c0db693..00000000 --- a/src/main/java/build/buf/validate/BytesRulesOrBuilder.java +++ /dev/null @@ -1,611 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface BytesRulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.BytesRules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified bytes
-   * value. If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be "\x01\x02\x03\x04"
-   * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
-   * }
-   * ```
-   * 
- * - * optional bytes const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified bytes
-   * value. If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be "\x01\x02\x03\x04"
-   * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
-   * }
-   * ```
-   * 
- * - * optional bytes const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - com.google.protobuf.ByteString getConst(); - - /** - *
-   * `len` requires the field value to have the specified length in bytes.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value length must be 4 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
-   * }
-   * ```
-   * 
- * - * optional uint64 len = 13 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return Whether the len field is set. - */ - boolean hasLen(); - /** - *
-   * `len` requires the field value to have the specified length in bytes.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value length must be 4 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
-   * }
-   * ```
-   * 
- * - * optional uint64 len = 13 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return The len. - */ - long getLen(); - - /** - *
-   * `min_len` requires the field value to have at least the specified minimum
-   * length in bytes.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value length must be at least 2 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return Whether the minLen field is set. - */ - boolean hasMinLen(); - /** - *
-   * `min_len` requires the field value to have at least the specified minimum
-   * length in bytes.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value length must be at least 2 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return The minLen. - */ - long getMinLen(); - - /** - *
-   * `max_len` requires the field value to have at most the specified maximum
-   * length in bytes.
-   * If the field value exceeds the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be at most 6 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return Whether the maxLen field is set. - */ - boolean hasMaxLen(); - /** - *
-   * `max_len` requires the field value to have at most the specified maximum
-   * length in bytes.
-   * If the field value exceeds the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be at most 6 bytes.
-   * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return The maxLen. - */ - long getMaxLen(); - - /** - *
-   * `pattern` requires the field value to match the specified regular
-   * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-   * The value of the field must be valid UTF-8 or validation will fail with a
-   * runtime error.
-   * If the field value doesn't match the pattern, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must match regex pattern "^[a-zA-Z0-9]+$".
-   * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return Whether the pattern field is set. - */ - boolean hasPattern(); - /** - *
-   * `pattern` requires the field value to match the specified regular
-   * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-   * The value of the field must be valid UTF-8 or validation will fail with a
-   * runtime error.
-   * If the field value doesn't match the pattern, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must match regex pattern "^[a-zA-Z0-9]+$".
-   * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The pattern. - */ - java.lang.String getPattern(); - /** - *
-   * `pattern` requires the field value to match the specified regular
-   * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
-   * The value of the field must be valid UTF-8 or validation will fail with a
-   * runtime error.
-   * If the field value doesn't match the pattern, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must match regex pattern "^[a-zA-Z0-9]+$".
-   * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 4 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The bytes for pattern. - */ - com.google.protobuf.ByteString - getPatternBytes(); - - /** - *
-   * `prefix` requires the field value to have the specified bytes at the
-   * beginning of the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value does not have prefix \x01\x02
-   * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
-   * }
-   * ```
-   * 
- * - * optional bytes prefix = 5 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return Whether the prefix field is set. - */ - boolean hasPrefix(); - /** - *
-   * `prefix` requires the field value to have the specified bytes at the
-   * beginning of the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value does not have prefix \x01\x02
-   * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
-   * }
-   * ```
-   * 
- * - * optional bytes prefix = 5 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return The prefix. - */ - com.google.protobuf.ByteString getPrefix(); - - /** - *
-   * `suffix` requires the field value to have the specified bytes at the end
-   * of the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value does not have suffix \x03\x04
-   * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
-   * }
-   * ```
-   * 
- * - * optional bytes suffix = 6 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return Whether the suffix field is set. - */ - boolean hasSuffix(); - /** - *
-   * `suffix` requires the field value to have the specified bytes at the end
-   * of the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value does not have suffix \x03\x04
-   * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
-   * }
-   * ```
-   * 
- * - * optional bytes suffix = 6 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return The suffix. - */ - com.google.protobuf.ByteString getSuffix(); - - /** - *
-   * `contains` requires the field value to have the specified bytes anywhere in
-   * the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```protobuf
-   * message MyBytes {
-   * // value does not contain \x02\x03
-   * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
-   * }
-   * ```
-   * 
- * - * optional bytes contains = 7 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return Whether the contains field is set. - */ - boolean hasContains(); - /** - *
-   * `contains` requires the field value to have the specified bytes anywhere in
-   * the string.
-   * If the field value doesn't meet the requirement, an error message is generated.
-   *
-   * ```protobuf
-   * message MyBytes {
-   * // value does not contain \x02\x03
-   * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
-   * }
-   * ```
-   * 
- * - * optional bytes contains = 7 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return The contains. - */ - com.google.protobuf.ByteString getContains(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified
-   * values. If the field value doesn't match any of the specified values, an
-   * error message is generated.
-   *
-   * ```protobuf
-   * message MyBytes {
-   * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified
-   * values. If the field value doesn't match any of the specified values, an
-   * error message is generated.
-   *
-   * ```protobuf
-   * message MyBytes {
-   * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified
-   * values. If the field value doesn't match any of the specified values, an
-   * error message is generated.
-   *
-   * ```protobuf
-   * message MyBytes {
-   * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes in = 8 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - com.google.protobuf.ByteString getIn(int index); - - /** - *
-   * `not_in` requires the field value to be not equal to any of the specified
-   * values.
-   * If the field value matches any of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to be not equal to any of the specified
-   * values.
-   * If the field value matches any of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to be not equal to any of the specified
-   * values.
-   * If the field value matches any of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
-   * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
-   * }
-   * ```
-   * 
- * - * repeated bytes not_in = 9 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - com.google.protobuf.ByteString getNotIn(int index); - - /** - *
-   * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IP address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
-   * }
-   * ```
-   * 
- * - * bool ip = 10 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return Whether the ip field is set. - */ - boolean hasIp(); - /** - *
-   * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IP address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
-   * }
-   * ```
-   * 
- * - * bool ip = 10 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return The ip. - */ - boolean getIp(); - - /** - *
-   * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IPv4 address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4 = 11 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4 field is set. - */ - boolean hasIpv4(); - /** - *
-   * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   *
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IPv4 address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4 = 11 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return The ipv4. - */ - boolean getIpv4(); - - /** - *
-   * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IPv6 address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6 = 12 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6 field is set. - */ - boolean hasIpv6(); - /** - *
-   * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
-   * If the field value doesn't meet this constraint, an error message is generated.
-   * ```proto
-   * message MyBytes {
-   * // value must be a valid IPv6 address
-   * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6 = 12 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return The ipv6. - */ - boolean getIpv6(); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBytes {
-   * bytes value = 1 [
-   * (buf.validate.field).bytes.example = "\x01\x02",
-   * (buf.validate.field).bytes.example = "\x02\x03"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBytes {
-   * bytes value = 1 [
-   * (buf.validate.field).bytes.example = "\x01\x02",
-   * (buf.validate.field).bytes.example = "\x02\x03"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyBytes {
-   * bytes value = 1 [
-   * (buf.validate.field).bytes.example = "\x01\x02",
-   * (buf.validate.field).bytes.example = "\x02\x03"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated bytes example = 14 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - com.google.protobuf.ByteString getExample(int index); - - build.buf.validate.BytesRules.WellKnownCase getWellKnownCase(); -} diff --git a/src/main/java/build/buf/validate/Constraint.java b/src/main/java/build/buf/validate/Constraint.java deleted file mode 100644 index 9f033f96..00000000 --- a/src/main/java/build/buf/validate/Constraint.java +++ /dev/null @@ -1,1055 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * `Constraint` represents a validation rule written in the Common Expression
- * Language (CEL) syntax. Each Constraint includes a unique identifier, an
- * optional error message, and the CEL expression to evaluate. For more
- * information on CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
- *
- * ```proto
- * message Foo {
- * option (buf.validate.message).cel = {
- * id: "foo.bar"
- * message: "bar must be greater than 0"
- * expression: "this.bar > 0"
- * };
- * int32 bar = 1;
- * }
- * ```
- * 
- * - * Protobuf type {@code buf.validate.Constraint} - */ -public final class Constraint extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.Constraint) - ConstraintOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Constraint.class.getName()); - } - // Use Constraint.newBuilder() to construct. - private Constraint(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Constraint() { - id_ = ""; - message_ = ""; - expression_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Constraint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Constraint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Constraint.class, build.buf.validate.Constraint.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - *
-   * `id` is a string that serves as a machine-readable name for this Constraint.
-   * It should be unique within its scope, which could be either a message or a field.
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `id` is a string that serves as a machine-readable name for this Constraint.
-   * It should be unique within its scope, which could be either a message or a field.
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - *
-   * `id` is a string that serves as a machine-readable name for this Constraint.
-   * It should be unique within its scope, which could be either a message or a field.
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object message_ = ""; - /** - *
-   * `message` is an optional field that provides a human-readable error message
-   * for this Constraint when the CEL expression evaluates to false. If a
-   * non-empty message is provided, any strings resulting from the CEL
-   * expression evaluation are ignored.
-   * 
- * - * optional string message = 2 [json_name = "message"]; - * @return Whether the message field is set. - */ - @java.lang.Override - public boolean hasMessage() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * `message` is an optional field that provides a human-readable error message
-   * for this Constraint when the CEL expression evaluates to false. If a
-   * non-empty message is provided, any strings resulting from the CEL
-   * expression evaluation are ignored.
-   * 
- * - * optional string message = 2 [json_name = "message"]; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - message_ = s; - } - return s; - } - } - /** - *
-   * `message` is an optional field that provides a human-readable error message
-   * for this Constraint when the CEL expression evaluates to false. If a
-   * non-empty message is provided, any strings resulting from the CEL
-   * expression evaluation are ignored.
-   * 
- * - * optional string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPRESSION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object expression_ = ""; - /** - *
-   * `expression` is the actual CEL expression that will be evaluated for
-   * validation. This string must resolve to either a boolean or a string
-   * value. If the expression evaluates to false or a non-empty string, the
-   * validation is considered failed, and the message is rejected.
-   * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @return Whether the expression field is set. - */ - @java.lang.Override - public boolean hasExpression() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-   * `expression` is the actual CEL expression that will be evaluated for
-   * validation. This string must resolve to either a boolean or a string
-   * value. If the expression evaluates to false or a non-empty string, the
-   * validation is considered failed, and the message is rejected.
-   * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @return The expression. - */ - @java.lang.Override - public java.lang.String getExpression() { - java.lang.Object ref = expression_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - expression_ = s; - } - return s; - } - } - /** - *
-   * `expression` is the actual CEL expression that will be evaluated for
-   * validation. This string must resolve to either a boolean or a string
-   * value. If the expression evaluates to false or a non-empty string, the
-   * validation is considered failed, and the message is rejected.
-   * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @return The bytes for expression. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getExpressionBytes() { - java.lang.Object ref = expression_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, message_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, expression_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, expression_); - } - 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.Constraint)) { - return super.equals(obj); - } - build.buf.validate.Constraint other = (build.buf.validate.Constraint) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasMessage() != other.hasMessage()) return false; - if (hasMessage()) { - if (!getMessage() - .equals(other.getMessage())) return false; - } - if (hasExpression() != other.hasExpression()) return false; - if (hasExpression()) { - if (!getExpression() - .equals(other.getExpression())) 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 (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - if (hasMessage()) { - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - } - if (hasExpression()) { - hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.Constraint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Constraint 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.Constraint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Constraint 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.Constraint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Constraint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.Constraint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Constraint 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.Constraint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.Constraint 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.Constraint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Constraint 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.Constraint 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; - } - /** - *
-   * `Constraint` represents a validation rule written in the Common Expression
-   * Language (CEL) syntax. Each Constraint includes a unique identifier, an
-   * optional error message, and the CEL expression to evaluate. For more
-   * information on CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message Foo {
-   * option (buf.validate.message).cel = {
-   * id: "foo.bar"
-   * message: "bar must be greater than 0"
-   * expression: "this.bar > 0"
-   * };
-   * int32 bar = 1;
-   * }
-   * ```
-   * 
- * - * Protobuf type {@code buf.validate.Constraint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.Constraint) - build.buf.validate.ConstraintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Constraint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Constraint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Constraint.class, build.buf.validate.Constraint.Builder.class); - } - - // Construct using build.buf.validate.Constraint.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - message_ = ""; - expression_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Constraint_descriptor; - } - - @java.lang.Override - public build.buf.validate.Constraint getDefaultInstanceForType() { - return build.buf.validate.Constraint.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.Constraint build() { - build.buf.validate.Constraint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.Constraint buildPartial() { - build.buf.validate.Constraint result = new build.buf.validate.Constraint(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.Constraint result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.message_ = message_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.expression_ = expression_; - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.Constraint) { - return mergeFrom((build.buf.validate.Constraint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.Constraint other) { - if (other == build.buf.validate.Constraint.getDefaultInstance()) return this; - if (other.hasId()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasMessage()) { - message_ = other.message_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasExpression()) { - expression_ = other.expression_; - bitField0_ |= 0x00000004; - onChanged(); - } - 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: { - id_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - message_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - expression_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - 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.lang.Object id_ = ""; - /** - *
-     * `id` is a string that serves as a machine-readable name for this Constraint.
-     * It should be unique within its scope, which could be either a message or a field.
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `id` is a string that serves as a machine-readable name for this Constraint.
-     * It should be unique within its scope, which could be either a message or a field.
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `id` is a string that serves as a machine-readable name for this Constraint.
-     * It should be unique within its scope, which could be either a message or a field.
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `id` is a string that serves as a machine-readable name for this Constraint.
-     * It should be unique within its scope, which could be either a message or a field.
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `id` is a string that serves as a machine-readable name for this Constraint.
-     * It should be unique within its scope, which could be either a message or a field.
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * `id` is a string that serves as a machine-readable name for this Constraint.
-     * It should be unique within its scope, which could be either a message or a field.
-     * 
- * - * optional string id = 1 [json_name = "id"]; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-     * `message` is an optional field that provides a human-readable error message
-     * for this Constraint when the CEL expression evaluates to false. If a
-     * non-empty message is provided, any strings resulting from the CEL
-     * expression evaluation are ignored.
-     * 
- * - * optional string message = 2 [json_name = "message"]; - * @return Whether the message field is set. - */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * `message` is an optional field that provides a human-readable error message
-     * for this Constraint when the CEL expression evaluates to false. If a
-     * non-empty message is provided, any strings resulting from the CEL
-     * expression evaluation are ignored.
-     * 
- * - * optional string message = 2 [json_name = "message"]; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - message_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `message` is an optional field that provides a human-readable error message
-     * for this Constraint when the CEL expression evaluates to false. If a
-     * non-empty message is provided, any strings resulting from the CEL
-     * expression evaluation are ignored.
-     * 
- * - * optional string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `message` is an optional field that provides a human-readable error message
-     * for this Constraint when the CEL expression evaluates to false. If a
-     * non-empty message is provided, any strings resulting from the CEL
-     * expression evaluation are ignored.
-     * 
- * - * optional string message = 2 [json_name = "message"]; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - message_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `message` is an optional field that provides a human-readable error message
-     * for this Constraint when the CEL expression evaluates to false. If a
-     * non-empty message is provided, any strings resulting from the CEL
-     * expression evaluation are ignored.
-     * 
- * - * optional string message = 2 [json_name = "message"]; - * @return This builder for chaining. - */ - public Builder clearMessage() { - message_ = getDefaultInstance().getMessage(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * `message` is an optional field that provides a human-readable error message
-     * for this Constraint when the CEL expression evaluates to false. If a
-     * non-empty message is provided, any strings resulting from the CEL
-     * expression evaluation are ignored.
-     * 
- * - * optional string message = 2 [json_name = "message"]; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - message_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object expression_ = ""; - /** - *
-     * `expression` is the actual CEL expression that will be evaluated for
-     * validation. This string must resolve to either a boolean or a string
-     * value. If the expression evaluates to false or a non-empty string, the
-     * validation is considered failed, and the message is rejected.
-     * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @return Whether the expression field is set. - */ - public boolean hasExpression() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * `expression` is the actual CEL expression that will be evaluated for
-     * validation. This string must resolve to either a boolean or a string
-     * value. If the expression evaluates to false or a non-empty string, the
-     * validation is considered failed, and the message is rejected.
-     * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @return The expression. - */ - public java.lang.String getExpression() { - java.lang.Object ref = expression_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - expression_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `expression` is the actual CEL expression that will be evaluated for
-     * validation. This string must resolve to either a boolean or a string
-     * value. If the expression evaluates to false or a non-empty string, the
-     * validation is considered failed, and the message is rejected.
-     * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @return The bytes for expression. - */ - public com.google.protobuf.ByteString - getExpressionBytes() { - java.lang.Object ref = expression_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `expression` is the actual CEL expression that will be evaluated for
-     * validation. This string must resolve to either a boolean or a string
-     * value. If the expression evaluates to false or a non-empty string, the
-     * validation is considered failed, and the message is rejected.
-     * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @param value The expression to set. - * @return This builder for chaining. - */ - public Builder setExpression( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - expression_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * `expression` is the actual CEL expression that will be evaluated for
-     * validation. This string must resolve to either a boolean or a string
-     * value. If the expression evaluates to false or a non-empty string, the
-     * validation is considered failed, and the message is rejected.
-     * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @return This builder for chaining. - */ - public Builder clearExpression() { - expression_ = getDefaultInstance().getExpression(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * `expression` is the actual CEL expression that will be evaluated for
-     * validation. This string must resolve to either a boolean or a string
-     * value. If the expression evaluates to false or a non-empty string, the
-     * validation is considered failed, and the message is rejected.
-     * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @param value The bytes for expression to set. - * @return This builder for chaining. - */ - public Builder setExpressionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - expression_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.Constraint) - } - - // @@protoc_insertion_point(class_scope:buf.validate.Constraint) - private static final build.buf.validate.Constraint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.Constraint(); - } - - public static build.buf.validate.Constraint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Constraint 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.Constraint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/ConstraintOrBuilder.java b/src/main/java/build/buf/validate/ConstraintOrBuilder.java deleted file mode 100644 index 59fd7d7d..00000000 --- a/src/main/java/build/buf/validate/ConstraintOrBuilder.java +++ /dev/null @@ -1,119 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface ConstraintOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.Constraint) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * `id` is a string that serves as a machine-readable name for this Constraint.
-   * It should be unique within its scope, which could be either a message or a field.
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return Whether the id field is set. - */ - boolean hasId(); - /** - *
-   * `id` is a string that serves as a machine-readable name for this Constraint.
-   * It should be unique within its scope, which could be either a message or a field.
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The id. - */ - java.lang.String getId(); - /** - *
-   * `id` is a string that serves as a machine-readable name for this Constraint.
-   * It should be unique within its scope, which could be either a message or a field.
-   * 
- * - * optional string id = 1 [json_name = "id"]; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-   * `message` is an optional field that provides a human-readable error message
-   * for this Constraint when the CEL expression evaluates to false. If a
-   * non-empty message is provided, any strings resulting from the CEL
-   * expression evaluation are ignored.
-   * 
- * - * optional string message = 2 [json_name = "message"]; - * @return Whether the message field is set. - */ - boolean hasMessage(); - /** - *
-   * `message` is an optional field that provides a human-readable error message
-   * for this Constraint when the CEL expression evaluates to false. If a
-   * non-empty message is provided, any strings resulting from the CEL
-   * expression evaluation are ignored.
-   * 
- * - * optional string message = 2 [json_name = "message"]; - * @return The message. - */ - java.lang.String getMessage(); - /** - *
-   * `message` is an optional field that provides a human-readable error message
-   * for this Constraint when the CEL expression evaluates to false. If a
-   * non-empty message is provided, any strings resulting from the CEL
-   * expression evaluation are ignored.
-   * 
- * - * optional string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-   * `expression` is the actual CEL expression that will be evaluated for
-   * validation. This string must resolve to either a boolean or a string
-   * value. If the expression evaluates to false or a non-empty string, the
-   * validation is considered failed, and the message is rejected.
-   * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @return Whether the expression field is set. - */ - boolean hasExpression(); - /** - *
-   * `expression` is the actual CEL expression that will be evaluated for
-   * validation. This string must resolve to either a boolean or a string
-   * value. If the expression evaluates to false or a non-empty string, the
-   * validation is considered failed, and the message is rejected.
-   * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @return The expression. - */ - java.lang.String getExpression(); - /** - *
-   * `expression` is the actual CEL expression that will be evaluated for
-   * validation. This string must resolve to either a boolean or a string
-   * value. If the expression evaluates to false or a non-empty string, the
-   * validation is considered failed, and the message is rejected.
-   * 
- * - * optional string expression = 3 [json_name = "expression"]; - * @return The bytes for expression. - */ - com.google.protobuf.ByteString - getExpressionBytes(); -} diff --git a/src/main/java/build/buf/validate/DoubleRules.java b/src/main/java/build/buf/validate/DoubleRules.java deleted file mode 100644 index 2d7cbf46..00000000 --- a/src/main/java/build/buf/validate/DoubleRules.java +++ /dev/null @@ -1,2517 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * DoubleRules describes the constraints applied to `double` values. These
- * rules may also be applied to the `google.protobuf.DoubleValue` Well-Known-Type.
- * 
- * - * Protobuf type {@code buf.validate.DoubleRules} - */ -public final class DoubleRules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - DoubleRules> implements - // @@protoc_insertion_point(message_implements:buf.validate.DoubleRules) - DoubleRulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DoubleRules.class.getName()); - } - // Use DoubleRules.newBuilder() to construct. - private DoubleRules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private DoubleRules() { - in_ = emptyDoubleList(); - notIn_ = emptyDoubleList(); - example_ = emptyDoubleList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_DoubleRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_DoubleRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.DoubleRules.class, build.buf.validate.DoubleRules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private double const_ = 0D; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must equal 42.0
-   * double value = 1 [(buf.validate.field).double.const = 42.0];
-   * }
-   * ```
-   * 
- * - * optional double const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must equal 42.0
-   * double value = 1 [(buf.validate.field).double.const = 42.0];
-   * }
-   * ```
-   * 
- * - * optional double const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public double getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be less than 10.0
-   * double value = 1 [(buf.validate.field).double.lt = 10.0];
-   * }
-   * ```
-   * 
- * - * double lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be less than 10.0
-   * double value = 1 [(buf.validate.field).double.lt = 10.0];
-   * }
-   * ```
-   * 
- * - * double lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public double getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Double) lessThan_; - } - return 0D; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified value
-   * (field <= value). If the field value is greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be less than or equal to 10.0
-   * double value = 1 [(buf.validate.field).double.lte = 10.0];
-   * }
-   * ```
-   * 
- * - * double lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified value
-   * (field <= value). If the field value is greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be less than or equal to 10.0
-   * double value = 1 [(buf.validate.field).double.lte = 10.0];
-   * }
-   * ```
-   * 
- * - * double lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public double getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Double) lessThan_; - } - return 0D; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
-   * the range is reversed, and the field value must be outside the specified
-   * range. If the field value doesn't meet the required conditions, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be greater than 5.0 [double.gt]
-   * double value = 1 [(buf.validate.field).double.gt = 5.0];
-   *
-   * // value must be greater than 5 and less than 10.0 [double.gt_lt]
-   * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
-   * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * double gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
-   * the range is reversed, and the field value must be outside the specified
-   * range. If the field value doesn't meet the required conditions, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be greater than 5.0 [double.gt]
-   * double value = 1 [(buf.validate.field).double.gt = 5.0];
-   *
-   * // value must be greater than 5 and less than 10.0 [double.gt_lt]
-   * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
-   * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * double gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public double getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Double) greaterThan_; - } - return 0D; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be greater than or equal to 5.0 [double.gte]
-   * double value = 1 [(buf.validate.field).double.gte = 5.0];
-   *
-   * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
-   * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
-   * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * double gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be greater than or equal to 5.0 [double.gte]
-   * double value = 1 [(buf.validate.field).double.gte = 5.0];
-   *
-   * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
-   * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
-   * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * double gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public double getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Double) greaterThan_; - } - return 0D; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.DoubleList in_ = - emptyDoubleList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public double getIn(int index) { - return in_.getDouble(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.DoubleList notIn_ = - emptyDoubleList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public double getNotIn(int index) { - return notIn_.getDouble(index); - } - - public static final int FINITE_FIELD_NUMBER = 8; - private boolean finite_ = false; - /** - *
-   * `finite` requires the field value to be finite. If the field value is
-   * infinite or NaN, an error message is generated.
-   * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return Whether the finite field is set. - */ - @java.lang.Override - public boolean hasFinite() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * `finite` requires the field value to be finite. If the field value is
-   * infinite or NaN, an error message is generated.
-   * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return The finite. - */ - @java.lang.Override - public boolean getFinite() { - return finite_; - } - - public static final int EXAMPLE_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.DoubleList example_ = - emptyDoubleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDouble {
-   * double value = 1 [
-   * (buf.validate.field).double.example = 1.0,
-   * (buf.validate.field).double.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDouble {
-   * double value = 1 [
-   * (buf.validate.field).double.example = 1.0,
-   * (buf.validate.field).double.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDouble {
-   * double value = 1 [
-   * (buf.validate.field).double.example = 1.0,
-   * (buf.validate.field).double.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public double getExample(int index) { - return example_.getDouble(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeDouble(1, const_); - } - if (lessThanCase_ == 2) { - output.writeDouble( - 2, (double)((java.lang.Double) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeDouble( - 3, (double)((java.lang.Double) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeDouble( - 4, (double)((java.lang.Double) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeDouble( - 5, (double)((java.lang.Double) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeDouble(6, in_.getDouble(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeDouble(7, notIn_.getDouble(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeBool(8, finite_); - } - for (int i = 0; i < example_.size(); i++) { - output.writeDouble(9, example_.getDouble(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 2, (double)((java.lang.Double) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 3, (double)((java.lang.Double) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 4, (double)((java.lang.Double) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 5, (double)((java.lang.Double) greaterThan_)); - } - { - int dataSize = 0; - dataSize = 8 * getInList().size(); - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - dataSize = 8 * getNotInList().size(); - size += dataSize; - size += 1 * getNotInList().size(); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, finite_); - } - { - int dataSize = 0; - dataSize = 8 * getExampleList().size(); - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.DoubleRules)) { - return super.equals(obj); - } - build.buf.validate.DoubleRules other = (build.buf.validate.DoubleRules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (java.lang.Double.doubleToLongBits(getConst()) - != java.lang.Double.doubleToLongBits( - other.getConst())) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (hasFinite() != other.hasFinite()) return false; - if (hasFinite()) { - if (getFinite() - != other.getFinite()) return false; - } - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (java.lang.Double.doubleToLongBits(getLt()) - != java.lang.Double.doubleToLongBits( - other.getLt())) return false; - break; - case 3: - if (java.lang.Double.doubleToLongBits(getLte()) - != java.lang.Double.doubleToLongBits( - other.getLte())) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (java.lang.Double.doubleToLongBits(getGt()) - != java.lang.Double.doubleToLongBits( - other.getGt())) return false; - break; - case 5: - if (java.lang.Double.doubleToLongBits(getGte()) - != java.lang.Double.doubleToLongBits( - other.getGte())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getConst())); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (hasFinite()) { - hash = (37 * hash) + FINITE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFinite()); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLt())); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLte())); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getGt())); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getGte())); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.DoubleRules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.DoubleRules 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.DoubleRules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.DoubleRules 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.DoubleRules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.DoubleRules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.DoubleRules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.DoubleRules 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.DoubleRules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.DoubleRules 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.DoubleRules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.DoubleRules 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.DoubleRules 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; - } - /** - *
-   * DoubleRules describes the constraints applied to `double` values. These
-   * rules may also be applied to the `google.protobuf.DoubleValue` Well-Known-Type.
-   * 
- * - * Protobuf type {@code buf.validate.DoubleRules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.DoubleRules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.DoubleRules) - build.buf.validate.DoubleRulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_DoubleRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_DoubleRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.DoubleRules.class, build.buf.validate.DoubleRules.Builder.class); - } - - // Construct using build.buf.validate.DoubleRules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0D; - in_ = emptyDoubleList(); - notIn_ = emptyDoubleList(); - finite_ = false; - example_ = emptyDoubleList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_DoubleRules_descriptor; - } - - @java.lang.Override - public build.buf.validate.DoubleRules getDefaultInstanceForType() { - return build.buf.validate.DoubleRules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.DoubleRules build() { - build.buf.validate.DoubleRules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.DoubleRules buildPartial() { - build.buf.validate.DoubleRules result = new build.buf.validate.DoubleRules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.DoubleRules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.finite_ = finite_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.DoubleRules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.DoubleRules) { - return mergeFrom((build.buf.validate.DoubleRules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.DoubleRules other) { - if (other == build.buf.validate.DoubleRules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (other.hasFinite()) { - setFinite(other.getFinite()); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000100; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 9: { - const_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 17: { - lessThan_ = input.readDouble(); - lessThanCase_ = 2; - break; - } // case 17 - case 25: { - lessThan_ = input.readDouble(); - lessThanCase_ = 3; - break; - } // case 25 - case 33: { - greaterThan_ = input.readDouble(); - greaterThanCase_ = 4; - break; - } // case 33 - case 41: { - greaterThan_ = input.readDouble(); - greaterThanCase_ = 5; - break; - } // case 41 - case 49: { - double v = input.readDouble(); - ensureInIsMutable(); - in_.addDouble(v); - break; - } // case 49 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureInIsMutable(alloc / 8); - while (input.getBytesUntilLimit() > 0) { - in_.addDouble(input.readDouble()); - } - input.popLimit(limit); - break; - } // case 50 - case 57: { - double v = input.readDouble(); - ensureNotInIsMutable(); - notIn_.addDouble(v); - break; - } // case 57 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureNotInIsMutable(alloc / 8); - while (input.getBytesUntilLimit() > 0) { - notIn_.addDouble(input.readDouble()); - } - input.popLimit(limit); - break; - } // case 58 - case 64: { - finite_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 73: { - double v = input.readDouble(); - ensureExampleIsMutable(); - example_.addDouble(v); - break; - } // case 73 - case 74: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureExampleIsMutable(alloc / 8); - while (input.getBytesUntilLimit() > 0) { - example_.addDouble(input.readDouble()); - } - input.popLimit(limit); - break; - } // case 74 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private double const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must equal 42.0
-     * double value = 1 [(buf.validate.field).double.const = 42.0];
-     * }
-     * ```
-     * 
- * - * optional double const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must equal 42.0
-     * double value = 1 [(buf.validate.field).double.const = 42.0];
-     * }
-     * ```
-     * 
- * - * optional double const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public double getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must equal 42.0
-     * double value = 1 [(buf.validate.field).double.const = 42.0];
-     * }
-     * ```
-     * 
- * - * optional double const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(double value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must equal 42.0
-     * double value = 1 [(buf.validate.field).double.const = 42.0];
-     * }
-     * ```
-     * 
- * - * optional double const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0D; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be less than 10.0
-     * double value = 1 [(buf.validate.field).double.lt = 10.0];
-     * }
-     * ```
-     * 
- * - * double lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be less than 10.0
-     * double value = 1 [(buf.validate.field).double.lt = 10.0];
-     * }
-     * ```
-     * 
- * - * double lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public double getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Double) lessThan_; - } - return 0D; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be less than 10.0
-     * double value = 1 [(buf.validate.field).double.lt = 10.0];
-     * }
-     * ```
-     * 
- * - * double lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(double value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be less than 10.0
-     * double value = 1 [(buf.validate.field).double.lt = 10.0];
-     * }
-     * ```
-     * 
- * - * double lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified value
-     * (field <= value). If the field value is greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be less than or equal to 10.0
-     * double value = 1 [(buf.validate.field).double.lte = 10.0];
-     * }
-     * ```
-     * 
- * - * double lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified value
-     * (field <= value). If the field value is greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be less than or equal to 10.0
-     * double value = 1 [(buf.validate.field).double.lte = 10.0];
-     * }
-     * ```
-     * 
- * - * double lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public double getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Double) lessThan_; - } - return 0D; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified value
-     * (field <= value). If the field value is greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be less than or equal to 10.0
-     * double value = 1 [(buf.validate.field).double.lte = 10.0];
-     * }
-     * ```
-     * 
- * - * double lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(double value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified value
-     * (field <= value). If the field value is greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be less than or equal to 10.0
-     * double value = 1 [(buf.validate.field).double.lte = 10.0];
-     * }
-     * ```
-     * 
- * - * double lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
-     * the range is reversed, and the field value must be outside the specified
-     * range. If the field value doesn't meet the required conditions, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be greater than 5.0 [double.gt]
-     * double value = 1 [(buf.validate.field).double.gt = 5.0];
-     *
-     * // value must be greater than 5 and less than 10.0 [double.gt_lt]
-     * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
-     * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * double gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
-     * the range is reversed, and the field value must be outside the specified
-     * range. If the field value doesn't meet the required conditions, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be greater than 5.0 [double.gt]
-     * double value = 1 [(buf.validate.field).double.gt = 5.0];
-     *
-     * // value must be greater than 5 and less than 10.0 [double.gt_lt]
-     * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
-     * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * double gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public double getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Double) greaterThan_; - } - return 0D; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
-     * the range is reversed, and the field value must be outside the specified
-     * range. If the field value doesn't meet the required conditions, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be greater than 5.0 [double.gt]
-     * double value = 1 [(buf.validate.field).double.gt = 5.0];
-     *
-     * // value must be greater than 5 and less than 10.0 [double.gt_lt]
-     * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
-     * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * double gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(double value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
-     * the range is reversed, and the field value must be outside the specified
-     * range. If the field value doesn't meet the required conditions, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be greater than 5.0 [double.gt]
-     * double value = 1 [(buf.validate.field).double.gt = 5.0];
-     *
-     * // value must be greater than 5 and less than 10.0 [double.gt_lt]
-     * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
-     * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * double gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be greater than or equal to 5.0 [double.gte]
-     * double value = 1 [(buf.validate.field).double.gte = 5.0];
-     *
-     * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
-     * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
-     * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * double gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be greater than or equal to 5.0 [double.gte]
-     * double value = 1 [(buf.validate.field).double.gte = 5.0];
-     *
-     * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
-     * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
-     * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * double gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public double getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Double) greaterThan_; - } - return 0D; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be greater than or equal to 5.0 [double.gte]
-     * double value = 1 [(buf.validate.field).double.gte = 5.0];
-     *
-     * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
-     * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
-     * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * double gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(double value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be greater than or equal to 5.0 [double.gte]
-     * double value = 1 [(buf.validate.field).double.gte = 5.0];
-     *
-     * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
-     * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
-     * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * double gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.DoubleList in_ = emptyDoubleList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - private void ensureInIsMutable(int capacity) { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_, capacity); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public double getIn(int index) { - return in_.getDouble(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, double value) { - - ensureInIsMutable(); - in_.setDouble(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(double value) { - - ensureInIsMutable(); - in_.addDouble(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.DoubleList notIn_ = emptyDoubleList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - private void ensureNotInIsMutable(int capacity) { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_, capacity); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public double getNotIn(int index) { - return notIn_.getDouble(index); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, double value) { - - ensureNotInIsMutable(); - notIn_.setDouble(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(double value) { - - ensureNotInIsMutable(); - notIn_.addDouble(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyDouble {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private boolean finite_ ; - /** - *
-     * `finite` requires the field value to be finite. If the field value is
-     * infinite or NaN, an error message is generated.
-     * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return Whether the finite field is set. - */ - @java.lang.Override - public boolean hasFinite() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * `finite` requires the field value to be finite. If the field value is
-     * infinite or NaN, an error message is generated.
-     * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return The finite. - */ - @java.lang.Override - public boolean getFinite() { - return finite_; - } - /** - *
-     * `finite` requires the field value to be finite. If the field value is
-     * infinite or NaN, an error message is generated.
-     * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @param value The finite to set. - * @return This builder for chaining. - */ - public Builder setFinite(boolean value) { - - finite_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `finite` requires the field value to be finite. If the field value is
-     * infinite or NaN, an error message is generated.
-     * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearFinite() { - bitField0_ = (bitField0_ & ~0x00000080); - finite_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.DoubleList example_ = emptyDoubleList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000100; - } - private void ensureExampleIsMutable(int capacity) { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_, capacity); - } - bitField0_ |= 0x00000100; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDouble {
-     * double value = 1 [
-     * (buf.validate.field).double.example = 1.0,
-     * (buf.validate.field).double.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDouble {
-     * double value = 1 [
-     * (buf.validate.field).double.example = 1.0,
-     * (buf.validate.field).double.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDouble {
-     * double value = 1 [
-     * (buf.validate.field).double.example = 1.0,
-     * (buf.validate.field).double.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public double getExample(int index) { - return example_.getDouble(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDouble {
-     * double value = 1 [
-     * (buf.validate.field).double.example = 1.0,
-     * (buf.validate.field).double.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, double value) { - - ensureExampleIsMutable(); - example_.setDouble(index, value); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDouble {
-     * double value = 1 [
-     * (buf.validate.field).double.example = 1.0,
-     * (buf.validate.field).double.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(double value) { - - ensureExampleIsMutable(); - example_.addDouble(value); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDouble {
-     * double value = 1 [
-     * (buf.validate.field).double.example = 1.0,
-     * (buf.validate.field).double.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDouble {
-     * double value = 1 [
-     * (buf.validate.field).double.example = 1.0,
-     * (buf.validate.field).double.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyDoubleList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.DoubleRules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.DoubleRules) - private static final build.buf.validate.DoubleRules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.DoubleRules(); - } - - public static build.buf.validate.DoubleRules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleRules 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.DoubleRules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/DoubleRulesOrBuilder.java b/src/main/java/build/buf/validate/DoubleRulesOrBuilder.java deleted file mode 100644 index 8cde53b1..00000000 --- a/src/main/java/build/buf/validate/DoubleRulesOrBuilder.java +++ /dev/null @@ -1,426 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface DoubleRulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.DoubleRules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must equal 42.0
-   * double value = 1 [(buf.validate.field).double.const = 42.0];
-   * }
-   * ```
-   * 
- * - * optional double const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must equal 42.0
-   * double value = 1 [(buf.validate.field).double.const = 42.0];
-   * }
-   * ```
-   * 
- * - * optional double const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - double getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be less than 10.0
-   * double value = 1 [(buf.validate.field).double.lt = 10.0];
-   * }
-   * ```
-   * 
- * - * double lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be less than 10.0
-   * double value = 1 [(buf.validate.field).double.lt = 10.0];
-   * }
-   * ```
-   * 
- * - * double lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - double getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified value
-   * (field <= value). If the field value is greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be less than or equal to 10.0
-   * double value = 1 [(buf.validate.field).double.lte = 10.0];
-   * }
-   * ```
-   * 
- * - * double lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified value
-   * (field <= value). If the field value is greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be less than or equal to 10.0
-   * double value = 1 [(buf.validate.field).double.lte = 10.0];
-   * }
-   * ```
-   * 
- * - * double lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - double getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
-   * the range is reversed, and the field value must be outside the specified
-   * range. If the field value doesn't meet the required conditions, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be greater than 5.0 [double.gt]
-   * double value = 1 [(buf.validate.field).double.gt = 5.0];
-   *
-   * // value must be greater than 5 and less than 10.0 [double.gt_lt]
-   * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
-   * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * double gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
-   * the range is reversed, and the field value must be outside the specified
-   * range. If the field value doesn't meet the required conditions, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be greater than 5.0 [double.gt]
-   * double value = 1 [(buf.validate.field).double.gt = 5.0];
-   *
-   * // value must be greater than 5 and less than 10.0 [double.gt_lt]
-   * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
-   * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * double gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - double getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be greater than or equal to 5.0 [double.gte]
-   * double value = 1 [(buf.validate.field).double.gte = 5.0];
-   *
-   * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
-   * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
-   * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * double gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be greater than or equal to 5.0 [double.gte]
-   * double value = 1 [(buf.validate.field).double.gte = 5.0];
-   *
-   * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
-   * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
-   * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * double gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - double getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - double getIn(int index); - - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyDouble {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated double not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - double getNotIn(int index); - - /** - *
-   * `finite` requires the field value to be finite. If the field value is
-   * infinite or NaN, an error message is generated.
-   * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return Whether the finite field is set. - */ - boolean hasFinite(); - /** - *
-   * `finite` requires the field value to be finite. If the field value is
-   * infinite or NaN, an error message is generated.
-   * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return The finite. - */ - boolean getFinite(); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDouble {
-   * double value = 1 [
-   * (buf.validate.field).double.example = 1.0,
-   * (buf.validate.field).double.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDouble {
-   * double value = 1 [
-   * (buf.validate.field).double.example = 1.0,
-   * (buf.validate.field).double.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDouble {
-   * double value = 1 [
-   * (buf.validate.field).double.example = 1.0,
-   * (buf.validate.field).double.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated double example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - double getExample(int index); - - build.buf.validate.DoubleRules.LessThanCase getLessThanCase(); - - build.buf.validate.DoubleRules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/DurationRules.java b/src/main/java/build/buf/validate/DurationRules.java deleted file mode 100644 index 9d9b989a..00000000 --- a/src/main/java/build/buf/validate/DurationRules.java +++ /dev/null @@ -1,4557 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * DurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known type.
- * 
- * - * Protobuf type {@code buf.validate.DurationRules} - */ -public final class DurationRules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - DurationRules> implements - // @@protoc_insertion_point(message_implements:buf.validate.DurationRules) - DurationRulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - DurationRules.class.getName()); - } - // Use DurationRules.newBuilder() to construct. - private DurationRules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private DurationRules() { - in_ = java.util.Collections.emptyList(); - notIn_ = java.util.Collections.emptyList(); - example_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_DurationRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_DurationRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.DurationRules.class, build.buf.validate.DurationRules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(3), - LTE(4), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 3: return LT; - case 4: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(5), - GTE(6), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 5: return GT; - case 6: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 2; - private com.google.protobuf.Duration const_; - /** - *
-   * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-   * If the field's value deviates from the specified value, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must equal 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-   * If the field's value deviates from the specified value, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must equal 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public com.google.protobuf.Duration getConst() { - return const_ == null ? com.google.protobuf.Duration.getDefaultInstance() : const_; - } - /** - *
-   * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-   * If the field's value deviates from the specified value, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must equal 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getConstOrBuilder() { - return const_ == null ? com.google.protobuf.Duration.getDefaultInstance() : const_; - } - - public static final int LT_FIELD_NUMBER = 3; - /** - *
-   * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-   * exclusive. If the field's value is greater than or equal to the specified
-   * value, an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 3; - } - /** - *
-   * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-   * exclusive. If the field's value is greater than or equal to the specified
-   * value, an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public com.google.protobuf.Duration getLt() { - if (lessThanCase_ == 3) { - return (com.google.protobuf.Duration) lessThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - /** - *
-   * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-   * exclusive. If the field's value is greater than or equal to the specified
-   * value, an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getLtOrBuilder() { - if (lessThanCase_ == 3) { - return (com.google.protobuf.Duration) lessThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - - public static final int LTE_FIELD_NUMBER = 4; - /** - *
-   * `lte` indicates that the field must be less than or equal to the specified
-   * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than or equal to 10s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 4; - } - /** - *
-   * `lte` indicates that the field must be less than or equal to the specified
-   * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than or equal to 10s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public com.google.protobuf.Duration getLte() { - if (lessThanCase_ == 4) { - return (com.google.protobuf.Duration) lessThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - /** - *
-   * `lte` indicates that the field must be less than or equal to the specified
-   * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than or equal to 10s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getLteOrBuilder() { - if (lessThanCase_ == 4) { - return (com.google.protobuf.Duration) lessThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - - public static final int GT_FIELD_NUMBER = 5; - /** - *
-   * `gt` requires the duration field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than 5s [duration.gt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-   *
-   * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gt` requires the duration field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than 5s [duration.gt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-   *
-   * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public com.google.protobuf.Duration getGt() { - if (greaterThanCase_ == 5) { - return (com.google.protobuf.Duration) greaterThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - /** - *
-   * `gt` requires the duration field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than 5s [duration.gt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-   *
-   * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getGtOrBuilder() { - if (greaterThanCase_ == 5) { - return (com.google.protobuf.Duration) greaterThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - - public static final int GTE_FIELD_NUMBER = 6; - /** - *
-   * `gte` requires the duration field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value must
-   * be outside the specified range. If the field value doesn't meet the
-   * required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than or equal to 5s [duration.gte]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-   *
-   * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 6; - } - /** - *
-   * `gte` requires the duration field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value must
-   * be outside the specified range. If the field value doesn't meet the
-   * required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than or equal to 5s [duration.gte]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-   *
-   * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public com.google.protobuf.Duration getGte() { - if (greaterThanCase_ == 6) { - return (com.google.protobuf.Duration) greaterThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - /** - *
-   * `gte` requires the duration field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value must
-   * be outside the specified range. If the field value doesn't meet the
-   * required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than or equal to 5s [duration.gte]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-   *
-   * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getGteOrBuilder() { - if (greaterThanCase_ == 6) { - return (com.google.protobuf.Duration) greaterThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - - public static final int IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private java.util.List in_; - /** - *
-   * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value doesn't correspond to any of the specified values,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public java.util.List getInList() { - return in_; - } - /** - *
-   * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value doesn't correspond to any of the specified values,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public java.util.List - getInOrBuilderList() { - return in_; - } - /** - *
-   * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value doesn't correspond to any of the specified values,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value doesn't correspond to any of the specified values,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Duration getIn(int index) { - return in_.get(index); - } - /** - *
-   * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value doesn't correspond to any of the specified values,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getInOrBuilder( - int index) { - return in_.get(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private java.util.List notIn_; - /** - *
-   * `not_in` denotes that the field must not be equal to
-   * any of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value matches any of these values, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must not be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public java.util.List getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` denotes that the field must not be equal to
-   * any of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value matches any of these values, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must not be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public java.util.List - getNotInOrBuilderList() { - return notIn_; - } - /** - *
-   * `not_in` denotes that the field must not be equal to
-   * any of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value matches any of these values, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must not be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` denotes that the field must not be equal to
-   * any of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value matches any of these values, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must not be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Duration getNotIn(int index) { - return notIn_.get(index); - } - /** - *
-   * `not_in` denotes that the field must not be equal to
-   * any of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value matches any of these values, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must not be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getNotInOrBuilder( - int index) { - return notIn_.get(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private java.util.List example_; - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDuration {
-   * google.protobuf.Duration value = 1 [
-   * (buf.validate.field).duration.example = { seconds: 1 },
-   * (buf.validate.field).duration.example = { seconds: 2 },
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public java.util.List getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDuration {
-   * google.protobuf.Duration value = 1 [
-   * (buf.validate.field).duration.example = { seconds: 1 },
-   * (buf.validate.field).duration.example = { seconds: 2 },
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public java.util.List - getExampleOrBuilderList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDuration {
-   * google.protobuf.Duration value = 1 [
-   * (buf.validate.field).duration.example = { seconds: 1 },
-   * (buf.validate.field).duration.example = { seconds: 2 },
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDuration {
-   * google.protobuf.Duration value = 1 [
-   * (buf.validate.field).duration.example = { seconds: 1 },
-   * (buf.validate.field).duration.example = { seconds: 2 },
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Duration getExample(int index) { - return example_.get(index); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDuration {
-   * google.protobuf.Duration value = 1 [
-   * (buf.validate.field).duration.example = { seconds: 1 },
-   * (buf.validate.field).duration.example = { seconds: 2 },
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getExampleOrBuilder( - int index) { - return example_.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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getConst()); - } - if (lessThanCase_ == 3) { - output.writeMessage(3, (com.google.protobuf.Duration) lessThan_); - } - if (lessThanCase_ == 4) { - output.writeMessage(4, (com.google.protobuf.Duration) lessThan_); - } - if (greaterThanCase_ == 5) { - output.writeMessage(5, (com.google.protobuf.Duration) greaterThan_); - } - if (greaterThanCase_ == 6) { - output.writeMessage(6, (com.google.protobuf.Duration) greaterThan_); - } - for (int i = 0; i < in_.size(); i++) { - output.writeMessage(7, in_.get(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeMessage(8, notIn_.get(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeMessage(9, example_.get(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConst()); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.protobuf.Duration) lessThan_); - } - if (lessThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.protobuf.Duration) lessThan_); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.protobuf.Duration) greaterThan_); - } - if (greaterThanCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.protobuf.Duration) greaterThan_); - } - for (int i = 0; i < in_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, in_.get(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, notIn_.get(i)); - } - for (int i = 0; i < example_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, example_.get(i)); - } - size += extensionsSerializedSize(); - 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.DurationRules)) { - return super.equals(obj); - } - build.buf.validate.DurationRules other = (build.buf.validate.DurationRules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (!getConst() - .equals(other.getConst())) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 3: - if (!getLt() - .equals(other.getLt())) return false; - break; - case 4: - if (!getLte() - .equals(other.getLte())) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 5: - if (!getGt() - .equals(other.getGt())) return false; - break; - case 6: - if (!getGte() - .equals(other.getGte())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst().hashCode(); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 3: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + getLt().hashCode(); - break; - case 4: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + getLte().hashCode(); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 5: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + getGt().hashCode(); - break; - case 6: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + getGte().hashCode(); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.DurationRules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.DurationRules 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.DurationRules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.DurationRules 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.DurationRules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.DurationRules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.DurationRules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.DurationRules 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.DurationRules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.DurationRules 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.DurationRules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.DurationRules 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.DurationRules 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; - } - /** - *
-   * DurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known type.
-   * 
- * - * Protobuf type {@code buf.validate.DurationRules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.DurationRules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.DurationRules) - build.buf.validate.DurationRulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_DurationRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_DurationRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.DurationRules.class, build.buf.validate.DurationRules.Builder.class); - } - - // Construct using build.buf.validate.DurationRules.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetConstFieldBuilder(); - internalGetInFieldBuilder(); - internalGetNotInFieldBuilder(); - internalGetExampleFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = null; - if (constBuilder_ != null) { - constBuilder_.dispose(); - constBuilder_ = null; - } - if (ltBuilder_ != null) { - ltBuilder_.clear(); - } - if (lteBuilder_ != null) { - lteBuilder_.clear(); - } - if (gtBuilder_ != null) { - gtBuilder_.clear(); - } - if (gteBuilder_ != null) { - gteBuilder_.clear(); - } - if (inBuilder_ == null) { - in_ = java.util.Collections.emptyList(); - } else { - in_ = null; - inBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (notInBuilder_ == null) { - notIn_ = java.util.Collections.emptyList(); - } else { - notIn_ = null; - notInBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (exampleBuilder_ == null) { - example_ = java.util.Collections.emptyList(); - } else { - example_ = null; - exampleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_DurationRules_descriptor; - } - - @java.lang.Override - public build.buf.validate.DurationRules getDefaultInstanceForType() { - return build.buf.validate.DurationRules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.DurationRules build() { - build.buf.validate.DurationRules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.DurationRules buildPartial() { - build.buf.validate.DurationRules result = new build.buf.validate.DurationRules(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.DurationRules result) { - if (inBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - in_ = java.util.Collections.unmodifiableList(in_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.in_ = in_; - } else { - result.in_ = inBuilder_.build(); - } - if (notInBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - notIn_ = java.util.Collections.unmodifiableList(notIn_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.notIn_ = notIn_; - } else { - result.notIn_ = notInBuilder_.build(); - } - if (exampleBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - example_ = java.util.Collections.unmodifiableList(example_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.example_ = example_; - } else { - result.example_ = exampleBuilder_.build(); - } - } - - private void buildPartial0(build.buf.validate.DurationRules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = constBuilder_ == null - ? const_ - : constBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.DurationRules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - if (lessThanCase_ == 3 && - ltBuilder_ != null) { - result.lessThan_ = ltBuilder_.build(); - } - if (lessThanCase_ == 4 && - lteBuilder_ != null) { - result.lessThan_ = lteBuilder_.build(); - } - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - if (greaterThanCase_ == 5 && - gtBuilder_ != null) { - result.greaterThan_ = gtBuilder_.build(); - } - if (greaterThanCase_ == 6 && - gteBuilder_ != null) { - result.greaterThan_ = gteBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.DurationRules) { - return mergeFrom((build.buf.validate.DurationRules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.DurationRules other) { - if (other == build.buf.validate.DurationRules.getDefaultInstance()) return this; - if (other.hasConst()) { - mergeConst(other.getConst()); - } - if (inBuilder_ == null) { - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - } else { - if (!other.in_.isEmpty()) { - if (inBuilder_.isEmpty()) { - inBuilder_.dispose(); - inBuilder_ = null; - in_ = other.in_; - bitField0_ = (bitField0_ & ~0x00000020); - inBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetInFieldBuilder() : null; - } else { - inBuilder_.addAllMessages(other.in_); - } - } - } - if (notInBuilder_ == null) { - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - } else { - if (!other.notIn_.isEmpty()) { - if (notInBuilder_.isEmpty()) { - notInBuilder_.dispose(); - notInBuilder_ = null; - notIn_ = other.notIn_; - bitField0_ = (bitField0_ & ~0x00000040); - notInBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetNotInFieldBuilder() : null; - } else { - notInBuilder_.addAllMessages(other.notIn_); - } - } - } - if (exampleBuilder_ == null) { - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - } else { - if (!other.example_.isEmpty()) { - if (exampleBuilder_.isEmpty()) { - exampleBuilder_.dispose(); - exampleBuilder_ = null; - example_ = other.example_; - bitField0_ = (bitField0_ & ~0x00000080); - exampleBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetExampleFieldBuilder() : null; - } else { - exampleBuilder_.addAllMessages(other.example_); - } - } - } - switch (other.getLessThanCase()) { - case LT: { - mergeLt(other.getLt()); - break; - } - case LTE: { - mergeLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - mergeGt(other.getGt()); - break; - } - case GTE: { - mergeGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 18: { - input.readMessage( - internalGetConstFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: { - input.readMessage( - internalGetLtFieldBuilder().getBuilder(), - extensionRegistry); - lessThanCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - internalGetLteFieldBuilder().getBuilder(), - extensionRegistry); - lessThanCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - internalGetGtFieldBuilder().getBuilder(), - extensionRegistry); - greaterThanCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - internalGetGteFieldBuilder().getBuilder(), - extensionRegistry); - greaterThanCase_ = 6; - break; - } // case 50 - case 58: { - com.google.protobuf.Duration m = - input.readMessage( - com.google.protobuf.Duration.parser(), - extensionRegistry); - if (inBuilder_ == null) { - ensureInIsMutable(); - in_.add(m); - } else { - inBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: { - com.google.protobuf.Duration m = - input.readMessage( - com.google.protobuf.Duration.parser(), - extensionRegistry); - if (notInBuilder_ == null) { - ensureNotInIsMutable(); - notIn_.add(m); - } else { - notInBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: { - com.google.protobuf.Duration m = - input.readMessage( - com.google.protobuf.Duration.parser(), - extensionRegistry); - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - example_.add(m); - } else { - exampleBuilder_.addMessage(m); - } - break; - } // case 74 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.Duration const_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> constBuilder_; - /** - *
-     * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-     * If the field's value deviates from the specified value, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must equal 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-     * If the field's value deviates from the specified value, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must equal 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - public com.google.protobuf.Duration getConst() { - if (constBuilder_ == null) { - return const_ == null ? com.google.protobuf.Duration.getDefaultInstance() : const_; - } else { - return constBuilder_.getMessage(); - } - } - /** - *
-     * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-     * If the field's value deviates from the specified value, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must equal 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public Builder setConst(com.google.protobuf.Duration value) { - if (constBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - const_ = value; - } else { - constBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-     * If the field's value deviates from the specified value, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must equal 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public Builder setConst( - com.google.protobuf.Duration.Builder builderForValue) { - if (constBuilder_ == null) { - const_ = builderForValue.build(); - } else { - constBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-     * If the field's value deviates from the specified value, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must equal 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public Builder mergeConst(com.google.protobuf.Duration value) { - if (constBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - const_ != null && - const_ != com.google.protobuf.Duration.getDefaultInstance()) { - getConstBuilder().mergeFrom(value); - } else { - const_ = value; - } - } else { - constBuilder_.mergeFrom(value); - } - if (const_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-     * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-     * If the field's value deviates from the specified value, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must equal 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = null; - if (constBuilder_ != null) { - constBuilder_.dispose(); - constBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-     * If the field's value deviates from the specified value, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must equal 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder getConstBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetConstFieldBuilder().getBuilder(); - } - /** - *
-     * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-     * If the field's value deviates from the specified value, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must equal 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getConstOrBuilder() { - if (constBuilder_ != null) { - return constBuilder_.getMessageOrBuilder(); - } else { - return const_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : const_; - } - } - /** - *
-     * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-     * If the field's value deviates from the specified value, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must equal 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetConstFieldBuilder() { - if (constBuilder_ == null) { - constBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getConst(), - getParentForChildren(), - isClean()); - const_ = null; - } - return constBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ltBuilder_; - /** - *
-     * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-     * exclusive. If the field's value is greater than or equal to the specified
-     * value, an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 3; - } - /** - *
-     * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-     * exclusive. If the field's value is greater than or equal to the specified
-     * value, an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public com.google.protobuf.Duration getLt() { - if (ltBuilder_ == null) { - if (lessThanCase_ == 3) { - return (com.google.protobuf.Duration) lessThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } else { - if (lessThanCase_ == 3) { - return ltBuilder_.getMessage(); - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - *
-     * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-     * exclusive. If the field's value is greater than or equal to the specified
-     * value, an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - public Builder setLt(com.google.protobuf.Duration value) { - if (ltBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lessThan_ = value; - onChanged(); - } else { - ltBuilder_.setMessage(value); - } - lessThanCase_ = 3; - return this; - } - /** - *
-     * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-     * exclusive. If the field's value is greater than or equal to the specified
-     * value, an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - public Builder setLt( - com.google.protobuf.Duration.Builder builderForValue) { - if (ltBuilder_ == null) { - lessThan_ = builderForValue.build(); - onChanged(); - } else { - ltBuilder_.setMessage(builderForValue.build()); - } - lessThanCase_ = 3; - return this; - } - /** - *
-     * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-     * exclusive. If the field's value is greater than or equal to the specified
-     * value, an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - public Builder mergeLt(com.google.protobuf.Duration value) { - if (ltBuilder_ == null) { - if (lessThanCase_ == 3 && - lessThan_ != com.google.protobuf.Duration.getDefaultInstance()) { - lessThan_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) lessThan_) - .mergeFrom(value).buildPartial(); - } else { - lessThan_ = value; - } - onChanged(); - } else { - if (lessThanCase_ == 3) { - ltBuilder_.mergeFrom(value); - } else { - ltBuilder_.setMessage(value); - } - } - lessThanCase_ = 3; - return this; - } - /** - *
-     * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-     * exclusive. If the field's value is greater than or equal to the specified
-     * value, an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - public Builder clearLt() { - if (ltBuilder_ == null) { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - } else { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - } - ltBuilder_.clear(); - } - return this; - } - /** - *
-     * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-     * exclusive. If the field's value is greater than or equal to the specified
-     * value, an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder getLtBuilder() { - return internalGetLtFieldBuilder().getBuilder(); - } - /** - *
-     * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-     * exclusive. If the field's value is greater than or equal to the specified
-     * value, an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getLtOrBuilder() { - if ((lessThanCase_ == 3) && (ltBuilder_ != null)) { - return ltBuilder_.getMessageOrBuilder(); - } else { - if (lessThanCase_ == 3) { - return (com.google.protobuf.Duration) lessThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - *
-     * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-     * exclusive. If the field's value is greater than or equal to the specified
-     * value, an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than 5s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetLtFieldBuilder() { - if (ltBuilder_ == null) { - if (!(lessThanCase_ == 3)) { - lessThan_ = com.google.protobuf.Duration.getDefaultInstance(); - } - ltBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) lessThan_, - getParentForChildren(), - isClean()); - lessThan_ = null; - } - lessThanCase_ = 3; - onChanged(); - return ltBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> lteBuilder_; - /** - *
-     * `lte` indicates that the field must be less than or equal to the specified
-     * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than or equal to 10s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 4; - } - /** - *
-     * `lte` indicates that the field must be less than or equal to the specified
-     * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than or equal to 10s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public com.google.protobuf.Duration getLte() { - if (lteBuilder_ == null) { - if (lessThanCase_ == 4) { - return (com.google.protobuf.Duration) lessThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } else { - if (lessThanCase_ == 4) { - return lteBuilder_.getMessage(); - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - *
-     * `lte` indicates that the field must be less than or equal to the specified
-     * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than or equal to 10s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - public Builder setLte(com.google.protobuf.Duration value) { - if (lteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lessThan_ = value; - onChanged(); - } else { - lteBuilder_.setMessage(value); - } - lessThanCase_ = 4; - return this; - } - /** - *
-     * `lte` indicates that the field must be less than or equal to the specified
-     * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than or equal to 10s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - public Builder setLte( - com.google.protobuf.Duration.Builder builderForValue) { - if (lteBuilder_ == null) { - lessThan_ = builderForValue.build(); - onChanged(); - } else { - lteBuilder_.setMessage(builderForValue.build()); - } - lessThanCase_ = 4; - return this; - } - /** - *
-     * `lte` indicates that the field must be less than or equal to the specified
-     * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than or equal to 10s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - public Builder mergeLte(com.google.protobuf.Duration value) { - if (lteBuilder_ == null) { - if (lessThanCase_ == 4 && - lessThan_ != com.google.protobuf.Duration.getDefaultInstance()) { - lessThan_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) lessThan_) - .mergeFrom(value).buildPartial(); - } else { - lessThan_ = value; - } - onChanged(); - } else { - if (lessThanCase_ == 4) { - lteBuilder_.mergeFrom(value); - } else { - lteBuilder_.setMessage(value); - } - } - lessThanCase_ = 4; - return this; - } - /** - *
-     * `lte` indicates that the field must be less than or equal to the specified
-     * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than or equal to 10s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - public Builder clearLte() { - if (lteBuilder_ == null) { - if (lessThanCase_ == 4) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - } else { - if (lessThanCase_ == 4) { - lessThanCase_ = 0; - lessThan_ = null; - } - lteBuilder_.clear(); - } - return this; - } - /** - *
-     * `lte` indicates that the field must be less than or equal to the specified
-     * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than or equal to 10s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder getLteBuilder() { - return internalGetLteFieldBuilder().getBuilder(); - } - /** - *
-     * `lte` indicates that the field must be less than or equal to the specified
-     * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than or equal to 10s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getLteOrBuilder() { - if ((lessThanCase_ == 4) && (lteBuilder_ != null)) { - return lteBuilder_.getMessageOrBuilder(); - } else { - if (lessThanCase_ == 4) { - return (com.google.protobuf.Duration) lessThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - *
-     * `lte` indicates that the field must be less than or equal to the specified
-     * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be less than or equal to 10s
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetLteFieldBuilder() { - if (lteBuilder_ == null) { - if (!(lessThanCase_ == 4)) { - lessThan_ = com.google.protobuf.Duration.getDefaultInstance(); - } - lteBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) lessThan_, - getParentForChildren(), - isClean()); - lessThan_ = null; - } - lessThanCase_ = 4; - onChanged(); - return lteBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gtBuilder_; - /** - *
-     * `gt` requires the duration field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than 5s [duration.gt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-     *
-     * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gt` requires the duration field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than 5s [duration.gt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-     *
-     * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public com.google.protobuf.Duration getGt() { - if (gtBuilder_ == null) { - if (greaterThanCase_ == 5) { - return (com.google.protobuf.Duration) greaterThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } else { - if (greaterThanCase_ == 5) { - return gtBuilder_.getMessage(); - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - *
-     * `gt` requires the duration field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than 5s [duration.gt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-     *
-     * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - public Builder setGt(com.google.protobuf.Duration value) { - if (gtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - greaterThan_ = value; - onChanged(); - } else { - gtBuilder_.setMessage(value); - } - greaterThanCase_ = 5; - return this; - } - /** - *
-     * `gt` requires the duration field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than 5s [duration.gt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-     *
-     * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - public Builder setGt( - com.google.protobuf.Duration.Builder builderForValue) { - if (gtBuilder_ == null) { - greaterThan_ = builderForValue.build(); - onChanged(); - } else { - gtBuilder_.setMessage(builderForValue.build()); - } - greaterThanCase_ = 5; - return this; - } - /** - *
-     * `gt` requires the duration field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than 5s [duration.gt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-     *
-     * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - public Builder mergeGt(com.google.protobuf.Duration value) { - if (gtBuilder_ == null) { - if (greaterThanCase_ == 5 && - greaterThan_ != com.google.protobuf.Duration.getDefaultInstance()) { - greaterThan_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) greaterThan_) - .mergeFrom(value).buildPartial(); - } else { - greaterThan_ = value; - } - onChanged(); - } else { - if (greaterThanCase_ == 5) { - gtBuilder_.mergeFrom(value); - } else { - gtBuilder_.setMessage(value); - } - } - greaterThanCase_ = 5; - return this; - } - /** - *
-     * `gt` requires the duration field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than 5s [duration.gt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-     *
-     * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - public Builder clearGt() { - if (gtBuilder_ == null) { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - } else { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - } - gtBuilder_.clear(); - } - return this; - } - /** - *
-     * `gt` requires the duration field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than 5s [duration.gt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-     *
-     * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder getGtBuilder() { - return internalGetGtFieldBuilder().getBuilder(); - } - /** - *
-     * `gt` requires the duration field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than 5s [duration.gt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-     *
-     * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getGtOrBuilder() { - if ((greaterThanCase_ == 5) && (gtBuilder_ != null)) { - return gtBuilder_.getMessageOrBuilder(); - } else { - if (greaterThanCase_ == 5) { - return (com.google.protobuf.Duration) greaterThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - *
-     * `gt` requires the duration field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than 5s [duration.gt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-     *
-     * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetGtFieldBuilder() { - if (gtBuilder_ == null) { - if (!(greaterThanCase_ == 5)) { - greaterThan_ = com.google.protobuf.Duration.getDefaultInstance(); - } - gtBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) greaterThan_, - getParentForChildren(), - isClean()); - greaterThan_ = null; - } - greaterThanCase_ = 5; - onChanged(); - return gtBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> gteBuilder_; - /** - *
-     * `gte` requires the duration field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value must
-     * be outside the specified range. If the field value doesn't meet the
-     * required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than or equal to 5s [duration.gte]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-     *
-     * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 6; - } - /** - *
-     * `gte` requires the duration field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value must
-     * be outside the specified range. If the field value doesn't meet the
-     * required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than or equal to 5s [duration.gte]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-     *
-     * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public com.google.protobuf.Duration getGte() { - if (gteBuilder_ == null) { - if (greaterThanCase_ == 6) { - return (com.google.protobuf.Duration) greaterThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } else { - if (greaterThanCase_ == 6) { - return gteBuilder_.getMessage(); - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - *
-     * `gte` requires the duration field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value must
-     * be outside the specified range. If the field value doesn't meet the
-     * required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than or equal to 5s [duration.gte]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-     *
-     * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - public Builder setGte(com.google.protobuf.Duration value) { - if (gteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - greaterThan_ = value; - onChanged(); - } else { - gteBuilder_.setMessage(value); - } - greaterThanCase_ = 6; - return this; - } - /** - *
-     * `gte` requires the duration field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value must
-     * be outside the specified range. If the field value doesn't meet the
-     * required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than or equal to 5s [duration.gte]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-     *
-     * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - public Builder setGte( - com.google.protobuf.Duration.Builder builderForValue) { - if (gteBuilder_ == null) { - greaterThan_ = builderForValue.build(); - onChanged(); - } else { - gteBuilder_.setMessage(builderForValue.build()); - } - greaterThanCase_ = 6; - return this; - } - /** - *
-     * `gte` requires the duration field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value must
-     * be outside the specified range. If the field value doesn't meet the
-     * required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than or equal to 5s [duration.gte]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-     *
-     * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - public Builder mergeGte(com.google.protobuf.Duration value) { - if (gteBuilder_ == null) { - if (greaterThanCase_ == 6 && - greaterThan_ != com.google.protobuf.Duration.getDefaultInstance()) { - greaterThan_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) greaterThan_) - .mergeFrom(value).buildPartial(); - } else { - greaterThan_ = value; - } - onChanged(); - } else { - if (greaterThanCase_ == 6) { - gteBuilder_.mergeFrom(value); - } else { - gteBuilder_.setMessage(value); - } - } - greaterThanCase_ = 6; - return this; - } - /** - *
-     * `gte` requires the duration field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value must
-     * be outside the specified range. If the field value doesn't meet the
-     * required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than or equal to 5s [duration.gte]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-     *
-     * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - public Builder clearGte() { - if (gteBuilder_ == null) { - if (greaterThanCase_ == 6) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - } else { - if (greaterThanCase_ == 6) { - greaterThanCase_ = 0; - greaterThan_ = null; - } - gteBuilder_.clear(); - } - return this; - } - /** - *
-     * `gte` requires the duration field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value must
-     * be outside the specified range. If the field value doesn't meet the
-     * required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than or equal to 5s [duration.gte]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-     *
-     * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder getGteBuilder() { - return internalGetGteFieldBuilder().getBuilder(); - } - /** - *
-     * `gte` requires the duration field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value must
-     * be outside the specified range. If the field value doesn't meet the
-     * required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than or equal to 5s [duration.gte]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-     *
-     * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getGteOrBuilder() { - if ((greaterThanCase_ == 6) && (gteBuilder_ != null)) { - return gteBuilder_.getMessageOrBuilder(); - } else { - if (greaterThanCase_ == 6) { - return (com.google.protobuf.Duration) greaterThan_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - *
-     * `gte` requires the duration field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value must
-     * be outside the specified range. If the field value doesn't meet the
-     * required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be greater than or equal to 5s [duration.gte]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-     *
-     * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-     * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-     *
-     * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-     * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetGteFieldBuilder() { - if (gteBuilder_ == null) { - if (!(greaterThanCase_ == 6)) { - greaterThan_ = com.google.protobuf.Duration.getDefaultInstance(); - } - gteBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) greaterThan_, - getParentForChildren(), - isClean()); - greaterThan_ = null; - } - greaterThanCase_ = 6; - onChanged(); - return gteBuilder_; - } - - private java.util.List in_ = - java.util.Collections.emptyList(); - private void ensureInIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - in_ = new java.util.ArrayList(in_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> inBuilder_; - - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public java.util.List getInList() { - if (inBuilder_ == null) { - return java.util.Collections.unmodifiableList(in_); - } else { - return inBuilder_.getMessageList(); - } - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public int getInCount() { - if (inBuilder_ == null) { - return in_.size(); - } else { - return inBuilder_.getCount(); - } - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration getIn(int index) { - if (inBuilder_ == null) { - return in_.get(index); - } else { - return inBuilder_.getMessage(index); - } - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public Builder setIn( - int index, com.google.protobuf.Duration value) { - if (inBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInIsMutable(); - in_.set(index, value); - onChanged(); - } else { - inBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public Builder setIn( - int index, com.google.protobuf.Duration.Builder builderForValue) { - if (inBuilder_ == null) { - ensureInIsMutable(); - in_.set(index, builderForValue.build()); - onChanged(); - } else { - inBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public Builder addIn(com.google.protobuf.Duration value) { - if (inBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInIsMutable(); - in_.add(value); - onChanged(); - } else { - inBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public Builder addIn( - int index, com.google.protobuf.Duration value) { - if (inBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInIsMutable(); - in_.add(index, value); - onChanged(); - } else { - inBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public Builder addIn( - com.google.protobuf.Duration.Builder builderForValue) { - if (inBuilder_ == null) { - ensureInIsMutable(); - in_.add(builderForValue.build()); - onChanged(); - } else { - inBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public Builder addIn( - int index, com.google.protobuf.Duration.Builder builderForValue) { - if (inBuilder_ == null) { - ensureInIsMutable(); - in_.add(index, builderForValue.build()); - onChanged(); - } else { - inBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public Builder addAllIn( - java.lang.Iterable values) { - if (inBuilder_ == null) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - onChanged(); - } else { - inBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public Builder clearIn() { - if (inBuilder_ == null) { - in_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - inBuilder_.clear(); - } - return this; - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public Builder removeIn(int index) { - if (inBuilder_ == null) { - ensureInIsMutable(); - in_.remove(index); - onChanged(); - } else { - inBuilder_.remove(index); - } - return this; - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder getInBuilder( - int index) { - return internalGetInFieldBuilder().getBuilder(index); - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getInOrBuilder( - int index) { - if (inBuilder_ == null) { - return in_.get(index); } else { - return inBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public java.util.List - getInOrBuilderList() { - if (inBuilder_ != null) { - return inBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(in_); - } - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder addInBuilder() { - return internalGetInFieldBuilder().addBuilder( - com.google.protobuf.Duration.getDefaultInstance()); - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder addInBuilder( - int index) { - return internalGetInFieldBuilder().addBuilder( - index, com.google.protobuf.Duration.getDefaultInstance()); - } - /** - *
-     * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value doesn't correspond to any of the specified values,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - public java.util.List - getInBuilderList() { - return internalGetInFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetInFieldBuilder() { - if (inBuilder_ == null) { - inBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - in_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - in_ = null; - } - return inBuilder_; - } - - private java.util.List notIn_ = - java.util.Collections.emptyList(); - private void ensureNotInIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - notIn_ = new java.util.ArrayList(notIn_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> notInBuilder_; - - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public java.util.List getNotInList() { - if (notInBuilder_ == null) { - return java.util.Collections.unmodifiableList(notIn_); - } else { - return notInBuilder_.getMessageList(); - } - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public int getNotInCount() { - if (notInBuilder_ == null) { - return notIn_.size(); - } else { - return notInBuilder_.getCount(); - } - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration getNotIn(int index) { - if (notInBuilder_ == null) { - return notIn_.get(index); - } else { - return notInBuilder_.getMessage(index); - } - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public Builder setNotIn( - int index, com.google.protobuf.Duration value) { - if (notInBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotInIsMutable(); - notIn_.set(index, value); - onChanged(); - } else { - notInBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public Builder setNotIn( - int index, com.google.protobuf.Duration.Builder builderForValue) { - if (notInBuilder_ == null) { - ensureNotInIsMutable(); - notIn_.set(index, builderForValue.build()); - onChanged(); - } else { - notInBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public Builder addNotIn(com.google.protobuf.Duration value) { - if (notInBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotInIsMutable(); - notIn_.add(value); - onChanged(); - } else { - notInBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public Builder addNotIn( - int index, com.google.protobuf.Duration value) { - if (notInBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotInIsMutable(); - notIn_.add(index, value); - onChanged(); - } else { - notInBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public Builder addNotIn( - com.google.protobuf.Duration.Builder builderForValue) { - if (notInBuilder_ == null) { - ensureNotInIsMutable(); - notIn_.add(builderForValue.build()); - onChanged(); - } else { - notInBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public Builder addNotIn( - int index, com.google.protobuf.Duration.Builder builderForValue) { - if (notInBuilder_ == null) { - ensureNotInIsMutable(); - notIn_.add(index, builderForValue.build()); - onChanged(); - } else { - notInBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - if (notInBuilder_ == null) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - onChanged(); - } else { - notInBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public Builder clearNotIn() { - if (notInBuilder_ == null) { - notIn_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - notInBuilder_.clear(); - } - return this; - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public Builder removeNotIn(int index) { - if (notInBuilder_ == null) { - ensureNotInIsMutable(); - notIn_.remove(index); - onChanged(); - } else { - notInBuilder_.remove(index); - } - return this; - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder getNotInBuilder( - int index) { - return internalGetNotInFieldBuilder().getBuilder(index); - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getNotInOrBuilder( - int index) { - if (notInBuilder_ == null) { - return notIn_.get(index); } else { - return notInBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public java.util.List - getNotInOrBuilderList() { - if (notInBuilder_ != null) { - return notInBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(notIn_); - } - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder addNotInBuilder() { - return internalGetNotInFieldBuilder().addBuilder( - com.google.protobuf.Duration.getDefaultInstance()); - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder addNotInBuilder( - int index) { - return internalGetNotInFieldBuilder().addBuilder( - index, com.google.protobuf.Duration.getDefaultInstance()); - } - /** - *
-     * `not_in` denotes that the field must not be equal to
-     * any of the specified values of the `google.protobuf.Duration` type.
-     * If the field's value matches any of these values, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // value must not be in list [1s, 2s, 3s]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - public java.util.List - getNotInBuilderList() { - return internalGetNotInFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetNotInFieldBuilder() { - if (notInBuilder_ == null) { - notInBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - notIn_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - notIn_ = null; - } - return notInBuilder_; - } - - private java.util.List example_ = - java.util.Collections.emptyList(); - private void ensureExampleIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - example_ = new java.util.ArrayList(example_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> exampleBuilder_; - - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public java.util.List getExampleList() { - if (exampleBuilder_ == null) { - return java.util.Collections.unmodifiableList(example_); - } else { - return exampleBuilder_.getMessageList(); - } - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public int getExampleCount() { - if (exampleBuilder_ == null) { - return example_.size(); - } else { - return exampleBuilder_.getCount(); - } - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration getExample(int index) { - if (exampleBuilder_ == null) { - return example_.get(index); - } else { - return exampleBuilder_.getMessage(index); - } - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder setExample( - int index, com.google.protobuf.Duration value) { - if (exampleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExampleIsMutable(); - example_.set(index, value); - onChanged(); - } else { - exampleBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder setExample( - int index, com.google.protobuf.Duration.Builder builderForValue) { - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - example_.set(index, builderForValue.build()); - onChanged(); - } else { - exampleBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder addExample(com.google.protobuf.Duration value) { - if (exampleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExampleIsMutable(); - example_.add(value); - onChanged(); - } else { - exampleBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder addExample( - int index, com.google.protobuf.Duration value) { - if (exampleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExampleIsMutable(); - example_.add(index, value); - onChanged(); - } else { - exampleBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder addExample( - com.google.protobuf.Duration.Builder builderForValue) { - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - example_.add(builderForValue.build()); - onChanged(); - } else { - exampleBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder addExample( - int index, com.google.protobuf.Duration.Builder builderForValue) { - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - example_.add(index, builderForValue.build()); - onChanged(); - } else { - exampleBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder addAllExample( - java.lang.Iterable values) { - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - onChanged(); - } else { - exampleBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder clearExample() { - if (exampleBuilder_ == null) { - example_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - exampleBuilder_.clear(); - } - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder removeExample(int index) { - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - example_.remove(index); - onChanged(); - } else { - exampleBuilder_.remove(index); - } - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder getExampleBuilder( - int index) { - return internalGetExampleFieldBuilder().getBuilder(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getExampleOrBuilder( - int index) { - if (exampleBuilder_ == null) { - return example_.get(index); } else { - return exampleBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public java.util.List - getExampleOrBuilderList() { - if (exampleBuilder_ != null) { - return exampleBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(example_); - } - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder addExampleBuilder() { - return internalGetExampleFieldBuilder().addBuilder( - com.google.protobuf.Duration.getDefaultInstance()); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder addExampleBuilder( - int index) { - return internalGetExampleFieldBuilder().addBuilder( - index, com.google.protobuf.Duration.getDefaultInstance()); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyDuration {
-     * google.protobuf.Duration value = 1 [
-     * (buf.validate.field).duration.example = { seconds: 1 },
-     * (buf.validate.field).duration.example = { seconds: 2 },
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public java.util.List - getExampleBuilderList() { - return internalGetExampleFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetExampleFieldBuilder() { - if (exampleBuilder_ == null) { - exampleBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - example_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - example_ = null; - } - return exampleBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.DurationRules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.DurationRules) - private static final build.buf.validate.DurationRules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.DurationRules(); - } - - public static build.buf.validate.DurationRules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DurationRules 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.DurationRules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/DurationRulesOrBuilder.java b/src/main/java/build/buf/validate/DurationRulesOrBuilder.java deleted file mode 100644 index dab1c60d..00000000 --- a/src/main/java/build/buf/validate/DurationRulesOrBuilder.java +++ /dev/null @@ -1,616 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface DurationRulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.DurationRules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-   * If the field's value deviates from the specified value, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must equal 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-   * If the field's value deviates from the specified value, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must equal 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - com.google.protobuf.Duration getConst(); - /** - *
-   * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
-   * If the field's value deviates from the specified value, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must equal 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.DurationOrBuilder getConstOrBuilder(); - - /** - *
-   * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-   * exclusive. If the field's value is greater than or equal to the specified
-   * value, an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-   * exclusive. If the field's value is greater than or equal to the specified
-   * value, an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - com.google.protobuf.Duration getLt(); - /** - *
-   * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
-   * exclusive. If the field's value is greater than or equal to the specified
-   * value, an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than 5s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.DurationOrBuilder getLtOrBuilder(); - - /** - *
-   * `lte` indicates that the field must be less than or equal to the specified
-   * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than or equal to 10s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` indicates that the field must be less than or equal to the specified
-   * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than or equal to 10s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - com.google.protobuf.Duration getLte(); - /** - *
-   * `lte` indicates that the field must be less than or equal to the specified
-   * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be less than or equal to 10s
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.DurationOrBuilder getLteOrBuilder(); - - /** - *
-   * `gt` requires the duration field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than 5s [duration.gt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-   *
-   * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the duration field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than 5s [duration.gt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-   *
-   * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - com.google.protobuf.Duration getGt(); - /** - *
-   * `gt` requires the duration field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than 5s [duration.gt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
-   *
-   * // duration must be greater than 5s and less than 10s [duration.gt_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.DurationOrBuilder getGtOrBuilder(); - - /** - *
-   * `gte` requires the duration field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value must
-   * be outside the specified range. If the field value doesn't meet the
-   * required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than or equal to 5s [duration.gte]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-   *
-   * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the duration field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value must
-   * be outside the specified range. If the field value doesn't meet the
-   * required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than or equal to 5s [duration.gte]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-   *
-   * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - com.google.protobuf.Duration getGte(); - /** - *
-   * `gte` requires the duration field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value must
-   * be outside the specified range. If the field value doesn't meet the
-   * required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be greater than or equal to 5s [duration.gte]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
-   *
-   * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
-   * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
-   *
-   * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
-   * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Duration gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.DurationOrBuilder getGteOrBuilder(); - - /** - *
-   * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value doesn't correspond to any of the specified values,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - java.util.List - getInList(); - /** - *
-   * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value doesn't correspond to any of the specified values,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.Duration getIn(int index); - /** - *
-   * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value doesn't correspond to any of the specified values,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - int getInCount(); - /** - *
-   * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value doesn't correspond to any of the specified values,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - java.util.List - getInOrBuilderList(); - /** - *
-   * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value doesn't correspond to any of the specified values,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration in = 7 [json_name = "in", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.DurationOrBuilder getInOrBuilder( - int index); - - /** - *
-   * `not_in` denotes that the field must not be equal to
-   * any of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value matches any of these values, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must not be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - java.util.List - getNotInList(); - /** - *
-   * `not_in` denotes that the field must not be equal to
-   * any of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value matches any of these values, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must not be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.Duration getNotIn(int index); - /** - *
-   * `not_in` denotes that the field must not be equal to
-   * any of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value matches any of these values, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must not be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - int getNotInCount(); - /** - *
-   * `not_in` denotes that the field must not be equal to
-   * any of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value matches any of these values, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must not be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - java.util.List - getNotInOrBuilderList(); - /** - *
-   * `not_in` denotes that the field must not be equal to
-   * any of the specified values of the `google.protobuf.Duration` type.
-   * If the field's value matches any of these values, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // value must not be in list [1s, 2s, 3s]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration not_in = 8 [json_name = "notIn", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.DurationOrBuilder getNotInOrBuilder( - int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDuration {
-   * google.protobuf.Duration value = 1 [
-   * (buf.validate.field).duration.example = { seconds: 1 },
-   * (buf.validate.field).duration.example = { seconds: 2 },
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - java.util.List - getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDuration {
-   * google.protobuf.Duration value = 1 [
-   * (buf.validate.field).duration.example = { seconds: 1 },
-   * (buf.validate.field).duration.example = { seconds: 2 },
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.Duration getExample(int index); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDuration {
-   * google.protobuf.Duration value = 1 [
-   * (buf.validate.field).duration.example = { seconds: 1 },
-   * (buf.validate.field).duration.example = { seconds: 2 },
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDuration {
-   * google.protobuf.Duration value = 1 [
-   * (buf.validate.field).duration.example = { seconds: 1 },
-   * (buf.validate.field).duration.example = { seconds: 2 },
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - java.util.List - getExampleOrBuilderList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyDuration {
-   * google.protobuf.Duration value = 1 [
-   * (buf.validate.field).duration.example = { seconds: 1 },
-   * (buf.validate.field).duration.example = { seconds: 2 },
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated .google.protobuf.Duration example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.DurationOrBuilder getExampleOrBuilder( - int index); - - build.buf.validate.DurationRules.LessThanCase getLessThanCase(); - - build.buf.validate.DurationRules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/EnumRules.java b/src/main/java/build/buf/validate/EnumRules.java deleted file mode 100644 index 83507747..00000000 --- a/src/main/java/build/buf/validate/EnumRules.java +++ /dev/null @@ -1,1849 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * EnumRules describe the constraints applied to `enum` values.
- * 
- * - * Protobuf type {@code buf.validate.EnumRules} - */ -public final class EnumRules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - EnumRules> implements - // @@protoc_insertion_point(message_implements:buf.validate.EnumRules) - EnumRulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - EnumRules.class.getName()); - } - // Use EnumRules.newBuilder() to construct. - private EnumRules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private EnumRules() { - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_EnumRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_EnumRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.EnumRules.class, build.buf.validate.EnumRules.Builder.class); - } - - private int bitField0_; - public static final int CONST_FIELD_NUMBER = 1; - private int const_ = 0; - /** - *
-   * `const` requires the field value to exactly match the specified enum value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be exactly MY_ENUM_VALUE1.
-   * MyEnum value = 1 [(buf.validate.field).enum.const = 1];
-   * }
-   * ```
-   * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified enum value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be exactly MY_ENUM_VALUE1.
-   * MyEnum value = 1 [(buf.validate.field).enum.const = 1];
-   * }
-   * ```
-   * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - - public static final int DEFINED_ONLY_FIELD_NUMBER = 2; - private boolean definedOnly_ = false; - /** - *
-   * `defined_only` requires the field value to be one of the defined values for
-   * this enum, failing on any undefined value.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be a defined value of MyEnum.
-   * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
-   * }
-   * ```
-   * 
- * - * optional bool defined_only = 2 [json_name = "definedOnly"]; - * @return Whether the definedOnly field is set. - */ - @java.lang.Override - public boolean hasDefinedOnly() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * `defined_only` requires the field value to be one of the defined values for
-   * this enum, failing on any undefined value.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be a defined value of MyEnum.
-   * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
-   * }
-   * ```
-   * 
- * - * optional bool defined_only = 2 [json_name = "definedOnly"]; - * @return The definedOnly. - */ - @java.lang.Override - public boolean getDefinedOnly() { - return definedOnly_; - } - - public static final int IN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList in_ = - emptyIntList(); - /** - *
-   * `in` requires the field value to be equal to one of the
-   * specified enum values. If the field value doesn't match any of the
-   * specified values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be equal to one of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the
-   * specified enum values. If the field value doesn't match any of the
-   * specified values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be equal to one of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the
-   * specified enum values. If the field value doesn't match any of the
-   * specified values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be equal to one of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList notIn_ = - emptyIntList(); - /** - *
-   * `not_in` requires the field value to be not equal to any of the
-   * specified enum values. If the field value matches one of the specified
-   * values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must not be equal to any of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to be not equal to any of the
-   * specified enum values. If the field value matches one of the specified
-   * values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must not be equal to any of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to be not equal to any of the
-   * specified enum values. If the field value matches one of the specified
-   * values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must not be equal to any of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList example_ = - emptyIntList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * (buf.validate.field).enum.example = 1,
-   * (buf.validate.field).enum.example = 2
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * (buf.validate.field).enum.example = 1,
-   * (buf.validate.field).enum.example = 2
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * (buf.validate.field).enum.example = 1,
-   * (buf.validate.field).enum.example = 2
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, const_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeBool(2, definedOnly_); - } - for (int i = 0; i < in_.size(); i++) { - output.writeInt32(3, in_.getInt(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeInt32(4, notIn_.getInt(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeInt32(5, example_.getInt(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, const_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, definedOnly_); - } - { - int dataSize = 0; - for (int i = 0; i < in_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(in_.getInt(i)); - } - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < notIn_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(notIn_.getInt(i)); - } - size += dataSize; - size += 1 * getNotInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < example_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(example_.getInt(i)); - } - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.EnumRules)) { - return super.equals(obj); - } - build.buf.validate.EnumRules other = (build.buf.validate.EnumRules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (hasDefinedOnly() != other.hasDefinedOnly()) return false; - if (hasDefinedOnly()) { - if (getDefinedOnly() - != other.getDefinedOnly()) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst(); - } - if (hasDefinedOnly()) { - hash = (37 * hash) + DEFINED_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDefinedOnly()); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.EnumRules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.EnumRules 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.EnumRules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.EnumRules 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.EnumRules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.EnumRules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.EnumRules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.EnumRules 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.EnumRules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.EnumRules 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.EnumRules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.EnumRules 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.EnumRules 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; - } - /** - *
-   * EnumRules describe the constraints applied to `enum` values.
-   * 
- * - * Protobuf type {@code buf.validate.EnumRules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.EnumRules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.EnumRules) - build.buf.validate.EnumRulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_EnumRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_EnumRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.EnumRules.class, build.buf.validate.EnumRules.Builder.class); - } - - // Construct using build.buf.validate.EnumRules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0; - definedOnly_ = false; - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_EnumRules_descriptor; - } - - @java.lang.Override - public build.buf.validate.EnumRules getDefaultInstanceForType() { - return build.buf.validate.EnumRules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.EnumRules build() { - build.buf.validate.EnumRules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.EnumRules buildPartial() { - build.buf.validate.EnumRules result = new build.buf.validate.EnumRules(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.EnumRules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.definedOnly_ = definedOnly_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.EnumRules) { - return mergeFrom((build.buf.validate.EnumRules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.EnumRules other) { - if (other == build.buf.validate.EnumRules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (other.hasDefinedOnly()) { - setDefinedOnly(other.getDefinedOnly()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000004; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000008; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000010; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 8: { - const_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - definedOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - int v = input.readInt32(); - ensureInIsMutable(); - in_.addInt(v); - break; - } // case 24 - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - in_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 26 - case 32: { - int v = input.readInt32(); - ensureNotInIsMutable(); - notIn_.addInt(v); - break; - } // case 32 - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureNotInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - notIn_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 34 - case 40: { - int v = input.readInt32(); - ensureExampleIsMutable(); - example_.addInt(v); - break; - } // case 40 - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureExampleIsMutable(); - while (input.getBytesUntilLimit() > 0) { - example_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 42 - 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 int const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified enum value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be exactly MY_ENUM_VALUE1.
-     * MyEnum value = 1 [(buf.validate.field).enum.const = 1];
-     * }
-     * ```
-     * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified enum value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be exactly MY_ENUM_VALUE1.
-     * MyEnum value = 1 [(buf.validate.field).enum.const = 1];
-     * }
-     * ```
-     * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified enum value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be exactly MY_ENUM_VALUE1.
-     * MyEnum value = 1 [(buf.validate.field).enum.const = 1];
-     * }
-     * ```
-     * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(int value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified enum value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be exactly MY_ENUM_VALUE1.
-     * MyEnum value = 1 [(buf.validate.field).enum.const = 1];
-     * }
-     * ```
-     * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0; - onChanged(); - return this; - } - - private boolean definedOnly_ ; - /** - *
-     * `defined_only` requires the field value to be one of the defined values for
-     * this enum, failing on any undefined value.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be a defined value of MyEnum.
-     * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
-     * }
-     * ```
-     * 
- * - * optional bool defined_only = 2 [json_name = "definedOnly"]; - * @return Whether the definedOnly field is set. - */ - @java.lang.Override - public boolean hasDefinedOnly() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * `defined_only` requires the field value to be one of the defined values for
-     * this enum, failing on any undefined value.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be a defined value of MyEnum.
-     * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
-     * }
-     * ```
-     * 
- * - * optional bool defined_only = 2 [json_name = "definedOnly"]; - * @return The definedOnly. - */ - @java.lang.Override - public boolean getDefinedOnly() { - return definedOnly_; - } - /** - *
-     * `defined_only` requires the field value to be one of the defined values for
-     * this enum, failing on any undefined value.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be a defined value of MyEnum.
-     * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
-     * }
-     * ```
-     * 
- * - * optional bool defined_only = 2 [json_name = "definedOnly"]; - * @param value The definedOnly to set. - * @return This builder for chaining. - */ - public Builder setDefinedOnly(boolean value) { - - definedOnly_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `defined_only` requires the field value to be one of the defined values for
-     * this enum, failing on any undefined value.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be a defined value of MyEnum.
-     * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
-     * }
-     * ```
-     * 
- * - * optional bool defined_only = 2 [json_name = "definedOnly"]; - * @return This builder for chaining. - */ - public Builder clearDefinedOnly() { - bitField0_ = (bitField0_ & ~0x00000002); - definedOnly_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList in_ = emptyIntList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000004; - } - /** - *
-     * `in` requires the field value to be equal to one of the
-     * specified enum values. If the field value doesn't match any of the
-     * specified values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be equal to one of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the
-     * specified enum values. If the field value doesn't match any of the
-     * specified values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be equal to one of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the
-     * specified enum values. If the field value doesn't match any of the
-     * specified values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be equal to one of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the
-     * specified enum values. If the field value doesn't match any of the
-     * specified values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be equal to one of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, int value) { - - ensureInIsMutable(); - in_.setInt(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the
-     * specified enum values. If the field value doesn't match any of the
-     * specified values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be equal to one of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(int value) { - - ensureInIsMutable(); - in_.addInt(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the
-     * specified enum values. If the field value doesn't match any of the
-     * specified values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be equal to one of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the
-     * specified enum values. If the field value doesn't match any of the
-     * specified values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must be equal to one of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList notIn_ = emptyIntList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000008; - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the
-     * specified enum values. If the field value matches one of the specified
-     * values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must not be equal to any of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the
-     * specified enum values. If the field value matches one of the specified
-     * values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must not be equal to any of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the
-     * specified enum values. If the field value matches one of the specified
-     * values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must not be equal to any of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the
-     * specified enum values. If the field value matches one of the specified
-     * values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must not be equal to any of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, int value) { - - ensureNotInIsMutable(); - notIn_.setInt(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the
-     * specified enum values. If the field value matches one of the specified
-     * values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must not be equal to any of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(int value) { - - ensureNotInIsMutable(); - notIn_.addInt(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the
-     * specified enum values. If the field value matches one of the specified
-     * values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must not be equal to any of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to be not equal to any of the
-     * specified enum values. If the field value matches one of the specified
-     * values, an error message is generated.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * // The field `value` must not be equal to any of the specified values.
-     * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList example_ = emptyIntList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000010; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * (buf.validate.field).enum.example = 1,
-     * (buf.validate.field).enum.example = 2
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * (buf.validate.field).enum.example = 1,
-     * (buf.validate.field).enum.example = 2
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * (buf.validate.field).enum.example = 1,
-     * (buf.validate.field).enum.example = 2
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * (buf.validate.field).enum.example = 1,
-     * (buf.validate.field).enum.example = 2
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, int value) { - - ensureExampleIsMutable(); - example_.setInt(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * (buf.validate.field).enum.example = 1,
-     * (buf.validate.field).enum.example = 2
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(int value) { - - ensureExampleIsMutable(); - example_.addInt(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * (buf.validate.field).enum.example = 1,
-     * (buf.validate.field).enum.example = 2
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * enum MyEnum {
-     * MY_ENUM_UNSPECIFIED = 0;
-     * MY_ENUM_VALUE1 = 1;
-     * MY_ENUM_VALUE2 = 2;
-     * }
-     *
-     * message MyMessage {
-     * (buf.validate.field).enum.example = 1,
-     * (buf.validate.field).enum.example = 2
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.EnumRules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.EnumRules) - private static final build.buf.validate.EnumRules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.EnumRules(); - } - - public static build.buf.validate.EnumRules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumRules 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.EnumRules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/EnumRulesOrBuilder.java b/src/main/java/build/buf/validate/EnumRulesOrBuilder.java deleted file mode 100644 index ebb04826..00000000 --- a/src/main/java/build/buf/validate/EnumRulesOrBuilder.java +++ /dev/null @@ -1,328 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface EnumRulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.EnumRules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified enum value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be exactly MY_ENUM_VALUE1.
-   * MyEnum value = 1 [(buf.validate.field).enum.const = 1];
-   * }
-   * ```
-   * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified enum value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be exactly MY_ENUM_VALUE1.
-   * MyEnum value = 1 [(buf.validate.field).enum.const = 1];
-   * }
-   * ```
-   * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - int getConst(); - - /** - *
-   * `defined_only` requires the field value to be one of the defined values for
-   * this enum, failing on any undefined value.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be a defined value of MyEnum.
-   * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
-   * }
-   * ```
-   * 
- * - * optional bool defined_only = 2 [json_name = "definedOnly"]; - * @return Whether the definedOnly field is set. - */ - boolean hasDefinedOnly(); - /** - *
-   * `defined_only` requires the field value to be one of the defined values for
-   * this enum, failing on any undefined value.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be a defined value of MyEnum.
-   * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
-   * }
-   * ```
-   * 
- * - * optional bool defined_only = 2 [json_name = "definedOnly"]; - * @return The definedOnly. - */ - boolean getDefinedOnly(); - - /** - *
-   * `in` requires the field value to be equal to one of the
-   * specified enum values. If the field value doesn't match any of the
-   * specified values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be equal to one of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the
-   * specified enum values. If the field value doesn't match any of the
-   * specified values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be equal to one of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the
-   * specified enum values. If the field value doesn't match any of the
-   * specified values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must be equal to one of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 3 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - int getIn(int index); - - /** - *
-   * `not_in` requires the field value to be not equal to any of the
-   * specified enum values. If the field value matches one of the specified
-   * values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must not be equal to any of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to be not equal to any of the
-   * specified enum values. If the field value matches one of the specified
-   * values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must not be equal to any of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to be not equal to any of the
-   * specified enum values. If the field value matches one of the specified
-   * values, an error message is generated.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * // The field `value` must not be equal to any of the specified values.
-   * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 4 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - int getNotIn(int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * (buf.validate.field).enum.example = 1,
-   * (buf.validate.field).enum.example = 2
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * (buf.validate.field).enum.example = 1,
-   * (buf.validate.field).enum.example = 2
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * enum MyEnum {
-   * MY_ENUM_UNSPECIFIED = 0;
-   * MY_ENUM_VALUE1 = 1;
-   * MY_ENUM_VALUE2 = 2;
-   * }
-   *
-   * message MyMessage {
-   * (buf.validate.field).enum.example = 1,
-   * (buf.validate.field).enum.example = 2
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 5 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - int getExample(int index); -} diff --git a/src/main/java/build/buf/validate/FieldConstraints.java b/src/main/java/build/buf/validate/FieldConstraints.java deleted file mode 100644 index a6761516..00000000 --- a/src/main/java/build/buf/validate/FieldConstraints.java +++ /dev/null @@ -1,6331 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * FieldConstraints encapsulates the rules for each type of field. Depending on
- * the field, the correct set should be used to ensure proper validations.
- * 
- * - * Protobuf type {@code buf.validate.FieldConstraints} - */ -public final class FieldConstraints extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.FieldConstraints) - FieldConstraintsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldConstraints.class.getName()); - } - // Use FieldConstraints.newBuilder() to construct. - private FieldConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldConstraints() { - cel_ = java.util.Collections.emptyList(); - ignore_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldConstraints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldConstraints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.FieldConstraints.class, build.buf.validate.FieldConstraints.Builder.class); - } - - private int bitField0_; - private int typeCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object type_; - public enum TypeCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - FLOAT(1), - DOUBLE(2), - INT32(3), - INT64(4), - UINT32(5), - UINT64(6), - SINT32(7), - SINT64(8), - FIXED32(9), - FIXED64(10), - SFIXED32(11), - SFIXED64(12), - BOOL(13), - STRING(14), - BYTES(15), - ENUM(16), - REPEATED(18), - MAP(19), - ANY(20), - DURATION(21), - TIMESTAMP(22), - TYPE_NOT_SET(0); - private final int value; - private TypeCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TypeCase valueOf(int value) { - return forNumber(value); - } - - public static TypeCase forNumber(int value) { - switch (value) { - case 1: return FLOAT; - case 2: return DOUBLE; - case 3: return INT32; - case 4: return INT64; - case 5: return UINT32; - case 6: return UINT64; - case 7: return SINT32; - case 8: return SINT64; - case 9: return FIXED32; - case 10: return FIXED64; - case 11: return SFIXED32; - case 12: return SFIXED64; - case 13: return BOOL; - case 14: return STRING; - case 15: return BYTES; - case 16: return ENUM; - case 18: return REPEATED; - case 19: return MAP; - case 20: return ANY; - case 21: return DURATION; - case 22: return TIMESTAMP; - case 0: return TYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public static final int CEL_FIELD_NUMBER = 23; - @SuppressWarnings("serial") - private java.util.List cel_; - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.field).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - @java.lang.Override - public java.util.List getCelList() { - return cel_; - } - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.field).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - @java.lang.Override - public java.util.List - getCelOrBuilderList() { - return cel_; - } - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.field).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - @java.lang.Override - public int getCelCount() { - return cel_.size(); - } - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.field).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - @java.lang.Override - public build.buf.validate.Constraint getCel(int index) { - return cel_.get(index); - } - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.field).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - @java.lang.Override - public build.buf.validate.ConstraintOrBuilder getCelOrBuilder( - int index) { - return cel_.get(index); - } - - public static final int REQUIRED_FIELD_NUMBER = 25; - private boolean required_ = false; - /** - *
-   * If `required` is true, the field must be populated. A populated field can be
-   * described as "serialized in the wire format," which includes:
-   *
-   * - the following "nullable" fields must be explicitly set to be considered populated:
-   * - singular message fields (whose fields may be unpopulated/default values)
-   * - member fields of a oneof (may be their default value)
-   * - proto3 optional fields (may be their default value)
-   * - proto2 scalar fields (both optional and required)
-   * - proto3 scalar fields must be non-zero to be considered populated
-   * - repeated and map fields must be non-empty to be considered populated
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be set to a non-null value.
-   * optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
-   * }
-   * ```
-   * 
- * - * optional bool required = 25 [json_name = "required"]; - * @return Whether the required field is set. - */ - @java.lang.Override - public boolean hasRequired() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * If `required` is true, the field must be populated. A populated field can be
-   * described as "serialized in the wire format," which includes:
-   *
-   * - the following "nullable" fields must be explicitly set to be considered populated:
-   * - singular message fields (whose fields may be unpopulated/default values)
-   * - member fields of a oneof (may be their default value)
-   * - proto3 optional fields (may be their default value)
-   * - proto2 scalar fields (both optional and required)
-   * - proto3 scalar fields must be non-zero to be considered populated
-   * - repeated and map fields must be non-empty to be considered populated
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be set to a non-null value.
-   * optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
-   * }
-   * ```
-   * 
- * - * optional bool required = 25 [json_name = "required"]; - * @return The required. - */ - @java.lang.Override - public boolean getRequired() { - return required_; - } - - public static final int IGNORE_FIELD_NUMBER = 27; - private int ignore_ = 0; - /** - *
-   * Skip validation on the field if its value matches the specified criteria.
-   * See Ignore enum for details.
-   *
-   * ```proto
-   * message UpdateRequest {
-   * // The uri rule only applies if the field is populated and not an empty
-   * // string.
-   * optional string url = 1 [
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE,
-   * (buf.validate.field).string.uri = true,
-   * ];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.Ignore ignore = 27 [json_name = "ignore"]; - * @return Whether the ignore field is set. - */ - @java.lang.Override public boolean hasIgnore() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * Skip validation on the field if its value matches the specified criteria.
-   * See Ignore enum for details.
-   *
-   * ```proto
-   * message UpdateRequest {
-   * // The uri rule only applies if the field is populated and not an empty
-   * // string.
-   * optional string url = 1 [
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE,
-   * (buf.validate.field).string.uri = true,
-   * ];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.Ignore ignore = 27 [json_name = "ignore"]; - * @return The ignore. - */ - @java.lang.Override public build.buf.validate.Ignore getIgnore() { - build.buf.validate.Ignore result = build.buf.validate.Ignore.forNumber(ignore_); - return result == null ? build.buf.validate.Ignore.IGNORE_UNSPECIFIED : result; - } - - public static final int FLOAT_FIELD_NUMBER = 1; - /** - *
-   * Scalar Field Types
-   * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - * @return Whether the float field is set. - */ - @java.lang.Override - public boolean hasFloat() { - return typeCase_ == 1; - } - /** - *
-   * Scalar Field Types
-   * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - * @return The float. - */ - @java.lang.Override - public build.buf.validate.FloatRules getFloat() { - if (typeCase_ == 1) { - return (build.buf.validate.FloatRules) type_; - } - return build.buf.validate.FloatRules.getDefaultInstance(); - } - /** - *
-   * Scalar Field Types
-   * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - */ - @java.lang.Override - public build.buf.validate.FloatRulesOrBuilder getFloatOrBuilder() { - if (typeCase_ == 1) { - return (build.buf.validate.FloatRules) type_; - } - return build.buf.validate.FloatRules.getDefaultInstance(); - } - - public static final int DOUBLE_FIELD_NUMBER = 2; - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - * @return Whether the double field is set. - */ - @java.lang.Override - public boolean hasDouble() { - return typeCase_ == 2; - } - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - * @return The double. - */ - @java.lang.Override - public build.buf.validate.DoubleRules getDouble() { - if (typeCase_ == 2) { - return (build.buf.validate.DoubleRules) type_; - } - return build.buf.validate.DoubleRules.getDefaultInstance(); - } - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - */ - @java.lang.Override - public build.buf.validate.DoubleRulesOrBuilder getDoubleOrBuilder() { - if (typeCase_ == 2) { - return (build.buf.validate.DoubleRules) type_; - } - return build.buf.validate.DoubleRules.getDefaultInstance(); - } - - public static final int INT32_FIELD_NUMBER = 3; - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - * @return Whether the int32 field is set. - */ - @java.lang.Override - public boolean hasInt32() { - return typeCase_ == 3; - } - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - * @return The int32. - */ - @java.lang.Override - public build.buf.validate.Int32Rules getInt32() { - if (typeCase_ == 3) { - return (build.buf.validate.Int32Rules) type_; - } - return build.buf.validate.Int32Rules.getDefaultInstance(); - } - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - */ - @java.lang.Override - public build.buf.validate.Int32RulesOrBuilder getInt32OrBuilder() { - if (typeCase_ == 3) { - return (build.buf.validate.Int32Rules) type_; - } - return build.buf.validate.Int32Rules.getDefaultInstance(); - } - - public static final int INT64_FIELD_NUMBER = 4; - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - * @return Whether the int64 field is set. - */ - @java.lang.Override - public boolean hasInt64() { - return typeCase_ == 4; - } - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - * @return The int64. - */ - @java.lang.Override - public build.buf.validate.Int64Rules getInt64() { - if (typeCase_ == 4) { - return (build.buf.validate.Int64Rules) type_; - } - return build.buf.validate.Int64Rules.getDefaultInstance(); - } - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - */ - @java.lang.Override - public build.buf.validate.Int64RulesOrBuilder getInt64OrBuilder() { - if (typeCase_ == 4) { - return (build.buf.validate.Int64Rules) type_; - } - return build.buf.validate.Int64Rules.getDefaultInstance(); - } - - public static final int UINT32_FIELD_NUMBER = 5; - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - * @return Whether the uint32 field is set. - */ - @java.lang.Override - public boolean hasUint32() { - return typeCase_ == 5; - } - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - * @return The uint32. - */ - @java.lang.Override - public build.buf.validate.UInt32Rules getUint32() { - if (typeCase_ == 5) { - return (build.buf.validate.UInt32Rules) type_; - } - return build.buf.validate.UInt32Rules.getDefaultInstance(); - } - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - */ - @java.lang.Override - public build.buf.validate.UInt32RulesOrBuilder getUint32OrBuilder() { - if (typeCase_ == 5) { - return (build.buf.validate.UInt32Rules) type_; - } - return build.buf.validate.UInt32Rules.getDefaultInstance(); - } - - public static final int UINT64_FIELD_NUMBER = 6; - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - * @return Whether the uint64 field is set. - */ - @java.lang.Override - public boolean hasUint64() { - return typeCase_ == 6; - } - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - * @return The uint64. - */ - @java.lang.Override - public build.buf.validate.UInt64Rules getUint64() { - if (typeCase_ == 6) { - return (build.buf.validate.UInt64Rules) type_; - } - return build.buf.validate.UInt64Rules.getDefaultInstance(); - } - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - */ - @java.lang.Override - public build.buf.validate.UInt64RulesOrBuilder getUint64OrBuilder() { - if (typeCase_ == 6) { - return (build.buf.validate.UInt64Rules) type_; - } - return build.buf.validate.UInt64Rules.getDefaultInstance(); - } - - public static final int SINT32_FIELD_NUMBER = 7; - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - * @return Whether the sint32 field is set. - */ - @java.lang.Override - public boolean hasSint32() { - return typeCase_ == 7; - } - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - * @return The sint32. - */ - @java.lang.Override - public build.buf.validate.SInt32Rules getSint32() { - if (typeCase_ == 7) { - return (build.buf.validate.SInt32Rules) type_; - } - return build.buf.validate.SInt32Rules.getDefaultInstance(); - } - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - */ - @java.lang.Override - public build.buf.validate.SInt32RulesOrBuilder getSint32OrBuilder() { - if (typeCase_ == 7) { - return (build.buf.validate.SInt32Rules) type_; - } - return build.buf.validate.SInt32Rules.getDefaultInstance(); - } - - public static final int SINT64_FIELD_NUMBER = 8; - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - * @return Whether the sint64 field is set. - */ - @java.lang.Override - public boolean hasSint64() { - return typeCase_ == 8; - } - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - * @return The sint64. - */ - @java.lang.Override - public build.buf.validate.SInt64Rules getSint64() { - if (typeCase_ == 8) { - return (build.buf.validate.SInt64Rules) type_; - } - return build.buf.validate.SInt64Rules.getDefaultInstance(); - } - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - */ - @java.lang.Override - public build.buf.validate.SInt64RulesOrBuilder getSint64OrBuilder() { - if (typeCase_ == 8) { - return (build.buf.validate.SInt64Rules) type_; - } - return build.buf.validate.SInt64Rules.getDefaultInstance(); - } - - public static final int FIXED32_FIELD_NUMBER = 9; - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - * @return Whether the fixed32 field is set. - */ - @java.lang.Override - public boolean hasFixed32() { - return typeCase_ == 9; - } - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - * @return The fixed32. - */ - @java.lang.Override - public build.buf.validate.Fixed32Rules getFixed32() { - if (typeCase_ == 9) { - return (build.buf.validate.Fixed32Rules) type_; - } - return build.buf.validate.Fixed32Rules.getDefaultInstance(); - } - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - */ - @java.lang.Override - public build.buf.validate.Fixed32RulesOrBuilder getFixed32OrBuilder() { - if (typeCase_ == 9) { - return (build.buf.validate.Fixed32Rules) type_; - } - return build.buf.validate.Fixed32Rules.getDefaultInstance(); - } - - public static final int FIXED64_FIELD_NUMBER = 10; - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - * @return Whether the fixed64 field is set. - */ - @java.lang.Override - public boolean hasFixed64() { - return typeCase_ == 10; - } - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - * @return The fixed64. - */ - @java.lang.Override - public build.buf.validate.Fixed64Rules getFixed64() { - if (typeCase_ == 10) { - return (build.buf.validate.Fixed64Rules) type_; - } - return build.buf.validate.Fixed64Rules.getDefaultInstance(); - } - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - */ - @java.lang.Override - public build.buf.validate.Fixed64RulesOrBuilder getFixed64OrBuilder() { - if (typeCase_ == 10) { - return (build.buf.validate.Fixed64Rules) type_; - } - return build.buf.validate.Fixed64Rules.getDefaultInstance(); - } - - public static final int SFIXED32_FIELD_NUMBER = 11; - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - * @return Whether the sfixed32 field is set. - */ - @java.lang.Override - public boolean hasSfixed32() { - return typeCase_ == 11; - } - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - * @return The sfixed32. - */ - @java.lang.Override - public build.buf.validate.SFixed32Rules getSfixed32() { - if (typeCase_ == 11) { - return (build.buf.validate.SFixed32Rules) type_; - } - return build.buf.validate.SFixed32Rules.getDefaultInstance(); - } - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - */ - @java.lang.Override - public build.buf.validate.SFixed32RulesOrBuilder getSfixed32OrBuilder() { - if (typeCase_ == 11) { - return (build.buf.validate.SFixed32Rules) type_; - } - return build.buf.validate.SFixed32Rules.getDefaultInstance(); - } - - public static final int SFIXED64_FIELD_NUMBER = 12; - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - * @return Whether the sfixed64 field is set. - */ - @java.lang.Override - public boolean hasSfixed64() { - return typeCase_ == 12; - } - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - * @return The sfixed64. - */ - @java.lang.Override - public build.buf.validate.SFixed64Rules getSfixed64() { - if (typeCase_ == 12) { - return (build.buf.validate.SFixed64Rules) type_; - } - return build.buf.validate.SFixed64Rules.getDefaultInstance(); - } - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - */ - @java.lang.Override - public build.buf.validate.SFixed64RulesOrBuilder getSfixed64OrBuilder() { - if (typeCase_ == 12) { - return (build.buf.validate.SFixed64Rules) type_; - } - return build.buf.validate.SFixed64Rules.getDefaultInstance(); - } - - public static final int BOOL_FIELD_NUMBER = 13; - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - * @return Whether the bool field is set. - */ - @java.lang.Override - public boolean hasBool() { - return typeCase_ == 13; - } - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - * @return The bool. - */ - @java.lang.Override - public build.buf.validate.BoolRules getBool() { - if (typeCase_ == 13) { - return (build.buf.validate.BoolRules) type_; - } - return build.buf.validate.BoolRules.getDefaultInstance(); - } - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - */ - @java.lang.Override - public build.buf.validate.BoolRulesOrBuilder getBoolOrBuilder() { - if (typeCase_ == 13) { - return (build.buf.validate.BoolRules) type_; - } - return build.buf.validate.BoolRules.getDefaultInstance(); - } - - public static final int STRING_FIELD_NUMBER = 14; - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - * @return Whether the string field is set. - */ - @java.lang.Override - public boolean hasString() { - return typeCase_ == 14; - } - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - * @return The string. - */ - @java.lang.Override - public build.buf.validate.StringRules getString() { - if (typeCase_ == 14) { - return (build.buf.validate.StringRules) type_; - } - return build.buf.validate.StringRules.getDefaultInstance(); - } - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - */ - @java.lang.Override - public build.buf.validate.StringRulesOrBuilder getStringOrBuilder() { - if (typeCase_ == 14) { - return (build.buf.validate.StringRules) type_; - } - return build.buf.validate.StringRules.getDefaultInstance(); - } - - public static final int BYTES_FIELD_NUMBER = 15; - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - * @return Whether the bytes field is set. - */ - @java.lang.Override - public boolean hasBytes() { - return typeCase_ == 15; - } - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - * @return The bytes. - */ - @java.lang.Override - public build.buf.validate.BytesRules getBytes() { - if (typeCase_ == 15) { - return (build.buf.validate.BytesRules) type_; - } - return build.buf.validate.BytesRules.getDefaultInstance(); - } - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - */ - @java.lang.Override - public build.buf.validate.BytesRulesOrBuilder getBytesOrBuilder() { - if (typeCase_ == 15) { - return (build.buf.validate.BytesRules) type_; - } - return build.buf.validate.BytesRules.getDefaultInstance(); - } - - public static final int ENUM_FIELD_NUMBER = 16; - /** - *
-   * Complex Field Types
-   * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - * @return Whether the enum field is set. - */ - @java.lang.Override - public boolean hasEnum() { - return typeCase_ == 16; - } - /** - *
-   * Complex Field Types
-   * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - * @return The enum. - */ - @java.lang.Override - public build.buf.validate.EnumRules getEnum() { - if (typeCase_ == 16) { - return (build.buf.validate.EnumRules) type_; - } - return build.buf.validate.EnumRules.getDefaultInstance(); - } - /** - *
-   * Complex Field Types
-   * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - */ - @java.lang.Override - public build.buf.validate.EnumRulesOrBuilder getEnumOrBuilder() { - if (typeCase_ == 16) { - return (build.buf.validate.EnumRules) type_; - } - return build.buf.validate.EnumRules.getDefaultInstance(); - } - - public static final int REPEATED_FIELD_NUMBER = 18; - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - * @return Whether the repeated field is set. - */ - @java.lang.Override - public boolean hasRepeated() { - return typeCase_ == 18; - } - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - * @return The repeated. - */ - @java.lang.Override - public build.buf.validate.RepeatedRules getRepeated() { - if (typeCase_ == 18) { - return (build.buf.validate.RepeatedRules) type_; - } - return build.buf.validate.RepeatedRules.getDefaultInstance(); - } - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - */ - @java.lang.Override - public build.buf.validate.RepeatedRulesOrBuilder getRepeatedOrBuilder() { - if (typeCase_ == 18) { - return (build.buf.validate.RepeatedRules) type_; - } - return build.buf.validate.RepeatedRules.getDefaultInstance(); - } - - public static final int MAP_FIELD_NUMBER = 19; - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - * @return Whether the map field is set. - */ - @java.lang.Override - public boolean hasMap() { - return typeCase_ == 19; - } - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - * @return The map. - */ - @java.lang.Override - public build.buf.validate.MapRules getMap() { - if (typeCase_ == 19) { - return (build.buf.validate.MapRules) type_; - } - return build.buf.validate.MapRules.getDefaultInstance(); - } - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - */ - @java.lang.Override - public build.buf.validate.MapRulesOrBuilder getMapOrBuilder() { - if (typeCase_ == 19) { - return (build.buf.validate.MapRules) type_; - } - return build.buf.validate.MapRules.getDefaultInstance(); - } - - public static final int ANY_FIELD_NUMBER = 20; - /** - *
-   * Well-Known Field Types
-   * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - * @return Whether the any field is set. - */ - @java.lang.Override - public boolean hasAny() { - return typeCase_ == 20; - } - /** - *
-   * Well-Known Field Types
-   * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - * @return The any. - */ - @java.lang.Override - public build.buf.validate.AnyRules getAny() { - if (typeCase_ == 20) { - return (build.buf.validate.AnyRules) type_; - } - return build.buf.validate.AnyRules.getDefaultInstance(); - } - /** - *
-   * Well-Known Field Types
-   * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - */ - @java.lang.Override - public build.buf.validate.AnyRulesOrBuilder getAnyOrBuilder() { - if (typeCase_ == 20) { - return (build.buf.validate.AnyRules) type_; - } - return build.buf.validate.AnyRules.getDefaultInstance(); - } - - public static final int DURATION_FIELD_NUMBER = 21; - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - * @return Whether the duration field is set. - */ - @java.lang.Override - public boolean hasDuration() { - return typeCase_ == 21; - } - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - * @return The duration. - */ - @java.lang.Override - public build.buf.validate.DurationRules getDuration() { - if (typeCase_ == 21) { - return (build.buf.validate.DurationRules) type_; - } - return build.buf.validate.DurationRules.getDefaultInstance(); - } - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - */ - @java.lang.Override - public build.buf.validate.DurationRulesOrBuilder getDurationOrBuilder() { - if (typeCase_ == 21) { - return (build.buf.validate.DurationRules) type_; - } - return build.buf.validate.DurationRules.getDefaultInstance(); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 22; - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - * @return Whether the timestamp field is set. - */ - @java.lang.Override - public boolean hasTimestamp() { - return typeCase_ == 22; - } - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public build.buf.validate.TimestampRules getTimestamp() { - if (typeCase_ == 22) { - return (build.buf.validate.TimestampRules) type_; - } - return build.buf.validate.TimestampRules.getDefaultInstance(); - } - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - */ - @java.lang.Override - public build.buf.validate.TimestampRulesOrBuilder getTimestampOrBuilder() { - if (typeCase_ == 22) { - return (build.buf.validate.TimestampRules) type_; - } - return build.buf.validate.TimestampRules.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasFloat()) { - if (!getFloat().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDouble()) { - if (!getDouble().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasInt32()) { - if (!getInt32().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasInt64()) { - if (!getInt64().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasUint32()) { - if (!getUint32().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasUint64()) { - if (!getUint64().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSint32()) { - if (!getSint32().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSint64()) { - if (!getSint64().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasFixed32()) { - if (!getFixed32().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasFixed64()) { - if (!getFixed64().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSfixed32()) { - if (!getSfixed32().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSfixed64()) { - if (!getSfixed64().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasBool()) { - if (!getBool().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasString()) { - if (!getString().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasBytes()) { - if (!getBytes().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasEnum()) { - if (!getEnum().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasRepeated()) { - if (!getRepeated().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasMap()) { - if (!getMap().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDuration()) { - if (!getDuration().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasTimestamp()) { - if (!getTimestamp().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (typeCase_ == 1) { - output.writeMessage(1, (build.buf.validate.FloatRules) type_); - } - if (typeCase_ == 2) { - output.writeMessage(2, (build.buf.validate.DoubleRules) type_); - } - if (typeCase_ == 3) { - output.writeMessage(3, (build.buf.validate.Int32Rules) type_); - } - if (typeCase_ == 4) { - output.writeMessage(4, (build.buf.validate.Int64Rules) type_); - } - if (typeCase_ == 5) { - output.writeMessage(5, (build.buf.validate.UInt32Rules) type_); - } - if (typeCase_ == 6) { - output.writeMessage(6, (build.buf.validate.UInt64Rules) type_); - } - if (typeCase_ == 7) { - output.writeMessage(7, (build.buf.validate.SInt32Rules) type_); - } - if (typeCase_ == 8) { - output.writeMessage(8, (build.buf.validate.SInt64Rules) type_); - } - if (typeCase_ == 9) { - output.writeMessage(9, (build.buf.validate.Fixed32Rules) type_); - } - if (typeCase_ == 10) { - output.writeMessage(10, (build.buf.validate.Fixed64Rules) type_); - } - if (typeCase_ == 11) { - output.writeMessage(11, (build.buf.validate.SFixed32Rules) type_); - } - if (typeCase_ == 12) { - output.writeMessage(12, (build.buf.validate.SFixed64Rules) type_); - } - if (typeCase_ == 13) { - output.writeMessage(13, (build.buf.validate.BoolRules) type_); - } - if (typeCase_ == 14) { - output.writeMessage(14, (build.buf.validate.StringRules) type_); - } - if (typeCase_ == 15) { - output.writeMessage(15, (build.buf.validate.BytesRules) type_); - } - if (typeCase_ == 16) { - output.writeMessage(16, (build.buf.validate.EnumRules) type_); - } - if (typeCase_ == 18) { - output.writeMessage(18, (build.buf.validate.RepeatedRules) type_); - } - if (typeCase_ == 19) { - output.writeMessage(19, (build.buf.validate.MapRules) type_); - } - if (typeCase_ == 20) { - output.writeMessage(20, (build.buf.validate.AnyRules) type_); - } - if (typeCase_ == 21) { - output.writeMessage(21, (build.buf.validate.DurationRules) type_); - } - if (typeCase_ == 22) { - output.writeMessage(22, (build.buf.validate.TimestampRules) type_); - } - for (int i = 0; i < cel_.size(); i++) { - output.writeMessage(23, cel_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(25, required_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(27, ignore_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (typeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (build.buf.validate.FloatRules) type_); - } - if (typeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (build.buf.validate.DoubleRules) type_); - } - if (typeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (build.buf.validate.Int32Rules) type_); - } - if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (build.buf.validate.Int64Rules) type_); - } - if (typeCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (build.buf.validate.UInt32Rules) type_); - } - if (typeCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (build.buf.validate.UInt64Rules) type_); - } - if (typeCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (build.buf.validate.SInt32Rules) type_); - } - if (typeCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (build.buf.validate.SInt64Rules) type_); - } - if (typeCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (build.buf.validate.Fixed32Rules) type_); - } - if (typeCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (build.buf.validate.Fixed64Rules) type_); - } - if (typeCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (build.buf.validate.SFixed32Rules) type_); - } - if (typeCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (build.buf.validate.SFixed64Rules) type_); - } - if (typeCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (build.buf.validate.BoolRules) type_); - } - if (typeCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (build.buf.validate.StringRules) type_); - } - if (typeCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (build.buf.validate.BytesRules) type_); - } - if (typeCase_ == 16) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, (build.buf.validate.EnumRules) type_); - } - if (typeCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, (build.buf.validate.RepeatedRules) type_); - } - if (typeCase_ == 19) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, (build.buf.validate.MapRules) type_); - } - if (typeCase_ == 20) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, (build.buf.validate.AnyRules) type_); - } - if (typeCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (build.buf.validate.DurationRules) type_); - } - if (typeCase_ == 22) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, (build.buf.validate.TimestampRules) type_); - } - for (int i = 0; i < cel_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, cel_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(25, required_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(27, ignore_); - } - 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.FieldConstraints)) { - return super.equals(obj); - } - build.buf.validate.FieldConstraints other = (build.buf.validate.FieldConstraints) obj; - - if (!getCelList() - .equals(other.getCelList())) return false; - if (hasRequired() != other.hasRequired()) return false; - if (hasRequired()) { - if (getRequired() - != other.getRequired()) return false; - } - if (hasIgnore() != other.hasIgnore()) return false; - if (hasIgnore()) { - if (ignore_ != other.ignore_) return false; - } - if (!getTypeCase().equals(other.getTypeCase())) return false; - switch (typeCase_) { - case 1: - if (!getFloat() - .equals(other.getFloat())) return false; - break; - case 2: - if (!getDouble() - .equals(other.getDouble())) return false; - break; - case 3: - if (!getInt32() - .equals(other.getInt32())) return false; - break; - case 4: - if (!getInt64() - .equals(other.getInt64())) return false; - break; - case 5: - if (!getUint32() - .equals(other.getUint32())) return false; - break; - case 6: - if (!getUint64() - .equals(other.getUint64())) return false; - break; - case 7: - if (!getSint32() - .equals(other.getSint32())) return false; - break; - case 8: - if (!getSint64() - .equals(other.getSint64())) return false; - break; - case 9: - if (!getFixed32() - .equals(other.getFixed32())) return false; - break; - case 10: - if (!getFixed64() - .equals(other.getFixed64())) return false; - break; - case 11: - if (!getSfixed32() - .equals(other.getSfixed32())) return false; - break; - case 12: - if (!getSfixed64() - .equals(other.getSfixed64())) return false; - break; - case 13: - if (!getBool() - .equals(other.getBool())) return false; - break; - case 14: - if (!getString() - .equals(other.getString())) return false; - break; - case 15: - if (!getBytes() - .equals(other.getBytes())) return false; - break; - case 16: - if (!getEnum() - .equals(other.getEnum())) return false; - break; - case 18: - if (!getRepeated() - .equals(other.getRepeated())) return false; - break; - case 19: - if (!getMap() - .equals(other.getMap())) return false; - break; - case 20: - if (!getAny() - .equals(other.getAny())) return false; - break; - case 21: - if (!getDuration() - .equals(other.getDuration())) return false; - break; - case 22: - if (!getTimestamp() - .equals(other.getTimestamp())) return false; - break; - case 0: - default: - } - 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 (getCelCount() > 0) { - hash = (37 * hash) + CEL_FIELD_NUMBER; - hash = (53 * hash) + getCelList().hashCode(); - } - if (hasRequired()) { - hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequired()); - } - if (hasIgnore()) { - hash = (37 * hash) + IGNORE_FIELD_NUMBER; - hash = (53 * hash) + ignore_; - } - switch (typeCase_) { - case 1: - hash = (37 * hash) + FLOAT_FIELD_NUMBER; - hash = (53 * hash) + getFloat().hashCode(); - break; - case 2: - hash = (37 * hash) + DOUBLE_FIELD_NUMBER; - hash = (53 * hash) + getDouble().hashCode(); - break; - case 3: - hash = (37 * hash) + INT32_FIELD_NUMBER; - hash = (53 * hash) + getInt32().hashCode(); - break; - case 4: - hash = (37 * hash) + INT64_FIELD_NUMBER; - hash = (53 * hash) + getInt64().hashCode(); - break; - case 5: - hash = (37 * hash) + UINT32_FIELD_NUMBER; - hash = (53 * hash) + getUint32().hashCode(); - break; - case 6: - hash = (37 * hash) + UINT64_FIELD_NUMBER; - hash = (53 * hash) + getUint64().hashCode(); - break; - case 7: - hash = (37 * hash) + SINT32_FIELD_NUMBER; - hash = (53 * hash) + getSint32().hashCode(); - break; - case 8: - hash = (37 * hash) + SINT64_FIELD_NUMBER; - hash = (53 * hash) + getSint64().hashCode(); - break; - case 9: - hash = (37 * hash) + FIXED32_FIELD_NUMBER; - hash = (53 * hash) + getFixed32().hashCode(); - break; - case 10: - hash = (37 * hash) + FIXED64_FIELD_NUMBER; - hash = (53 * hash) + getFixed64().hashCode(); - break; - case 11: - hash = (37 * hash) + SFIXED32_FIELD_NUMBER; - hash = (53 * hash) + getSfixed32().hashCode(); - break; - case 12: - hash = (37 * hash) + SFIXED64_FIELD_NUMBER; - hash = (53 * hash) + getSfixed64().hashCode(); - break; - case 13: - hash = (37 * hash) + BOOL_FIELD_NUMBER; - hash = (53 * hash) + getBool().hashCode(); - break; - case 14: - hash = (37 * hash) + STRING_FIELD_NUMBER; - hash = (53 * hash) + getString().hashCode(); - break; - case 15: - hash = (37 * hash) + BYTES_FIELD_NUMBER; - hash = (53 * hash) + getBytes().hashCode(); - break; - case 16: - hash = (37 * hash) + ENUM_FIELD_NUMBER; - hash = (53 * hash) + getEnum().hashCode(); - break; - case 18: - hash = (37 * hash) + REPEATED_FIELD_NUMBER; - hash = (53 * hash) + getRepeated().hashCode(); - break; - case 19: - hash = (37 * hash) + MAP_FIELD_NUMBER; - hash = (53 * hash) + getMap().hashCode(); - break; - case 20: - hash = (37 * hash) + ANY_FIELD_NUMBER; - hash = (53 * hash) + getAny().hashCode(); - break; - case 21: - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - break; - case 22: - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.FieldConstraints parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FieldConstraints 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.FieldConstraints parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FieldConstraints 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.FieldConstraints parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FieldConstraints parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.FieldConstraints parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.FieldConstraints 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.FieldConstraints parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.FieldConstraints 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.FieldConstraints parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.FieldConstraints 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.FieldConstraints 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; - } - /** - *
-   * FieldConstraints encapsulates the rules for each type of field. Depending on
-   * the field, the correct set should be used to ensure proper validations.
-   * 
- * - * Protobuf type {@code buf.validate.FieldConstraints} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.FieldConstraints) - build.buf.validate.FieldConstraintsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldConstraints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldConstraints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.FieldConstraints.class, build.buf.validate.FieldConstraints.Builder.class); - } - - // Construct using build.buf.validate.FieldConstraints.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (celBuilder_ == null) { - cel_ = java.util.Collections.emptyList(); - } else { - cel_ = null; - celBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - required_ = false; - ignore_ = 0; - if (floatBuilder_ != null) { - floatBuilder_.clear(); - } - if (doubleBuilder_ != null) { - doubleBuilder_.clear(); - } - if (int32Builder_ != null) { - int32Builder_.clear(); - } - if (int64Builder_ != null) { - int64Builder_.clear(); - } - if (uint32Builder_ != null) { - uint32Builder_.clear(); - } - if (uint64Builder_ != null) { - uint64Builder_.clear(); - } - if (sint32Builder_ != null) { - sint32Builder_.clear(); - } - if (sint64Builder_ != null) { - sint64Builder_.clear(); - } - if (fixed32Builder_ != null) { - fixed32Builder_.clear(); - } - if (fixed64Builder_ != null) { - fixed64Builder_.clear(); - } - if (sfixed32Builder_ != null) { - sfixed32Builder_.clear(); - } - if (sfixed64Builder_ != null) { - sfixed64Builder_.clear(); - } - if (boolBuilder_ != null) { - boolBuilder_.clear(); - } - if (stringBuilder_ != null) { - stringBuilder_.clear(); - } - if (bytesBuilder_ != null) { - bytesBuilder_.clear(); - } - if (enumBuilder_ != null) { - enumBuilder_.clear(); - } - if (repeatedBuilder_ != null) { - repeatedBuilder_.clear(); - } - if (mapBuilder_ != null) { - mapBuilder_.clear(); - } - if (anyBuilder_ != null) { - anyBuilder_.clear(); - } - if (durationBuilder_ != null) { - durationBuilder_.clear(); - } - if (timestampBuilder_ != null) { - timestampBuilder_.clear(); - } - typeCase_ = 0; - type_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldConstraints_descriptor; - } - - @java.lang.Override - public build.buf.validate.FieldConstraints getDefaultInstanceForType() { - return build.buf.validate.FieldConstraints.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.FieldConstraints build() { - build.buf.validate.FieldConstraints result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.FieldConstraints buildPartial() { - build.buf.validate.FieldConstraints result = new build.buf.validate.FieldConstraints(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.FieldConstraints result) { - if (celBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - cel_ = java.util.Collections.unmodifiableList(cel_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.cel_ = cel_; - } else { - result.cel_ = celBuilder_.build(); - } - } - - private void buildPartial0(build.buf.validate.FieldConstraints result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.required_ = required_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.ignore_ = ignore_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.FieldConstraints result) { - result.typeCase_ = typeCase_; - result.type_ = this.type_; - if (typeCase_ == 1 && - floatBuilder_ != null) { - result.type_ = floatBuilder_.build(); - } - if (typeCase_ == 2 && - doubleBuilder_ != null) { - result.type_ = doubleBuilder_.build(); - } - if (typeCase_ == 3 && - int32Builder_ != null) { - result.type_ = int32Builder_.build(); - } - if (typeCase_ == 4 && - int64Builder_ != null) { - result.type_ = int64Builder_.build(); - } - if (typeCase_ == 5 && - uint32Builder_ != null) { - result.type_ = uint32Builder_.build(); - } - if (typeCase_ == 6 && - uint64Builder_ != null) { - result.type_ = uint64Builder_.build(); - } - if (typeCase_ == 7 && - sint32Builder_ != null) { - result.type_ = sint32Builder_.build(); - } - if (typeCase_ == 8 && - sint64Builder_ != null) { - result.type_ = sint64Builder_.build(); - } - if (typeCase_ == 9 && - fixed32Builder_ != null) { - result.type_ = fixed32Builder_.build(); - } - if (typeCase_ == 10 && - fixed64Builder_ != null) { - result.type_ = fixed64Builder_.build(); - } - if (typeCase_ == 11 && - sfixed32Builder_ != null) { - result.type_ = sfixed32Builder_.build(); - } - if (typeCase_ == 12 && - sfixed64Builder_ != null) { - result.type_ = sfixed64Builder_.build(); - } - if (typeCase_ == 13 && - boolBuilder_ != null) { - result.type_ = boolBuilder_.build(); - } - if (typeCase_ == 14 && - stringBuilder_ != null) { - result.type_ = stringBuilder_.build(); - } - if (typeCase_ == 15 && - bytesBuilder_ != null) { - result.type_ = bytesBuilder_.build(); - } - if (typeCase_ == 16 && - enumBuilder_ != null) { - result.type_ = enumBuilder_.build(); - } - if (typeCase_ == 18 && - repeatedBuilder_ != null) { - result.type_ = repeatedBuilder_.build(); - } - if (typeCase_ == 19 && - mapBuilder_ != null) { - result.type_ = mapBuilder_.build(); - } - if (typeCase_ == 20 && - anyBuilder_ != null) { - result.type_ = anyBuilder_.build(); - } - if (typeCase_ == 21 && - durationBuilder_ != null) { - result.type_ = durationBuilder_.build(); - } - if (typeCase_ == 22 && - timestampBuilder_ != null) { - result.type_ = timestampBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.FieldConstraints) { - return mergeFrom((build.buf.validate.FieldConstraints)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.FieldConstraints other) { - if (other == build.buf.validate.FieldConstraints.getDefaultInstance()) return this; - if (celBuilder_ == null) { - if (!other.cel_.isEmpty()) { - if (cel_.isEmpty()) { - cel_ = other.cel_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCelIsMutable(); - cel_.addAll(other.cel_); - } - onChanged(); - } - } else { - if (!other.cel_.isEmpty()) { - if (celBuilder_.isEmpty()) { - celBuilder_.dispose(); - celBuilder_ = null; - cel_ = other.cel_; - bitField0_ = (bitField0_ & ~0x00000001); - celBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetCelFieldBuilder() : null; - } else { - celBuilder_.addAllMessages(other.cel_); - } - } - } - if (other.hasRequired()) { - setRequired(other.getRequired()); - } - if (other.hasIgnore()) { - setIgnore(other.getIgnore()); - } - switch (other.getTypeCase()) { - case FLOAT: { - mergeFloat(other.getFloat()); - break; - } - case DOUBLE: { - mergeDouble(other.getDouble()); - break; - } - case INT32: { - mergeInt32(other.getInt32()); - break; - } - case INT64: { - mergeInt64(other.getInt64()); - break; - } - case UINT32: { - mergeUint32(other.getUint32()); - break; - } - case UINT64: { - mergeUint64(other.getUint64()); - break; - } - case SINT32: { - mergeSint32(other.getSint32()); - break; - } - case SINT64: { - mergeSint64(other.getSint64()); - break; - } - case FIXED32: { - mergeFixed32(other.getFixed32()); - break; - } - case FIXED64: { - mergeFixed64(other.getFixed64()); - break; - } - case SFIXED32: { - mergeSfixed32(other.getSfixed32()); - break; - } - case SFIXED64: { - mergeSfixed64(other.getSfixed64()); - break; - } - case BOOL: { - mergeBool(other.getBool()); - break; - } - case STRING: { - mergeString(other.getString()); - break; - } - case BYTES: { - mergeBytes(other.getBytes()); - break; - } - case ENUM: { - mergeEnum(other.getEnum()); - break; - } - case REPEATED: { - mergeRepeated(other.getRepeated()); - break; - } - case MAP: { - mergeMap(other.getMap()); - break; - } - case ANY: { - mergeAny(other.getAny()); - break; - } - case DURATION: { - mergeDuration(other.getDuration()); - break; - } - case TIMESTAMP: { - mergeTimestamp(other.getTimestamp()); - break; - } - case TYPE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasFloat()) { - if (!getFloat().isInitialized()) { - return false; - } - } - if (hasDouble()) { - if (!getDouble().isInitialized()) { - return false; - } - } - if (hasInt32()) { - if (!getInt32().isInitialized()) { - return false; - } - } - if (hasInt64()) { - if (!getInt64().isInitialized()) { - return false; - } - } - if (hasUint32()) { - if (!getUint32().isInitialized()) { - return false; - } - } - if (hasUint64()) { - if (!getUint64().isInitialized()) { - return false; - } - } - if (hasSint32()) { - if (!getSint32().isInitialized()) { - return false; - } - } - if (hasSint64()) { - if (!getSint64().isInitialized()) { - return false; - } - } - if (hasFixed32()) { - if (!getFixed32().isInitialized()) { - return false; - } - } - if (hasFixed64()) { - if (!getFixed64().isInitialized()) { - return false; - } - } - if (hasSfixed32()) { - if (!getSfixed32().isInitialized()) { - return false; - } - } - if (hasSfixed64()) { - if (!getSfixed64().isInitialized()) { - return false; - } - } - if (hasBool()) { - if (!getBool().isInitialized()) { - return false; - } - } - if (hasString()) { - if (!getString().isInitialized()) { - return false; - } - } - if (hasBytes()) { - if (!getBytes().isInitialized()) { - return false; - } - } - if (hasEnum()) { - if (!getEnum().isInitialized()) { - return false; - } - } - if (hasRepeated()) { - if (!getRepeated().isInitialized()) { - return false; - } - } - if (hasMap()) { - if (!getMap().isInitialized()) { - return false; - } - } - if (hasDuration()) { - if (!getDuration().isInitialized()) { - return false; - } - } - if (hasTimestamp()) { - if (!getTimestamp().isInitialized()) { - return false; - } - } - 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: { - input.readMessage( - internalGetFloatFieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - internalGetDoubleFieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - internalGetInt32FieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - internalGetInt64FieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - internalGetUint32FieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - internalGetUint64FieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - internalGetSint32FieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 7; - break; - } // case 58 - case 66: { - input.readMessage( - internalGetSint64FieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 8; - break; - } // case 66 - case 74: { - input.readMessage( - internalGetFixed32FieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 9; - break; - } // case 74 - case 82: { - input.readMessage( - internalGetFixed64FieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 10; - break; - } // case 82 - case 90: { - input.readMessage( - internalGetSfixed32FieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 11; - break; - } // case 90 - case 98: { - input.readMessage( - internalGetSfixed64FieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 12; - break; - } // case 98 - case 106: { - input.readMessage( - internalGetBoolFieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 13; - break; - } // case 106 - case 114: { - input.readMessage( - internalGetStringFieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 14; - break; - } // case 114 - case 122: { - input.readMessage( - internalGetBytesFieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 15; - break; - } // case 122 - case 130: { - input.readMessage( - internalGetEnumFieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 16; - break; - } // case 130 - case 146: { - input.readMessage( - internalGetRepeatedFieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 18; - break; - } // case 146 - case 154: { - input.readMessage( - internalGetMapFieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 19; - break; - } // case 154 - case 162: { - input.readMessage( - internalGetAnyFieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 20; - break; - } // case 162 - case 170: { - input.readMessage( - internalGetDurationFieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 21; - break; - } // case 170 - case 178: { - input.readMessage( - internalGetTimestampFieldBuilder().getBuilder(), - extensionRegistry); - typeCase_ = 22; - break; - } // case 178 - case 186: { - build.buf.validate.Constraint m = - input.readMessage( - build.buf.validate.Constraint.parser(), - extensionRegistry); - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.add(m); - } else { - celBuilder_.addMessage(m); - } - break; - } // case 186 - case 200: { - required_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 200 - case 216: { - int tmpRaw = input.readEnum(); - build.buf.validate.Ignore tmpValue = - build.buf.validate.Ignore.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(27, tmpRaw); - } else { - ignore_ = tmpRaw; - bitField0_ |= 0x00000004; - } - break; - } // case 216 - 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 typeCase_ = 0; - private java.lang.Object type_; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public Builder clearType() { - typeCase_ = 0; - type_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.util.List cel_ = - java.util.Collections.emptyList(); - private void ensureCelIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cel_ = new java.util.ArrayList(cel_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder> celBuilder_; - - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public java.util.List getCelList() { - if (celBuilder_ == null) { - return java.util.Collections.unmodifiableList(cel_); - } else { - return celBuilder_.getMessageList(); - } - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public int getCelCount() { - if (celBuilder_ == null) { - return cel_.size(); - } else { - return celBuilder_.getCount(); - } - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public build.buf.validate.Constraint getCel(int index) { - if (celBuilder_ == null) { - return cel_.get(index); - } else { - return celBuilder_.getMessage(index); - } - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public Builder setCel( - int index, build.buf.validate.Constraint value) { - if (celBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCelIsMutable(); - cel_.set(index, value); - onChanged(); - } else { - celBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public Builder setCel( - int index, build.buf.validate.Constraint.Builder builderForValue) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.set(index, builderForValue.build()); - onChanged(); - } else { - celBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public Builder addCel(build.buf.validate.Constraint value) { - if (celBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCelIsMutable(); - cel_.add(value); - onChanged(); - } else { - celBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public Builder addCel( - int index, build.buf.validate.Constraint value) { - if (celBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCelIsMutable(); - cel_.add(index, value); - onChanged(); - } else { - celBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public Builder addCel( - build.buf.validate.Constraint.Builder builderForValue) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.add(builderForValue.build()); - onChanged(); - } else { - celBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public Builder addCel( - int index, build.buf.validate.Constraint.Builder builderForValue) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.add(index, builderForValue.build()); - onChanged(); - } else { - celBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public Builder addAllCel( - java.lang.Iterable values) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cel_); - onChanged(); - } else { - celBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public Builder clearCel() { - if (celBuilder_ == null) { - cel_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - celBuilder_.clear(); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public Builder removeCel(int index) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.remove(index); - onChanged(); - } else { - celBuilder_.remove(index); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public build.buf.validate.Constraint.Builder getCelBuilder( - int index) { - return internalGetCelFieldBuilder().getBuilder(index); - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public build.buf.validate.ConstraintOrBuilder getCelOrBuilder( - int index) { - if (celBuilder_ == null) { - return cel_.get(index); } else { - return celBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public java.util.List - getCelOrBuilderList() { - if (celBuilder_ != null) { - return celBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cel_); - } - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public build.buf.validate.Constraint.Builder addCelBuilder() { - return internalGetCelFieldBuilder().addBuilder( - build.buf.validate.Constraint.getDefaultInstance()); - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public build.buf.validate.Constraint.Builder addCelBuilder( - int index) { - return internalGetCelFieldBuilder().addBuilder( - index, build.buf.validate.Constraint.getDefaultInstance()); - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.field).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - public java.util.List - getCelBuilderList() { - return internalGetCelFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder> - internalGetCelFieldBuilder() { - if (celBuilder_ == null) { - celBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder>( - cel_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - cel_ = null; - } - return celBuilder_; - } - - private boolean required_ ; - /** - *
-     * If `required` is true, the field must be populated. A populated field can be
-     * described as "serialized in the wire format," which includes:
-     *
-     * - the following "nullable" fields must be explicitly set to be considered populated:
-     * - singular message fields (whose fields may be unpopulated/default values)
-     * - member fields of a oneof (may be their default value)
-     * - proto3 optional fields (may be their default value)
-     * - proto2 scalar fields (both optional and required)
-     * - proto3 scalar fields must be non-zero to be considered populated
-     * - repeated and map fields must be non-empty to be considered populated
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be set to a non-null value.
-     * optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     * 
- * - * optional bool required = 25 [json_name = "required"]; - * @return Whether the required field is set. - */ - @java.lang.Override - public boolean hasRequired() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * If `required` is true, the field must be populated. A populated field can be
-     * described as "serialized in the wire format," which includes:
-     *
-     * - the following "nullable" fields must be explicitly set to be considered populated:
-     * - singular message fields (whose fields may be unpopulated/default values)
-     * - member fields of a oneof (may be their default value)
-     * - proto3 optional fields (may be their default value)
-     * - proto2 scalar fields (both optional and required)
-     * - proto3 scalar fields must be non-zero to be considered populated
-     * - repeated and map fields must be non-empty to be considered populated
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be set to a non-null value.
-     * optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     * 
- * - * optional bool required = 25 [json_name = "required"]; - * @return The required. - */ - @java.lang.Override - public boolean getRequired() { - return required_; - } - /** - *
-     * If `required` is true, the field must be populated. A populated field can be
-     * described as "serialized in the wire format," which includes:
-     *
-     * - the following "nullable" fields must be explicitly set to be considered populated:
-     * - singular message fields (whose fields may be unpopulated/default values)
-     * - member fields of a oneof (may be their default value)
-     * - proto3 optional fields (may be their default value)
-     * - proto2 scalar fields (both optional and required)
-     * - proto3 scalar fields must be non-zero to be considered populated
-     * - repeated and map fields must be non-empty to be considered populated
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be set to a non-null value.
-     * optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     * 
- * - * optional bool required = 25 [json_name = "required"]; - * @param value The required to set. - * @return This builder for chaining. - */ - public Builder setRequired(boolean value) { - - required_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * If `required` is true, the field must be populated. A populated field can be
-     * described as "serialized in the wire format," which includes:
-     *
-     * - the following "nullable" fields must be explicitly set to be considered populated:
-     * - singular message fields (whose fields may be unpopulated/default values)
-     * - member fields of a oneof (may be their default value)
-     * - proto3 optional fields (may be their default value)
-     * - proto2 scalar fields (both optional and required)
-     * - proto3 scalar fields must be non-zero to be considered populated
-     * - repeated and map fields must be non-empty to be considered populated
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be set to a non-null value.
-     * optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     * 
- * - * optional bool required = 25 [json_name = "required"]; - * @return This builder for chaining. - */ - public Builder clearRequired() { - bitField0_ = (bitField0_ & ~0x00000002); - required_ = false; - onChanged(); - return this; - } - - private int ignore_ = 0; - /** - *
-     * Skip validation on the field if its value matches the specified criteria.
-     * See Ignore enum for details.
-     *
-     * ```proto
-     * message UpdateRequest {
-     * // The uri rule only applies if the field is populated and not an empty
-     * // string.
-     * optional string url = 1 [
-     * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE,
-     * (buf.validate.field).string.uri = true,
-     * ];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.Ignore ignore = 27 [json_name = "ignore"]; - * @return Whether the ignore field is set. - */ - @java.lang.Override public boolean hasIgnore() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Skip validation on the field if its value matches the specified criteria.
-     * See Ignore enum for details.
-     *
-     * ```proto
-     * message UpdateRequest {
-     * // The uri rule only applies if the field is populated and not an empty
-     * // string.
-     * optional string url = 1 [
-     * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE,
-     * (buf.validate.field).string.uri = true,
-     * ];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.Ignore ignore = 27 [json_name = "ignore"]; - * @return The ignore. - */ - @java.lang.Override - public build.buf.validate.Ignore getIgnore() { - build.buf.validate.Ignore result = build.buf.validate.Ignore.forNumber(ignore_); - return result == null ? build.buf.validate.Ignore.IGNORE_UNSPECIFIED : result; - } - /** - *
-     * Skip validation on the field if its value matches the specified criteria.
-     * See Ignore enum for details.
-     *
-     * ```proto
-     * message UpdateRequest {
-     * // The uri rule only applies if the field is populated and not an empty
-     * // string.
-     * optional string url = 1 [
-     * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE,
-     * (buf.validate.field).string.uri = true,
-     * ];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.Ignore ignore = 27 [json_name = "ignore"]; - * @param value The ignore to set. - * @return This builder for chaining. - */ - public Builder setIgnore(build.buf.validate.Ignore value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - ignore_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Skip validation on the field if its value matches the specified criteria.
-     * See Ignore enum for details.
-     *
-     * ```proto
-     * message UpdateRequest {
-     * // The uri rule only applies if the field is populated and not an empty
-     * // string.
-     * optional string url = 1 [
-     * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE,
-     * (buf.validate.field).string.uri = true,
-     * ];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.Ignore ignore = 27 [json_name = "ignore"]; - * @return This builder for chaining. - */ - public Builder clearIgnore() { - bitField0_ = (bitField0_ & ~0x00000004); - ignore_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FloatRules, build.buf.validate.FloatRules.Builder, build.buf.validate.FloatRulesOrBuilder> floatBuilder_; - /** - *
-     * Scalar Field Types
-     * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - * @return Whether the float field is set. - */ - @java.lang.Override - public boolean hasFloat() { - return typeCase_ == 1; - } - /** - *
-     * Scalar Field Types
-     * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - * @return The float. - */ - @java.lang.Override - public build.buf.validate.FloatRules getFloat() { - if (floatBuilder_ == null) { - if (typeCase_ == 1) { - return (build.buf.validate.FloatRules) type_; - } - return build.buf.validate.FloatRules.getDefaultInstance(); - } else { - if (typeCase_ == 1) { - return floatBuilder_.getMessage(); - } - return build.buf.validate.FloatRules.getDefaultInstance(); - } - } - /** - *
-     * Scalar Field Types
-     * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - */ - public Builder setFloat(build.buf.validate.FloatRules value) { - if (floatBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - floatBuilder_.setMessage(value); - } - typeCase_ = 1; - return this; - } - /** - *
-     * Scalar Field Types
-     * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - */ - public Builder setFloat( - build.buf.validate.FloatRules.Builder builderForValue) { - if (floatBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - floatBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 1; - return this; - } - /** - *
-     * Scalar Field Types
-     * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - */ - public Builder mergeFloat(build.buf.validate.FloatRules value) { - if (floatBuilder_ == null) { - if (typeCase_ == 1 && - type_ != build.buf.validate.FloatRules.getDefaultInstance()) { - type_ = build.buf.validate.FloatRules.newBuilder((build.buf.validate.FloatRules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 1) { - floatBuilder_.mergeFrom(value); - } else { - floatBuilder_.setMessage(value); - } - } - typeCase_ = 1; - return this; - } - /** - *
-     * Scalar Field Types
-     * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - */ - public Builder clearFloat() { - if (floatBuilder_ == null) { - if (typeCase_ == 1) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 1) { - typeCase_ = 0; - type_ = null; - } - floatBuilder_.clear(); - } - return this; - } - /** - *
-     * Scalar Field Types
-     * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - */ - public build.buf.validate.FloatRules.Builder getFloatBuilder() { - return internalGetFloatFieldBuilder().getBuilder(); - } - /** - *
-     * Scalar Field Types
-     * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - */ - @java.lang.Override - public build.buf.validate.FloatRulesOrBuilder getFloatOrBuilder() { - if ((typeCase_ == 1) && (floatBuilder_ != null)) { - return floatBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 1) { - return (build.buf.validate.FloatRules) type_; - } - return build.buf.validate.FloatRules.getDefaultInstance(); - } - } - /** - *
-     * Scalar Field Types
-     * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FloatRules, build.buf.validate.FloatRules.Builder, build.buf.validate.FloatRulesOrBuilder> - internalGetFloatFieldBuilder() { - if (floatBuilder_ == null) { - if (!(typeCase_ == 1)) { - type_ = build.buf.validate.FloatRules.getDefaultInstance(); - } - floatBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FloatRules, build.buf.validate.FloatRules.Builder, build.buf.validate.FloatRulesOrBuilder>( - (build.buf.validate.FloatRules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 1; - onChanged(); - return floatBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.DoubleRules, build.buf.validate.DoubleRules.Builder, build.buf.validate.DoubleRulesOrBuilder> doubleBuilder_; - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - * @return Whether the double field is set. - */ - @java.lang.Override - public boolean hasDouble() { - return typeCase_ == 2; - } - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - * @return The double. - */ - @java.lang.Override - public build.buf.validate.DoubleRules getDouble() { - if (doubleBuilder_ == null) { - if (typeCase_ == 2) { - return (build.buf.validate.DoubleRules) type_; - } - return build.buf.validate.DoubleRules.getDefaultInstance(); - } else { - if (typeCase_ == 2) { - return doubleBuilder_.getMessage(); - } - return build.buf.validate.DoubleRules.getDefaultInstance(); - } - } - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - */ - public Builder setDouble(build.buf.validate.DoubleRules value) { - if (doubleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - doubleBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - */ - public Builder setDouble( - build.buf.validate.DoubleRules.Builder builderForValue) { - if (doubleBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - doubleBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 2; - return this; - } - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - */ - public Builder mergeDouble(build.buf.validate.DoubleRules value) { - if (doubleBuilder_ == null) { - if (typeCase_ == 2 && - type_ != build.buf.validate.DoubleRules.getDefaultInstance()) { - type_ = build.buf.validate.DoubleRules.newBuilder((build.buf.validate.DoubleRules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 2) { - doubleBuilder_.mergeFrom(value); - } else { - doubleBuilder_.setMessage(value); - } - } - typeCase_ = 2; - return this; - } - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - */ - public Builder clearDouble() { - if (doubleBuilder_ == null) { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - } - doubleBuilder_.clear(); - } - return this; - } - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - */ - public build.buf.validate.DoubleRules.Builder getDoubleBuilder() { - return internalGetDoubleFieldBuilder().getBuilder(); - } - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - */ - @java.lang.Override - public build.buf.validate.DoubleRulesOrBuilder getDoubleOrBuilder() { - if ((typeCase_ == 2) && (doubleBuilder_ != null)) { - return doubleBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 2) { - return (build.buf.validate.DoubleRules) type_; - } - return build.buf.validate.DoubleRules.getDefaultInstance(); - } - } - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.DoubleRules, build.buf.validate.DoubleRules.Builder, build.buf.validate.DoubleRulesOrBuilder> - internalGetDoubleFieldBuilder() { - if (doubleBuilder_ == null) { - if (!(typeCase_ == 2)) { - type_ = build.buf.validate.DoubleRules.getDefaultInstance(); - } - doubleBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.DoubleRules, build.buf.validate.DoubleRules.Builder, build.buf.validate.DoubleRulesOrBuilder>( - (build.buf.validate.DoubleRules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 2; - onChanged(); - return doubleBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Int32Rules, build.buf.validate.Int32Rules.Builder, build.buf.validate.Int32RulesOrBuilder> int32Builder_; - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - * @return Whether the int32 field is set. - */ - @java.lang.Override - public boolean hasInt32() { - return typeCase_ == 3; - } - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - * @return The int32. - */ - @java.lang.Override - public build.buf.validate.Int32Rules getInt32() { - if (int32Builder_ == null) { - if (typeCase_ == 3) { - return (build.buf.validate.Int32Rules) type_; - } - return build.buf.validate.Int32Rules.getDefaultInstance(); - } else { - if (typeCase_ == 3) { - return int32Builder_.getMessage(); - } - return build.buf.validate.Int32Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - */ - public Builder setInt32(build.buf.validate.Int32Rules value) { - if (int32Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - int32Builder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - */ - public Builder setInt32( - build.buf.validate.Int32Rules.Builder builderForValue) { - if (int32Builder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - int32Builder_.setMessage(builderForValue.build()); - } - typeCase_ = 3; - return this; - } - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - */ - public Builder mergeInt32(build.buf.validate.Int32Rules value) { - if (int32Builder_ == null) { - if (typeCase_ == 3 && - type_ != build.buf.validate.Int32Rules.getDefaultInstance()) { - type_ = build.buf.validate.Int32Rules.newBuilder((build.buf.validate.Int32Rules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 3) { - int32Builder_.mergeFrom(value); - } else { - int32Builder_.setMessage(value); - } - } - typeCase_ = 3; - return this; - } - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - */ - public Builder clearInt32() { - if (int32Builder_ == null) { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - } - int32Builder_.clear(); - } - return this; - } - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - */ - public build.buf.validate.Int32Rules.Builder getInt32Builder() { - return internalGetInt32FieldBuilder().getBuilder(); - } - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - */ - @java.lang.Override - public build.buf.validate.Int32RulesOrBuilder getInt32OrBuilder() { - if ((typeCase_ == 3) && (int32Builder_ != null)) { - return int32Builder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 3) { - return (build.buf.validate.Int32Rules) type_; - } - return build.buf.validate.Int32Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Int32Rules, build.buf.validate.Int32Rules.Builder, build.buf.validate.Int32RulesOrBuilder> - internalGetInt32FieldBuilder() { - if (int32Builder_ == null) { - if (!(typeCase_ == 3)) { - type_ = build.buf.validate.Int32Rules.getDefaultInstance(); - } - int32Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Int32Rules, build.buf.validate.Int32Rules.Builder, build.buf.validate.Int32RulesOrBuilder>( - (build.buf.validate.Int32Rules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 3; - onChanged(); - return int32Builder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Int64Rules, build.buf.validate.Int64Rules.Builder, build.buf.validate.Int64RulesOrBuilder> int64Builder_; - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - * @return Whether the int64 field is set. - */ - @java.lang.Override - public boolean hasInt64() { - return typeCase_ == 4; - } - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - * @return The int64. - */ - @java.lang.Override - public build.buf.validate.Int64Rules getInt64() { - if (int64Builder_ == null) { - if (typeCase_ == 4) { - return (build.buf.validate.Int64Rules) type_; - } - return build.buf.validate.Int64Rules.getDefaultInstance(); - } else { - if (typeCase_ == 4) { - return int64Builder_.getMessage(); - } - return build.buf.validate.Int64Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - */ - public Builder setInt64(build.buf.validate.Int64Rules value) { - if (int64Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - int64Builder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - */ - public Builder setInt64( - build.buf.validate.Int64Rules.Builder builderForValue) { - if (int64Builder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - int64Builder_.setMessage(builderForValue.build()); - } - typeCase_ = 4; - return this; - } - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - */ - public Builder mergeInt64(build.buf.validate.Int64Rules value) { - if (int64Builder_ == null) { - if (typeCase_ == 4 && - type_ != build.buf.validate.Int64Rules.getDefaultInstance()) { - type_ = build.buf.validate.Int64Rules.newBuilder((build.buf.validate.Int64Rules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 4) { - int64Builder_.mergeFrom(value); - } else { - int64Builder_.setMessage(value); - } - } - typeCase_ = 4; - return this; - } - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - */ - public Builder clearInt64() { - if (int64Builder_ == null) { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - } - int64Builder_.clear(); - } - return this; - } - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - */ - public build.buf.validate.Int64Rules.Builder getInt64Builder() { - return internalGetInt64FieldBuilder().getBuilder(); - } - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - */ - @java.lang.Override - public build.buf.validate.Int64RulesOrBuilder getInt64OrBuilder() { - if ((typeCase_ == 4) && (int64Builder_ != null)) { - return int64Builder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 4) { - return (build.buf.validate.Int64Rules) type_; - } - return build.buf.validate.Int64Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Int64Rules, build.buf.validate.Int64Rules.Builder, build.buf.validate.Int64RulesOrBuilder> - internalGetInt64FieldBuilder() { - if (int64Builder_ == null) { - if (!(typeCase_ == 4)) { - type_ = build.buf.validate.Int64Rules.getDefaultInstance(); - } - int64Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Int64Rules, build.buf.validate.Int64Rules.Builder, build.buf.validate.Int64RulesOrBuilder>( - (build.buf.validate.Int64Rules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 4; - onChanged(); - return int64Builder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.UInt32Rules, build.buf.validate.UInt32Rules.Builder, build.buf.validate.UInt32RulesOrBuilder> uint32Builder_; - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - * @return Whether the uint32 field is set. - */ - @java.lang.Override - public boolean hasUint32() { - return typeCase_ == 5; - } - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - * @return The uint32. - */ - @java.lang.Override - public build.buf.validate.UInt32Rules getUint32() { - if (uint32Builder_ == null) { - if (typeCase_ == 5) { - return (build.buf.validate.UInt32Rules) type_; - } - return build.buf.validate.UInt32Rules.getDefaultInstance(); - } else { - if (typeCase_ == 5) { - return uint32Builder_.getMessage(); - } - return build.buf.validate.UInt32Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - */ - public Builder setUint32(build.buf.validate.UInt32Rules value) { - if (uint32Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - uint32Builder_.setMessage(value); - } - typeCase_ = 5; - return this; - } - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - */ - public Builder setUint32( - build.buf.validate.UInt32Rules.Builder builderForValue) { - if (uint32Builder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - uint32Builder_.setMessage(builderForValue.build()); - } - typeCase_ = 5; - return this; - } - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - */ - public Builder mergeUint32(build.buf.validate.UInt32Rules value) { - if (uint32Builder_ == null) { - if (typeCase_ == 5 && - type_ != build.buf.validate.UInt32Rules.getDefaultInstance()) { - type_ = build.buf.validate.UInt32Rules.newBuilder((build.buf.validate.UInt32Rules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 5) { - uint32Builder_.mergeFrom(value); - } else { - uint32Builder_.setMessage(value); - } - } - typeCase_ = 5; - return this; - } - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - */ - public Builder clearUint32() { - if (uint32Builder_ == null) { - if (typeCase_ == 5) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 5) { - typeCase_ = 0; - type_ = null; - } - uint32Builder_.clear(); - } - return this; - } - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - */ - public build.buf.validate.UInt32Rules.Builder getUint32Builder() { - return internalGetUint32FieldBuilder().getBuilder(); - } - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - */ - @java.lang.Override - public build.buf.validate.UInt32RulesOrBuilder getUint32OrBuilder() { - if ((typeCase_ == 5) && (uint32Builder_ != null)) { - return uint32Builder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 5) { - return (build.buf.validate.UInt32Rules) type_; - } - return build.buf.validate.UInt32Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.UInt32Rules, build.buf.validate.UInt32Rules.Builder, build.buf.validate.UInt32RulesOrBuilder> - internalGetUint32FieldBuilder() { - if (uint32Builder_ == null) { - if (!(typeCase_ == 5)) { - type_ = build.buf.validate.UInt32Rules.getDefaultInstance(); - } - uint32Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.UInt32Rules, build.buf.validate.UInt32Rules.Builder, build.buf.validate.UInt32RulesOrBuilder>( - (build.buf.validate.UInt32Rules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 5; - onChanged(); - return uint32Builder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.UInt64Rules, build.buf.validate.UInt64Rules.Builder, build.buf.validate.UInt64RulesOrBuilder> uint64Builder_; - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - * @return Whether the uint64 field is set. - */ - @java.lang.Override - public boolean hasUint64() { - return typeCase_ == 6; - } - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - * @return The uint64. - */ - @java.lang.Override - public build.buf.validate.UInt64Rules getUint64() { - if (uint64Builder_ == null) { - if (typeCase_ == 6) { - return (build.buf.validate.UInt64Rules) type_; - } - return build.buf.validate.UInt64Rules.getDefaultInstance(); - } else { - if (typeCase_ == 6) { - return uint64Builder_.getMessage(); - } - return build.buf.validate.UInt64Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - */ - public Builder setUint64(build.buf.validate.UInt64Rules value) { - if (uint64Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - uint64Builder_.setMessage(value); - } - typeCase_ = 6; - return this; - } - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - */ - public Builder setUint64( - build.buf.validate.UInt64Rules.Builder builderForValue) { - if (uint64Builder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - uint64Builder_.setMessage(builderForValue.build()); - } - typeCase_ = 6; - return this; - } - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - */ - public Builder mergeUint64(build.buf.validate.UInt64Rules value) { - if (uint64Builder_ == null) { - if (typeCase_ == 6 && - type_ != build.buf.validate.UInt64Rules.getDefaultInstance()) { - type_ = build.buf.validate.UInt64Rules.newBuilder((build.buf.validate.UInt64Rules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 6) { - uint64Builder_.mergeFrom(value); - } else { - uint64Builder_.setMessage(value); - } - } - typeCase_ = 6; - return this; - } - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - */ - public Builder clearUint64() { - if (uint64Builder_ == null) { - if (typeCase_ == 6) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 6) { - typeCase_ = 0; - type_ = null; - } - uint64Builder_.clear(); - } - return this; - } - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - */ - public build.buf.validate.UInt64Rules.Builder getUint64Builder() { - return internalGetUint64FieldBuilder().getBuilder(); - } - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - */ - @java.lang.Override - public build.buf.validate.UInt64RulesOrBuilder getUint64OrBuilder() { - if ((typeCase_ == 6) && (uint64Builder_ != null)) { - return uint64Builder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 6) { - return (build.buf.validate.UInt64Rules) type_; - } - return build.buf.validate.UInt64Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.UInt64Rules, build.buf.validate.UInt64Rules.Builder, build.buf.validate.UInt64RulesOrBuilder> - internalGetUint64FieldBuilder() { - if (uint64Builder_ == null) { - if (!(typeCase_ == 6)) { - type_ = build.buf.validate.UInt64Rules.getDefaultInstance(); - } - uint64Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.UInt64Rules, build.buf.validate.UInt64Rules.Builder, build.buf.validate.UInt64RulesOrBuilder>( - (build.buf.validate.UInt64Rules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 6; - onChanged(); - return uint64Builder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SInt32Rules, build.buf.validate.SInt32Rules.Builder, build.buf.validate.SInt32RulesOrBuilder> sint32Builder_; - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - * @return Whether the sint32 field is set. - */ - @java.lang.Override - public boolean hasSint32() { - return typeCase_ == 7; - } - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - * @return The sint32. - */ - @java.lang.Override - public build.buf.validate.SInt32Rules getSint32() { - if (sint32Builder_ == null) { - if (typeCase_ == 7) { - return (build.buf.validate.SInt32Rules) type_; - } - return build.buf.validate.SInt32Rules.getDefaultInstance(); - } else { - if (typeCase_ == 7) { - return sint32Builder_.getMessage(); - } - return build.buf.validate.SInt32Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - */ - public Builder setSint32(build.buf.validate.SInt32Rules value) { - if (sint32Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - sint32Builder_.setMessage(value); - } - typeCase_ = 7; - return this; - } - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - */ - public Builder setSint32( - build.buf.validate.SInt32Rules.Builder builderForValue) { - if (sint32Builder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - sint32Builder_.setMessage(builderForValue.build()); - } - typeCase_ = 7; - return this; - } - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - */ - public Builder mergeSint32(build.buf.validate.SInt32Rules value) { - if (sint32Builder_ == null) { - if (typeCase_ == 7 && - type_ != build.buf.validate.SInt32Rules.getDefaultInstance()) { - type_ = build.buf.validate.SInt32Rules.newBuilder((build.buf.validate.SInt32Rules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 7) { - sint32Builder_.mergeFrom(value); - } else { - sint32Builder_.setMessage(value); - } - } - typeCase_ = 7; - return this; - } - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - */ - public Builder clearSint32() { - if (sint32Builder_ == null) { - if (typeCase_ == 7) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 7) { - typeCase_ = 0; - type_ = null; - } - sint32Builder_.clear(); - } - return this; - } - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - */ - public build.buf.validate.SInt32Rules.Builder getSint32Builder() { - return internalGetSint32FieldBuilder().getBuilder(); - } - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - */ - @java.lang.Override - public build.buf.validate.SInt32RulesOrBuilder getSint32OrBuilder() { - if ((typeCase_ == 7) && (sint32Builder_ != null)) { - return sint32Builder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 7) { - return (build.buf.validate.SInt32Rules) type_; - } - return build.buf.validate.SInt32Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SInt32Rules, build.buf.validate.SInt32Rules.Builder, build.buf.validate.SInt32RulesOrBuilder> - internalGetSint32FieldBuilder() { - if (sint32Builder_ == null) { - if (!(typeCase_ == 7)) { - type_ = build.buf.validate.SInt32Rules.getDefaultInstance(); - } - sint32Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SInt32Rules, build.buf.validate.SInt32Rules.Builder, build.buf.validate.SInt32RulesOrBuilder>( - (build.buf.validate.SInt32Rules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 7; - onChanged(); - return sint32Builder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SInt64Rules, build.buf.validate.SInt64Rules.Builder, build.buf.validate.SInt64RulesOrBuilder> sint64Builder_; - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - * @return Whether the sint64 field is set. - */ - @java.lang.Override - public boolean hasSint64() { - return typeCase_ == 8; - } - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - * @return The sint64. - */ - @java.lang.Override - public build.buf.validate.SInt64Rules getSint64() { - if (sint64Builder_ == null) { - if (typeCase_ == 8) { - return (build.buf.validate.SInt64Rules) type_; - } - return build.buf.validate.SInt64Rules.getDefaultInstance(); - } else { - if (typeCase_ == 8) { - return sint64Builder_.getMessage(); - } - return build.buf.validate.SInt64Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - */ - public Builder setSint64(build.buf.validate.SInt64Rules value) { - if (sint64Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - sint64Builder_.setMessage(value); - } - typeCase_ = 8; - return this; - } - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - */ - public Builder setSint64( - build.buf.validate.SInt64Rules.Builder builderForValue) { - if (sint64Builder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - sint64Builder_.setMessage(builderForValue.build()); - } - typeCase_ = 8; - return this; - } - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - */ - public Builder mergeSint64(build.buf.validate.SInt64Rules value) { - if (sint64Builder_ == null) { - if (typeCase_ == 8 && - type_ != build.buf.validate.SInt64Rules.getDefaultInstance()) { - type_ = build.buf.validate.SInt64Rules.newBuilder((build.buf.validate.SInt64Rules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 8) { - sint64Builder_.mergeFrom(value); - } else { - sint64Builder_.setMessage(value); - } - } - typeCase_ = 8; - return this; - } - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - */ - public Builder clearSint64() { - if (sint64Builder_ == null) { - if (typeCase_ == 8) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 8) { - typeCase_ = 0; - type_ = null; - } - sint64Builder_.clear(); - } - return this; - } - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - */ - public build.buf.validate.SInt64Rules.Builder getSint64Builder() { - return internalGetSint64FieldBuilder().getBuilder(); - } - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - */ - @java.lang.Override - public build.buf.validate.SInt64RulesOrBuilder getSint64OrBuilder() { - if ((typeCase_ == 8) && (sint64Builder_ != null)) { - return sint64Builder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 8) { - return (build.buf.validate.SInt64Rules) type_; - } - return build.buf.validate.SInt64Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SInt64Rules, build.buf.validate.SInt64Rules.Builder, build.buf.validate.SInt64RulesOrBuilder> - internalGetSint64FieldBuilder() { - if (sint64Builder_ == null) { - if (!(typeCase_ == 8)) { - type_ = build.buf.validate.SInt64Rules.getDefaultInstance(); - } - sint64Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SInt64Rules, build.buf.validate.SInt64Rules.Builder, build.buf.validate.SInt64RulesOrBuilder>( - (build.buf.validate.SInt64Rules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 8; - onChanged(); - return sint64Builder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Fixed32Rules, build.buf.validate.Fixed32Rules.Builder, build.buf.validate.Fixed32RulesOrBuilder> fixed32Builder_; - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - * @return Whether the fixed32 field is set. - */ - @java.lang.Override - public boolean hasFixed32() { - return typeCase_ == 9; - } - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - * @return The fixed32. - */ - @java.lang.Override - public build.buf.validate.Fixed32Rules getFixed32() { - if (fixed32Builder_ == null) { - if (typeCase_ == 9) { - return (build.buf.validate.Fixed32Rules) type_; - } - return build.buf.validate.Fixed32Rules.getDefaultInstance(); - } else { - if (typeCase_ == 9) { - return fixed32Builder_.getMessage(); - } - return build.buf.validate.Fixed32Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - */ - public Builder setFixed32(build.buf.validate.Fixed32Rules value) { - if (fixed32Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - fixed32Builder_.setMessage(value); - } - typeCase_ = 9; - return this; - } - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - */ - public Builder setFixed32( - build.buf.validate.Fixed32Rules.Builder builderForValue) { - if (fixed32Builder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - fixed32Builder_.setMessage(builderForValue.build()); - } - typeCase_ = 9; - return this; - } - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - */ - public Builder mergeFixed32(build.buf.validate.Fixed32Rules value) { - if (fixed32Builder_ == null) { - if (typeCase_ == 9 && - type_ != build.buf.validate.Fixed32Rules.getDefaultInstance()) { - type_ = build.buf.validate.Fixed32Rules.newBuilder((build.buf.validate.Fixed32Rules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 9) { - fixed32Builder_.mergeFrom(value); - } else { - fixed32Builder_.setMessage(value); - } - } - typeCase_ = 9; - return this; - } - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - */ - public Builder clearFixed32() { - if (fixed32Builder_ == null) { - if (typeCase_ == 9) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 9) { - typeCase_ = 0; - type_ = null; - } - fixed32Builder_.clear(); - } - return this; - } - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - */ - public build.buf.validate.Fixed32Rules.Builder getFixed32Builder() { - return internalGetFixed32FieldBuilder().getBuilder(); - } - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - */ - @java.lang.Override - public build.buf.validate.Fixed32RulesOrBuilder getFixed32OrBuilder() { - if ((typeCase_ == 9) && (fixed32Builder_ != null)) { - return fixed32Builder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 9) { - return (build.buf.validate.Fixed32Rules) type_; - } - return build.buf.validate.Fixed32Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Fixed32Rules, build.buf.validate.Fixed32Rules.Builder, build.buf.validate.Fixed32RulesOrBuilder> - internalGetFixed32FieldBuilder() { - if (fixed32Builder_ == null) { - if (!(typeCase_ == 9)) { - type_ = build.buf.validate.Fixed32Rules.getDefaultInstance(); - } - fixed32Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Fixed32Rules, build.buf.validate.Fixed32Rules.Builder, build.buf.validate.Fixed32RulesOrBuilder>( - (build.buf.validate.Fixed32Rules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 9; - onChanged(); - return fixed32Builder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Fixed64Rules, build.buf.validate.Fixed64Rules.Builder, build.buf.validate.Fixed64RulesOrBuilder> fixed64Builder_; - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - * @return Whether the fixed64 field is set. - */ - @java.lang.Override - public boolean hasFixed64() { - return typeCase_ == 10; - } - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - * @return The fixed64. - */ - @java.lang.Override - public build.buf.validate.Fixed64Rules getFixed64() { - if (fixed64Builder_ == null) { - if (typeCase_ == 10) { - return (build.buf.validate.Fixed64Rules) type_; - } - return build.buf.validate.Fixed64Rules.getDefaultInstance(); - } else { - if (typeCase_ == 10) { - return fixed64Builder_.getMessage(); - } - return build.buf.validate.Fixed64Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - */ - public Builder setFixed64(build.buf.validate.Fixed64Rules value) { - if (fixed64Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - fixed64Builder_.setMessage(value); - } - typeCase_ = 10; - return this; - } - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - */ - public Builder setFixed64( - build.buf.validate.Fixed64Rules.Builder builderForValue) { - if (fixed64Builder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - fixed64Builder_.setMessage(builderForValue.build()); - } - typeCase_ = 10; - return this; - } - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - */ - public Builder mergeFixed64(build.buf.validate.Fixed64Rules value) { - if (fixed64Builder_ == null) { - if (typeCase_ == 10 && - type_ != build.buf.validate.Fixed64Rules.getDefaultInstance()) { - type_ = build.buf.validate.Fixed64Rules.newBuilder((build.buf.validate.Fixed64Rules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 10) { - fixed64Builder_.mergeFrom(value); - } else { - fixed64Builder_.setMessage(value); - } - } - typeCase_ = 10; - return this; - } - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - */ - public Builder clearFixed64() { - if (fixed64Builder_ == null) { - if (typeCase_ == 10) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 10) { - typeCase_ = 0; - type_ = null; - } - fixed64Builder_.clear(); - } - return this; - } - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - */ - public build.buf.validate.Fixed64Rules.Builder getFixed64Builder() { - return internalGetFixed64FieldBuilder().getBuilder(); - } - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - */ - @java.lang.Override - public build.buf.validate.Fixed64RulesOrBuilder getFixed64OrBuilder() { - if ((typeCase_ == 10) && (fixed64Builder_ != null)) { - return fixed64Builder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 10) { - return (build.buf.validate.Fixed64Rules) type_; - } - return build.buf.validate.Fixed64Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Fixed64Rules, build.buf.validate.Fixed64Rules.Builder, build.buf.validate.Fixed64RulesOrBuilder> - internalGetFixed64FieldBuilder() { - if (fixed64Builder_ == null) { - if (!(typeCase_ == 10)) { - type_ = build.buf.validate.Fixed64Rules.getDefaultInstance(); - } - fixed64Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.Fixed64Rules, build.buf.validate.Fixed64Rules.Builder, build.buf.validate.Fixed64RulesOrBuilder>( - (build.buf.validate.Fixed64Rules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 10; - onChanged(); - return fixed64Builder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SFixed32Rules, build.buf.validate.SFixed32Rules.Builder, build.buf.validate.SFixed32RulesOrBuilder> sfixed32Builder_; - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - * @return Whether the sfixed32 field is set. - */ - @java.lang.Override - public boolean hasSfixed32() { - return typeCase_ == 11; - } - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - * @return The sfixed32. - */ - @java.lang.Override - public build.buf.validate.SFixed32Rules getSfixed32() { - if (sfixed32Builder_ == null) { - if (typeCase_ == 11) { - return (build.buf.validate.SFixed32Rules) type_; - } - return build.buf.validate.SFixed32Rules.getDefaultInstance(); - } else { - if (typeCase_ == 11) { - return sfixed32Builder_.getMessage(); - } - return build.buf.validate.SFixed32Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - */ - public Builder setSfixed32(build.buf.validate.SFixed32Rules value) { - if (sfixed32Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - sfixed32Builder_.setMessage(value); - } - typeCase_ = 11; - return this; - } - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - */ - public Builder setSfixed32( - build.buf.validate.SFixed32Rules.Builder builderForValue) { - if (sfixed32Builder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - sfixed32Builder_.setMessage(builderForValue.build()); - } - typeCase_ = 11; - return this; - } - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - */ - public Builder mergeSfixed32(build.buf.validate.SFixed32Rules value) { - if (sfixed32Builder_ == null) { - if (typeCase_ == 11 && - type_ != build.buf.validate.SFixed32Rules.getDefaultInstance()) { - type_ = build.buf.validate.SFixed32Rules.newBuilder((build.buf.validate.SFixed32Rules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 11) { - sfixed32Builder_.mergeFrom(value); - } else { - sfixed32Builder_.setMessage(value); - } - } - typeCase_ = 11; - return this; - } - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - */ - public Builder clearSfixed32() { - if (sfixed32Builder_ == null) { - if (typeCase_ == 11) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 11) { - typeCase_ = 0; - type_ = null; - } - sfixed32Builder_.clear(); - } - return this; - } - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - */ - public build.buf.validate.SFixed32Rules.Builder getSfixed32Builder() { - return internalGetSfixed32FieldBuilder().getBuilder(); - } - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - */ - @java.lang.Override - public build.buf.validate.SFixed32RulesOrBuilder getSfixed32OrBuilder() { - if ((typeCase_ == 11) && (sfixed32Builder_ != null)) { - return sfixed32Builder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 11) { - return (build.buf.validate.SFixed32Rules) type_; - } - return build.buf.validate.SFixed32Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SFixed32Rules, build.buf.validate.SFixed32Rules.Builder, build.buf.validate.SFixed32RulesOrBuilder> - internalGetSfixed32FieldBuilder() { - if (sfixed32Builder_ == null) { - if (!(typeCase_ == 11)) { - type_ = build.buf.validate.SFixed32Rules.getDefaultInstance(); - } - sfixed32Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SFixed32Rules, build.buf.validate.SFixed32Rules.Builder, build.buf.validate.SFixed32RulesOrBuilder>( - (build.buf.validate.SFixed32Rules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 11; - onChanged(); - return sfixed32Builder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SFixed64Rules, build.buf.validate.SFixed64Rules.Builder, build.buf.validate.SFixed64RulesOrBuilder> sfixed64Builder_; - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - * @return Whether the sfixed64 field is set. - */ - @java.lang.Override - public boolean hasSfixed64() { - return typeCase_ == 12; - } - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - * @return The sfixed64. - */ - @java.lang.Override - public build.buf.validate.SFixed64Rules getSfixed64() { - if (sfixed64Builder_ == null) { - if (typeCase_ == 12) { - return (build.buf.validate.SFixed64Rules) type_; - } - return build.buf.validate.SFixed64Rules.getDefaultInstance(); - } else { - if (typeCase_ == 12) { - return sfixed64Builder_.getMessage(); - } - return build.buf.validate.SFixed64Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - */ - public Builder setSfixed64(build.buf.validate.SFixed64Rules value) { - if (sfixed64Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - sfixed64Builder_.setMessage(value); - } - typeCase_ = 12; - return this; - } - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - */ - public Builder setSfixed64( - build.buf.validate.SFixed64Rules.Builder builderForValue) { - if (sfixed64Builder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - sfixed64Builder_.setMessage(builderForValue.build()); - } - typeCase_ = 12; - return this; - } - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - */ - public Builder mergeSfixed64(build.buf.validate.SFixed64Rules value) { - if (sfixed64Builder_ == null) { - if (typeCase_ == 12 && - type_ != build.buf.validate.SFixed64Rules.getDefaultInstance()) { - type_ = build.buf.validate.SFixed64Rules.newBuilder((build.buf.validate.SFixed64Rules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 12) { - sfixed64Builder_.mergeFrom(value); - } else { - sfixed64Builder_.setMessage(value); - } - } - typeCase_ = 12; - return this; - } - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - */ - public Builder clearSfixed64() { - if (sfixed64Builder_ == null) { - if (typeCase_ == 12) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 12) { - typeCase_ = 0; - type_ = null; - } - sfixed64Builder_.clear(); - } - return this; - } - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - */ - public build.buf.validate.SFixed64Rules.Builder getSfixed64Builder() { - return internalGetSfixed64FieldBuilder().getBuilder(); - } - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - */ - @java.lang.Override - public build.buf.validate.SFixed64RulesOrBuilder getSfixed64OrBuilder() { - if ((typeCase_ == 12) && (sfixed64Builder_ != null)) { - return sfixed64Builder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 12) { - return (build.buf.validate.SFixed64Rules) type_; - } - return build.buf.validate.SFixed64Rules.getDefaultInstance(); - } - } - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SFixed64Rules, build.buf.validate.SFixed64Rules.Builder, build.buf.validate.SFixed64RulesOrBuilder> - internalGetSfixed64FieldBuilder() { - if (sfixed64Builder_ == null) { - if (!(typeCase_ == 12)) { - type_ = build.buf.validate.SFixed64Rules.getDefaultInstance(); - } - sfixed64Builder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.SFixed64Rules, build.buf.validate.SFixed64Rules.Builder, build.buf.validate.SFixed64RulesOrBuilder>( - (build.buf.validate.SFixed64Rules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 12; - onChanged(); - return sfixed64Builder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.BoolRules, build.buf.validate.BoolRules.Builder, build.buf.validate.BoolRulesOrBuilder> boolBuilder_; - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - * @return Whether the bool field is set. - */ - @java.lang.Override - public boolean hasBool() { - return typeCase_ == 13; - } - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - * @return The bool. - */ - @java.lang.Override - public build.buf.validate.BoolRules getBool() { - if (boolBuilder_ == null) { - if (typeCase_ == 13) { - return (build.buf.validate.BoolRules) type_; - } - return build.buf.validate.BoolRules.getDefaultInstance(); - } else { - if (typeCase_ == 13) { - return boolBuilder_.getMessage(); - } - return build.buf.validate.BoolRules.getDefaultInstance(); - } - } - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - */ - public Builder setBool(build.buf.validate.BoolRules value) { - if (boolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - boolBuilder_.setMessage(value); - } - typeCase_ = 13; - return this; - } - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - */ - public Builder setBool( - build.buf.validate.BoolRules.Builder builderForValue) { - if (boolBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - boolBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 13; - return this; - } - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - */ - public Builder mergeBool(build.buf.validate.BoolRules value) { - if (boolBuilder_ == null) { - if (typeCase_ == 13 && - type_ != build.buf.validate.BoolRules.getDefaultInstance()) { - type_ = build.buf.validate.BoolRules.newBuilder((build.buf.validate.BoolRules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 13) { - boolBuilder_.mergeFrom(value); - } else { - boolBuilder_.setMessage(value); - } - } - typeCase_ = 13; - return this; - } - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - */ - public Builder clearBool() { - if (boolBuilder_ == null) { - if (typeCase_ == 13) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 13) { - typeCase_ = 0; - type_ = null; - } - boolBuilder_.clear(); - } - return this; - } - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - */ - public build.buf.validate.BoolRules.Builder getBoolBuilder() { - return internalGetBoolFieldBuilder().getBuilder(); - } - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - */ - @java.lang.Override - public build.buf.validate.BoolRulesOrBuilder getBoolOrBuilder() { - if ((typeCase_ == 13) && (boolBuilder_ != null)) { - return boolBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 13) { - return (build.buf.validate.BoolRules) type_; - } - return build.buf.validate.BoolRules.getDefaultInstance(); - } - } - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.BoolRules, build.buf.validate.BoolRules.Builder, build.buf.validate.BoolRulesOrBuilder> - internalGetBoolFieldBuilder() { - if (boolBuilder_ == null) { - if (!(typeCase_ == 13)) { - type_ = build.buf.validate.BoolRules.getDefaultInstance(); - } - boolBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.BoolRules, build.buf.validate.BoolRules.Builder, build.buf.validate.BoolRulesOrBuilder>( - (build.buf.validate.BoolRules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 13; - onChanged(); - return boolBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.StringRules, build.buf.validate.StringRules.Builder, build.buf.validate.StringRulesOrBuilder> stringBuilder_; - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - * @return Whether the string field is set. - */ - @java.lang.Override - public boolean hasString() { - return typeCase_ == 14; - } - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - * @return The string. - */ - @java.lang.Override - public build.buf.validate.StringRules getString() { - if (stringBuilder_ == null) { - if (typeCase_ == 14) { - return (build.buf.validate.StringRules) type_; - } - return build.buf.validate.StringRules.getDefaultInstance(); - } else { - if (typeCase_ == 14) { - return stringBuilder_.getMessage(); - } - return build.buf.validate.StringRules.getDefaultInstance(); - } - } - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - */ - public Builder setString(build.buf.validate.StringRules value) { - if (stringBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - stringBuilder_.setMessage(value); - } - typeCase_ = 14; - return this; - } - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - */ - public Builder setString( - build.buf.validate.StringRules.Builder builderForValue) { - if (stringBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - stringBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 14; - return this; - } - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - */ - public Builder mergeString(build.buf.validate.StringRules value) { - if (stringBuilder_ == null) { - if (typeCase_ == 14 && - type_ != build.buf.validate.StringRules.getDefaultInstance()) { - type_ = build.buf.validate.StringRules.newBuilder((build.buf.validate.StringRules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 14) { - stringBuilder_.mergeFrom(value); - } else { - stringBuilder_.setMessage(value); - } - } - typeCase_ = 14; - return this; - } - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - */ - public Builder clearString() { - if (stringBuilder_ == null) { - if (typeCase_ == 14) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 14) { - typeCase_ = 0; - type_ = null; - } - stringBuilder_.clear(); - } - return this; - } - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - */ - public build.buf.validate.StringRules.Builder getStringBuilder() { - return internalGetStringFieldBuilder().getBuilder(); - } - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - */ - @java.lang.Override - public build.buf.validate.StringRulesOrBuilder getStringOrBuilder() { - if ((typeCase_ == 14) && (stringBuilder_ != null)) { - return stringBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 14) { - return (build.buf.validate.StringRules) type_; - } - return build.buf.validate.StringRules.getDefaultInstance(); - } - } - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.StringRules, build.buf.validate.StringRules.Builder, build.buf.validate.StringRulesOrBuilder> - internalGetStringFieldBuilder() { - if (stringBuilder_ == null) { - if (!(typeCase_ == 14)) { - type_ = build.buf.validate.StringRules.getDefaultInstance(); - } - stringBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.StringRules, build.buf.validate.StringRules.Builder, build.buf.validate.StringRulesOrBuilder>( - (build.buf.validate.StringRules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 14; - onChanged(); - return stringBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.BytesRules, build.buf.validate.BytesRules.Builder, build.buf.validate.BytesRulesOrBuilder> bytesBuilder_; - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - * @return Whether the bytes field is set. - */ - @java.lang.Override - public boolean hasBytes() { - return typeCase_ == 15; - } - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - * @return The bytes. - */ - @java.lang.Override - public build.buf.validate.BytesRules getBytes() { - if (bytesBuilder_ == null) { - if (typeCase_ == 15) { - return (build.buf.validate.BytesRules) type_; - } - return build.buf.validate.BytesRules.getDefaultInstance(); - } else { - if (typeCase_ == 15) { - return bytesBuilder_.getMessage(); - } - return build.buf.validate.BytesRules.getDefaultInstance(); - } - } - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - */ - public Builder setBytes(build.buf.validate.BytesRules value) { - if (bytesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - bytesBuilder_.setMessage(value); - } - typeCase_ = 15; - return this; - } - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - */ - public Builder setBytes( - build.buf.validate.BytesRules.Builder builderForValue) { - if (bytesBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - bytesBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 15; - return this; - } - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - */ - public Builder mergeBytes(build.buf.validate.BytesRules value) { - if (bytesBuilder_ == null) { - if (typeCase_ == 15 && - type_ != build.buf.validate.BytesRules.getDefaultInstance()) { - type_ = build.buf.validate.BytesRules.newBuilder((build.buf.validate.BytesRules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 15) { - bytesBuilder_.mergeFrom(value); - } else { - bytesBuilder_.setMessage(value); - } - } - typeCase_ = 15; - return this; - } - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - */ - public Builder clearBytes() { - if (bytesBuilder_ == null) { - if (typeCase_ == 15) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 15) { - typeCase_ = 0; - type_ = null; - } - bytesBuilder_.clear(); - } - return this; - } - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - */ - public build.buf.validate.BytesRules.Builder getBytesBuilder() { - return internalGetBytesFieldBuilder().getBuilder(); - } - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - */ - @java.lang.Override - public build.buf.validate.BytesRulesOrBuilder getBytesOrBuilder() { - if ((typeCase_ == 15) && (bytesBuilder_ != null)) { - return bytesBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 15) { - return (build.buf.validate.BytesRules) type_; - } - return build.buf.validate.BytesRules.getDefaultInstance(); - } - } - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.BytesRules, build.buf.validate.BytesRules.Builder, build.buf.validate.BytesRulesOrBuilder> - internalGetBytesFieldBuilder() { - if (bytesBuilder_ == null) { - if (!(typeCase_ == 15)) { - type_ = build.buf.validate.BytesRules.getDefaultInstance(); - } - bytesBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.BytesRules, build.buf.validate.BytesRules.Builder, build.buf.validate.BytesRulesOrBuilder>( - (build.buf.validate.BytesRules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 15; - onChanged(); - return bytesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.EnumRules, build.buf.validate.EnumRules.Builder, build.buf.validate.EnumRulesOrBuilder> enumBuilder_; - /** - *
-     * Complex Field Types
-     * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - * @return Whether the enum field is set. - */ - @java.lang.Override - public boolean hasEnum() { - return typeCase_ == 16; - } - /** - *
-     * Complex Field Types
-     * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - * @return The enum. - */ - @java.lang.Override - public build.buf.validate.EnumRules getEnum() { - if (enumBuilder_ == null) { - if (typeCase_ == 16) { - return (build.buf.validate.EnumRules) type_; - } - return build.buf.validate.EnumRules.getDefaultInstance(); - } else { - if (typeCase_ == 16) { - return enumBuilder_.getMessage(); - } - return build.buf.validate.EnumRules.getDefaultInstance(); - } - } - /** - *
-     * Complex Field Types
-     * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - */ - public Builder setEnum(build.buf.validate.EnumRules value) { - if (enumBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - enumBuilder_.setMessage(value); - } - typeCase_ = 16; - return this; - } - /** - *
-     * Complex Field Types
-     * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - */ - public Builder setEnum( - build.buf.validate.EnumRules.Builder builderForValue) { - if (enumBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - enumBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 16; - return this; - } - /** - *
-     * Complex Field Types
-     * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - */ - public Builder mergeEnum(build.buf.validate.EnumRules value) { - if (enumBuilder_ == null) { - if (typeCase_ == 16 && - type_ != build.buf.validate.EnumRules.getDefaultInstance()) { - type_ = build.buf.validate.EnumRules.newBuilder((build.buf.validate.EnumRules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 16) { - enumBuilder_.mergeFrom(value); - } else { - enumBuilder_.setMessage(value); - } - } - typeCase_ = 16; - return this; - } - /** - *
-     * Complex Field Types
-     * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - */ - public Builder clearEnum() { - if (enumBuilder_ == null) { - if (typeCase_ == 16) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 16) { - typeCase_ = 0; - type_ = null; - } - enumBuilder_.clear(); - } - return this; - } - /** - *
-     * Complex Field Types
-     * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - */ - public build.buf.validate.EnumRules.Builder getEnumBuilder() { - return internalGetEnumFieldBuilder().getBuilder(); - } - /** - *
-     * Complex Field Types
-     * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - */ - @java.lang.Override - public build.buf.validate.EnumRulesOrBuilder getEnumOrBuilder() { - if ((typeCase_ == 16) && (enumBuilder_ != null)) { - return enumBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 16) { - return (build.buf.validate.EnumRules) type_; - } - return build.buf.validate.EnumRules.getDefaultInstance(); - } - } - /** - *
-     * Complex Field Types
-     * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.EnumRules, build.buf.validate.EnumRules.Builder, build.buf.validate.EnumRulesOrBuilder> - internalGetEnumFieldBuilder() { - if (enumBuilder_ == null) { - if (!(typeCase_ == 16)) { - type_ = build.buf.validate.EnumRules.getDefaultInstance(); - } - enumBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.EnumRules, build.buf.validate.EnumRules.Builder, build.buf.validate.EnumRulesOrBuilder>( - (build.buf.validate.EnumRules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 16; - onChanged(); - return enumBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.RepeatedRules, build.buf.validate.RepeatedRules.Builder, build.buf.validate.RepeatedRulesOrBuilder> repeatedBuilder_; - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - * @return Whether the repeated field is set. - */ - @java.lang.Override - public boolean hasRepeated() { - return typeCase_ == 18; - } - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - * @return The repeated. - */ - @java.lang.Override - public build.buf.validate.RepeatedRules getRepeated() { - if (repeatedBuilder_ == null) { - if (typeCase_ == 18) { - return (build.buf.validate.RepeatedRules) type_; - } - return build.buf.validate.RepeatedRules.getDefaultInstance(); - } else { - if (typeCase_ == 18) { - return repeatedBuilder_.getMessage(); - } - return build.buf.validate.RepeatedRules.getDefaultInstance(); - } - } - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - */ - public Builder setRepeated(build.buf.validate.RepeatedRules value) { - if (repeatedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - repeatedBuilder_.setMessage(value); - } - typeCase_ = 18; - return this; - } - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - */ - public Builder setRepeated( - build.buf.validate.RepeatedRules.Builder builderForValue) { - if (repeatedBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - repeatedBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 18; - return this; - } - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - */ - public Builder mergeRepeated(build.buf.validate.RepeatedRules value) { - if (repeatedBuilder_ == null) { - if (typeCase_ == 18 && - type_ != build.buf.validate.RepeatedRules.getDefaultInstance()) { - type_ = build.buf.validate.RepeatedRules.newBuilder((build.buf.validate.RepeatedRules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 18) { - repeatedBuilder_.mergeFrom(value); - } else { - repeatedBuilder_.setMessage(value); - } - } - typeCase_ = 18; - return this; - } - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - */ - public Builder clearRepeated() { - if (repeatedBuilder_ == null) { - if (typeCase_ == 18) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 18) { - typeCase_ = 0; - type_ = null; - } - repeatedBuilder_.clear(); - } - return this; - } - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - */ - public build.buf.validate.RepeatedRules.Builder getRepeatedBuilder() { - return internalGetRepeatedFieldBuilder().getBuilder(); - } - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - */ - @java.lang.Override - public build.buf.validate.RepeatedRulesOrBuilder getRepeatedOrBuilder() { - if ((typeCase_ == 18) && (repeatedBuilder_ != null)) { - return repeatedBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 18) { - return (build.buf.validate.RepeatedRules) type_; - } - return build.buf.validate.RepeatedRules.getDefaultInstance(); - } - } - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.RepeatedRules, build.buf.validate.RepeatedRules.Builder, build.buf.validate.RepeatedRulesOrBuilder> - internalGetRepeatedFieldBuilder() { - if (repeatedBuilder_ == null) { - if (!(typeCase_ == 18)) { - type_ = build.buf.validate.RepeatedRules.getDefaultInstance(); - } - repeatedBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.RepeatedRules, build.buf.validate.RepeatedRules.Builder, build.buf.validate.RepeatedRulesOrBuilder>( - (build.buf.validate.RepeatedRules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 18; - onChanged(); - return repeatedBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.MapRules, build.buf.validate.MapRules.Builder, build.buf.validate.MapRulesOrBuilder> mapBuilder_; - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - * @return Whether the map field is set. - */ - @java.lang.Override - public boolean hasMap() { - return typeCase_ == 19; - } - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - * @return The map. - */ - @java.lang.Override - public build.buf.validate.MapRules getMap() { - if (mapBuilder_ == null) { - if (typeCase_ == 19) { - return (build.buf.validate.MapRules) type_; - } - return build.buf.validate.MapRules.getDefaultInstance(); - } else { - if (typeCase_ == 19) { - return mapBuilder_.getMessage(); - } - return build.buf.validate.MapRules.getDefaultInstance(); - } - } - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - */ - public Builder setMap(build.buf.validate.MapRules value) { - if (mapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - mapBuilder_.setMessage(value); - } - typeCase_ = 19; - return this; - } - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - */ - public Builder setMap( - build.buf.validate.MapRules.Builder builderForValue) { - if (mapBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - mapBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 19; - return this; - } - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - */ - public Builder mergeMap(build.buf.validate.MapRules value) { - if (mapBuilder_ == null) { - if (typeCase_ == 19 && - type_ != build.buf.validate.MapRules.getDefaultInstance()) { - type_ = build.buf.validate.MapRules.newBuilder((build.buf.validate.MapRules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 19) { - mapBuilder_.mergeFrom(value); - } else { - mapBuilder_.setMessage(value); - } - } - typeCase_ = 19; - return this; - } - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - */ - public Builder clearMap() { - if (mapBuilder_ == null) { - if (typeCase_ == 19) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 19) { - typeCase_ = 0; - type_ = null; - } - mapBuilder_.clear(); - } - return this; - } - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - */ - public build.buf.validate.MapRules.Builder getMapBuilder() { - return internalGetMapFieldBuilder().getBuilder(); - } - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - */ - @java.lang.Override - public build.buf.validate.MapRulesOrBuilder getMapOrBuilder() { - if ((typeCase_ == 19) && (mapBuilder_ != null)) { - return mapBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 19) { - return (build.buf.validate.MapRules) type_; - } - return build.buf.validate.MapRules.getDefaultInstance(); - } - } - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.MapRules, build.buf.validate.MapRules.Builder, build.buf.validate.MapRulesOrBuilder> - internalGetMapFieldBuilder() { - if (mapBuilder_ == null) { - if (!(typeCase_ == 19)) { - type_ = build.buf.validate.MapRules.getDefaultInstance(); - } - mapBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.MapRules, build.buf.validate.MapRules.Builder, build.buf.validate.MapRulesOrBuilder>( - (build.buf.validate.MapRules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 19; - onChanged(); - return mapBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.AnyRules, build.buf.validate.AnyRules.Builder, build.buf.validate.AnyRulesOrBuilder> anyBuilder_; - /** - *
-     * Well-Known Field Types
-     * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - * @return Whether the any field is set. - */ - @java.lang.Override - public boolean hasAny() { - return typeCase_ == 20; - } - /** - *
-     * Well-Known Field Types
-     * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - * @return The any. - */ - @java.lang.Override - public build.buf.validate.AnyRules getAny() { - if (anyBuilder_ == null) { - if (typeCase_ == 20) { - return (build.buf.validate.AnyRules) type_; - } - return build.buf.validate.AnyRules.getDefaultInstance(); - } else { - if (typeCase_ == 20) { - return anyBuilder_.getMessage(); - } - return build.buf.validate.AnyRules.getDefaultInstance(); - } - } - /** - *
-     * Well-Known Field Types
-     * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - */ - public Builder setAny(build.buf.validate.AnyRules value) { - if (anyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - anyBuilder_.setMessage(value); - } - typeCase_ = 20; - return this; - } - /** - *
-     * Well-Known Field Types
-     * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - */ - public Builder setAny( - build.buf.validate.AnyRules.Builder builderForValue) { - if (anyBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - anyBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 20; - return this; - } - /** - *
-     * Well-Known Field Types
-     * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - */ - public Builder mergeAny(build.buf.validate.AnyRules value) { - if (anyBuilder_ == null) { - if (typeCase_ == 20 && - type_ != build.buf.validate.AnyRules.getDefaultInstance()) { - type_ = build.buf.validate.AnyRules.newBuilder((build.buf.validate.AnyRules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 20) { - anyBuilder_.mergeFrom(value); - } else { - anyBuilder_.setMessage(value); - } - } - typeCase_ = 20; - return this; - } - /** - *
-     * Well-Known Field Types
-     * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - */ - public Builder clearAny() { - if (anyBuilder_ == null) { - if (typeCase_ == 20) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 20) { - typeCase_ = 0; - type_ = null; - } - anyBuilder_.clear(); - } - return this; - } - /** - *
-     * Well-Known Field Types
-     * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - */ - public build.buf.validate.AnyRules.Builder getAnyBuilder() { - return internalGetAnyFieldBuilder().getBuilder(); - } - /** - *
-     * Well-Known Field Types
-     * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - */ - @java.lang.Override - public build.buf.validate.AnyRulesOrBuilder getAnyOrBuilder() { - if ((typeCase_ == 20) && (anyBuilder_ != null)) { - return anyBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 20) { - return (build.buf.validate.AnyRules) type_; - } - return build.buf.validate.AnyRules.getDefaultInstance(); - } - } - /** - *
-     * Well-Known Field Types
-     * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.AnyRules, build.buf.validate.AnyRules.Builder, build.buf.validate.AnyRulesOrBuilder> - internalGetAnyFieldBuilder() { - if (anyBuilder_ == null) { - if (!(typeCase_ == 20)) { - type_ = build.buf.validate.AnyRules.getDefaultInstance(); - } - anyBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.AnyRules, build.buf.validate.AnyRules.Builder, build.buf.validate.AnyRulesOrBuilder>( - (build.buf.validate.AnyRules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 20; - onChanged(); - return anyBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.DurationRules, build.buf.validate.DurationRules.Builder, build.buf.validate.DurationRulesOrBuilder> durationBuilder_; - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - * @return Whether the duration field is set. - */ - @java.lang.Override - public boolean hasDuration() { - return typeCase_ == 21; - } - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - * @return The duration. - */ - @java.lang.Override - public build.buf.validate.DurationRules getDuration() { - if (durationBuilder_ == null) { - if (typeCase_ == 21) { - return (build.buf.validate.DurationRules) type_; - } - return build.buf.validate.DurationRules.getDefaultInstance(); - } else { - if (typeCase_ == 21) { - return durationBuilder_.getMessage(); - } - return build.buf.validate.DurationRules.getDefaultInstance(); - } - } - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - */ - public Builder setDuration(build.buf.validate.DurationRules value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - typeCase_ = 21; - return this; - } - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - */ - public Builder setDuration( - build.buf.validate.DurationRules.Builder builderForValue) { - if (durationBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 21; - return this; - } - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - */ - public Builder mergeDuration(build.buf.validate.DurationRules value) { - if (durationBuilder_ == null) { - if (typeCase_ == 21 && - type_ != build.buf.validate.DurationRules.getDefaultInstance()) { - type_ = build.buf.validate.DurationRules.newBuilder((build.buf.validate.DurationRules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 21) { - durationBuilder_.mergeFrom(value); - } else { - durationBuilder_.setMessage(value); - } - } - typeCase_ = 21; - return this; - } - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - if (typeCase_ == 21) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 21) { - typeCase_ = 0; - type_ = null; - } - durationBuilder_.clear(); - } - return this; - } - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - */ - public build.buf.validate.DurationRules.Builder getDurationBuilder() { - return internalGetDurationFieldBuilder().getBuilder(); - } - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - */ - @java.lang.Override - public build.buf.validate.DurationRulesOrBuilder getDurationOrBuilder() { - if ((typeCase_ == 21) && (durationBuilder_ != null)) { - return durationBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 21) { - return (build.buf.validate.DurationRules) type_; - } - return build.buf.validate.DurationRules.getDefaultInstance(); - } - } - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.DurationRules, build.buf.validate.DurationRules.Builder, build.buf.validate.DurationRulesOrBuilder> - internalGetDurationFieldBuilder() { - if (durationBuilder_ == null) { - if (!(typeCase_ == 21)) { - type_ = build.buf.validate.DurationRules.getDefaultInstance(); - } - durationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.DurationRules, build.buf.validate.DurationRules.Builder, build.buf.validate.DurationRulesOrBuilder>( - (build.buf.validate.DurationRules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 21; - onChanged(); - return durationBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.TimestampRules, build.buf.validate.TimestampRules.Builder, build.buf.validate.TimestampRulesOrBuilder> timestampBuilder_; - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - * @return Whether the timestamp field is set. - */ - @java.lang.Override - public boolean hasTimestamp() { - return typeCase_ == 22; - } - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - * @return The timestamp. - */ - @java.lang.Override - public build.buf.validate.TimestampRules getTimestamp() { - if (timestampBuilder_ == null) { - if (typeCase_ == 22) { - return (build.buf.validate.TimestampRules) type_; - } - return build.buf.validate.TimestampRules.getDefaultInstance(); - } else { - if (typeCase_ == 22) { - return timestampBuilder_.getMessage(); - } - return build.buf.validate.TimestampRules.getDefaultInstance(); - } - } - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - */ - public Builder setTimestamp(build.buf.validate.TimestampRules value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - typeCase_ = 22; - return this; - } - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - */ - public Builder setTimestamp( - build.buf.validate.TimestampRules.Builder builderForValue) { - if (timestampBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 22; - return this; - } - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - */ - public Builder mergeTimestamp(build.buf.validate.TimestampRules value) { - if (timestampBuilder_ == null) { - if (typeCase_ == 22 && - type_ != build.buf.validate.TimestampRules.getDefaultInstance()) { - type_ = build.buf.validate.TimestampRules.newBuilder((build.buf.validate.TimestampRules) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 22) { - timestampBuilder_.mergeFrom(value); - } else { - timestampBuilder_.setMessage(value); - } - } - typeCase_ = 22; - return this; - } - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - if (typeCase_ == 22) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 22) { - typeCase_ = 0; - type_ = null; - } - timestampBuilder_.clear(); - } - return this; - } - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - */ - public build.buf.validate.TimestampRules.Builder getTimestampBuilder() { - return internalGetTimestampFieldBuilder().getBuilder(); - } - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - */ - @java.lang.Override - public build.buf.validate.TimestampRulesOrBuilder getTimestampOrBuilder() { - if ((typeCase_ == 22) && (timestampBuilder_ != null)) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 22) { - return (build.buf.validate.TimestampRules) type_; - } - return build.buf.validate.TimestampRules.getDefaultInstance(); - } - } - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.TimestampRules, build.buf.validate.TimestampRules.Builder, build.buf.validate.TimestampRulesOrBuilder> - internalGetTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - if (!(typeCase_ == 22)) { - type_ = build.buf.validate.TimestampRules.getDefaultInstance(); - } - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.TimestampRules, build.buf.validate.TimestampRules.Builder, build.buf.validate.TimestampRulesOrBuilder>( - (build.buf.validate.TimestampRules) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 22; - onChanged(); - return timestampBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.FieldConstraints) - } - - // @@protoc_insertion_point(class_scope:buf.validate.FieldConstraints) - private static final build.buf.validate.FieldConstraints DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.FieldConstraints(); - } - - public static build.buf.validate.FieldConstraints getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldConstraints 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.FieldConstraints getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/FieldConstraintsOrBuilder.java b/src/main/java/build/buf/validate/FieldConstraintsOrBuilder.java deleted file mode 100644 index 0fd455ff..00000000 --- a/src/main/java/build/buf/validate/FieldConstraintsOrBuilder.java +++ /dev/null @@ -1,567 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface FieldConstraintsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.FieldConstraints) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.field).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - java.util.List - getCelList(); - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.field).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - build.buf.validate.Constraint getCel(int index); - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.field).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - int getCelCount(); - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.field).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - java.util.List - getCelOrBuilderList(); - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.field).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 23 [json_name = "cel"]; - */ - build.buf.validate.ConstraintOrBuilder getCelOrBuilder( - int index); - - /** - *
-   * If `required` is true, the field must be populated. A populated field can be
-   * described as "serialized in the wire format," which includes:
-   *
-   * - the following "nullable" fields must be explicitly set to be considered populated:
-   * - singular message fields (whose fields may be unpopulated/default values)
-   * - member fields of a oneof (may be their default value)
-   * - proto3 optional fields (may be their default value)
-   * - proto2 scalar fields (both optional and required)
-   * - proto3 scalar fields must be non-zero to be considered populated
-   * - repeated and map fields must be non-empty to be considered populated
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be set to a non-null value.
-   * optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
-   * }
-   * ```
-   * 
- * - * optional bool required = 25 [json_name = "required"]; - * @return Whether the required field is set. - */ - boolean hasRequired(); - /** - *
-   * If `required` is true, the field must be populated. A populated field can be
-   * described as "serialized in the wire format," which includes:
-   *
-   * - the following "nullable" fields must be explicitly set to be considered populated:
-   * - singular message fields (whose fields may be unpopulated/default values)
-   * - member fields of a oneof (may be their default value)
-   * - proto3 optional fields (may be their default value)
-   * - proto2 scalar fields (both optional and required)
-   * - proto3 scalar fields must be non-zero to be considered populated
-   * - repeated and map fields must be non-empty to be considered populated
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be set to a non-null value.
-   * optional MyOtherMessage value = 1 [(buf.validate.field).required = true];
-   * }
-   * ```
-   * 
- * - * optional bool required = 25 [json_name = "required"]; - * @return The required. - */ - boolean getRequired(); - - /** - *
-   * Skip validation on the field if its value matches the specified criteria.
-   * See Ignore enum for details.
-   *
-   * ```proto
-   * message UpdateRequest {
-   * // The uri rule only applies if the field is populated and not an empty
-   * // string.
-   * optional string url = 1 [
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE,
-   * (buf.validate.field).string.uri = true,
-   * ];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.Ignore ignore = 27 [json_name = "ignore"]; - * @return Whether the ignore field is set. - */ - boolean hasIgnore(); - /** - *
-   * Skip validation on the field if its value matches the specified criteria.
-   * See Ignore enum for details.
-   *
-   * ```proto
-   * message UpdateRequest {
-   * // The uri rule only applies if the field is populated and not an empty
-   * // string.
-   * optional string url = 1 [
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE,
-   * (buf.validate.field).string.uri = true,
-   * ];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.Ignore ignore = 27 [json_name = "ignore"]; - * @return The ignore. - */ - build.buf.validate.Ignore getIgnore(); - - /** - *
-   * Scalar Field Types
-   * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - * @return Whether the float field is set. - */ - boolean hasFloat(); - /** - *
-   * Scalar Field Types
-   * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - * @return The float. - */ - build.buf.validate.FloatRules getFloat(); - /** - *
-   * Scalar Field Types
-   * 
- * - * .buf.validate.FloatRules float = 1 [json_name = "float"]; - */ - build.buf.validate.FloatRulesOrBuilder getFloatOrBuilder(); - - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - * @return Whether the double field is set. - */ - boolean hasDouble(); - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - * @return The double. - */ - build.buf.validate.DoubleRules getDouble(); - /** - * .buf.validate.DoubleRules double = 2 [json_name = "double"]; - */ - build.buf.validate.DoubleRulesOrBuilder getDoubleOrBuilder(); - - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - * @return Whether the int32 field is set. - */ - boolean hasInt32(); - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - * @return The int32. - */ - build.buf.validate.Int32Rules getInt32(); - /** - * .buf.validate.Int32Rules int32 = 3 [json_name = "int32"]; - */ - build.buf.validate.Int32RulesOrBuilder getInt32OrBuilder(); - - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - * @return Whether the int64 field is set. - */ - boolean hasInt64(); - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - * @return The int64. - */ - build.buf.validate.Int64Rules getInt64(); - /** - * .buf.validate.Int64Rules int64 = 4 [json_name = "int64"]; - */ - build.buf.validate.Int64RulesOrBuilder getInt64OrBuilder(); - - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - * @return Whether the uint32 field is set. - */ - boolean hasUint32(); - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - * @return The uint32. - */ - build.buf.validate.UInt32Rules getUint32(); - /** - * .buf.validate.UInt32Rules uint32 = 5 [json_name = "uint32"]; - */ - build.buf.validate.UInt32RulesOrBuilder getUint32OrBuilder(); - - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - * @return Whether the uint64 field is set. - */ - boolean hasUint64(); - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - * @return The uint64. - */ - build.buf.validate.UInt64Rules getUint64(); - /** - * .buf.validate.UInt64Rules uint64 = 6 [json_name = "uint64"]; - */ - build.buf.validate.UInt64RulesOrBuilder getUint64OrBuilder(); - - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - * @return Whether the sint32 field is set. - */ - boolean hasSint32(); - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - * @return The sint32. - */ - build.buf.validate.SInt32Rules getSint32(); - /** - * .buf.validate.SInt32Rules sint32 = 7 [json_name = "sint32"]; - */ - build.buf.validate.SInt32RulesOrBuilder getSint32OrBuilder(); - - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - * @return Whether the sint64 field is set. - */ - boolean hasSint64(); - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - * @return The sint64. - */ - build.buf.validate.SInt64Rules getSint64(); - /** - * .buf.validate.SInt64Rules sint64 = 8 [json_name = "sint64"]; - */ - build.buf.validate.SInt64RulesOrBuilder getSint64OrBuilder(); - - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - * @return Whether the fixed32 field is set. - */ - boolean hasFixed32(); - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - * @return The fixed32. - */ - build.buf.validate.Fixed32Rules getFixed32(); - /** - * .buf.validate.Fixed32Rules fixed32 = 9 [json_name = "fixed32"]; - */ - build.buf.validate.Fixed32RulesOrBuilder getFixed32OrBuilder(); - - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - * @return Whether the fixed64 field is set. - */ - boolean hasFixed64(); - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - * @return The fixed64. - */ - build.buf.validate.Fixed64Rules getFixed64(); - /** - * .buf.validate.Fixed64Rules fixed64 = 10 [json_name = "fixed64"]; - */ - build.buf.validate.Fixed64RulesOrBuilder getFixed64OrBuilder(); - - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - * @return Whether the sfixed32 field is set. - */ - boolean hasSfixed32(); - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - * @return The sfixed32. - */ - build.buf.validate.SFixed32Rules getSfixed32(); - /** - * .buf.validate.SFixed32Rules sfixed32 = 11 [json_name = "sfixed32"]; - */ - build.buf.validate.SFixed32RulesOrBuilder getSfixed32OrBuilder(); - - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - * @return Whether the sfixed64 field is set. - */ - boolean hasSfixed64(); - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - * @return The sfixed64. - */ - build.buf.validate.SFixed64Rules getSfixed64(); - /** - * .buf.validate.SFixed64Rules sfixed64 = 12 [json_name = "sfixed64"]; - */ - build.buf.validate.SFixed64RulesOrBuilder getSfixed64OrBuilder(); - - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - * @return Whether the bool field is set. - */ - boolean hasBool(); - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - * @return The bool. - */ - build.buf.validate.BoolRules getBool(); - /** - * .buf.validate.BoolRules bool = 13 [json_name = "bool"]; - */ - build.buf.validate.BoolRulesOrBuilder getBoolOrBuilder(); - - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - * @return Whether the string field is set. - */ - boolean hasString(); - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - * @return The string. - */ - build.buf.validate.StringRules getString(); - /** - * .buf.validate.StringRules string = 14 [json_name = "string"]; - */ - build.buf.validate.StringRulesOrBuilder getStringOrBuilder(); - - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - * @return Whether the bytes field is set. - */ - boolean hasBytes(); - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - * @return The bytes. - */ - build.buf.validate.BytesRules getBytes(); - /** - * .buf.validate.BytesRules bytes = 15 [json_name = "bytes"]; - */ - build.buf.validate.BytesRulesOrBuilder getBytesOrBuilder(); - - /** - *
-   * Complex Field Types
-   * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - * @return Whether the enum field is set. - */ - boolean hasEnum(); - /** - *
-   * Complex Field Types
-   * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - * @return The enum. - */ - build.buf.validate.EnumRules getEnum(); - /** - *
-   * Complex Field Types
-   * 
- * - * .buf.validate.EnumRules enum = 16 [json_name = "enum"]; - */ - build.buf.validate.EnumRulesOrBuilder getEnumOrBuilder(); - - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - * @return Whether the repeated field is set. - */ - boolean hasRepeated(); - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - * @return The repeated. - */ - build.buf.validate.RepeatedRules getRepeated(); - /** - * .buf.validate.RepeatedRules repeated = 18 [json_name = "repeated"]; - */ - build.buf.validate.RepeatedRulesOrBuilder getRepeatedOrBuilder(); - - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - * @return Whether the map field is set. - */ - boolean hasMap(); - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - * @return The map. - */ - build.buf.validate.MapRules getMap(); - /** - * .buf.validate.MapRules map = 19 [json_name = "map"]; - */ - build.buf.validate.MapRulesOrBuilder getMapOrBuilder(); - - /** - *
-   * Well-Known Field Types
-   * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - * @return Whether the any field is set. - */ - boolean hasAny(); - /** - *
-   * Well-Known Field Types
-   * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - * @return The any. - */ - build.buf.validate.AnyRules getAny(); - /** - *
-   * Well-Known Field Types
-   * 
- * - * .buf.validate.AnyRules any = 20 [json_name = "any"]; - */ - build.buf.validate.AnyRulesOrBuilder getAnyOrBuilder(); - - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - * @return Whether the duration field is set. - */ - boolean hasDuration(); - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - * @return The duration. - */ - build.buf.validate.DurationRules getDuration(); - /** - * .buf.validate.DurationRules duration = 21 [json_name = "duration"]; - */ - build.buf.validate.DurationRulesOrBuilder getDurationOrBuilder(); - - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - * @return Whether the timestamp field is set. - */ - boolean hasTimestamp(); - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - * @return The timestamp. - */ - build.buf.validate.TimestampRules getTimestamp(); - /** - * .buf.validate.TimestampRules timestamp = 22 [json_name = "timestamp"]; - */ - build.buf.validate.TimestampRulesOrBuilder getTimestampOrBuilder(); - - build.buf.validate.FieldConstraints.TypeCase getTypeCase(); -} diff --git a/src/main/java/build/buf/validate/FieldPath.java b/src/main/java/build/buf/validate/FieldPath.java deleted file mode 100644 index 06958500..00000000 --- a/src/main/java/build/buf/validate/FieldPath.java +++ /dev/null @@ -1,825 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * `FieldPath` provides a path to a nested protobuf field.
- *
- * This message provides enough information to render a dotted field path even without protobuf descriptors.
- * It also provides enough information to resolve a nested field through unknown wire data.
- * 
- * - * Protobuf type {@code buf.validate.FieldPath} - */ -public final class FieldPath extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.FieldPath) - FieldPathOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldPath.class.getName()); - } - // Use FieldPath.newBuilder() to construct. - private FieldPath(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldPath() { - elements_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldPath_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldPath_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.FieldPath.class, build.buf.validate.FieldPath.Builder.class); - } - - public static final int ELEMENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List elements_; - /** - *
-   * `elements` contains each element of the path, starting from the root and recursing downward.
-   * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - @java.lang.Override - public java.util.List getElementsList() { - return elements_; - } - /** - *
-   * `elements` contains each element of the path, starting from the root and recursing downward.
-   * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - @java.lang.Override - public java.util.List - getElementsOrBuilderList() { - return elements_; - } - /** - *
-   * `elements` contains each element of the path, starting from the root and recursing downward.
-   * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - @java.lang.Override - public int getElementsCount() { - return elements_.size(); - } - /** - *
-   * `elements` contains each element of the path, starting from the root and recursing downward.
-   * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - @java.lang.Override - public build.buf.validate.FieldPathElement getElements(int index) { - return elements_.get(index); - } - /** - *
-   * `elements` contains each element of the path, starting from the root and recursing downward.
-   * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - @java.lang.Override - public build.buf.validate.FieldPathElementOrBuilder getElementsOrBuilder( - int index) { - return elements_.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 < elements_.size(); i++) { - output.writeMessage(1, elements_.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 < elements_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, elements_.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.FieldPath)) { - return super.equals(obj); - } - build.buf.validate.FieldPath other = (build.buf.validate.FieldPath) obj; - - if (!getElementsList() - .equals(other.getElementsList())) 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 (getElementsCount() > 0) { - hash = (37 * hash) + ELEMENTS_FIELD_NUMBER; - hash = (53 * hash) + getElementsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.FieldPath parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FieldPath 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.FieldPath parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FieldPath 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.FieldPath parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FieldPath parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.FieldPath parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.FieldPath 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.FieldPath parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.FieldPath 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.FieldPath parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.FieldPath 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.FieldPath 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; - } - /** - *
-   * `FieldPath` provides a path to a nested protobuf field.
-   *
-   * This message provides enough information to render a dotted field path even without protobuf descriptors.
-   * It also provides enough information to resolve a nested field through unknown wire data.
-   * 
- * - * Protobuf type {@code buf.validate.FieldPath} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.FieldPath) - build.buf.validate.FieldPathOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldPath_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldPath_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.FieldPath.class, build.buf.validate.FieldPath.Builder.class); - } - - // Construct using build.buf.validate.FieldPath.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (elementsBuilder_ == null) { - elements_ = java.util.Collections.emptyList(); - } else { - elements_ = null; - elementsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldPath_descriptor; - } - - @java.lang.Override - public build.buf.validate.FieldPath getDefaultInstanceForType() { - return build.buf.validate.FieldPath.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.FieldPath build() { - build.buf.validate.FieldPath result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.FieldPath buildPartial() { - build.buf.validate.FieldPath result = new build.buf.validate.FieldPath(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.FieldPath result) { - if (elementsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - elements_ = java.util.Collections.unmodifiableList(elements_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.elements_ = elements_; - } else { - result.elements_ = elementsBuilder_.build(); - } - } - - private void buildPartial0(build.buf.validate.FieldPath result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.FieldPath) { - return mergeFrom((build.buf.validate.FieldPath)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.FieldPath other) { - if (other == build.buf.validate.FieldPath.getDefaultInstance()) return this; - if (elementsBuilder_ == null) { - if (!other.elements_.isEmpty()) { - if (elements_.isEmpty()) { - elements_ = other.elements_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureElementsIsMutable(); - elements_.addAll(other.elements_); - } - onChanged(); - } - } else { - if (!other.elements_.isEmpty()) { - if (elementsBuilder_.isEmpty()) { - elementsBuilder_.dispose(); - elementsBuilder_ = null; - elements_ = other.elements_; - bitField0_ = (bitField0_ & ~0x00000001); - elementsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetElementsFieldBuilder() : null; - } else { - elementsBuilder_.addAllMessages(other.elements_); - } - } - } - 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: { - build.buf.validate.FieldPathElement m = - input.readMessage( - build.buf.validate.FieldPathElement.parser(), - extensionRegistry); - if (elementsBuilder_ == null) { - ensureElementsIsMutable(); - elements_.add(m); - } else { - elementsBuilder_.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 elements_ = - java.util.Collections.emptyList(); - private void ensureElementsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - elements_ = new java.util.ArrayList(elements_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.FieldPathElement, build.buf.validate.FieldPathElement.Builder, build.buf.validate.FieldPathElementOrBuilder> elementsBuilder_; - - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public java.util.List getElementsList() { - if (elementsBuilder_ == null) { - return java.util.Collections.unmodifiableList(elements_); - } else { - return elementsBuilder_.getMessageList(); - } - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public int getElementsCount() { - if (elementsBuilder_ == null) { - return elements_.size(); - } else { - return elementsBuilder_.getCount(); - } - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public build.buf.validate.FieldPathElement getElements(int index) { - if (elementsBuilder_ == null) { - return elements_.get(index); - } else { - return elementsBuilder_.getMessage(index); - } - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public Builder setElements( - int index, build.buf.validate.FieldPathElement value) { - if (elementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureElementsIsMutable(); - elements_.set(index, value); - onChanged(); - } else { - elementsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public Builder setElements( - int index, build.buf.validate.FieldPathElement.Builder builderForValue) { - if (elementsBuilder_ == null) { - ensureElementsIsMutable(); - elements_.set(index, builderForValue.build()); - onChanged(); - } else { - elementsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public Builder addElements(build.buf.validate.FieldPathElement value) { - if (elementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureElementsIsMutable(); - elements_.add(value); - onChanged(); - } else { - elementsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public Builder addElements( - int index, build.buf.validate.FieldPathElement value) { - if (elementsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureElementsIsMutable(); - elements_.add(index, value); - onChanged(); - } else { - elementsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public Builder addElements( - build.buf.validate.FieldPathElement.Builder builderForValue) { - if (elementsBuilder_ == null) { - ensureElementsIsMutable(); - elements_.add(builderForValue.build()); - onChanged(); - } else { - elementsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public Builder addElements( - int index, build.buf.validate.FieldPathElement.Builder builderForValue) { - if (elementsBuilder_ == null) { - ensureElementsIsMutable(); - elements_.add(index, builderForValue.build()); - onChanged(); - } else { - elementsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public Builder addAllElements( - java.lang.Iterable values) { - if (elementsBuilder_ == null) { - ensureElementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, elements_); - onChanged(); - } else { - elementsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public Builder clearElements() { - if (elementsBuilder_ == null) { - elements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - elementsBuilder_.clear(); - } - return this; - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public Builder removeElements(int index) { - if (elementsBuilder_ == null) { - ensureElementsIsMutable(); - elements_.remove(index); - onChanged(); - } else { - elementsBuilder_.remove(index); - } - return this; - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public build.buf.validate.FieldPathElement.Builder getElementsBuilder( - int index) { - return internalGetElementsFieldBuilder().getBuilder(index); - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public build.buf.validate.FieldPathElementOrBuilder getElementsOrBuilder( - int index) { - if (elementsBuilder_ == null) { - return elements_.get(index); } else { - return elementsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public java.util.List - getElementsOrBuilderList() { - if (elementsBuilder_ != null) { - return elementsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(elements_); - } - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public build.buf.validate.FieldPathElement.Builder addElementsBuilder() { - return internalGetElementsFieldBuilder().addBuilder( - build.buf.validate.FieldPathElement.getDefaultInstance()); - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public build.buf.validate.FieldPathElement.Builder addElementsBuilder( - int index) { - return internalGetElementsFieldBuilder().addBuilder( - index, build.buf.validate.FieldPathElement.getDefaultInstance()); - } - /** - *
-     * `elements` contains each element of the path, starting from the root and recursing downward.
-     * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - public java.util.List - getElementsBuilderList() { - return internalGetElementsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.FieldPathElement, build.buf.validate.FieldPathElement.Builder, build.buf.validate.FieldPathElementOrBuilder> - internalGetElementsFieldBuilder() { - if (elementsBuilder_ == null) { - elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.FieldPathElement, build.buf.validate.FieldPathElement.Builder, build.buf.validate.FieldPathElementOrBuilder>( - elements_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - elements_ = null; - } - return elementsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.FieldPath) - } - - // @@protoc_insertion_point(class_scope:buf.validate.FieldPath) - private static final build.buf.validate.FieldPath DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.FieldPath(); - } - - public static build.buf.validate.FieldPath getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldPath 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.FieldPath getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/FieldPathElement.java b/src/main/java/build/buf/validate/FieldPathElement.java deleted file mode 100644 index cc9ef41e..00000000 --- a/src/main/java/build/buf/validate/FieldPathElement.java +++ /dev/null @@ -1,1882 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * `FieldPathElement` provides enough information to nest through a single protobuf field.
- *
- * If the selected field is a map or repeated field, the `subscript` value selects a specific element from it.
- * A path that refers to a value nested under a map key or repeated field index will have a `subscript` value.
- * The `field_type` field allows unambiguous resolution of a field even if descriptors are not available.
- * 
- * - * Protobuf type {@code buf.validate.FieldPathElement} - */ -public final class FieldPathElement extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.FieldPathElement) - FieldPathElementOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FieldPathElement.class.getName()); - } - // Use FieldPathElement.newBuilder() to construct. - private FieldPathElement(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FieldPathElement() { - fieldName_ = ""; - fieldType_ = 1; - keyType_ = 1; - valueType_ = 1; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldPathElement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldPathElement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.FieldPathElement.class, build.buf.validate.FieldPathElement.Builder.class); - } - - private int bitField0_; - private int subscriptCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object subscript_; - public enum SubscriptCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INDEX(6), - BOOL_KEY(7), - INT_KEY(8), - UINT_KEY(9), - STRING_KEY(10), - SUBSCRIPT_NOT_SET(0); - private final int value; - private SubscriptCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SubscriptCase valueOf(int value) { - return forNumber(value); - } - - public static SubscriptCase forNumber(int value) { - switch (value) { - case 6: return INDEX; - case 7: return BOOL_KEY; - case 8: return INT_KEY; - case 9: return UINT_KEY; - case 10: return STRING_KEY; - case 0: return SUBSCRIPT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SubscriptCase - getSubscriptCase() { - return SubscriptCase.forNumber( - subscriptCase_); - } - - public static final int FIELD_NUMBER_FIELD_NUMBER = 1; - private int fieldNumber_ = 0; - /** - *
-   * `field_number` is the field number this path element refers to.
-   * 
- * - * optional int32 field_number = 1 [json_name = "fieldNumber"]; - * @return Whether the fieldNumber field is set. - */ - @java.lang.Override - public boolean hasFieldNumber() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `field_number` is the field number this path element refers to.
-   * 
- * - * optional int32 field_number = 1 [json_name = "fieldNumber"]; - * @return The fieldNumber. - */ - @java.lang.Override - public int getFieldNumber() { - return fieldNumber_; - } - - public static final int FIELD_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object fieldName_ = ""; - /** - *
-   * `field_name` contains the field name this path element refers to.
-   * This can be used to display a human-readable path even if the field number is unknown.
-   * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @return Whether the fieldName field is set. - */ - @java.lang.Override - public boolean hasFieldName() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * `field_name` contains the field name this path element refers to.
-   * This can be used to display a human-readable path even if the field number is unknown.
-   * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @return The fieldName. - */ - @java.lang.Override - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - fieldName_ = s; - } - return s; - } - } - /** - *
-   * `field_name` contains the field name this path element refers to.
-   * This can be used to display a human-readable path even if the field number is unknown.
-   * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @return The bytes for fieldName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELD_TYPE_FIELD_NUMBER = 3; - private int fieldType_ = 1; - /** - *
-   * `field_type` specifies the type of this field. When using reflection, this value is not needed.
-   *
-   * This value is provided to make it possible to traverse unknown fields through wire data.
-   * When traversing wire data, be mindful of both packed[1] and delimited[2] encoding schemes.
-   *
-   * [1]: https://protobuf.dev/programming-guides/encoding/#packed
-   * [2]: https://protobuf.dev/programming-guides/encoding/#groups
-   *
-   * N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and
-   * can be explicitly used in Protocol Buffers 2023 Edition.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type field_type = 3 [json_name = "fieldType"]; - * @return Whether the fieldType field is set. - */ - @java.lang.Override public boolean hasFieldType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-   * `field_type` specifies the type of this field. When using reflection, this value is not needed.
-   *
-   * This value is provided to make it possible to traverse unknown fields through wire data.
-   * When traversing wire data, be mindful of both packed[1] and delimited[2] encoding schemes.
-   *
-   * [1]: https://protobuf.dev/programming-guides/encoding/#packed
-   * [2]: https://protobuf.dev/programming-guides/encoding/#groups
-   *
-   * N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and
-   * can be explicitly used in Protocol Buffers 2023 Edition.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type field_type = 3 [json_name = "fieldType"]; - * @return The fieldType. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getFieldType() { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(fieldType_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; - } - - public static final int KEY_TYPE_FIELD_NUMBER = 4; - private int keyType_ = 1; - /** - *
-   * `key_type` specifies the map key type of this field. This value is useful when traversing
-   * unknown fields through wire data: specifically, it allows handling the differences between
-   * different integer encodings.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type key_type = 4 [json_name = "keyType"]; - * @return Whether the keyType field is set. - */ - @java.lang.Override public boolean hasKeyType() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-   * `key_type` specifies the map key type of this field. This value is useful when traversing
-   * unknown fields through wire data: specifically, it allows handling the differences between
-   * different integer encodings.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type key_type = 4 [json_name = "keyType"]; - * @return The keyType. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getKeyType() { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(keyType_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; - } - - public static final int VALUE_TYPE_FIELD_NUMBER = 5; - private int valueType_ = 1; - /** - *
-   * `value_type` specifies map value type of this field. This is useful if you want to display a
-   * value inside unknown fields through wire data.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type value_type = 5 [json_name = "valueType"]; - * @return Whether the valueType field is set. - */ - @java.lang.Override public boolean hasValueType() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-   * `value_type` specifies map value type of this field. This is useful if you want to display a
-   * value inside unknown fields through wire data.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type value_type = 5 [json_name = "valueType"]; - * @return The valueType. - */ - @java.lang.Override public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getValueType() { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(valueType_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; - } - - public static final int INDEX_FIELD_NUMBER = 6; - /** - *
-   * `index` specifies a 0-based index into a repeated field.
-   * 
- * - * uint64 index = 6 [json_name = "index"]; - * @return Whether the index field is set. - */ - @java.lang.Override - public boolean hasIndex() { - return subscriptCase_ == 6; - } - /** - *
-   * `index` specifies a 0-based index into a repeated field.
-   * 
- * - * uint64 index = 6 [json_name = "index"]; - * @return The index. - */ - @java.lang.Override - public long getIndex() { - if (subscriptCase_ == 6) { - return (java.lang.Long) subscript_; - } - return 0L; - } - - public static final int BOOL_KEY_FIELD_NUMBER = 7; - /** - *
-   * `bool_key` specifies a map key of type bool.
-   * 
- * - * bool bool_key = 7 [json_name = "boolKey"]; - * @return Whether the boolKey field is set. - */ - @java.lang.Override - public boolean hasBoolKey() { - return subscriptCase_ == 7; - } - /** - *
-   * `bool_key` specifies a map key of type bool.
-   * 
- * - * bool bool_key = 7 [json_name = "boolKey"]; - * @return The boolKey. - */ - @java.lang.Override - public boolean getBoolKey() { - if (subscriptCase_ == 7) { - return (java.lang.Boolean) subscript_; - } - return false; - } - - public static final int INT_KEY_FIELD_NUMBER = 8; - /** - *
-   * `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.
-   * 
- * - * int64 int_key = 8 [json_name = "intKey"]; - * @return Whether the intKey field is set. - */ - @java.lang.Override - public boolean hasIntKey() { - return subscriptCase_ == 8; - } - /** - *
-   * `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.
-   * 
- * - * int64 int_key = 8 [json_name = "intKey"]; - * @return The intKey. - */ - @java.lang.Override - public long getIntKey() { - if (subscriptCase_ == 8) { - return (java.lang.Long) subscript_; - } - return 0L; - } - - public static final int UINT_KEY_FIELD_NUMBER = 9; - /** - *
-   * `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.
-   * 
- * - * uint64 uint_key = 9 [json_name = "uintKey"]; - * @return Whether the uintKey field is set. - */ - @java.lang.Override - public boolean hasUintKey() { - return subscriptCase_ == 9; - } - /** - *
-   * `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.
-   * 
- * - * uint64 uint_key = 9 [json_name = "uintKey"]; - * @return The uintKey. - */ - @java.lang.Override - public long getUintKey() { - if (subscriptCase_ == 9) { - return (java.lang.Long) subscript_; - } - return 0L; - } - - public static final int STRING_KEY_FIELD_NUMBER = 10; - /** - *
-   * `string_key` specifies a map key of type string.
-   * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @return Whether the stringKey field is set. - */ - public boolean hasStringKey() { - return subscriptCase_ == 10; - } - /** - *
-   * `string_key` specifies a map key of type string.
-   * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @return The stringKey. - */ - public java.lang.String getStringKey() { - java.lang.Object ref = ""; - if (subscriptCase_ == 10) { - ref = subscript_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8() && (subscriptCase_ == 10)) { - subscript_ = s; - } - return s; - } - } - /** - *
-   * `string_key` specifies a map key of type string.
-   * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @return The bytes for stringKey. - */ - public com.google.protobuf.ByteString - getStringKeyBytes() { - java.lang.Object ref = ""; - if (subscriptCase_ == 10) { - ref = subscript_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (subscriptCase_ == 10) { - subscript_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, fieldNumber_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, fieldName_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, fieldType_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeEnum(4, keyType_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeEnum(5, valueType_); - } - if (subscriptCase_ == 6) { - output.writeUInt64( - 6, (long)((java.lang.Long) subscript_)); - } - if (subscriptCase_ == 7) { - output.writeBool( - 7, (boolean)((java.lang.Boolean) subscript_)); - } - if (subscriptCase_ == 8) { - output.writeInt64( - 8, (long)((java.lang.Long) subscript_)); - } - if (subscriptCase_ == 9) { - output.writeUInt64( - 9, (long)((java.lang.Long) subscript_)); - } - if (subscriptCase_ == 10) { - com.google.protobuf.GeneratedMessage.writeString(output, 10, subscript_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, fieldNumber_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, fieldName_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, fieldType_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, keyType_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, valueType_); - } - if (subscriptCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size( - 6, (long)((java.lang.Long) subscript_)); - } - if (subscriptCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 7, (boolean)((java.lang.Boolean) subscript_)); - } - if (subscriptCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 8, (long)((java.lang.Long) subscript_)); - } - if (subscriptCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size( - 9, (long)((java.lang.Long) subscript_)); - } - if (subscriptCase_ == 10) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(10, subscript_); - } - 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.FieldPathElement)) { - return super.equals(obj); - } - build.buf.validate.FieldPathElement other = (build.buf.validate.FieldPathElement) obj; - - if (hasFieldNumber() != other.hasFieldNumber()) return false; - if (hasFieldNumber()) { - if (getFieldNumber() - != other.getFieldNumber()) return false; - } - if (hasFieldName() != other.hasFieldName()) return false; - if (hasFieldName()) { - if (!getFieldName() - .equals(other.getFieldName())) return false; - } - if (hasFieldType() != other.hasFieldType()) return false; - if (hasFieldType()) { - if (fieldType_ != other.fieldType_) return false; - } - if (hasKeyType() != other.hasKeyType()) return false; - if (hasKeyType()) { - if (keyType_ != other.keyType_) return false; - } - if (hasValueType() != other.hasValueType()) return false; - if (hasValueType()) { - if (valueType_ != other.valueType_) return false; - } - if (!getSubscriptCase().equals(other.getSubscriptCase())) return false; - switch (subscriptCase_) { - case 6: - if (getIndex() - != other.getIndex()) return false; - break; - case 7: - if (getBoolKey() - != other.getBoolKey()) return false; - break; - case 8: - if (getIntKey() - != other.getIntKey()) return false; - break; - case 9: - if (getUintKey() - != other.getUintKey()) return false; - break; - case 10: - if (!getStringKey() - .equals(other.getStringKey())) return false; - break; - case 0: - default: - } - 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 (hasFieldNumber()) { - hash = (37 * hash) + FIELD_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getFieldNumber(); - } - if (hasFieldName()) { - hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - } - if (hasFieldType()) { - hash = (37 * hash) + FIELD_TYPE_FIELD_NUMBER; - hash = (53 * hash) + fieldType_; - } - if (hasKeyType()) { - hash = (37 * hash) + KEY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + keyType_; - } - if (hasValueType()) { - hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + valueType_; - } - switch (subscriptCase_) { - case 6: - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - break; - case 7: - hash = (37 * hash) + BOOL_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolKey()); - break; - case 8: - hash = (37 * hash) + INT_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIntKey()); - break; - case 9: - hash = (37 * hash) + UINT_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUintKey()); - break; - case 10: - hash = (37 * hash) + STRING_KEY_FIELD_NUMBER; - hash = (53 * hash) + getStringKey().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.FieldPathElement parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FieldPathElement 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.FieldPathElement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FieldPathElement 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.FieldPathElement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FieldPathElement parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.FieldPathElement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.FieldPathElement 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.FieldPathElement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.FieldPathElement 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.FieldPathElement parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.FieldPathElement 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.FieldPathElement 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; - } - /** - *
-   * `FieldPathElement` provides enough information to nest through a single protobuf field.
-   *
-   * If the selected field is a map or repeated field, the `subscript` value selects a specific element from it.
-   * A path that refers to a value nested under a map key or repeated field index will have a `subscript` value.
-   * The `field_type` field allows unambiguous resolution of a field even if descriptors are not available.
-   * 
- * - * Protobuf type {@code buf.validate.FieldPathElement} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.FieldPathElement) - build.buf.validate.FieldPathElementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldPathElement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldPathElement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.FieldPathElement.class, build.buf.validate.FieldPathElement.Builder.class); - } - - // Construct using build.buf.validate.FieldPathElement.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fieldNumber_ = 0; - fieldName_ = ""; - fieldType_ = 1; - keyType_ = 1; - valueType_ = 1; - subscriptCase_ = 0; - subscript_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FieldPathElement_descriptor; - } - - @java.lang.Override - public build.buf.validate.FieldPathElement getDefaultInstanceForType() { - return build.buf.validate.FieldPathElement.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.FieldPathElement build() { - build.buf.validate.FieldPathElement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.FieldPathElement buildPartial() { - build.buf.validate.FieldPathElement result = new build.buf.validate.FieldPathElement(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.FieldPathElement result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.fieldNumber_ = fieldNumber_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.fieldName_ = fieldName_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.fieldType_ = fieldType_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.keyType_ = keyType_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.valueType_ = valueType_; - to_bitField0_ |= 0x00000010; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.FieldPathElement result) { - result.subscriptCase_ = subscriptCase_; - result.subscript_ = this.subscript_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.FieldPathElement) { - return mergeFrom((build.buf.validate.FieldPathElement)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.FieldPathElement other) { - if (other == build.buf.validate.FieldPathElement.getDefaultInstance()) return this; - if (other.hasFieldNumber()) { - setFieldNumber(other.getFieldNumber()); - } - if (other.hasFieldName()) { - fieldName_ = other.fieldName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasFieldType()) { - setFieldType(other.getFieldType()); - } - if (other.hasKeyType()) { - setKeyType(other.getKeyType()); - } - if (other.hasValueType()) { - setValueType(other.getValueType()); - } - switch (other.getSubscriptCase()) { - case INDEX: { - setIndex(other.getIndex()); - break; - } - case BOOL_KEY: { - setBoolKey(other.getBoolKey()); - break; - } - case INT_KEY: { - setIntKey(other.getIntKey()); - break; - } - case UINT_KEY: { - setUintKey(other.getUintKey()); - break; - } - case STRING_KEY: { - subscriptCase_ = 10; - subscript_ = other.subscript_; - onChanged(); - break; - } - case SUBSCRIPT_NOT_SET: { - break; - } - } - 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 8: { - fieldNumber_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - fieldName_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type tmpValue = - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(3, tmpRaw); - } else { - fieldType_ = tmpRaw; - bitField0_ |= 0x00000004; - } - break; - } // case 24 - case 32: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type tmpValue = - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(4, tmpRaw); - } else { - keyType_ = tmpRaw; - bitField0_ |= 0x00000008; - } - break; - } // case 32 - case 40: { - int tmpRaw = input.readEnum(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type tmpValue = - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(5, tmpRaw); - } else { - valueType_ = tmpRaw; - bitField0_ |= 0x00000010; - } - break; - } // case 40 - case 48: { - subscript_ = input.readUInt64(); - subscriptCase_ = 6; - break; - } // case 48 - case 56: { - subscript_ = input.readBool(); - subscriptCase_ = 7; - break; - } // case 56 - case 64: { - subscript_ = input.readInt64(); - subscriptCase_ = 8; - break; - } // case 64 - case 72: { - subscript_ = input.readUInt64(); - subscriptCase_ = 9; - break; - } // case 72 - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - subscriptCase_ = 10; - subscript_ = bs; - break; - } // case 82 - 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 subscriptCase_ = 0; - private java.lang.Object subscript_; - public SubscriptCase - getSubscriptCase() { - return SubscriptCase.forNumber( - subscriptCase_); - } - - public Builder clearSubscript() { - subscriptCase_ = 0; - subscript_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int fieldNumber_ ; - /** - *
-     * `field_number` is the field number this path element refers to.
-     * 
- * - * optional int32 field_number = 1 [json_name = "fieldNumber"]; - * @return Whether the fieldNumber field is set. - */ - @java.lang.Override - public boolean hasFieldNumber() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `field_number` is the field number this path element refers to.
-     * 
- * - * optional int32 field_number = 1 [json_name = "fieldNumber"]; - * @return The fieldNumber. - */ - @java.lang.Override - public int getFieldNumber() { - return fieldNumber_; - } - /** - *
-     * `field_number` is the field number this path element refers to.
-     * 
- * - * optional int32 field_number = 1 [json_name = "fieldNumber"]; - * @param value The fieldNumber to set. - * @return This builder for chaining. - */ - public Builder setFieldNumber(int value) { - - fieldNumber_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `field_number` is the field number this path element refers to.
-     * 
- * - * optional int32 field_number = 1 [json_name = "fieldNumber"]; - * @return This builder for chaining. - */ - public Builder clearFieldNumber() { - bitField0_ = (bitField0_ & ~0x00000001); - fieldNumber_ = 0; - onChanged(); - return this; - } - - private java.lang.Object fieldName_ = ""; - /** - *
-     * `field_name` contains the field name this path element refers to.
-     * This can be used to display a human-readable path even if the field number is unknown.
-     * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @return Whether the fieldName field is set. - */ - public boolean hasFieldName() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * `field_name` contains the field name this path element refers to.
-     * This can be used to display a human-readable path even if the field number is unknown.
-     * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @return The fieldName. - */ - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - fieldName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `field_name` contains the field name this path element refers to.
-     * This can be used to display a human-readable path even if the field number is unknown.
-     * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @return The bytes for fieldName. - */ - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `field_name` contains the field name this path element refers to.
-     * This can be used to display a human-readable path even if the field number is unknown.
-     * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @param value The fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fieldName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `field_name` contains the field name this path element refers to.
-     * This can be used to display a human-readable path even if the field number is unknown.
-     * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @return This builder for chaining. - */ - public Builder clearFieldName() { - fieldName_ = getDefaultInstance().getFieldName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * `field_name` contains the field name this path element refers to.
-     * This can be used to display a human-readable path even if the field number is unknown.
-     * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @param value The bytes for fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - fieldName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int fieldType_ = 1; - /** - *
-     * `field_type` specifies the type of this field. When using reflection, this value is not needed.
-     *
-     * This value is provided to make it possible to traverse unknown fields through wire data.
-     * When traversing wire data, be mindful of both packed[1] and delimited[2] encoding schemes.
-     *
-     * [1]: https://protobuf.dev/programming-guides/encoding/#packed
-     * [2]: https://protobuf.dev/programming-guides/encoding/#groups
-     *
-     * N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and
-     * can be explicitly used in Protocol Buffers 2023 Edition.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type field_type = 3 [json_name = "fieldType"]; - * @return Whether the fieldType field is set. - */ - @java.lang.Override public boolean hasFieldType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * `field_type` specifies the type of this field. When using reflection, this value is not needed.
-     *
-     * This value is provided to make it possible to traverse unknown fields through wire data.
-     * When traversing wire data, be mindful of both packed[1] and delimited[2] encoding schemes.
-     *
-     * [1]: https://protobuf.dev/programming-guides/encoding/#packed
-     * [2]: https://protobuf.dev/programming-guides/encoding/#groups
-     *
-     * N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and
-     * can be explicitly used in Protocol Buffers 2023 Edition.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type field_type = 3 [json_name = "fieldType"]; - * @return The fieldType. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getFieldType() { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(fieldType_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; - } - /** - *
-     * `field_type` specifies the type of this field. When using reflection, this value is not needed.
-     *
-     * This value is provided to make it possible to traverse unknown fields through wire data.
-     * When traversing wire data, be mindful of both packed[1] and delimited[2] encoding schemes.
-     *
-     * [1]: https://protobuf.dev/programming-guides/encoding/#packed
-     * [2]: https://protobuf.dev/programming-guides/encoding/#groups
-     *
-     * N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and
-     * can be explicitly used in Protocol Buffers 2023 Edition.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type field_type = 3 [json_name = "fieldType"]; - * @param value The fieldType to set. - * @return This builder for chaining. - */ - public Builder setFieldType(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - fieldType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * `field_type` specifies the type of this field. When using reflection, this value is not needed.
-     *
-     * This value is provided to make it possible to traverse unknown fields through wire data.
-     * When traversing wire data, be mindful of both packed[1] and delimited[2] encoding schemes.
-     *
-     * [1]: https://protobuf.dev/programming-guides/encoding/#packed
-     * [2]: https://protobuf.dev/programming-guides/encoding/#groups
-     *
-     * N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and
-     * can be explicitly used in Protocol Buffers 2023 Edition.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type field_type = 3 [json_name = "fieldType"]; - * @return This builder for chaining. - */ - public Builder clearFieldType() { - bitField0_ = (bitField0_ & ~0x00000004); - fieldType_ = 1; - onChanged(); - return this; - } - - private int keyType_ = 1; - /** - *
-     * `key_type` specifies the map key type of this field. This value is useful when traversing
-     * unknown fields through wire data: specifically, it allows handling the differences between
-     * different integer encodings.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type key_type = 4 [json_name = "keyType"]; - * @return Whether the keyType field is set. - */ - @java.lang.Override public boolean hasKeyType() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * `key_type` specifies the map key type of this field. This value is useful when traversing
-     * unknown fields through wire data: specifically, it allows handling the differences between
-     * different integer encodings.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type key_type = 4 [json_name = "keyType"]; - * @return The keyType. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getKeyType() { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(keyType_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; - } - /** - *
-     * `key_type` specifies the map key type of this field. This value is useful when traversing
-     * unknown fields through wire data: specifically, it allows handling the differences between
-     * different integer encodings.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type key_type = 4 [json_name = "keyType"]; - * @param value The keyType to set. - * @return This builder for chaining. - */ - public Builder setKeyType(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - keyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * `key_type` specifies the map key type of this field. This value is useful when traversing
-     * unknown fields through wire data: specifically, it allows handling the differences between
-     * different integer encodings.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type key_type = 4 [json_name = "keyType"]; - * @return This builder for chaining. - */ - public Builder clearKeyType() { - bitField0_ = (bitField0_ & ~0x00000008); - keyType_ = 1; - onChanged(); - return this; - } - - private int valueType_ = 1; - /** - *
-     * `value_type` specifies map value type of this field. This is useful if you want to display a
-     * value inside unknown fields through wire data.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type value_type = 5 [json_name = "valueType"]; - * @return Whether the valueType field is set. - */ - @java.lang.Override public boolean hasValueType() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * `value_type` specifies map value type of this field. This is useful if you want to display a
-     * value inside unknown fields through wire data.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type value_type = 5 [json_name = "valueType"]; - * @return The valueType. - */ - @java.lang.Override - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getValueType() { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type result = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.forNumber(valueType_); - return result == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type.TYPE_DOUBLE : result; - } - /** - *
-     * `value_type` specifies map value type of this field. This is useful if you want to display a
-     * value inside unknown fields through wire data.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type value_type = 5 [json_name = "valueType"]; - * @param value The valueType to set. - * @return This builder for chaining. - */ - public Builder setValueType(com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - valueType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * `value_type` specifies map value type of this field. This is useful if you want to display a
-     * value inside unknown fields through wire data.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type value_type = 5 [json_name = "valueType"]; - * @return This builder for chaining. - */ - public Builder clearValueType() { - bitField0_ = (bitField0_ & ~0x00000010); - valueType_ = 1; - onChanged(); - return this; - } - - /** - *
-     * `index` specifies a 0-based index into a repeated field.
-     * 
- * - * uint64 index = 6 [json_name = "index"]; - * @return Whether the index field is set. - */ - public boolean hasIndex() { - return subscriptCase_ == 6; - } - /** - *
-     * `index` specifies a 0-based index into a repeated field.
-     * 
- * - * uint64 index = 6 [json_name = "index"]; - * @return The index. - */ - public long getIndex() { - if (subscriptCase_ == 6) { - return (java.lang.Long) subscript_; - } - return 0L; - } - /** - *
-     * `index` specifies a 0-based index into a repeated field.
-     * 
- * - * uint64 index = 6 [json_name = "index"]; - * @param value The index to set. - * @return This builder for chaining. - */ - public Builder setIndex(long value) { - - subscriptCase_ = 6; - subscript_ = value; - onChanged(); - return this; - } - /** - *
-     * `index` specifies a 0-based index into a repeated field.
-     * 
- * - * uint64 index = 6 [json_name = "index"]; - * @return This builder for chaining. - */ - public Builder clearIndex() { - if (subscriptCase_ == 6) { - subscriptCase_ = 0; - subscript_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `bool_key` specifies a map key of type bool.
-     * 
- * - * bool bool_key = 7 [json_name = "boolKey"]; - * @return Whether the boolKey field is set. - */ - public boolean hasBoolKey() { - return subscriptCase_ == 7; - } - /** - *
-     * `bool_key` specifies a map key of type bool.
-     * 
- * - * bool bool_key = 7 [json_name = "boolKey"]; - * @return The boolKey. - */ - public boolean getBoolKey() { - if (subscriptCase_ == 7) { - return (java.lang.Boolean) subscript_; - } - return false; - } - /** - *
-     * `bool_key` specifies a map key of type bool.
-     * 
- * - * bool bool_key = 7 [json_name = "boolKey"]; - * @param value The boolKey to set. - * @return This builder for chaining. - */ - public Builder setBoolKey(boolean value) { - - subscriptCase_ = 7; - subscript_ = value; - onChanged(); - return this; - } - /** - *
-     * `bool_key` specifies a map key of type bool.
-     * 
- * - * bool bool_key = 7 [json_name = "boolKey"]; - * @return This builder for chaining. - */ - public Builder clearBoolKey() { - if (subscriptCase_ == 7) { - subscriptCase_ = 0; - subscript_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.
-     * 
- * - * int64 int_key = 8 [json_name = "intKey"]; - * @return Whether the intKey field is set. - */ - public boolean hasIntKey() { - return subscriptCase_ == 8; - } - /** - *
-     * `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.
-     * 
- * - * int64 int_key = 8 [json_name = "intKey"]; - * @return The intKey. - */ - public long getIntKey() { - if (subscriptCase_ == 8) { - return (java.lang.Long) subscript_; - } - return 0L; - } - /** - *
-     * `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.
-     * 
- * - * int64 int_key = 8 [json_name = "intKey"]; - * @param value The intKey to set. - * @return This builder for chaining. - */ - public Builder setIntKey(long value) { - - subscriptCase_ = 8; - subscript_ = value; - onChanged(); - return this; - } - /** - *
-     * `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.
-     * 
- * - * int64 int_key = 8 [json_name = "intKey"]; - * @return This builder for chaining. - */ - public Builder clearIntKey() { - if (subscriptCase_ == 8) { - subscriptCase_ = 0; - subscript_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.
-     * 
- * - * uint64 uint_key = 9 [json_name = "uintKey"]; - * @return Whether the uintKey field is set. - */ - public boolean hasUintKey() { - return subscriptCase_ == 9; - } - /** - *
-     * `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.
-     * 
- * - * uint64 uint_key = 9 [json_name = "uintKey"]; - * @return The uintKey. - */ - public long getUintKey() { - if (subscriptCase_ == 9) { - return (java.lang.Long) subscript_; - } - return 0L; - } - /** - *
-     * `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.
-     * 
- * - * uint64 uint_key = 9 [json_name = "uintKey"]; - * @param value The uintKey to set. - * @return This builder for chaining. - */ - public Builder setUintKey(long value) { - - subscriptCase_ = 9; - subscript_ = value; - onChanged(); - return this; - } - /** - *
-     * `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.
-     * 
- * - * uint64 uint_key = 9 [json_name = "uintKey"]; - * @return This builder for chaining. - */ - public Builder clearUintKey() { - if (subscriptCase_ == 9) { - subscriptCase_ = 0; - subscript_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `string_key` specifies a map key of type string.
-     * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @return Whether the stringKey field is set. - */ - @java.lang.Override - public boolean hasStringKey() { - return subscriptCase_ == 10; - } - /** - *
-     * `string_key` specifies a map key of type string.
-     * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @return The stringKey. - */ - @java.lang.Override - public java.lang.String getStringKey() { - java.lang.Object ref = ""; - if (subscriptCase_ == 10) { - ref = subscript_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (subscriptCase_ == 10) { - if (bs.isValidUtf8()) { - subscript_ = s; - } - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `string_key` specifies a map key of type string.
-     * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @return The bytes for stringKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStringKeyBytes() { - java.lang.Object ref = ""; - if (subscriptCase_ == 10) { - ref = subscript_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (subscriptCase_ == 10) { - subscript_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `string_key` specifies a map key of type string.
-     * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @param value The stringKey to set. - * @return This builder for chaining. - */ - public Builder setStringKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - subscriptCase_ = 10; - subscript_ = value; - onChanged(); - return this; - } - /** - *
-     * `string_key` specifies a map key of type string.
-     * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @return This builder for chaining. - */ - public Builder clearStringKey() { - if (subscriptCase_ == 10) { - subscriptCase_ = 0; - subscript_ = null; - onChanged(); - } - return this; - } - /** - *
-     * `string_key` specifies a map key of type string.
-     * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @param value The bytes for stringKey to set. - * @return This builder for chaining. - */ - public Builder setStringKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - subscriptCase_ = 10; - subscript_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.FieldPathElement) - } - - // @@protoc_insertion_point(class_scope:buf.validate.FieldPathElement) - private static final build.buf.validate.FieldPathElement DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.FieldPathElement(); - } - - public static build.buf.validate.FieldPathElement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldPathElement 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.FieldPathElement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/FieldPathElementOrBuilder.java b/src/main/java/build/buf/validate/FieldPathElementOrBuilder.java deleted file mode 100644 index 8eb55e55..00000000 --- a/src/main/java/build/buf/validate/FieldPathElementOrBuilder.java +++ /dev/null @@ -1,250 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface FieldPathElementOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.FieldPathElement) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * `field_number` is the field number this path element refers to.
-   * 
- * - * optional int32 field_number = 1 [json_name = "fieldNumber"]; - * @return Whether the fieldNumber field is set. - */ - boolean hasFieldNumber(); - /** - *
-   * `field_number` is the field number this path element refers to.
-   * 
- * - * optional int32 field_number = 1 [json_name = "fieldNumber"]; - * @return The fieldNumber. - */ - int getFieldNumber(); - - /** - *
-   * `field_name` contains the field name this path element refers to.
-   * This can be used to display a human-readable path even if the field number is unknown.
-   * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @return Whether the fieldName field is set. - */ - boolean hasFieldName(); - /** - *
-   * `field_name` contains the field name this path element refers to.
-   * This can be used to display a human-readable path even if the field number is unknown.
-   * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - *
-   * `field_name` contains the field name this path element refers to.
-   * This can be used to display a human-readable path even if the field number is unknown.
-   * 
- * - * optional string field_name = 2 [json_name = "fieldName"]; - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString - getFieldNameBytes(); - - /** - *
-   * `field_type` specifies the type of this field. When using reflection, this value is not needed.
-   *
-   * This value is provided to make it possible to traverse unknown fields through wire data.
-   * When traversing wire data, be mindful of both packed[1] and delimited[2] encoding schemes.
-   *
-   * [1]: https://protobuf.dev/programming-guides/encoding/#packed
-   * [2]: https://protobuf.dev/programming-guides/encoding/#groups
-   *
-   * N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and
-   * can be explicitly used in Protocol Buffers 2023 Edition.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type field_type = 3 [json_name = "fieldType"]; - * @return Whether the fieldType field is set. - */ - boolean hasFieldType(); - /** - *
-   * `field_type` specifies the type of this field. When using reflection, this value is not needed.
-   *
-   * This value is provided to make it possible to traverse unknown fields through wire data.
-   * When traversing wire data, be mindful of both packed[1] and delimited[2] encoding schemes.
-   *
-   * [1]: https://protobuf.dev/programming-guides/encoding/#packed
-   * [2]: https://protobuf.dev/programming-guides/encoding/#groups
-   *
-   * N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and
-   * can be explicitly used in Protocol Buffers 2023 Edition.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type field_type = 3 [json_name = "fieldType"]; - * @return The fieldType. - */ - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getFieldType(); - - /** - *
-   * `key_type` specifies the map key type of this field. This value is useful when traversing
-   * unknown fields through wire data: specifically, it allows handling the differences between
-   * different integer encodings.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type key_type = 4 [json_name = "keyType"]; - * @return Whether the keyType field is set. - */ - boolean hasKeyType(); - /** - *
-   * `key_type` specifies the map key type of this field. This value is useful when traversing
-   * unknown fields through wire data: specifically, it allows handling the differences between
-   * different integer encodings.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type key_type = 4 [json_name = "keyType"]; - * @return The keyType. - */ - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getKeyType(); - - /** - *
-   * `value_type` specifies map value type of this field. This is useful if you want to display a
-   * value inside unknown fields through wire data.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type value_type = 5 [json_name = "valueType"]; - * @return Whether the valueType field is set. - */ - boolean hasValueType(); - /** - *
-   * `value_type` specifies map value type of this field. This is useful if you want to display a
-   * value inside unknown fields through wire data.
-   * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type value_type = 5 [json_name = "valueType"]; - * @return The valueType. - */ - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getValueType(); - - /** - *
-   * `index` specifies a 0-based index into a repeated field.
-   * 
- * - * uint64 index = 6 [json_name = "index"]; - * @return Whether the index field is set. - */ - boolean hasIndex(); - /** - *
-   * `index` specifies a 0-based index into a repeated field.
-   * 
- * - * uint64 index = 6 [json_name = "index"]; - * @return The index. - */ - long getIndex(); - - /** - *
-   * `bool_key` specifies a map key of type bool.
-   * 
- * - * bool bool_key = 7 [json_name = "boolKey"]; - * @return Whether the boolKey field is set. - */ - boolean hasBoolKey(); - /** - *
-   * `bool_key` specifies a map key of type bool.
-   * 
- * - * bool bool_key = 7 [json_name = "boolKey"]; - * @return The boolKey. - */ - boolean getBoolKey(); - - /** - *
-   * `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.
-   * 
- * - * int64 int_key = 8 [json_name = "intKey"]; - * @return Whether the intKey field is set. - */ - boolean hasIntKey(); - /** - *
-   * `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.
-   * 
- * - * int64 int_key = 8 [json_name = "intKey"]; - * @return The intKey. - */ - long getIntKey(); - - /** - *
-   * `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.
-   * 
- * - * uint64 uint_key = 9 [json_name = "uintKey"]; - * @return Whether the uintKey field is set. - */ - boolean hasUintKey(); - /** - *
-   * `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.
-   * 
- * - * uint64 uint_key = 9 [json_name = "uintKey"]; - * @return The uintKey. - */ - long getUintKey(); - - /** - *
-   * `string_key` specifies a map key of type string.
-   * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @return Whether the stringKey field is set. - */ - boolean hasStringKey(); - /** - *
-   * `string_key` specifies a map key of type string.
-   * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @return The stringKey. - */ - java.lang.String getStringKey(); - /** - *
-   * `string_key` specifies a map key of type string.
-   * 
- * - * string string_key = 10 [json_name = "stringKey"]; - * @return The bytes for stringKey. - */ - com.google.protobuf.ByteString - getStringKeyBytes(); - - build.buf.validate.FieldPathElement.SubscriptCase getSubscriptCase(); -} diff --git a/src/main/java/build/buf/validate/FieldPathOrBuilder.java b/src/main/java/build/buf/validate/FieldPathOrBuilder.java deleted file mode 100644 index be1eed23..00000000 --- a/src/main/java/build/buf/validate/FieldPathOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface FieldPathOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.FieldPath) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * `elements` contains each element of the path, starting from the root and recursing downward.
-   * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - java.util.List - getElementsList(); - /** - *
-   * `elements` contains each element of the path, starting from the root and recursing downward.
-   * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - build.buf.validate.FieldPathElement getElements(int index); - /** - *
-   * `elements` contains each element of the path, starting from the root and recursing downward.
-   * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - int getElementsCount(); - /** - *
-   * `elements` contains each element of the path, starting from the root and recursing downward.
-   * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - java.util.List - getElementsOrBuilderList(); - /** - *
-   * `elements` contains each element of the path, starting from the root and recursing downward.
-   * 
- * - * repeated .buf.validate.FieldPathElement elements = 1 [json_name = "elements"]; - */ - build.buf.validate.FieldPathElementOrBuilder getElementsOrBuilder( - int index); -} diff --git a/src/main/java/build/buf/validate/Fixed32Rules.java b/src/main/java/build/buf/validate/Fixed32Rules.java deleted file mode 100644 index be3ccf93..00000000 --- a/src/main/java/build/buf/validate/Fixed32Rules.java +++ /dev/null @@ -1,2386 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * Fixed32Rules describes the constraints applied to `fixed32` values.
- * 
- * - * Protobuf type {@code buf.validate.Fixed32Rules} - */ -public final class Fixed32Rules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - Fixed32Rules> implements - // @@protoc_insertion_point(message_implements:buf.validate.Fixed32Rules) - Fixed32RulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed32Rules.class.getName()); - } - // Use Fixed32Rules.newBuilder() to construct. - private Fixed32Rules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private Fixed32Rules() { - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed32Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed32Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Fixed32Rules.class, build.buf.validate.Fixed32Rules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private int const_ = 0; - /** - *
-   * `const` requires the field value to exactly match the specified value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must equal 42
-   * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional fixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must equal 42
-   * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional fixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be less than 10
-   * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
-   * }
-   * ```
-   * 
- * - * fixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be less than 10
-   * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
-   * }
-   * ```
-   * 
- * - * fixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public int getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be less than or equal to 10
-   * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
-   * }
-   * ```
-   * 
- * - * fixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be less than or equal to 10
-   * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
-   * }
-   * ```
-   * 
- * - * fixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public int getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be greater than 5 [fixed32.gt]
-   * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
-   * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
-   * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be greater than 5 [fixed32.gt]
-   * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
-   * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
-   * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public int getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be greater than or equal to 5 [fixed32.gte]
-   * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
-   * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
-   * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be greater than or equal to 5 [fixed32.gte]
-   * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
-   * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
-   * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public int getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList in_ = - emptyIntList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList notIn_ = - emptyIntList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList example_ = - emptyIntList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * fixed32 value = 1 [
-   * (buf.validate.field).fixed32.example = 1,
-   * (buf.validate.field).fixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * fixed32 value = 1 [
-   * (buf.validate.field).fixed32.example = 1,
-   * (buf.validate.field).fixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * fixed32 value = 1 [
-   * (buf.validate.field).fixed32.example = 1,
-   * (buf.validate.field).fixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFixed32(1, const_); - } - if (lessThanCase_ == 2) { - output.writeFixed32( - 2, (int)((java.lang.Integer) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeFixed32( - 3, (int)((java.lang.Integer) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeFixed32( - 4, (int)((java.lang.Integer) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeFixed32( - 5, (int)((java.lang.Integer) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeFixed32(6, in_.getInt(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeFixed32(7, notIn_.getInt(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeFixed32(8, example_.getInt(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size( - 2, (int)((java.lang.Integer) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size( - 3, (int)((java.lang.Integer) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size( - 4, (int)((java.lang.Integer) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size( - 5, (int)((java.lang.Integer) greaterThan_)); - } - { - int dataSize = 0; - dataSize = 4 * getInList().size(); - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - dataSize = 4 * getNotInList().size(); - size += dataSize; - size += 1 * getNotInList().size(); - } - { - int dataSize = 0; - dataSize = 4 * getExampleList().size(); - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.Fixed32Rules)) { - return super.equals(obj); - } - build.buf.validate.Fixed32Rules other = (build.buf.validate.Fixed32Rules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (getLt() - != other.getLt()) return false; - break; - case 3: - if (getLte() - != other.getLte()) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (getGt() - != other.getGt()) return false; - break; - case 5: - if (getGte() - != other.getGte()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst(); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + getLt(); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + getLte(); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + getGt(); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + getGte(); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.Fixed32Rules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Fixed32Rules 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.Fixed32Rules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Fixed32Rules 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.Fixed32Rules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Fixed32Rules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.Fixed32Rules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Fixed32Rules 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.Fixed32Rules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.Fixed32Rules 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.Fixed32Rules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Fixed32Rules 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.Fixed32Rules 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; - } - /** - *
-   * Fixed32Rules describes the constraints applied to `fixed32` values.
-   * 
- * - * Protobuf type {@code buf.validate.Fixed32Rules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.Fixed32Rules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.Fixed32Rules) - build.buf.validate.Fixed32RulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed32Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed32Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Fixed32Rules.class, build.buf.validate.Fixed32Rules.Builder.class); - } - - // Construct using build.buf.validate.Fixed32Rules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0; - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed32Rules_descriptor; - } - - @java.lang.Override - public build.buf.validate.Fixed32Rules getDefaultInstanceForType() { - return build.buf.validate.Fixed32Rules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.Fixed32Rules build() { - build.buf.validate.Fixed32Rules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.Fixed32Rules buildPartial() { - build.buf.validate.Fixed32Rules result = new build.buf.validate.Fixed32Rules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.Fixed32Rules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.Fixed32Rules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.Fixed32Rules) { - return mergeFrom((build.buf.validate.Fixed32Rules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.Fixed32Rules other) { - if (other == build.buf.validate.Fixed32Rules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000080; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 13: { - const_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 21: { - lessThan_ = input.readFixed32(); - lessThanCase_ = 2; - break; - } // case 21 - case 29: { - lessThan_ = input.readFixed32(); - lessThanCase_ = 3; - break; - } // case 29 - case 37: { - greaterThan_ = input.readFixed32(); - greaterThanCase_ = 4; - break; - } // case 37 - case 45: { - greaterThan_ = input.readFixed32(); - greaterThanCase_ = 5; - break; - } // case 45 - case 53: { - int v = input.readFixed32(); - ensureInIsMutable(); - in_.addInt(v); - break; - } // case 53 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureInIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - in_.addInt(input.readFixed32()); - } - input.popLimit(limit); - break; - } // case 50 - case 61: { - int v = input.readFixed32(); - ensureNotInIsMutable(); - notIn_.addInt(v); - break; - } // case 61 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureNotInIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - notIn_.addInt(input.readFixed32()); - } - input.popLimit(limit); - break; - } // case 58 - case 69: { - int v = input.readFixed32(); - ensureExampleIsMutable(); - example_.addInt(v); - break; - } // case 69 - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureExampleIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - example_.addInt(input.readFixed32()); - } - input.popLimit(limit); - break; - } // case 66 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must equal 42
-     * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional fixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must equal 42
-     * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional fixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must equal 42
-     * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional fixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(int value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value.
-     * If the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must equal 42
-     * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional fixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be less than 10
-     * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
-     * }
-     * ```
-     * 
- * - * fixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be less than 10
-     * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
-     * }
-     * ```
-     * 
- * - * fixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public int getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be less than 10
-     * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
-     * }
-     * ```
-     * 
- * - * fixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(int value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be less than 10
-     * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
-     * }
-     * ```
-     * 
- * - * fixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be less than or equal to 10
-     * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
-     * }
-     * ```
-     * 
- * - * fixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be less than or equal to 10
-     * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
-     * }
-     * ```
-     * 
- * - * fixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public int getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be less than or equal to 10
-     * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
-     * }
-     * ```
-     * 
- * - * fixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(int value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be less than or equal to 10
-     * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
-     * }
-     * ```
-     * 
- * - * fixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be greater than 5 [fixed32.gt]
-     * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
-     * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
-     * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be greater than 5 [fixed32.gt]
-     * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
-     * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
-     * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public int getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be greater than 5 [fixed32.gt]
-     * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
-     * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
-     * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(int value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be greater than 5 [fixed32.gt]
-     * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
-     * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
-     * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be greater than or equal to 5 [fixed32.gte]
-     * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
-     * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
-     * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be greater than or equal to 5 [fixed32.gte]
-     * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
-     * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
-     * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public int getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be greater than or equal to 5 [fixed32.gte]
-     * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
-     * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
-     * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(int value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be greater than or equal to 5 [fixed32.gte]
-     * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
-     * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
-     * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.IntList in_ = emptyIntList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - private void ensureInIsMutable(int capacity) { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_, capacity); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, int value) { - - ensureInIsMutable(); - in_.setInt(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(int value) { - - ensureInIsMutable(); - in_.addInt(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList notIn_ = emptyIntList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - private void ensureNotInIsMutable(int capacity) { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_, capacity); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, int value) { - - ensureNotInIsMutable(); - notIn_.setInt(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(int value) { - - ensureNotInIsMutable(); - notIn_.addInt(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList example_ = emptyIntList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000080; - } - private void ensureExampleIsMutable(int capacity) { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_, capacity); - } - bitField0_ |= 0x00000080; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * fixed32 value = 1 [
-     * (buf.validate.field).fixed32.example = 1,
-     * (buf.validate.field).fixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * fixed32 value = 1 [
-     * (buf.validate.field).fixed32.example = 1,
-     * (buf.validate.field).fixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * fixed32 value = 1 [
-     * (buf.validate.field).fixed32.example = 1,
-     * (buf.validate.field).fixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * fixed32 value = 1 [
-     * (buf.validate.field).fixed32.example = 1,
-     * (buf.validate.field).fixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, int value) { - - ensureExampleIsMutable(); - example_.setInt(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * fixed32 value = 1 [
-     * (buf.validate.field).fixed32.example = 1,
-     * (buf.validate.field).fixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(int value) { - - ensureExampleIsMutable(); - example_.addInt(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * fixed32 value = 1 [
-     * (buf.validate.field).fixed32.example = 1,
-     * (buf.validate.field).fixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed32 {
-     * fixed32 value = 1 [
-     * (buf.validate.field).fixed32.example = 1,
-     * (buf.validate.field).fixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.Fixed32Rules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.Fixed32Rules) - private static final build.buf.validate.Fixed32Rules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.Fixed32Rules(); - } - - public static build.buf.validate.Fixed32Rules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed32Rules 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.Fixed32Rules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/Fixed32RulesOrBuilder.java b/src/main/java/build/buf/validate/Fixed32RulesOrBuilder.java deleted file mode 100644 index 65fd3c60..00000000 --- a/src/main/java/build/buf/validate/Fixed32RulesOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface Fixed32RulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.Fixed32Rules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must equal 42
-   * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional fixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value.
-   * If the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must equal 42
-   * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional fixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - int getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be less than 10
-   * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
-   * }
-   * ```
-   * 
- * - * fixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be less than 10
-   * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
-   * }
-   * ```
-   * 
- * - * fixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - int getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be less than or equal to 10
-   * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
-   * }
-   * ```
-   * 
- * - * fixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be less than or equal to 10
-   * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
-   * }
-   * ```
-   * 
- * - * fixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - int getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be greater than 5 [fixed32.gt]
-   * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
-   * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
-   * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be greater than 5 [fixed32.gt]
-   * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
-   * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
-   * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - int getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be greater than or equal to 5 [fixed32.gte]
-   * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
-   * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
-   * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be greater than or equal to 5 [fixed32.gte]
-   * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
-   * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
-   * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - int getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - int getIn(int index); - - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - int getNotIn(int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * fixed32 value = 1 [
-   * (buf.validate.field).fixed32.example = 1,
-   * (buf.validate.field).fixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * fixed32 value = 1 [
-   * (buf.validate.field).fixed32.example = 1,
-   * (buf.validate.field).fixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed32 {
-   * fixed32 value = 1 [
-   * (buf.validate.field).fixed32.example = 1,
-   * (buf.validate.field).fixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - int getExample(int index); - - build.buf.validate.Fixed32Rules.LessThanCase getLessThanCase(); - - build.buf.validate.Fixed32Rules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/Fixed64Rules.java b/src/main/java/build/buf/validate/Fixed64Rules.java deleted file mode 100644 index 108ec184..00000000 --- a/src/main/java/build/buf/validate/Fixed64Rules.java +++ /dev/null @@ -1,2391 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * Fixed64Rules describes the constraints applied to `fixed64` values.
- * 
- * - * Protobuf type {@code buf.validate.Fixed64Rules} - */ -public final class Fixed64Rules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - Fixed64Rules> implements - // @@protoc_insertion_point(message_implements:buf.validate.Fixed64Rules) - Fixed64RulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Fixed64Rules.class.getName()); - } - // Use Fixed64Rules.newBuilder() to construct. - private Fixed64Rules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private Fixed64Rules() { - in_ = emptyLongList(); - notIn_ = emptyLongList(); - example_ = emptyLongList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed64Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed64Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Fixed64Rules.class, build.buf.validate.Fixed64Rules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private long const_ = 0L; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must equal 42
-   * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional fixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must equal 42
-   * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional fixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public long getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be less than 10
-   * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
-   * }
-   * ```
-   * 
- * - * fixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be less than 10
-   * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
-   * }
-   * ```
-   * 
- * - * fixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public long getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be less than or equal to 10
-   * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
-   * }
-   * ```
-   * 
- * - * fixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be less than or equal to 10
-   * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
-   * }
-   * ```
-   * 
- * - * fixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public long getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be greater than 5 [fixed64.gt]
-   * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
-   * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
-   * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be greater than 5 [fixed64.gt]
-   * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
-   * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
-   * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public long getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be greater than or equal to 5 [fixed64.gte]
-   * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
-   * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
-   * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be greater than or equal to 5 [fixed64.gte]
-   * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
-   * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
-   * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public long getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList in_ = - emptyLongList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public long getIn(int index) { - return in_.getLong(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList notIn_ = - emptyLongList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public long getNotIn(int index) { - return notIn_.getLong(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList example_ = - emptyLongList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * fixed64 value = 1 [
-   * (buf.validate.field).fixed64.example = 1,
-   * (buf.validate.field).fixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * fixed64 value = 1 [
-   * (buf.validate.field).fixed64.example = 1,
-   * (buf.validate.field).fixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * fixed64 value = 1 [
-   * (buf.validate.field).fixed64.example = 1,
-   * (buf.validate.field).fixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public long getExample(int index) { - return example_.getLong(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFixed64(1, const_); - } - if (lessThanCase_ == 2) { - output.writeFixed64( - 2, (long)((java.lang.Long) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeFixed64( - 3, (long)((java.lang.Long) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeFixed64( - 4, (long)((java.lang.Long) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeFixed64( - 5, (long)((java.lang.Long) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeFixed64(6, in_.getLong(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeFixed64(7, notIn_.getLong(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeFixed64(8, example_.getLong(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size( - 2, (long)((java.lang.Long) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size( - 3, (long)((java.lang.Long) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size( - 4, (long)((java.lang.Long) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size( - 5, (long)((java.lang.Long) greaterThan_)); - } - { - int dataSize = 0; - dataSize = 8 * getInList().size(); - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - dataSize = 8 * getNotInList().size(); - size += dataSize; - size += 1 * getNotInList().size(); - } - { - int dataSize = 0; - dataSize = 8 * getExampleList().size(); - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.Fixed64Rules)) { - return super.equals(obj); - } - build.buf.validate.Fixed64Rules other = (build.buf.validate.Fixed64Rules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (getLt() - != other.getLt()) return false; - break; - case 3: - if (getLte() - != other.getLte()) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (getGt() - != other.getGt()) return false; - break; - case 5: - if (getGte() - != other.getGte()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConst()); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLt()); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLte()); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGt()); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGte()); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.Fixed64Rules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Fixed64Rules 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.Fixed64Rules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Fixed64Rules 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.Fixed64Rules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Fixed64Rules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.Fixed64Rules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Fixed64Rules 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.Fixed64Rules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.Fixed64Rules 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.Fixed64Rules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Fixed64Rules 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.Fixed64Rules 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; - } - /** - *
-   * Fixed64Rules describes the constraints applied to `fixed64` values.
-   * 
- * - * Protobuf type {@code buf.validate.Fixed64Rules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.Fixed64Rules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.Fixed64Rules) - build.buf.validate.Fixed64RulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed64Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed64Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Fixed64Rules.class, build.buf.validate.Fixed64Rules.Builder.class); - } - - // Construct using build.buf.validate.Fixed64Rules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0L; - in_ = emptyLongList(); - notIn_ = emptyLongList(); - example_ = emptyLongList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Fixed64Rules_descriptor; - } - - @java.lang.Override - public build.buf.validate.Fixed64Rules getDefaultInstanceForType() { - return build.buf.validate.Fixed64Rules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.Fixed64Rules build() { - build.buf.validate.Fixed64Rules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.Fixed64Rules buildPartial() { - build.buf.validate.Fixed64Rules result = new build.buf.validate.Fixed64Rules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.Fixed64Rules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.Fixed64Rules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.Fixed64Rules) { - return mergeFrom((build.buf.validate.Fixed64Rules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.Fixed64Rules other) { - if (other == build.buf.validate.Fixed64Rules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000080; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 9: { - const_ = input.readFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 17: { - lessThan_ = input.readFixed64(); - lessThanCase_ = 2; - break; - } // case 17 - case 25: { - lessThan_ = input.readFixed64(); - lessThanCase_ = 3; - break; - } // case 25 - case 33: { - greaterThan_ = input.readFixed64(); - greaterThanCase_ = 4; - break; - } // case 33 - case 41: { - greaterThan_ = input.readFixed64(); - greaterThanCase_ = 5; - break; - } // case 41 - case 49: { - long v = input.readFixed64(); - ensureInIsMutable(); - in_.addLong(v); - break; - } // case 49 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureInIsMutable(alloc / 8); - while (input.getBytesUntilLimit() > 0) { - in_.addLong(input.readFixed64()); - } - input.popLimit(limit); - break; - } // case 50 - case 57: { - long v = input.readFixed64(); - ensureNotInIsMutable(); - notIn_.addLong(v); - break; - } // case 57 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureNotInIsMutable(alloc / 8); - while (input.getBytesUntilLimit() > 0) { - notIn_.addLong(input.readFixed64()); - } - input.popLimit(limit); - break; - } // case 58 - case 65: { - long v = input.readFixed64(); - ensureExampleIsMutable(); - example_.addLong(v); - break; - } // case 65 - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureExampleIsMutable(alloc / 8); - while (input.getBytesUntilLimit() > 0) { - example_.addLong(input.readFixed64()); - } - input.popLimit(limit); - break; - } // case 66 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private long const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must equal 42
-     * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional fixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must equal 42
-     * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional fixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public long getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must equal 42
-     * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional fixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(long value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must equal 42
-     * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional fixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0L; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be less than 10
-     * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
-     * }
-     * ```
-     * 
- * - * fixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be less than 10
-     * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
-     * }
-     * ```
-     * 
- * - * fixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public long getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be less than 10
-     * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
-     * }
-     * ```
-     * 
- * - * fixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(long value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be less than 10
-     * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
-     * }
-     * ```
-     * 
- * - * fixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be less than or equal to 10
-     * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
-     * }
-     * ```
-     * 
- * - * fixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be less than or equal to 10
-     * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
-     * }
-     * ```
-     * 
- * - * fixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public long getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be less than or equal to 10
-     * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
-     * }
-     * ```
-     * 
- * - * fixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(long value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be less than or equal to 10
-     * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
-     * }
-     * ```
-     * 
- * - * fixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be greater than 5 [fixed64.gt]
-     * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
-     * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
-     * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be greater than 5 [fixed64.gt]
-     * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
-     * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
-     * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public long getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be greater than 5 [fixed64.gt]
-     * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
-     * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
-     * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(long value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be greater than 5 [fixed64.gt]
-     * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
-     * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
-     * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be greater than or equal to 5 [fixed64.gte]
-     * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
-     * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
-     * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be greater than or equal to 5 [fixed64.gte]
-     * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
-     * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
-     * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public long getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be greater than or equal to 5 [fixed64.gte]
-     * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
-     * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
-     * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(long value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be greater than or equal to 5 [fixed64.gte]
-     * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
-     * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
-     * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * fixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.LongList in_ = emptyLongList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - private void ensureInIsMutable(int capacity) { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_, capacity); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public long getIn(int index) { - return in_.getLong(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, long value) { - - ensureInIsMutable(); - in_.setLong(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(long value) { - - ensureInIsMutable(); - in_.addLong(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList notIn_ = emptyLongList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - private void ensureNotInIsMutable(int capacity) { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_, capacity); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public long getNotIn(int index) { - return notIn_.getLong(index); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, long value) { - - ensureNotInIsMutable(); - notIn_.setLong(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(long value) { - - ensureNotInIsMutable(); - notIn_.addLong(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList example_ = emptyLongList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000080; - } - private void ensureExampleIsMutable(int capacity) { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_, capacity); - } - bitField0_ |= 0x00000080; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * fixed64 value = 1 [
-     * (buf.validate.field).fixed64.example = 1,
-     * (buf.validate.field).fixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * fixed64 value = 1 [
-     * (buf.validate.field).fixed64.example = 1,
-     * (buf.validate.field).fixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * fixed64 value = 1 [
-     * (buf.validate.field).fixed64.example = 1,
-     * (buf.validate.field).fixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public long getExample(int index) { - return example_.getLong(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * fixed64 value = 1 [
-     * (buf.validate.field).fixed64.example = 1,
-     * (buf.validate.field).fixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, long value) { - - ensureExampleIsMutable(); - example_.setLong(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * fixed64 value = 1 [
-     * (buf.validate.field).fixed64.example = 1,
-     * (buf.validate.field).fixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(long value) { - - ensureExampleIsMutable(); - example_.addLong(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * fixed64 value = 1 [
-     * (buf.validate.field).fixed64.example = 1,
-     * (buf.validate.field).fixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFixed64 {
-     * fixed64 value = 1 [
-     * (buf.validate.field).fixed64.example = 1,
-     * (buf.validate.field).fixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.Fixed64Rules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.Fixed64Rules) - private static final build.buf.validate.Fixed64Rules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.Fixed64Rules(); - } - - public static build.buf.validate.Fixed64Rules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fixed64Rules 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.Fixed64Rules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/Fixed64RulesOrBuilder.java b/src/main/java/build/buf/validate/Fixed64RulesOrBuilder.java deleted file mode 100644 index a79cb3fc..00000000 --- a/src/main/java/build/buf/validate/Fixed64RulesOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface Fixed64RulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.Fixed64Rules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must equal 42
-   * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional fixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must equal 42
-   * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional fixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - long getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be less than 10
-   * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
-   * }
-   * ```
-   * 
- * - * fixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be less than 10
-   * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
-   * }
-   * ```
-   * 
- * - * fixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - long getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be less than or equal to 10
-   * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
-   * }
-   * ```
-   * 
- * - * fixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be less than or equal to 10
-   * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
-   * }
-   * ```
-   * 
- * - * fixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - long getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be greater than 5 [fixed64.gt]
-   * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
-   * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
-   * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be greater than 5 [fixed64.gt]
-   * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
-   * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
-   * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - long getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be greater than or equal to 5 [fixed64.gte]
-   * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
-   * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
-   * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be greater than or equal to 5 [fixed64.gte]
-   * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
-   * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
-   * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * fixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - long getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - long getIn(int index); - - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - long getNotIn(int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * fixed64 value = 1 [
-   * (buf.validate.field).fixed64.example = 1,
-   * (buf.validate.field).fixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * fixed64 value = 1 [
-   * (buf.validate.field).fixed64.example = 1,
-   * (buf.validate.field).fixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFixed64 {
-   * fixed64 value = 1 [
-   * (buf.validate.field).fixed64.example = 1,
-   * (buf.validate.field).fixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated fixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - long getExample(int index); - - build.buf.validate.Fixed64Rules.LessThanCase getLessThanCase(); - - build.buf.validate.Fixed64Rules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/FloatRules.java b/src/main/java/build/buf/validate/FloatRules.java deleted file mode 100644 index 6fd9f188..00000000 --- a/src/main/java/build/buf/validate/FloatRules.java +++ /dev/null @@ -1,2517 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * FloatRules describes the constraints applied to `float` values. These
- * rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type.
- * 
- * - * Protobuf type {@code buf.validate.FloatRules} - */ -public final class FloatRules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - FloatRules> implements - // @@protoc_insertion_point(message_implements:buf.validate.FloatRules) - FloatRulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - FloatRules.class.getName()); - } - // Use FloatRules.newBuilder() to construct. - private FloatRules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private FloatRules() { - in_ = emptyFloatList(); - notIn_ = emptyFloatList(); - example_ = emptyFloatList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FloatRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FloatRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.FloatRules.class, build.buf.validate.FloatRules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private float const_ = 0F; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must equal 42.0
-   * float value = 1 [(buf.validate.field).float.const = 42.0];
-   * }
-   * ```
-   * 
- * - * optional float const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must equal 42.0
-   * float value = 1 [(buf.validate.field).float.const = 42.0];
-   * }
-   * ```
-   * 
- * - * optional float const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public float getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be less than 10.0
-   * float value = 1 [(buf.validate.field).float.lt = 10.0];
-   * }
-   * ```
-   * 
- * - * float lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be less than 10.0
-   * float value = 1 [(buf.validate.field).float.lt = 10.0];
-   * }
-   * ```
-   * 
- * - * float lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public float getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Float) lessThan_; - } - return 0F; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be less than or equal to 10.0
-   * float value = 1 [(buf.validate.field).float.lte = 10.0];
-   * }
-   * ```
-   * 
- * - * float lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be less than or equal to 10.0
-   * float value = 1 [(buf.validate.field).float.lte = 10.0];
-   * }
-   * ```
-   * 
- * - * float lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public float getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Float) lessThan_; - } - return 0F; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be greater than 5.0 [float.gt]
-   * float value = 1 [(buf.validate.field).float.gt = 5.0];
-   *
-   * // value must be greater than 5 and less than 10.0 [float.gt_lt]
-   * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
-   * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * float gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be greater than 5.0 [float.gt]
-   * float value = 1 [(buf.validate.field).float.gt = 5.0];
-   *
-   * // value must be greater than 5 and less than 10.0 [float.gt_lt]
-   * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
-   * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * float gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public float getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Float) greaterThan_; - } - return 0F; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be greater than or equal to 5.0 [float.gte]
-   * float value = 1 [(buf.validate.field).float.gte = 5.0];
-   *
-   * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
-   * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
-   * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * float gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be greater than or equal to 5.0 [float.gte]
-   * float value = 1 [(buf.validate.field).float.gte = 5.0];
-   *
-   * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
-   * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
-   * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * float gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public float getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Float) greaterThan_; - } - return 0F; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.FloatList in_ = - emptyFloatList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public float getIn(int index) { - return in_.getFloat(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.FloatList notIn_ = - emptyFloatList(); - /** - *
-   * `in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public float getNotIn(int index) { - return notIn_.getFloat(index); - } - - public static final int FINITE_FIELD_NUMBER = 8; - private boolean finite_ = false; - /** - *
-   * `finite` requires the field value to be finite. If the field value is
-   * infinite or NaN, an error message is generated.
-   * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return Whether the finite field is set. - */ - @java.lang.Override - public boolean hasFinite() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * `finite` requires the field value to be finite. If the field value is
-   * infinite or NaN, an error message is generated.
-   * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return The finite. - */ - @java.lang.Override - public boolean getFinite() { - return finite_; - } - - public static final int EXAMPLE_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.FloatList example_ = - emptyFloatList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFloat {
-   * float value = 1 [
-   * (buf.validate.field).float.example = 1.0,
-   * (buf.validate.field).float.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFloat {
-   * float value = 1 [
-   * (buf.validate.field).float.example = 1.0,
-   * (buf.validate.field).float.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFloat {
-   * float value = 1 [
-   * (buf.validate.field).float.example = 1.0,
-   * (buf.validate.field).float.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public float getExample(int index) { - return example_.getFloat(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFloat(1, const_); - } - if (lessThanCase_ == 2) { - output.writeFloat( - 2, (float)((java.lang.Float) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeFloat( - 3, (float)((java.lang.Float) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeFloat( - 4, (float)((java.lang.Float) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeFloat( - 5, (float)((java.lang.Float) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeFloat(6, in_.getFloat(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeFloat(7, notIn_.getFloat(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeBool(8, finite_); - } - for (int i = 0; i < example_.size(); i++) { - output.writeFloat(9, example_.getFloat(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 2, (float)((java.lang.Float) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 3, (float)((java.lang.Float) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 4, (float)((java.lang.Float) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 5, (float)((java.lang.Float) greaterThan_)); - } - { - int dataSize = 0; - dataSize = 4 * getInList().size(); - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - dataSize = 4 * getNotInList().size(); - size += dataSize; - size += 1 * getNotInList().size(); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, finite_); - } - { - int dataSize = 0; - dataSize = 4 * getExampleList().size(); - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.FloatRules)) { - return super.equals(obj); - } - build.buf.validate.FloatRules other = (build.buf.validate.FloatRules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (java.lang.Float.floatToIntBits(getConst()) - != java.lang.Float.floatToIntBits( - other.getConst())) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (hasFinite() != other.hasFinite()) return false; - if (hasFinite()) { - if (getFinite() - != other.getFinite()) return false; - } - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (java.lang.Float.floatToIntBits(getLt()) - != java.lang.Float.floatToIntBits( - other.getLt())) return false; - break; - case 3: - if (java.lang.Float.floatToIntBits(getLte()) - != java.lang.Float.floatToIntBits( - other.getLte())) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (java.lang.Float.floatToIntBits(getGt()) - != java.lang.Float.floatToIntBits( - other.getGt())) return false; - break; - case 5: - if (java.lang.Float.floatToIntBits(getGte()) - != java.lang.Float.floatToIntBits( - other.getGte())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConst()); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (hasFinite()) { - hash = (37 * hash) + FINITE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFinite()); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getLt()); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getLte()); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getGt()); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getGte()); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.FloatRules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FloatRules 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.FloatRules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FloatRules 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.FloatRules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.FloatRules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.FloatRules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.FloatRules 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.FloatRules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.FloatRules 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.FloatRules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.FloatRules 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.FloatRules 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; - } - /** - *
-   * FloatRules describes the constraints applied to `float` values. These
-   * rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type.
-   * 
- * - * Protobuf type {@code buf.validate.FloatRules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.FloatRules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.FloatRules) - build.buf.validate.FloatRulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FloatRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FloatRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.FloatRules.class, build.buf.validate.FloatRules.Builder.class); - } - - // Construct using build.buf.validate.FloatRules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0F; - in_ = emptyFloatList(); - notIn_ = emptyFloatList(); - finite_ = false; - example_ = emptyFloatList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_FloatRules_descriptor; - } - - @java.lang.Override - public build.buf.validate.FloatRules getDefaultInstanceForType() { - return build.buf.validate.FloatRules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.FloatRules build() { - build.buf.validate.FloatRules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.FloatRules buildPartial() { - build.buf.validate.FloatRules result = new build.buf.validate.FloatRules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.FloatRules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.finite_ = finite_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.FloatRules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.FloatRules) { - return mergeFrom((build.buf.validate.FloatRules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.FloatRules other) { - if (other == build.buf.validate.FloatRules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (other.hasFinite()) { - setFinite(other.getFinite()); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000100; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 13: { - const_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 21: { - lessThan_ = input.readFloat(); - lessThanCase_ = 2; - break; - } // case 21 - case 29: { - lessThan_ = input.readFloat(); - lessThanCase_ = 3; - break; - } // case 29 - case 37: { - greaterThan_ = input.readFloat(); - greaterThanCase_ = 4; - break; - } // case 37 - case 45: { - greaterThan_ = input.readFloat(); - greaterThanCase_ = 5; - break; - } // case 45 - case 53: { - float v = input.readFloat(); - ensureInIsMutable(); - in_.addFloat(v); - break; - } // case 53 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureInIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - in_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 50 - case 61: { - float v = input.readFloat(); - ensureNotInIsMutable(); - notIn_.addFloat(v); - break; - } // case 61 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureNotInIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - notIn_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 58 - case 64: { - finite_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 77: { - float v = input.readFloat(); - ensureExampleIsMutable(); - example_.addFloat(v); - break; - } // case 77 - case 74: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureExampleIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - example_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 74 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private float const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must equal 42.0
-     * float value = 1 [(buf.validate.field).float.const = 42.0];
-     * }
-     * ```
-     * 
- * - * optional float const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must equal 42.0
-     * float value = 1 [(buf.validate.field).float.const = 42.0];
-     * }
-     * ```
-     * 
- * - * optional float const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public float getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must equal 42.0
-     * float value = 1 [(buf.validate.field).float.const = 42.0];
-     * }
-     * ```
-     * 
- * - * optional float const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(float value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must equal 42.0
-     * float value = 1 [(buf.validate.field).float.const = 42.0];
-     * }
-     * ```
-     * 
- * - * optional float const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0F; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be less than 10.0
-     * float value = 1 [(buf.validate.field).float.lt = 10.0];
-     * }
-     * ```
-     * 
- * - * float lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be less than 10.0
-     * float value = 1 [(buf.validate.field).float.lt = 10.0];
-     * }
-     * ```
-     * 
- * - * float lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public float getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Float) lessThan_; - } - return 0F; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be less than 10.0
-     * float value = 1 [(buf.validate.field).float.lt = 10.0];
-     * }
-     * ```
-     * 
- * - * float lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(float value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be less than 10.0
-     * float value = 1 [(buf.validate.field).float.lt = 10.0];
-     * }
-     * ```
-     * 
- * - * float lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be less than or equal to 10.0
-     * float value = 1 [(buf.validate.field).float.lte = 10.0];
-     * }
-     * ```
-     * 
- * - * float lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be less than or equal to 10.0
-     * float value = 1 [(buf.validate.field).float.lte = 10.0];
-     * }
-     * ```
-     * 
- * - * float lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public float getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Float) lessThan_; - } - return 0F; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be less than or equal to 10.0
-     * float value = 1 [(buf.validate.field).float.lte = 10.0];
-     * }
-     * ```
-     * 
- * - * float lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(float value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be less than or equal to 10.0
-     * float value = 1 [(buf.validate.field).float.lte = 10.0];
-     * }
-     * ```
-     * 
- * - * float lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be greater than 5.0 [float.gt]
-     * float value = 1 [(buf.validate.field).float.gt = 5.0];
-     *
-     * // value must be greater than 5 and less than 10.0 [float.gt_lt]
-     * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
-     * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * float gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be greater than 5.0 [float.gt]
-     * float value = 1 [(buf.validate.field).float.gt = 5.0];
-     *
-     * // value must be greater than 5 and less than 10.0 [float.gt_lt]
-     * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
-     * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * float gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public float getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Float) greaterThan_; - } - return 0F; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be greater than 5.0 [float.gt]
-     * float value = 1 [(buf.validate.field).float.gt = 5.0];
-     *
-     * // value must be greater than 5 and less than 10.0 [float.gt_lt]
-     * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
-     * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * float gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(float value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be greater than 5.0 [float.gt]
-     * float value = 1 [(buf.validate.field).float.gt = 5.0];
-     *
-     * // value must be greater than 5 and less than 10.0 [float.gt_lt]
-     * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
-     * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * float gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be greater than or equal to 5.0 [float.gte]
-     * float value = 1 [(buf.validate.field).float.gte = 5.0];
-     *
-     * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
-     * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
-     * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * float gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be greater than or equal to 5.0 [float.gte]
-     * float value = 1 [(buf.validate.field).float.gte = 5.0];
-     *
-     * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
-     * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
-     * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * float gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public float getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Float) greaterThan_; - } - return 0F; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be greater than or equal to 5.0 [float.gte]
-     * float value = 1 [(buf.validate.field).float.gte = 5.0];
-     *
-     * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
-     * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
-     * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * float gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(float value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be greater than or equal to 5.0 [float.gte]
-     * float value = 1 [(buf.validate.field).float.gte = 5.0];
-     *
-     * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
-     * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
-     *
-     * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
-     * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
-     * }
-     * ```
-     * 
- * - * float gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.FloatList in_ = emptyFloatList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - private void ensureInIsMutable(int capacity) { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_, capacity); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public float getIn(int index) { - return in_.getFloat(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, float value) { - - ensureInIsMutable(); - in_.setFloat(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(float value) { - - ensureInIsMutable(); - in_.addFloat(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.FloatList notIn_ = emptyFloatList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - private void ensureNotInIsMutable(int capacity) { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_, capacity); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public float getNotIn(int index) { - return notIn_.getFloat(index); - } - /** - *
-     * `in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, float value) { - - ensureNotInIsMutable(); - notIn_.setFloat(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(float value) { - - ensureNotInIsMutable(); - notIn_.addFloat(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyFloat {
-     * // value must not be in list [1.0, 2.0, 3.0]
-     * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-     * }
-     * ```
-     * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private boolean finite_ ; - /** - *
-     * `finite` requires the field value to be finite. If the field value is
-     * infinite or NaN, an error message is generated.
-     * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return Whether the finite field is set. - */ - @java.lang.Override - public boolean hasFinite() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * `finite` requires the field value to be finite. If the field value is
-     * infinite or NaN, an error message is generated.
-     * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return The finite. - */ - @java.lang.Override - public boolean getFinite() { - return finite_; - } - /** - *
-     * `finite` requires the field value to be finite. If the field value is
-     * infinite or NaN, an error message is generated.
-     * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @param value The finite to set. - * @return This builder for chaining. - */ - public Builder setFinite(boolean value) { - - finite_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `finite` requires the field value to be finite. If the field value is
-     * infinite or NaN, an error message is generated.
-     * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearFinite() { - bitField0_ = (bitField0_ & ~0x00000080); - finite_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.FloatList example_ = emptyFloatList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000100; - } - private void ensureExampleIsMutable(int capacity) { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_, capacity); - } - bitField0_ |= 0x00000100; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFloat {
-     * float value = 1 [
-     * (buf.validate.field).float.example = 1.0,
-     * (buf.validate.field).float.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFloat {
-     * float value = 1 [
-     * (buf.validate.field).float.example = 1.0,
-     * (buf.validate.field).float.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFloat {
-     * float value = 1 [
-     * (buf.validate.field).float.example = 1.0,
-     * (buf.validate.field).float.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public float getExample(int index) { - return example_.getFloat(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFloat {
-     * float value = 1 [
-     * (buf.validate.field).float.example = 1.0,
-     * (buf.validate.field).float.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, float value) { - - ensureExampleIsMutable(); - example_.setFloat(index, value); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFloat {
-     * float value = 1 [
-     * (buf.validate.field).float.example = 1.0,
-     * (buf.validate.field).float.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(float value) { - - ensureExampleIsMutable(); - example_.addFloat(value); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFloat {
-     * float value = 1 [
-     * (buf.validate.field).float.example = 1.0,
-     * (buf.validate.field).float.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyFloat {
-     * float value = 1 [
-     * (buf.validate.field).float.example = 1.0,
-     * (buf.validate.field).float.example = "Infinity"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.FloatRules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.FloatRules) - private static final build.buf.validate.FloatRules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.FloatRules(); - } - - public static build.buf.validate.FloatRules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatRules 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.FloatRules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/FloatRulesOrBuilder.java b/src/main/java/build/buf/validate/FloatRulesOrBuilder.java deleted file mode 100644 index e97ba9a0..00000000 --- a/src/main/java/build/buf/validate/FloatRulesOrBuilder.java +++ /dev/null @@ -1,426 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface FloatRulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.FloatRules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must equal 42.0
-   * float value = 1 [(buf.validate.field).float.const = 42.0];
-   * }
-   * ```
-   * 
- * - * optional float const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must equal 42.0
-   * float value = 1 [(buf.validate.field).float.const = 42.0];
-   * }
-   * ```
-   * 
- * - * optional float const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - float getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be less than 10.0
-   * float value = 1 [(buf.validate.field).float.lt = 10.0];
-   * }
-   * ```
-   * 
- * - * float lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be less than 10.0
-   * float value = 1 [(buf.validate.field).float.lt = 10.0];
-   * }
-   * ```
-   * 
- * - * float lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - float getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be less than or equal to 10.0
-   * float value = 1 [(buf.validate.field).float.lte = 10.0];
-   * }
-   * ```
-   * 
- * - * float lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be less than or equal to 10.0
-   * float value = 1 [(buf.validate.field).float.lte = 10.0];
-   * }
-   * ```
-   * 
- * - * float lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - float getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be greater than 5.0 [float.gt]
-   * float value = 1 [(buf.validate.field).float.gt = 5.0];
-   *
-   * // value must be greater than 5 and less than 10.0 [float.gt_lt]
-   * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
-   * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * float gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be greater than 5.0 [float.gt]
-   * float value = 1 [(buf.validate.field).float.gt = 5.0];
-   *
-   * // value must be greater than 5 and less than 10.0 [float.gt_lt]
-   * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
-   * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * float gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - float getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be greater than or equal to 5.0 [float.gte]
-   * float value = 1 [(buf.validate.field).float.gte = 5.0];
-   *
-   * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
-   * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
-   * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * float gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be greater than or equal to 5.0 [float.gte]
-   * float value = 1 [(buf.validate.field).float.gte = 5.0];
-   *
-   * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
-   * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
-   *
-   * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
-   * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
-   * }
-   * ```
-   * 
- * - * float gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - float getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - float getIn(int index); - - /** - *
-   * `in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyFloat {
-   * // value must not be in list [1.0, 2.0, 3.0]
-   * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
-   * }
-   * ```
-   * 
- * - * repeated float not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - float getNotIn(int index); - - /** - *
-   * `finite` requires the field value to be finite. If the field value is
-   * infinite or NaN, an error message is generated.
-   * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return Whether the finite field is set. - */ - boolean hasFinite(); - /** - *
-   * `finite` requires the field value to be finite. If the field value is
-   * infinite or NaN, an error message is generated.
-   * 
- * - * optional bool finite = 8 [json_name = "finite", (.buf.validate.predefined) = { ... } - * @return The finite. - */ - boolean getFinite(); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFloat {
-   * float value = 1 [
-   * (buf.validate.field).float.example = 1.0,
-   * (buf.validate.field).float.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFloat {
-   * float value = 1 [
-   * (buf.validate.field).float.example = 1.0,
-   * (buf.validate.field).float.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyFloat {
-   * float value = 1 [
-   * (buf.validate.field).float.example = 1.0,
-   * (buf.validate.field).float.example = "Infinity"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated float example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - float getExample(int index); - - build.buf.validate.FloatRules.LessThanCase getLessThanCase(); - - build.buf.validate.FloatRules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/Ignore.java b/src/main/java/build/buf/validate/Ignore.java deleted file mode 100644 index fec8281a..00000000 --- a/src/main/java/build/buf/validate/Ignore.java +++ /dev/null @@ -1,427 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * Specifies how FieldConstraints.ignore behaves. See the documentation for
- * FieldConstraints.required for definitions of "populated" and "nullable".
- * 
- * - * Protobuf enum {@code buf.validate.Ignore} - */ -public enum Ignore - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Validation is only skipped if it's an unpopulated nullable fields.
-   *
-   * ```proto
-   * syntax="proto3";
-   *
-   * message Request {
-   * // The uri rule applies to any value, including the empty string.
-   * string foo = 1 [
-   * (buf.validate.field).string.uri = true
-   * ];
-   *
-   * // The uri rule only applies if the field is set, including if it's
-   * // set to the empty string.
-   * optional string bar = 2 [
-   * (buf.validate.field).string.uri = true
-   * ];
-   *
-   * // The min_items rule always applies, even if the list is empty.
-   * repeated string baz = 3 [
-   * (buf.validate.field).repeated.min_items = 3
-   * ];
-   *
-   * // The custom CEL rule applies only if the field is set, including if
-   * // it's the "zero" value of that message.
-   * SomeMessage quux = 4 [
-   * (buf.validate.field).cel = {/* ... */}
-   * ];
-   * }
-   * ```
-   * 
- * - * IGNORE_UNSPECIFIED = 0; - */ - IGNORE_UNSPECIFIED(0), - /** - *
-   * Validation is skipped if the field is unpopulated. This rule is redundant
-   * if the field is already nullable.
-   *
-   * ```proto
-   * syntax="proto3
-   *
-   * message Request {
-   * // The uri rule applies only if the value is not the empty string.
-   * string foo = 1 [
-   * (buf.validate.field).string.uri = true,
-   * (buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
-   * ];
-   *
-   * // IGNORE_IF_UNPOPULATED is equivalent to IGNORE_UNSPECIFIED in this
-   * // case: the uri rule only applies if the field is set, including if
-   * // it's set to the empty string.
-   * optional string bar = 2 [
-   * (buf.validate.field).string.uri = true,
-   * (buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
-   * ];
-   *
-   * // The min_items rule only applies if the list has at least one item.
-   * repeated string baz = 3 [
-   * (buf.validate.field).repeated.min_items = 3,
-   * (buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
-   * ];
-   *
-   * // IGNORE_IF_UNPOPULATED is equivalent to IGNORE_UNSPECIFIED in this
-   * // case: the custom CEL rule applies only if the field is set, including
-   * // if it's the "zero" value of that message.
-   * SomeMessage quux = 4 [
-   * (buf.validate.field).cel = {/* ... */},
-   * (buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
-   * ];
-   * }
-   * ```
-   * 
- * - * IGNORE_IF_UNPOPULATED = 1; - */ - IGNORE_IF_UNPOPULATED(1), - /** - *
-   * Validation is skipped if the field is unpopulated or if it is a nullable
-   * field populated with its default value. This is typically the zero or
-   * empty value, but proto2 scalars support custom defaults. For messages, the
-   * default is a non-null message with all its fields unpopulated.
-   *
-   * ```proto
-   * syntax="proto3
-   *
-   * message Request {
-   * // IGNORE_IF_DEFAULT_VALUE is equivalent to IGNORE_IF_UNPOPULATED in
-   * // this case; the uri rule applies only if the value is not the empty
-   * // string.
-   * string foo = 1 [
-   * (buf.validate.field).string.uri = true,
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE
-   * ];
-   *
-   * // The uri rule only applies if the field is set to a value other than
-   * // the empty string.
-   * optional string bar = 2 [
-   * (buf.validate.field).string.uri = true,
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE
-   * ];
-   *
-   * // IGNORE_IF_DEFAULT_VALUE is equivalent to IGNORE_IF_UNPOPULATED in
-   * // this case; the min_items rule only applies if the list has at least
-   * // one item.
-   * repeated string baz = 3 [
-   * (buf.validate.field).repeated.min_items = 3,
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE
-   * ];
-   *
-   * // The custom CEL rule only applies if the field is set to a value other
-   * // than an empty message (i.e., fields are unpopulated).
-   * SomeMessage quux = 4 [
-   * (buf.validate.field).cel = {/* ... */},
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE
-   * ];
-   * }
-   * ```
-   *
-   * This rule is affected by proto2 custom default values:
-   *
-   * ```proto
-   * syntax="proto2";
-   *
-   * message Request {
-   * // The gt rule only applies if the field is set and it's value is not
-   * the default (i.e., not -42). The rule even applies if the field is set
-   * to zero since the default value differs.
-   * optional int32 value = 1 [
-   * default = -42,
-   * (buf.validate.field).int32.gt = 0,
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE
-   * ];
-   * }
-   * 
- * - * IGNORE_IF_DEFAULT_VALUE = 2; - */ - IGNORE_IF_DEFAULT_VALUE(2), - /** - *
-   * The validation rules of this field will be skipped and not evaluated. This
-   * is useful for situations that necessitate turning off the rules of a field
-   * containing a message that may not make sense in the current context, or to
-   * temporarily disable constraints during development.
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field's rules will always be ignored, including any validation's
-   * // on value's fields.
-   * MyOtherMessage value = 1 [
-   * (buf.validate.field).ignore = IGNORE_ALWAYS];
-   * }
-   * ```
-   * 
- * - * IGNORE_ALWAYS = 3; - */ - IGNORE_ALWAYS(3), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Ignore.class.getName()); - } - /** - *
-   * Validation is only skipped if it's an unpopulated nullable fields.
-   *
-   * ```proto
-   * syntax="proto3";
-   *
-   * message Request {
-   * // The uri rule applies to any value, including the empty string.
-   * string foo = 1 [
-   * (buf.validate.field).string.uri = true
-   * ];
-   *
-   * // The uri rule only applies if the field is set, including if it's
-   * // set to the empty string.
-   * optional string bar = 2 [
-   * (buf.validate.field).string.uri = true
-   * ];
-   *
-   * // The min_items rule always applies, even if the list is empty.
-   * repeated string baz = 3 [
-   * (buf.validate.field).repeated.min_items = 3
-   * ];
-   *
-   * // The custom CEL rule applies only if the field is set, including if
-   * // it's the "zero" value of that message.
-   * SomeMessage quux = 4 [
-   * (buf.validate.field).cel = {/* ... */}
-   * ];
-   * }
-   * ```
-   * 
- * - * IGNORE_UNSPECIFIED = 0; - */ - public static final int IGNORE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Validation is skipped if the field is unpopulated. This rule is redundant
-   * if the field is already nullable.
-   *
-   * ```proto
-   * syntax="proto3
-   *
-   * message Request {
-   * // The uri rule applies only if the value is not the empty string.
-   * string foo = 1 [
-   * (buf.validate.field).string.uri = true,
-   * (buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
-   * ];
-   *
-   * // IGNORE_IF_UNPOPULATED is equivalent to IGNORE_UNSPECIFIED in this
-   * // case: the uri rule only applies if the field is set, including if
-   * // it's set to the empty string.
-   * optional string bar = 2 [
-   * (buf.validate.field).string.uri = true,
-   * (buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
-   * ];
-   *
-   * // The min_items rule only applies if the list has at least one item.
-   * repeated string baz = 3 [
-   * (buf.validate.field).repeated.min_items = 3,
-   * (buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
-   * ];
-   *
-   * // IGNORE_IF_UNPOPULATED is equivalent to IGNORE_UNSPECIFIED in this
-   * // case: the custom CEL rule applies only if the field is set, including
-   * // if it's the "zero" value of that message.
-   * SomeMessage quux = 4 [
-   * (buf.validate.field).cel = {/* ... */},
-   * (buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
-   * ];
-   * }
-   * ```
-   * 
- * - * IGNORE_IF_UNPOPULATED = 1; - */ - public static final int IGNORE_IF_UNPOPULATED_VALUE = 1; - /** - *
-   * Validation is skipped if the field is unpopulated or if it is a nullable
-   * field populated with its default value. This is typically the zero or
-   * empty value, but proto2 scalars support custom defaults. For messages, the
-   * default is a non-null message with all its fields unpopulated.
-   *
-   * ```proto
-   * syntax="proto3
-   *
-   * message Request {
-   * // IGNORE_IF_DEFAULT_VALUE is equivalent to IGNORE_IF_UNPOPULATED in
-   * // this case; the uri rule applies only if the value is not the empty
-   * // string.
-   * string foo = 1 [
-   * (buf.validate.field).string.uri = true,
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE
-   * ];
-   *
-   * // The uri rule only applies if the field is set to a value other than
-   * // the empty string.
-   * optional string bar = 2 [
-   * (buf.validate.field).string.uri = true,
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE
-   * ];
-   *
-   * // IGNORE_IF_DEFAULT_VALUE is equivalent to IGNORE_IF_UNPOPULATED in
-   * // this case; the min_items rule only applies if the list has at least
-   * // one item.
-   * repeated string baz = 3 [
-   * (buf.validate.field).repeated.min_items = 3,
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE
-   * ];
-   *
-   * // The custom CEL rule only applies if the field is set to a value other
-   * // than an empty message (i.e., fields are unpopulated).
-   * SomeMessage quux = 4 [
-   * (buf.validate.field).cel = {/* ... */},
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE
-   * ];
-   * }
-   * ```
-   *
-   * This rule is affected by proto2 custom default values:
-   *
-   * ```proto
-   * syntax="proto2";
-   *
-   * message Request {
-   * // The gt rule only applies if the field is set and it's value is not
-   * the default (i.e., not -42). The rule even applies if the field is set
-   * to zero since the default value differs.
-   * optional int32 value = 1 [
-   * default = -42,
-   * (buf.validate.field).int32.gt = 0,
-   * (buf.validate.field).ignore = IGNORE_IF_DEFAULT_VALUE
-   * ];
-   * }
-   * 
- * - * IGNORE_IF_DEFAULT_VALUE = 2; - */ - public static final int IGNORE_IF_DEFAULT_VALUE_VALUE = 2; - /** - *
-   * The validation rules of this field will be skipped and not evaluated. This
-   * is useful for situations that necessitate turning off the rules of a field
-   * containing a message that may not make sense in the current context, or to
-   * temporarily disable constraints during development.
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field's rules will always be ignored, including any validation's
-   * // on value's fields.
-   * MyOtherMessage value = 1 [
-   * (buf.validate.field).ignore = IGNORE_ALWAYS];
-   * }
-   * ```
-   * 
- * - * IGNORE_ALWAYS = 3; - */ - public static final int IGNORE_ALWAYS_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Ignore valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Ignore forNumber(int value) { - switch (value) { - case 0: return IGNORE_UNSPECIFIED; - case 1: return IGNORE_IF_UNPOPULATED; - case 2: return IGNORE_IF_DEFAULT_VALUE; - case 3: return IGNORE_ALWAYS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Ignore> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Ignore findValueByNumber(int number) { - return Ignore.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.ValidateProto.getDescriptor().getEnumTypes().get(0); - } - - private static final Ignore[] VALUES = values(); - - public static Ignore valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Ignore(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.Ignore) -} - diff --git a/src/main/java/build/buf/validate/Int32Rules.java b/src/main/java/build/buf/validate/Int32Rules.java deleted file mode 100644 index e61a8438..00000000 --- a/src/main/java/build/buf/validate/Int32Rules.java +++ /dev/null @@ -1,2376 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * Int32Rules describes the constraints applied to `int32` values. These
- * rules may also be applied to the `google.protobuf.Int32Value` Well-Known-Type.
- * 
- * - * Protobuf type {@code buf.validate.Int32Rules} - */ -public final class Int32Rules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - Int32Rules> implements - // @@protoc_insertion_point(message_implements:buf.validate.Int32Rules) - Int32RulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int32Rules.class.getName()); - } - // Use Int32Rules.newBuilder() to construct. - private Int32Rules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private Int32Rules() { - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Int32Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Int32Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Int32Rules.class, build.buf.validate.Int32Rules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private int const_ = 0; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must equal 42
-   * int32 value = 1 [(buf.validate.field).int32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must equal 42
-   * int32 value = 1 [(buf.validate.field).int32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be less than 10
-   * int32 value = 1 [(buf.validate.field).int32.lt = 10];
-   * }
-   * ```
-   * 
- * - * int32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be less than 10
-   * int32 value = 1 [(buf.validate.field).int32.lt = 10];
-   * }
-   * ```
-   * 
- * - * int32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public int getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be less than or equal to 10
-   * int32 value = 1 [(buf.validate.field).int32.lte = 10];
-   * }
-   * ```
-   * 
- * - * int32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be less than or equal to 10
-   * int32 value = 1 [(buf.validate.field).int32.lte = 10];
-   * }
-   * ```
-   * 
- * - * int32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public int getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be greater than 5 [int32.gt]
-   * int32 value = 1 [(buf.validate.field).int32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [int32.gt_lt]
-   * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
-   * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be greater than 5 [int32.gt]
-   * int32 value = 1 [(buf.validate.field).int32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [int32.gt_lt]
-   * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
-   * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public int getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified value
-   * (exclusive). If the value of `gte` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be greater than or equal to 5 [int32.gte]
-   * int32 value = 1 [(buf.validate.field).int32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
-   * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
-   * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified value
-   * (exclusive). If the value of `gte` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be greater than or equal to 5 [int32.gte]
-   * int32 value = 1 [(buf.validate.field).int32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
-   * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
-   * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public int getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList in_ = - emptyIntList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList notIn_ = - emptyIntList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must not be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must not be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must not be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList example_ = - emptyIntList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt32 {
-   * int32 value = 1 [
-   * (buf.validate.field).int32.example = 1,
-   * (buf.validate.field).int32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt32 {
-   * int32 value = 1 [
-   * (buf.validate.field).int32.example = 1,
-   * (buf.validate.field).int32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt32 {
-   * int32 value = 1 [
-   * (buf.validate.field).int32.example = 1,
-   * (buf.validate.field).int32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, const_); - } - if (lessThanCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeInt32( - 3, (int)((java.lang.Integer) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeInt32( - 4, (int)((java.lang.Integer) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeInt32( - 5, (int)((java.lang.Integer) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeInt32(6, in_.getInt(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeInt32(7, notIn_.getInt(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeInt32(8, example_.getInt(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 3, (int)((java.lang.Integer) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 4, (int)((java.lang.Integer) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 5, (int)((java.lang.Integer) greaterThan_)); - } - { - int dataSize = 0; - for (int i = 0; i < in_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(in_.getInt(i)); - } - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < notIn_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(notIn_.getInt(i)); - } - size += dataSize; - size += 1 * getNotInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < example_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(example_.getInt(i)); - } - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.Int32Rules)) { - return super.equals(obj); - } - build.buf.validate.Int32Rules other = (build.buf.validate.Int32Rules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (getLt() - != other.getLt()) return false; - break; - case 3: - if (getLte() - != other.getLte()) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (getGt() - != other.getGt()) return false; - break; - case 5: - if (getGte() - != other.getGte()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst(); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + getLt(); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + getLte(); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + getGt(); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + getGte(); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.Int32Rules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Int32Rules 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.Int32Rules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Int32Rules 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.Int32Rules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Int32Rules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.Int32Rules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Int32Rules 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.Int32Rules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.Int32Rules 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.Int32Rules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Int32Rules 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.Int32Rules 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; - } - /** - *
-   * Int32Rules describes the constraints applied to `int32` values. These
-   * rules may also be applied to the `google.protobuf.Int32Value` Well-Known-Type.
-   * 
- * - * Protobuf type {@code buf.validate.Int32Rules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.Int32Rules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.Int32Rules) - build.buf.validate.Int32RulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Int32Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Int32Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Int32Rules.class, build.buf.validate.Int32Rules.Builder.class); - } - - // Construct using build.buf.validate.Int32Rules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0; - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Int32Rules_descriptor; - } - - @java.lang.Override - public build.buf.validate.Int32Rules getDefaultInstanceForType() { - return build.buf.validate.Int32Rules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.Int32Rules build() { - build.buf.validate.Int32Rules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.Int32Rules buildPartial() { - build.buf.validate.Int32Rules result = new build.buf.validate.Int32Rules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.Int32Rules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.Int32Rules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.Int32Rules) { - return mergeFrom((build.buf.validate.Int32Rules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.Int32Rules other) { - if (other == build.buf.validate.Int32Rules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000080; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 8: { - const_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - lessThan_ = input.readInt32(); - lessThanCase_ = 2; - break; - } // case 16 - case 24: { - lessThan_ = input.readInt32(); - lessThanCase_ = 3; - break; - } // case 24 - case 32: { - greaterThan_ = input.readInt32(); - greaterThanCase_ = 4; - break; - } // case 32 - case 40: { - greaterThan_ = input.readInt32(); - greaterThanCase_ = 5; - break; - } // case 40 - case 48: { - int v = input.readInt32(); - ensureInIsMutable(); - in_.addInt(v); - break; - } // case 48 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - in_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 50 - case 56: { - int v = input.readInt32(); - ensureNotInIsMutable(); - notIn_.addInt(v); - break; - } // case 56 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureNotInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - notIn_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 58 - case 64: { - int v = input.readInt32(); - ensureExampleIsMutable(); - example_.addInt(v); - break; - } // case 64 - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureExampleIsMutable(); - while (input.getBytesUntilLimit() > 0) { - example_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } // case 66 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must equal 42
-     * int32 value = 1 [(buf.validate.field).int32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must equal 42
-     * int32 value = 1 [(buf.validate.field).int32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must equal 42
-     * int32 value = 1 [(buf.validate.field).int32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(int value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must equal 42
-     * int32 value = 1 [(buf.validate.field).int32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be less than 10
-     * int32 value = 1 [(buf.validate.field).int32.lt = 10];
-     * }
-     * ```
-     * 
- * - * int32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be less than 10
-     * int32 value = 1 [(buf.validate.field).int32.lt = 10];
-     * }
-     * ```
-     * 
- * - * int32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public int getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be less than 10
-     * int32 value = 1 [(buf.validate.field).int32.lt = 10];
-     * }
-     * ```
-     * 
- * - * int32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(int value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be less than 10
-     * int32 value = 1 [(buf.validate.field).int32.lt = 10];
-     * }
-     * ```
-     * 
- * - * int32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be less than or equal to 10
-     * int32 value = 1 [(buf.validate.field).int32.lte = 10];
-     * }
-     * ```
-     * 
- * - * int32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be less than or equal to 10
-     * int32 value = 1 [(buf.validate.field).int32.lte = 10];
-     * }
-     * ```
-     * 
- * - * int32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public int getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be less than or equal to 10
-     * int32 value = 1 [(buf.validate.field).int32.lte = 10];
-     * }
-     * ```
-     * 
- * - * int32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(int value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be less than or equal to 10
-     * int32 value = 1 [(buf.validate.field).int32.lte = 10];
-     * }
-     * ```
-     * 
- * - * int32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be greater than 5 [int32.gt]
-     * int32 value = 1 [(buf.validate.field).int32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [int32.gt_lt]
-     * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
-     * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be greater than 5 [int32.gt]
-     * int32 value = 1 [(buf.validate.field).int32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [int32.gt_lt]
-     * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
-     * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public int getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be greater than 5 [int32.gt]
-     * int32 value = 1 [(buf.validate.field).int32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [int32.gt_lt]
-     * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
-     * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(int value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be greater than 5 [int32.gt]
-     * int32 value = 1 [(buf.validate.field).int32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [int32.gt_lt]
-     * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
-     * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified value
-     * (exclusive). If the value of `gte` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be greater than or equal to 5 [int32.gte]
-     * int32 value = 1 [(buf.validate.field).int32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
-     * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
-     * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified value
-     * (exclusive). If the value of `gte` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be greater than or equal to 5 [int32.gte]
-     * int32 value = 1 [(buf.validate.field).int32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
-     * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
-     * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public int getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified value
-     * (exclusive). If the value of `gte` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be greater than or equal to 5 [int32.gte]
-     * int32 value = 1 [(buf.validate.field).int32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
-     * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
-     * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(int value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified value
-     * (exclusive). If the value of `gte` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be greater than or equal to 5 [int32.gte]
-     * int32 value = 1 [(buf.validate.field).int32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
-     * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
-     * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.IntList in_ = emptyIntList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, int value) { - - ensureInIsMutable(); - in_.setInt(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(int value) { - - ensureInIsMutable(); - in_.addInt(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList notIn_ = emptyIntList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must not be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must not be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must not be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must not be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, int value) { - - ensureNotInIsMutable(); - notIn_.setInt(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must not be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(int value) { - - ensureNotInIsMutable(); - notIn_.addInt(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must not be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MyInt32 {
-     * // value must not be in list [1, 2, 3]
-     * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList example_ = emptyIntList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000080; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt32 {
-     * int32 value = 1 [
-     * (buf.validate.field).int32.example = 1,
-     * (buf.validate.field).int32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt32 {
-     * int32 value = 1 [
-     * (buf.validate.field).int32.example = 1,
-     * (buf.validate.field).int32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt32 {
-     * int32 value = 1 [
-     * (buf.validate.field).int32.example = 1,
-     * (buf.validate.field).int32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt32 {
-     * int32 value = 1 [
-     * (buf.validate.field).int32.example = 1,
-     * (buf.validate.field).int32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, int value) { - - ensureExampleIsMutable(); - example_.setInt(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt32 {
-     * int32 value = 1 [
-     * (buf.validate.field).int32.example = 1,
-     * (buf.validate.field).int32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(int value) { - - ensureExampleIsMutable(); - example_.addInt(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt32 {
-     * int32 value = 1 [
-     * (buf.validate.field).int32.example = 1,
-     * (buf.validate.field).int32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt32 {
-     * int32 value = 1 [
-     * (buf.validate.field).int32.example = 1,
-     * (buf.validate.field).int32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.Int32Rules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.Int32Rules) - private static final build.buf.validate.Int32Rules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.Int32Rules(); - } - - public static build.buf.validate.Int32Rules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int32Rules 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.Int32Rules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/Int32RulesOrBuilder.java b/src/main/java/build/buf/validate/Int32RulesOrBuilder.java deleted file mode 100644 index 2fa72941..00000000 --- a/src/main/java/build/buf/validate/Int32RulesOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface Int32RulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.Int32Rules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must equal 42
-   * int32 value = 1 [(buf.validate.field).int32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must equal 42
-   * int32 value = 1 [(buf.validate.field).int32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional int32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - int getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be less than 10
-   * int32 value = 1 [(buf.validate.field).int32.lt = 10];
-   * }
-   * ```
-   * 
- * - * int32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be less than 10
-   * int32 value = 1 [(buf.validate.field).int32.lt = 10];
-   * }
-   * ```
-   * 
- * - * int32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - int getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be less than or equal to 10
-   * int32 value = 1 [(buf.validate.field).int32.lte = 10];
-   * }
-   * ```
-   * 
- * - * int32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be less than or equal to 10
-   * int32 value = 1 [(buf.validate.field).int32.lte = 10];
-   * }
-   * ```
-   * 
- * - * int32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - int getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be greater than 5 [int32.gt]
-   * int32 value = 1 [(buf.validate.field).int32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [int32.gt_lt]
-   * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
-   * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be greater than 5 [int32.gt]
-   * int32 value = 1 [(buf.validate.field).int32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [int32.gt_lt]
-   * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
-   * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - int getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified value
-   * (exclusive). If the value of `gte` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be greater than or equal to 5 [int32.gte]
-   * int32 value = 1 [(buf.validate.field).int32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
-   * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
-   * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified value
-   * (exclusive). If the value of `gte` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be greater than or equal to 5 [int32.gte]
-   * int32 value = 1 [(buf.validate.field).int32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
-   * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
-   * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - int getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - int getIn(int index); - - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must not be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must not be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MyInt32 {
-   * // value must not be in list [1, 2, 3]
-   * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - int getNotIn(int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt32 {
-   * int32 value = 1 [
-   * (buf.validate.field).int32.example = 1,
-   * (buf.validate.field).int32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt32 {
-   * int32 value = 1 [
-   * (buf.validate.field).int32.example = 1,
-   * (buf.validate.field).int32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt32 {
-   * int32 value = 1 [
-   * (buf.validate.field).int32.example = 1,
-   * (buf.validate.field).int32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - int getExample(int index); - - build.buf.validate.Int32Rules.LessThanCase getLessThanCase(); - - build.buf.validate.Int32Rules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/Int64Rules.java b/src/main/java/build/buf/validate/Int64Rules.java deleted file mode 100644 index 0da239af..00000000 --- a/src/main/java/build/buf/validate/Int64Rules.java +++ /dev/null @@ -1,2381 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * Int64Rules describes the constraints applied to `int64` values. These
- * rules may also be applied to the `google.protobuf.Int64Value` Well-Known-Type.
- * 
- * - * Protobuf type {@code buf.validate.Int64Rules} - */ -public final class Int64Rules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - Int64Rules> implements - // @@protoc_insertion_point(message_implements:buf.validate.Int64Rules) - Int64RulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Int64Rules.class.getName()); - } - // Use Int64Rules.newBuilder() to construct. - private Int64Rules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private Int64Rules() { - in_ = emptyLongList(); - notIn_ = emptyLongList(); - example_ = emptyLongList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Int64Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Int64Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Int64Rules.class, build.buf.validate.Int64Rules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private long const_ = 0L; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must equal 42
-   * int64 value = 1 [(buf.validate.field).int64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional int64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must equal 42
-   * int64 value = 1 [(buf.validate.field).int64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional int64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public long getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be less than 10
-   * int64 value = 1 [(buf.validate.field).int64.lt = 10];
-   * }
-   * ```
-   * 
- * - * int64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be less than 10
-   * int64 value = 1 [(buf.validate.field).int64.lt = 10];
-   * }
-   * ```
-   * 
- * - * int64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public long getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be less than or equal to 10
-   * int64 value = 1 [(buf.validate.field).int64.lte = 10];
-   * }
-   * ```
-   * 
- * - * int64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be less than or equal to 10
-   * int64 value = 1 [(buf.validate.field).int64.lte = 10];
-   * }
-   * ```
-   * 
- * - * int64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public long getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be greater than 5 [int64.gt]
-   * int64 value = 1 [(buf.validate.field).int64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [int64.gt_lt]
-   * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
-   * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be greater than 5 [int64.gt]
-   * int64 value = 1 [(buf.validate.field).int64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [int64.gt_lt]
-   * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
-   * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public long getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be greater than or equal to 5 [int64.gte]
-   * int64 value = 1 [(buf.validate.field).int64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
-   * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
-   * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be greater than or equal to 5 [int64.gte]
-   * int64 value = 1 [(buf.validate.field).int64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
-   * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
-   * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public long getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList in_ = - emptyLongList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public long getIn(int index) { - return in_.getLong(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList notIn_ = - emptyLongList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must not be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must not be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must not be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public long getNotIn(int index) { - return notIn_.getLong(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList example_ = - emptyLongList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt64 {
-   * int64 value = 1 [
-   * (buf.validate.field).int64.example = 1,
-   * (buf.validate.field).int64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt64 {
-   * int64 value = 1 [
-   * (buf.validate.field).int64.example = 1,
-   * (buf.validate.field).int64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt64 {
-   * int64 value = 1 [
-   * (buf.validate.field).int64.example = 1,
-   * (buf.validate.field).int64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public long getExample(int index) { - return example_.getLong(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(1, const_); - } - if (lessThanCase_ == 2) { - output.writeInt64( - 2, (long)((java.lang.Long) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeInt64( - 3, (long)((java.lang.Long) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeInt64( - 4, (long)((java.lang.Long) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeInt64( - 5, (long)((java.lang.Long) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeInt64(6, in_.getLong(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeInt64(7, notIn_.getLong(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeInt64(9, example_.getLong(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 2, (long)((java.lang.Long) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 3, (long)((java.lang.Long) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 4, (long)((java.lang.Long) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 5, (long)((java.lang.Long) greaterThan_)); - } - { - int dataSize = 0; - for (int i = 0; i < in_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(in_.getLong(i)); - } - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < notIn_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(notIn_.getLong(i)); - } - size += dataSize; - size += 1 * getNotInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < example_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(example_.getLong(i)); - } - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.Int64Rules)) { - return super.equals(obj); - } - build.buf.validate.Int64Rules other = (build.buf.validate.Int64Rules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (getLt() - != other.getLt()) return false; - break; - case 3: - if (getLte() - != other.getLte()) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (getGt() - != other.getGt()) return false; - break; - case 5: - if (getGte() - != other.getGte()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConst()); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLt()); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLte()); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGt()); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGte()); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.Int64Rules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Int64Rules 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.Int64Rules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Int64Rules 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.Int64Rules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Int64Rules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.Int64Rules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Int64Rules 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.Int64Rules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.Int64Rules 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.Int64Rules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Int64Rules 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.Int64Rules 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; - } - /** - *
-   * Int64Rules describes the constraints applied to `int64` values. These
-   * rules may also be applied to the `google.protobuf.Int64Value` Well-Known-Type.
-   * 
- * - * Protobuf type {@code buf.validate.Int64Rules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.Int64Rules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.Int64Rules) - build.buf.validate.Int64RulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Int64Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Int64Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Int64Rules.class, build.buf.validate.Int64Rules.Builder.class); - } - - // Construct using build.buf.validate.Int64Rules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0L; - in_ = emptyLongList(); - notIn_ = emptyLongList(); - example_ = emptyLongList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Int64Rules_descriptor; - } - - @java.lang.Override - public build.buf.validate.Int64Rules getDefaultInstanceForType() { - return build.buf.validate.Int64Rules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.Int64Rules build() { - build.buf.validate.Int64Rules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.Int64Rules buildPartial() { - build.buf.validate.Int64Rules result = new build.buf.validate.Int64Rules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.Int64Rules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.Int64Rules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.Int64Rules) { - return mergeFrom((build.buf.validate.Int64Rules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.Int64Rules other) { - if (other == build.buf.validate.Int64Rules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000080; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 8: { - const_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - lessThan_ = input.readInt64(); - lessThanCase_ = 2; - break; - } // case 16 - case 24: { - lessThan_ = input.readInt64(); - lessThanCase_ = 3; - break; - } // case 24 - case 32: { - greaterThan_ = input.readInt64(); - greaterThanCase_ = 4; - break; - } // case 32 - case 40: { - greaterThan_ = input.readInt64(); - greaterThanCase_ = 5; - break; - } // case 40 - case 48: { - long v = input.readInt64(); - ensureInIsMutable(); - in_.addLong(v); - break; - } // case 48 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - in_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } // case 50 - case 56: { - long v = input.readInt64(); - ensureNotInIsMutable(); - notIn_.addLong(v); - break; - } // case 56 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureNotInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - notIn_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } // case 58 - case 72: { - long v = input.readInt64(); - ensureExampleIsMutable(); - example_.addLong(v); - break; - } // case 72 - case 74: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureExampleIsMutable(); - while (input.getBytesUntilLimit() > 0) { - example_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } // case 74 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private long const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must equal 42
-     * int64 value = 1 [(buf.validate.field).int64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional int64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must equal 42
-     * int64 value = 1 [(buf.validate.field).int64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional int64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public long getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must equal 42
-     * int64 value = 1 [(buf.validate.field).int64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional int64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(long value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must equal 42
-     * int64 value = 1 [(buf.validate.field).int64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional int64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0L; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be less than 10
-     * int64 value = 1 [(buf.validate.field).int64.lt = 10];
-     * }
-     * ```
-     * 
- * - * int64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be less than 10
-     * int64 value = 1 [(buf.validate.field).int64.lt = 10];
-     * }
-     * ```
-     * 
- * - * int64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public long getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be less than 10
-     * int64 value = 1 [(buf.validate.field).int64.lt = 10];
-     * }
-     * ```
-     * 
- * - * int64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(long value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be less than 10
-     * int64 value = 1 [(buf.validate.field).int64.lt = 10];
-     * }
-     * ```
-     * 
- * - * int64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be less than or equal to 10
-     * int64 value = 1 [(buf.validate.field).int64.lte = 10];
-     * }
-     * ```
-     * 
- * - * int64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be less than or equal to 10
-     * int64 value = 1 [(buf.validate.field).int64.lte = 10];
-     * }
-     * ```
-     * 
- * - * int64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public long getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be less than or equal to 10
-     * int64 value = 1 [(buf.validate.field).int64.lte = 10];
-     * }
-     * ```
-     * 
- * - * int64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(long value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be less than or equal to 10
-     * int64 value = 1 [(buf.validate.field).int64.lte = 10];
-     * }
-     * ```
-     * 
- * - * int64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be greater than 5 [int64.gt]
-     * int64 value = 1 [(buf.validate.field).int64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [int64.gt_lt]
-     * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
-     * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be greater than 5 [int64.gt]
-     * int64 value = 1 [(buf.validate.field).int64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [int64.gt_lt]
-     * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
-     * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public long getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be greater than 5 [int64.gt]
-     * int64 value = 1 [(buf.validate.field).int64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [int64.gt_lt]
-     * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
-     * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(long value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be greater than 5 [int64.gt]
-     * int64 value = 1 [(buf.validate.field).int64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [int64.gt_lt]
-     * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
-     * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be greater than or equal to 5 [int64.gte]
-     * int64 value = 1 [(buf.validate.field).int64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
-     * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
-     * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be greater than or equal to 5 [int64.gte]
-     * int64 value = 1 [(buf.validate.field).int64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
-     * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
-     * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public long getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be greater than or equal to 5 [int64.gte]
-     * int64 value = 1 [(buf.validate.field).int64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
-     * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
-     * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(long value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be greater than or equal to 5 [int64.gte]
-     * int64 value = 1 [(buf.validate.field).int64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
-     * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
-     * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * int64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.LongList in_ = emptyLongList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public long getIn(int index) { - return in_.getLong(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, long value) { - - ensureInIsMutable(); - in_.setLong(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(long value) { - - ensureInIsMutable(); - in_.addLong(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList notIn_ = emptyLongList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must not be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must not be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must not be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public long getNotIn(int index) { - return notIn_.getLong(index); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must not be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, long value) { - - ensureNotInIsMutable(); - notIn_.setLong(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must not be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(long value) { - - ensureNotInIsMutable(); - notIn_.addLong(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must not be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyInt64 {
-     * // value must not be in list [1, 2, 3]
-     * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList example_ = emptyLongList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000080; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt64 {
-     * int64 value = 1 [
-     * (buf.validate.field).int64.example = 1,
-     * (buf.validate.field).int64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt64 {
-     * int64 value = 1 [
-     * (buf.validate.field).int64.example = 1,
-     * (buf.validate.field).int64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt64 {
-     * int64 value = 1 [
-     * (buf.validate.field).int64.example = 1,
-     * (buf.validate.field).int64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public long getExample(int index) { - return example_.getLong(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt64 {
-     * int64 value = 1 [
-     * (buf.validate.field).int64.example = 1,
-     * (buf.validate.field).int64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, long value) { - - ensureExampleIsMutable(); - example_.setLong(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt64 {
-     * int64 value = 1 [
-     * (buf.validate.field).int64.example = 1,
-     * (buf.validate.field).int64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(long value) { - - ensureExampleIsMutable(); - example_.addLong(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt64 {
-     * int64 value = 1 [
-     * (buf.validate.field).int64.example = 1,
-     * (buf.validate.field).int64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyInt64 {
-     * int64 value = 1 [
-     * (buf.validate.field).int64.example = 1,
-     * (buf.validate.field).int64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.Int64Rules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.Int64Rules) - private static final build.buf.validate.Int64Rules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.Int64Rules(); - } - - public static build.buf.validate.Int64Rules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Int64Rules 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.Int64Rules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/Int64RulesOrBuilder.java b/src/main/java/build/buf/validate/Int64RulesOrBuilder.java deleted file mode 100644 index e146c390..00000000 --- a/src/main/java/build/buf/validate/Int64RulesOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface Int64RulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.Int64Rules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must equal 42
-   * int64 value = 1 [(buf.validate.field).int64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional int64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must equal 42
-   * int64 value = 1 [(buf.validate.field).int64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional int64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - long getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be less than 10
-   * int64 value = 1 [(buf.validate.field).int64.lt = 10];
-   * }
-   * ```
-   * 
- * - * int64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be less than 10
-   * int64 value = 1 [(buf.validate.field).int64.lt = 10];
-   * }
-   * ```
-   * 
- * - * int64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - long getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be less than or equal to 10
-   * int64 value = 1 [(buf.validate.field).int64.lte = 10];
-   * }
-   * ```
-   * 
- * - * int64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be less than or equal to 10
-   * int64 value = 1 [(buf.validate.field).int64.lte = 10];
-   * }
-   * ```
-   * 
- * - * int64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - long getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be greater than 5 [int64.gt]
-   * int64 value = 1 [(buf.validate.field).int64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [int64.gt_lt]
-   * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
-   * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be greater than 5 [int64.gt]
-   * int64 value = 1 [(buf.validate.field).int64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [int64.gt_lt]
-   * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
-   * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - long getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be greater than or equal to 5 [int64.gte]
-   * int64 value = 1 [(buf.validate.field).int64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
-   * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
-   * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be greater than or equal to 5 [int64.gte]
-   * int64 value = 1 [(buf.validate.field).int64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
-   * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
-   * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * int64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - long getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - long getIn(int index); - - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must not be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must not be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyInt64 {
-   * // value must not be in list [1, 2, 3]
-   * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated int64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - long getNotIn(int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt64 {
-   * int64 value = 1 [
-   * (buf.validate.field).int64.example = 1,
-   * (buf.validate.field).int64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt64 {
-   * int64 value = 1 [
-   * (buf.validate.field).int64.example = 1,
-   * (buf.validate.field).int64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyInt64 {
-   * int64 value = 1 [
-   * (buf.validate.field).int64.example = 1,
-   * (buf.validate.field).int64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated int64 example = 9 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - long getExample(int index); - - build.buf.validate.Int64Rules.LessThanCase getLessThanCase(); - - build.buf.validate.Int64Rules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/KnownRegex.java b/src/main/java/build/buf/validate/KnownRegex.java deleted file mode 100644 index e36ef4b0..00000000 --- a/src/main/java/build/buf/validate/KnownRegex.java +++ /dev/null @@ -1,141 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * WellKnownRegex contain some well-known patterns.
- * 
- * - * Protobuf enum {@code buf.validate.KnownRegex} - */ -public enum KnownRegex - implements com.google.protobuf.ProtocolMessageEnum { - /** - * KNOWN_REGEX_UNSPECIFIED = 0; - */ - KNOWN_REGEX_UNSPECIFIED(0), - /** - *
-   * HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2).
-   * 
- * - * KNOWN_REGEX_HTTP_HEADER_NAME = 1; - */ - KNOWN_REGEX_HTTP_HEADER_NAME(1), - /** - *
-   * HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4).
-   * 
- * - * KNOWN_REGEX_HTTP_HEADER_VALUE = 2; - */ - KNOWN_REGEX_HTTP_HEADER_VALUE(2), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - KnownRegex.class.getName()); - } - /** - * KNOWN_REGEX_UNSPECIFIED = 0; - */ - public static final int KNOWN_REGEX_UNSPECIFIED_VALUE = 0; - /** - *
-   * HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2).
-   * 
- * - * KNOWN_REGEX_HTTP_HEADER_NAME = 1; - */ - public static final int KNOWN_REGEX_HTTP_HEADER_NAME_VALUE = 1; - /** - *
-   * HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4).
-   * 
- * - * KNOWN_REGEX_HTTP_HEADER_VALUE = 2; - */ - public static final int KNOWN_REGEX_HTTP_HEADER_VALUE_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static KnownRegex valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static KnownRegex forNumber(int value) { - switch (value) { - case 0: return KNOWN_REGEX_UNSPECIFIED; - case 1: return KNOWN_REGEX_HTTP_HEADER_NAME; - case 2: return KNOWN_REGEX_HTTP_HEADER_VALUE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - KnownRegex> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public KnownRegex findValueByNumber(int number) { - return KnownRegex.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return build.buf.validate.ValidateProto.getDescriptor().getEnumTypes().get(1); - } - - private static final KnownRegex[] VALUES = values(); - - public static KnownRegex valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private KnownRegex(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:buf.validate.KnownRegex) -} - diff --git a/src/main/java/build/buf/validate/MapRules.java b/src/main/java/build/buf/validate/MapRules.java deleted file mode 100644 index 6e03b60d..00000000 --- a/src/main/java/build/buf/validate/MapRules.java +++ /dev/null @@ -1,1521 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * MapRules describe the constraints applied to `map` values.
- * 
- * - * Protobuf type {@code buf.validate.MapRules} - */ -public final class MapRules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - MapRules> implements - // @@protoc_insertion_point(message_implements:buf.validate.MapRules) - MapRulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MapRules.class.getName()); - } - // Use MapRules.newBuilder() to construct. - private MapRules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private MapRules() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_MapRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_MapRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.MapRules.class, build.buf.validate.MapRules.Builder.class); - } - - private int bitField0_; - public static final int MIN_PAIRS_FIELD_NUMBER = 1; - private long minPairs_ = 0L; - /** - *
-   * Specifies the minimum number of key-value pairs allowed. If the field has
-   * fewer key-value pairs than specified, an error message is generated.
-   *
-   * ```proto
-   * message MyMap {
-   * // The field `value` must have at least 2 key-value pairs.
-   * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_pairs = 1 [json_name = "minPairs", (.buf.validate.predefined) = { ... } - * @return Whether the minPairs field is set. - */ - @java.lang.Override - public boolean hasMinPairs() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * Specifies the minimum number of key-value pairs allowed. If the field has
-   * fewer key-value pairs than specified, an error message is generated.
-   *
-   * ```proto
-   * message MyMap {
-   * // The field `value` must have at least 2 key-value pairs.
-   * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_pairs = 1 [json_name = "minPairs", (.buf.validate.predefined) = { ... } - * @return The minPairs. - */ - @java.lang.Override - public long getMinPairs() { - return minPairs_; - } - - public static final int MAX_PAIRS_FIELD_NUMBER = 2; - private long maxPairs_ = 0L; - /** - *
-   * Specifies the maximum number of key-value pairs allowed. If the field has
-   * more key-value pairs than specified, an error message is generated.
-   *
-   * ```proto
-   * message MyMap {
-   * // The field `value` must have at most 3 key-value pairs.
-   * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_pairs = 2 [json_name = "maxPairs", (.buf.validate.predefined) = { ... } - * @return Whether the maxPairs field is set. - */ - @java.lang.Override - public boolean hasMaxPairs() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * Specifies the maximum number of key-value pairs allowed. If the field has
-   * more key-value pairs than specified, an error message is generated.
-   *
-   * ```proto
-   * message MyMap {
-   * // The field `value` must have at most 3 key-value pairs.
-   * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_pairs = 2 [json_name = "maxPairs", (.buf.validate.predefined) = { ... } - * @return The maxPairs. - */ - @java.lang.Override - public long getMaxPairs() { - return maxPairs_; - } - - public static final int KEYS_FIELD_NUMBER = 4; - private build.buf.validate.FieldConstraints keys_; - /** - *
-   * Specifies the constraints to be applied to each key in the field.
-   *
-   * ```proto
-   * message MyMap {
-   * // The keys in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - * @return Whether the keys field is set. - */ - @java.lang.Override - public boolean hasKeys() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-   * Specifies the constraints to be applied to each key in the field.
-   *
-   * ```proto
-   * message MyMap {
-   * // The keys in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - * @return The keys. - */ - @java.lang.Override - public build.buf.validate.FieldConstraints getKeys() { - return keys_ == null ? build.buf.validate.FieldConstraints.getDefaultInstance() : keys_; - } - /** - *
-   * Specifies the constraints to be applied to each key in the field.
-   *
-   * ```proto
-   * message MyMap {
-   * // The keys in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - */ - @java.lang.Override - public build.buf.validate.FieldConstraintsOrBuilder getKeysOrBuilder() { - return keys_ == null ? build.buf.validate.FieldConstraints.getDefaultInstance() : keys_; - } - - public static final int VALUES_FIELD_NUMBER = 5; - private build.buf.validate.FieldConstraints values_; - /** - *
-   * Specifies the constraints to be applied to the value of each key in the
-   * field. Message values will still have their validations evaluated unless
-   * skip is specified here.
-   *
-   * ```proto
-   * message MyMap {
-   * // The values in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.values = {
-   * string: {
-   * min_len: 5
-   * max_len: 20
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - * @return Whether the values field is set. - */ - @java.lang.Override - public boolean hasValues() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-   * Specifies the constraints to be applied to the value of each key in the
-   * field. Message values will still have their validations evaluated unless
-   * skip is specified here.
-   *
-   * ```proto
-   * message MyMap {
-   * // The values in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.values = {
-   * string: {
-   * min_len: 5
-   * max_len: 20
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - * @return The values. - */ - @java.lang.Override - public build.buf.validate.FieldConstraints getValues() { - return values_ == null ? build.buf.validate.FieldConstraints.getDefaultInstance() : values_; - } - /** - *
-   * Specifies the constraints to be applied to the value of each key in the
-   * field. Message values will still have their validations evaluated unless
-   * skip is specified here.
-   *
-   * ```proto
-   * message MyMap {
-   * // The values in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.values = {
-   * string: {
-   * min_len: 5
-   * max_len: 20
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - */ - @java.lang.Override - public build.buf.validate.FieldConstraintsOrBuilder getValuesOrBuilder() { - return values_ == null ? build.buf.validate.FieldConstraints.getDefaultInstance() : values_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasKeys()) { - if (!getKeys().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasValues()) { - if (!getValues().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeUInt64(1, minPairs_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeUInt64(2, maxPairs_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(4, getKeys()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(5, getValues()); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, minPairs_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, maxPairs_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getKeys()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getValues()); - } - size += extensionsSerializedSize(); - 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.MapRules)) { - return super.equals(obj); - } - build.buf.validate.MapRules other = (build.buf.validate.MapRules) obj; - - if (hasMinPairs() != other.hasMinPairs()) return false; - if (hasMinPairs()) { - if (getMinPairs() - != other.getMinPairs()) return false; - } - if (hasMaxPairs() != other.hasMaxPairs()) return false; - if (hasMaxPairs()) { - if (getMaxPairs() - != other.getMaxPairs()) return false; - } - if (hasKeys() != other.hasKeys()) return false; - if (hasKeys()) { - if (!getKeys() - .equals(other.getKeys())) return false; - } - if (hasValues() != other.hasValues()) return false; - if (hasValues()) { - if (!getValues() - .equals(other.getValues())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMinPairs()) { - hash = (37 * hash) + MIN_PAIRS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinPairs()); - } - if (hasMaxPairs()) { - hash = (37 * hash) + MAX_PAIRS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxPairs()); - } - if (hasKeys()) { - hash = (37 * hash) + KEYS_FIELD_NUMBER; - hash = (53 * hash) + getKeys().hashCode(); - } - if (hasValues()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValues().hashCode(); - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.MapRules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.MapRules 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.MapRules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.MapRules 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.MapRules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.MapRules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.MapRules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.MapRules 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.MapRules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.MapRules 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.MapRules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.MapRules 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.MapRules 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; - } - /** - *
-   * MapRules describe the constraints applied to `map` values.
-   * 
- * - * Protobuf type {@code buf.validate.MapRules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.MapRules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.MapRules) - build.buf.validate.MapRulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_MapRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_MapRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.MapRules.class, build.buf.validate.MapRules.Builder.class); - } - - // Construct using build.buf.validate.MapRules.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetKeysFieldBuilder(); - internalGetValuesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - minPairs_ = 0L; - maxPairs_ = 0L; - keys_ = null; - if (keysBuilder_ != null) { - keysBuilder_.dispose(); - keysBuilder_ = null; - } - values_ = null; - if (valuesBuilder_ != null) { - valuesBuilder_.dispose(); - valuesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_MapRules_descriptor; - } - - @java.lang.Override - public build.buf.validate.MapRules getDefaultInstanceForType() { - return build.buf.validate.MapRules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.MapRules build() { - build.buf.validate.MapRules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.MapRules buildPartial() { - build.buf.validate.MapRules result = new build.buf.validate.MapRules(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.MapRules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.minPairs_ = minPairs_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxPairs_ = maxPairs_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.keys_ = keysBuilder_ == null - ? keys_ - : keysBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.values_ = valuesBuilder_ == null - ? values_ - : valuesBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.MapRules) { - return mergeFrom((build.buf.validate.MapRules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.MapRules other) { - if (other == build.buf.validate.MapRules.getDefaultInstance()) return this; - if (other.hasMinPairs()) { - setMinPairs(other.getMinPairs()); - } - if (other.hasMaxPairs()) { - setMaxPairs(other.getMaxPairs()); - } - if (other.hasKeys()) { - mergeKeys(other.getKeys()); - } - if (other.hasValues()) { - mergeValues(other.getValues()); - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasKeys()) { - if (!getKeys().isInitialized()) { - return false; - } - } - if (hasValues()) { - if (!getValues().isInitialized()) { - return false; - } - } - if (!extensionsAreInitialized()) { - return false; - } - 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 8: { - minPairs_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - maxPairs_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: { - input.readMessage( - internalGetKeysFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - input.readMessage( - internalGetValuesFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - 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 long minPairs_ ; - /** - *
-     * Specifies the minimum number of key-value pairs allowed. If the field has
-     * fewer key-value pairs than specified, an error message is generated.
-     *
-     * ```proto
-     * message MyMap {
-     * // The field `value` must have at least 2 key-value pairs.
-     * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_pairs = 1 [json_name = "minPairs", (.buf.validate.predefined) = { ... } - * @return Whether the minPairs field is set. - */ - @java.lang.Override - public boolean hasMinPairs() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Specifies the minimum number of key-value pairs allowed. If the field has
-     * fewer key-value pairs than specified, an error message is generated.
-     *
-     * ```proto
-     * message MyMap {
-     * // The field `value` must have at least 2 key-value pairs.
-     * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_pairs = 1 [json_name = "minPairs", (.buf.validate.predefined) = { ... } - * @return The minPairs. - */ - @java.lang.Override - public long getMinPairs() { - return minPairs_; - } - /** - *
-     * Specifies the minimum number of key-value pairs allowed. If the field has
-     * fewer key-value pairs than specified, an error message is generated.
-     *
-     * ```proto
-     * message MyMap {
-     * // The field `value` must have at least 2 key-value pairs.
-     * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_pairs = 1 [json_name = "minPairs", (.buf.validate.predefined) = { ... } - * @param value The minPairs to set. - * @return This builder for chaining. - */ - public Builder setMinPairs(long value) { - - minPairs_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Specifies the minimum number of key-value pairs allowed. If the field has
-     * fewer key-value pairs than specified, an error message is generated.
-     *
-     * ```proto
-     * message MyMap {
-     * // The field `value` must have at least 2 key-value pairs.
-     * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_pairs = 1 [json_name = "minPairs", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearMinPairs() { - bitField0_ = (bitField0_ & ~0x00000001); - minPairs_ = 0L; - onChanged(); - return this; - } - - private long maxPairs_ ; - /** - *
-     * Specifies the maximum number of key-value pairs allowed. If the field has
-     * more key-value pairs than specified, an error message is generated.
-     *
-     * ```proto
-     * message MyMap {
-     * // The field `value` must have at most 3 key-value pairs.
-     * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_pairs = 2 [json_name = "maxPairs", (.buf.validate.predefined) = { ... } - * @return Whether the maxPairs field is set. - */ - @java.lang.Override - public boolean hasMaxPairs() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Specifies the maximum number of key-value pairs allowed. If the field has
-     * more key-value pairs than specified, an error message is generated.
-     *
-     * ```proto
-     * message MyMap {
-     * // The field `value` must have at most 3 key-value pairs.
-     * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_pairs = 2 [json_name = "maxPairs", (.buf.validate.predefined) = { ... } - * @return The maxPairs. - */ - @java.lang.Override - public long getMaxPairs() { - return maxPairs_; - } - /** - *
-     * Specifies the maximum number of key-value pairs allowed. If the field has
-     * more key-value pairs than specified, an error message is generated.
-     *
-     * ```proto
-     * message MyMap {
-     * // The field `value` must have at most 3 key-value pairs.
-     * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_pairs = 2 [json_name = "maxPairs", (.buf.validate.predefined) = { ... } - * @param value The maxPairs to set. - * @return This builder for chaining. - */ - public Builder setMaxPairs(long value) { - - maxPairs_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Specifies the maximum number of key-value pairs allowed. If the field has
-     * more key-value pairs than specified, an error message is generated.
-     *
-     * ```proto
-     * message MyMap {
-     * // The field `value` must have at most 3 key-value pairs.
-     * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_pairs = 2 [json_name = "maxPairs", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearMaxPairs() { - bitField0_ = (bitField0_ & ~0x00000002); - maxPairs_ = 0L; - onChanged(); - return this; - } - - private build.buf.validate.FieldConstraints keys_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder> keysBuilder_; - /** - *
-     * Specifies the constraints to be applied to each key in the field.
-     *
-     * ```proto
-     * message MyMap {
-     * // The keys in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - * @return Whether the keys field is set. - */ - public boolean hasKeys() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Specifies the constraints to be applied to each key in the field.
-     *
-     * ```proto
-     * message MyMap {
-     * // The keys in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - * @return The keys. - */ - public build.buf.validate.FieldConstraints getKeys() { - if (keysBuilder_ == null) { - return keys_ == null ? build.buf.validate.FieldConstraints.getDefaultInstance() : keys_; - } else { - return keysBuilder_.getMessage(); - } - } - /** - *
-     * Specifies the constraints to be applied to each key in the field.
-     *
-     * ```proto
-     * message MyMap {
-     * // The keys in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - */ - public Builder setKeys(build.buf.validate.FieldConstraints value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - keys_ = value; - } else { - keysBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Specifies the constraints to be applied to each key in the field.
-     *
-     * ```proto
-     * message MyMap {
-     * // The keys in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - */ - public Builder setKeys( - build.buf.validate.FieldConstraints.Builder builderForValue) { - if (keysBuilder_ == null) { - keys_ = builderForValue.build(); - } else { - keysBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Specifies the constraints to be applied to each key in the field.
-     *
-     * ```proto
-     * message MyMap {
-     * // The keys in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - */ - public Builder mergeKeys(build.buf.validate.FieldConstraints value) { - if (keysBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - keys_ != null && - keys_ != build.buf.validate.FieldConstraints.getDefaultInstance()) { - getKeysBuilder().mergeFrom(value); - } else { - keys_ = value; - } - } else { - keysBuilder_.mergeFrom(value); - } - if (keys_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - *
-     * Specifies the constraints to be applied to each key in the field.
-     *
-     * ```proto
-     * message MyMap {
-     * // The keys in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - */ - public Builder clearKeys() { - bitField0_ = (bitField0_ & ~0x00000004); - keys_ = null; - if (keysBuilder_ != null) { - keysBuilder_.dispose(); - keysBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Specifies the constraints to be applied to each key in the field.
-     *
-     * ```proto
-     * message MyMap {
-     * // The keys in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - */ - public build.buf.validate.FieldConstraints.Builder getKeysBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetKeysFieldBuilder().getBuilder(); - } - /** - *
-     * Specifies the constraints to be applied to each key in the field.
-     *
-     * ```proto
-     * message MyMap {
-     * // The keys in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - */ - public build.buf.validate.FieldConstraintsOrBuilder getKeysOrBuilder() { - if (keysBuilder_ != null) { - return keysBuilder_.getMessageOrBuilder(); - } else { - return keys_ == null ? - build.buf.validate.FieldConstraints.getDefaultInstance() : keys_; - } - } - /** - *
-     * Specifies the constraints to be applied to each key in the field.
-     *
-     * ```proto
-     * message MyMap {
-     * // The keys in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder> - internalGetKeysFieldBuilder() { - if (keysBuilder_ == null) { - keysBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder>( - getKeys(), - getParentForChildren(), - isClean()); - keys_ = null; - } - return keysBuilder_; - } - - private build.buf.validate.FieldConstraints values_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder> valuesBuilder_; - /** - *
-     * Specifies the constraints to be applied to the value of each key in the
-     * field. Message values will still have their validations evaluated unless
-     * skip is specified here.
-     *
-     * ```proto
-     * message MyMap {
-     * // The values in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.values = {
-     * string: {
-     * min_len: 5
-     * max_len: 20
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - * @return Whether the values field is set. - */ - public boolean hasValues() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Specifies the constraints to be applied to the value of each key in the
-     * field. Message values will still have their validations evaluated unless
-     * skip is specified here.
-     *
-     * ```proto
-     * message MyMap {
-     * // The values in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.values = {
-     * string: {
-     * min_len: 5
-     * max_len: 20
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - * @return The values. - */ - public build.buf.validate.FieldConstraints getValues() { - if (valuesBuilder_ == null) { - return values_ == null ? build.buf.validate.FieldConstraints.getDefaultInstance() : values_; - } else { - return valuesBuilder_.getMessage(); - } - } - /** - *
-     * Specifies the constraints to be applied to the value of each key in the
-     * field. Message values will still have their validations evaluated unless
-     * skip is specified here.
-     *
-     * ```proto
-     * message MyMap {
-     * // The values in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.values = {
-     * string: {
-     * min_len: 5
-     * max_len: 20
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - */ - public Builder setValues(build.buf.validate.FieldConstraints value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - values_ = value; - } else { - valuesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Specifies the constraints to be applied to the value of each key in the
-     * field. Message values will still have their validations evaluated unless
-     * skip is specified here.
-     *
-     * ```proto
-     * message MyMap {
-     * // The values in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.values = {
-     * string: {
-     * min_len: 5
-     * max_len: 20
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - */ - public Builder setValues( - build.buf.validate.FieldConstraints.Builder builderForValue) { - if (valuesBuilder_ == null) { - values_ = builderForValue.build(); - } else { - valuesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Specifies the constraints to be applied to the value of each key in the
-     * field. Message values will still have their validations evaluated unless
-     * skip is specified here.
-     *
-     * ```proto
-     * message MyMap {
-     * // The values in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.values = {
-     * string: {
-     * min_len: 5
-     * max_len: 20
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - */ - public Builder mergeValues(build.buf.validate.FieldConstraints value) { - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - values_ != null && - values_ != build.buf.validate.FieldConstraints.getDefaultInstance()) { - getValuesBuilder().mergeFrom(value); - } else { - values_ = value; - } - } else { - valuesBuilder_.mergeFrom(value); - } - if (values_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - *
-     * Specifies the constraints to be applied to the value of each key in the
-     * field. Message values will still have their validations evaluated unless
-     * skip is specified here.
-     *
-     * ```proto
-     * message MyMap {
-     * // The values in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.values = {
-     * string: {
-     * min_len: 5
-     * max_len: 20
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - */ - public Builder clearValues() { - bitField0_ = (bitField0_ & ~0x00000008); - values_ = null; - if (valuesBuilder_ != null) { - valuesBuilder_.dispose(); - valuesBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Specifies the constraints to be applied to the value of each key in the
-     * field. Message values will still have their validations evaluated unless
-     * skip is specified here.
-     *
-     * ```proto
-     * message MyMap {
-     * // The values in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.values = {
-     * string: {
-     * min_len: 5
-     * max_len: 20
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - */ - public build.buf.validate.FieldConstraints.Builder getValuesBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetValuesFieldBuilder().getBuilder(); - } - /** - *
-     * Specifies the constraints to be applied to the value of each key in the
-     * field. Message values will still have their validations evaluated unless
-     * skip is specified here.
-     *
-     * ```proto
-     * message MyMap {
-     * // The values in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.values = {
-     * string: {
-     * min_len: 5
-     * max_len: 20
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - */ - public build.buf.validate.FieldConstraintsOrBuilder getValuesOrBuilder() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilder(); - } else { - return values_ == null ? - build.buf.validate.FieldConstraints.getDefaultInstance() : values_; - } - } - /** - *
-     * Specifies the constraints to be applied to the value of each key in the
-     * field. Message values will still have their validations evaluated unless
-     * skip is specified here.
-     *
-     * ```proto
-     * message MyMap {
-     * // The values in the field `value` must follow the specified constraints.
-     * map<string, string> value = 1 [(buf.validate.field).map.values = {
-     * string: {
-     * min_len: 5
-     * max_len: 20
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder> - internalGetValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder>( - getValues(), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.MapRules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.MapRules) - private static final build.buf.validate.MapRules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.MapRules(); - } - - public static build.buf.validate.MapRules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MapRules 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.MapRules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/MapRulesOrBuilder.java b/src/main/java/build/buf/validate/MapRulesOrBuilder.java deleted file mode 100644 index bf2882e6..00000000 --- a/src/main/java/build/buf/validate/MapRulesOrBuilder.java +++ /dev/null @@ -1,214 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface MapRulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.MapRules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * Specifies the minimum number of key-value pairs allowed. If the field has
-   * fewer key-value pairs than specified, an error message is generated.
-   *
-   * ```proto
-   * message MyMap {
-   * // The field `value` must have at least 2 key-value pairs.
-   * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_pairs = 1 [json_name = "minPairs", (.buf.validate.predefined) = { ... } - * @return Whether the minPairs field is set. - */ - boolean hasMinPairs(); - /** - *
-   * Specifies the minimum number of key-value pairs allowed. If the field has
-   * fewer key-value pairs than specified, an error message is generated.
-   *
-   * ```proto
-   * message MyMap {
-   * // The field `value` must have at least 2 key-value pairs.
-   * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_pairs = 1 [json_name = "minPairs", (.buf.validate.predefined) = { ... } - * @return The minPairs. - */ - long getMinPairs(); - - /** - *
-   * Specifies the maximum number of key-value pairs allowed. If the field has
-   * more key-value pairs than specified, an error message is generated.
-   *
-   * ```proto
-   * message MyMap {
-   * // The field `value` must have at most 3 key-value pairs.
-   * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_pairs = 2 [json_name = "maxPairs", (.buf.validate.predefined) = { ... } - * @return Whether the maxPairs field is set. - */ - boolean hasMaxPairs(); - /** - *
-   * Specifies the maximum number of key-value pairs allowed. If the field has
-   * more key-value pairs than specified, an error message is generated.
-   *
-   * ```proto
-   * message MyMap {
-   * // The field `value` must have at most 3 key-value pairs.
-   * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_pairs = 2 [json_name = "maxPairs", (.buf.validate.predefined) = { ... } - * @return The maxPairs. - */ - long getMaxPairs(); - - /** - *
-   * Specifies the constraints to be applied to each key in the field.
-   *
-   * ```proto
-   * message MyMap {
-   * // The keys in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - * @return Whether the keys field is set. - */ - boolean hasKeys(); - /** - *
-   * Specifies the constraints to be applied to each key in the field.
-   *
-   * ```proto
-   * message MyMap {
-   * // The keys in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - * @return The keys. - */ - build.buf.validate.FieldConstraints getKeys(); - /** - *
-   * Specifies the constraints to be applied to each key in the field.
-   *
-   * ```proto
-   * message MyMap {
-   * // The keys in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.keys = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints keys = 4 [json_name = "keys"]; - */ - build.buf.validate.FieldConstraintsOrBuilder getKeysOrBuilder(); - - /** - *
-   * Specifies the constraints to be applied to the value of each key in the
-   * field. Message values will still have their validations evaluated unless
-   * skip is specified here.
-   *
-   * ```proto
-   * message MyMap {
-   * // The values in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.values = {
-   * string: {
-   * min_len: 5
-   * max_len: 20
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - * @return Whether the values field is set. - */ - boolean hasValues(); - /** - *
-   * Specifies the constraints to be applied to the value of each key in the
-   * field. Message values will still have their validations evaluated unless
-   * skip is specified here.
-   *
-   * ```proto
-   * message MyMap {
-   * // The values in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.values = {
-   * string: {
-   * min_len: 5
-   * max_len: 20
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - * @return The values. - */ - build.buf.validate.FieldConstraints getValues(); - /** - *
-   * Specifies the constraints to be applied to the value of each key in the
-   * field. Message values will still have their validations evaluated unless
-   * skip is specified here.
-   *
-   * ```proto
-   * message MyMap {
-   * // The values in the field `value` must follow the specified constraints.
-   * map<string, string> value = 1 [(buf.validate.field).map.values = {
-   * string: {
-   * min_len: 5
-   * max_len: 20
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints values = 5 [json_name = "values"]; - */ - build.buf.validate.FieldConstraintsOrBuilder getValuesOrBuilder(); -} diff --git a/src/main/java/build/buf/validate/MessageConstraints.java b/src/main/java/build/buf/validate/MessageConstraints.java deleted file mode 100644 index 8a5cb994..00000000 --- a/src/main/java/build/buf/validate/MessageConstraints.java +++ /dev/null @@ -1,1330 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * MessageConstraints represents validation rules that are applied to the entire message.
- * It includes disabling options and a list of Constraint messages representing Common Expression Language (CEL) validation rules.
- * 
- * - * Protobuf type {@code buf.validate.MessageConstraints} - */ -public final class MessageConstraints extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.MessageConstraints) - MessageConstraintsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - MessageConstraints.class.getName()); - } - // Use MessageConstraints.newBuilder() to construct. - private MessageConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private MessageConstraints() { - cel_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_MessageConstraints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_MessageConstraints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.MessageConstraints.class, build.buf.validate.MessageConstraints.Builder.class); - } - - private int bitField0_; - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_ = false; - /** - *
-   * `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
-   * This includes any fields within the message that would otherwise support validation.
-   *
-   * ```proto
-   * message MyMessage {
-   * // validation will be bypassed for this message
-   * option (buf.validate.message).disabled = true;
-   * }
-   * ```
-   * 
- * - * optional bool disabled = 1 [json_name = "disabled"]; - * @return Whether the disabled field is set. - */ - @java.lang.Override - public boolean hasDisabled() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
-   * This includes any fields within the message that would otherwise support validation.
-   *
-   * ```proto
-   * message MyMessage {
-   * // validation will be bypassed for this message
-   * option (buf.validate.message).disabled = true;
-   * }
-   * ```
-   * 
- * - * optional bool disabled = 1 [json_name = "disabled"]; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - public static final int CEL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List cel_; - /** - *
-   * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-   * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `foo` must be greater than 42.
-   * option (buf.validate.message).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this.foo > 42",
-   * };
-   * optional int32 foo = 1;
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - @java.lang.Override - public java.util.List getCelList() { - return cel_; - } - /** - *
-   * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-   * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `foo` must be greater than 42.
-   * option (buf.validate.message).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this.foo > 42",
-   * };
-   * optional int32 foo = 1;
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - @java.lang.Override - public java.util.List - getCelOrBuilderList() { - return cel_; - } - /** - *
-   * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-   * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `foo` must be greater than 42.
-   * option (buf.validate.message).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this.foo > 42",
-   * };
-   * optional int32 foo = 1;
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - @java.lang.Override - public int getCelCount() { - return cel_.size(); - } - /** - *
-   * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-   * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `foo` must be greater than 42.
-   * option (buf.validate.message).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this.foo > 42",
-   * };
-   * optional int32 foo = 1;
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - @java.lang.Override - public build.buf.validate.Constraint getCel(int index) { - return cel_.get(index); - } - /** - *
-   * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-   * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `foo` must be greater than 42.
-   * option (buf.validate.message).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this.foo > 42",
-   * };
-   * optional int32 foo = 1;
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - @java.lang.Override - public build.buf.validate.ConstraintOrBuilder getCelOrBuilder( - int index) { - return cel_.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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(1, disabled_); - } - for (int i = 0; i < cel_.size(); i++) { - output.writeMessage(3, cel_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, disabled_); - } - for (int i = 0; i < cel_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, cel_.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.MessageConstraints)) { - return super.equals(obj); - } - build.buf.validate.MessageConstraints other = (build.buf.validate.MessageConstraints) obj; - - if (hasDisabled() != other.hasDisabled()) return false; - if (hasDisabled()) { - if (getDisabled() - != other.getDisabled()) return false; - } - if (!getCelList() - .equals(other.getCelList())) 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 (hasDisabled()) { - hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisabled()); - } - if (getCelCount() > 0) { - hash = (37 * hash) + CEL_FIELD_NUMBER; - hash = (53 * hash) + getCelList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.MessageConstraints parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.MessageConstraints 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.MessageConstraints parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.MessageConstraints 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.MessageConstraints parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.MessageConstraints parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.MessageConstraints parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.MessageConstraints 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.MessageConstraints parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.MessageConstraints 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.MessageConstraints parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.MessageConstraints 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.MessageConstraints 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; - } - /** - *
-   * MessageConstraints represents validation rules that are applied to the entire message.
-   * It includes disabling options and a list of Constraint messages representing Common Expression Language (CEL) validation rules.
-   * 
- * - * Protobuf type {@code buf.validate.MessageConstraints} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.MessageConstraints) - build.buf.validate.MessageConstraintsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_MessageConstraints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_MessageConstraints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.MessageConstraints.class, build.buf.validate.MessageConstraints.Builder.class); - } - - // Construct using build.buf.validate.MessageConstraints.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - disabled_ = false; - if (celBuilder_ == null) { - cel_ = java.util.Collections.emptyList(); - } else { - cel_ = null; - celBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_MessageConstraints_descriptor; - } - - @java.lang.Override - public build.buf.validate.MessageConstraints getDefaultInstanceForType() { - return build.buf.validate.MessageConstraints.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.MessageConstraints build() { - build.buf.validate.MessageConstraints result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.MessageConstraints buildPartial() { - build.buf.validate.MessageConstraints result = new build.buf.validate.MessageConstraints(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.MessageConstraints result) { - if (celBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - cel_ = java.util.Collections.unmodifiableList(cel_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.cel_ = cel_; - } else { - result.cel_ = celBuilder_.build(); - } - } - - private void buildPartial0(build.buf.validate.MessageConstraints result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.MessageConstraints) { - return mergeFrom((build.buf.validate.MessageConstraints)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.MessageConstraints other) { - if (other == build.buf.validate.MessageConstraints.getDefaultInstance()) return this; - if (other.hasDisabled()) { - setDisabled(other.getDisabled()); - } - if (celBuilder_ == null) { - if (!other.cel_.isEmpty()) { - if (cel_.isEmpty()) { - cel_ = other.cel_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCelIsMutable(); - cel_.addAll(other.cel_); - } - onChanged(); - } - } else { - if (!other.cel_.isEmpty()) { - if (celBuilder_.isEmpty()) { - celBuilder_.dispose(); - celBuilder_ = null; - cel_ = other.cel_; - bitField0_ = (bitField0_ & ~0x00000002); - celBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetCelFieldBuilder() : null; - } else { - celBuilder_.addAllMessages(other.cel_); - } - } - } - 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 8: { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 26: { - build.buf.validate.Constraint m = - input.readMessage( - build.buf.validate.Constraint.parser(), - extensionRegistry); - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.add(m); - } else { - celBuilder_.addMessage(m); - } - break; - } // case 26 - 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 boolean disabled_ ; - /** - *
-     * `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
-     * This includes any fields within the message that would otherwise support validation.
-     *
-     * ```proto
-     * message MyMessage {
-     * // validation will be bypassed for this message
-     * option (buf.validate.message).disabled = true;
-     * }
-     * ```
-     * 
- * - * optional bool disabled = 1 [json_name = "disabled"]; - * @return Whether the disabled field is set. - */ - @java.lang.Override - public boolean hasDisabled() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
-     * This includes any fields within the message that would otherwise support validation.
-     *
-     * ```proto
-     * message MyMessage {
-     * // validation will be bypassed for this message
-     * option (buf.validate.message).disabled = true;
-     * }
-     * ```
-     * 
- * - * optional bool disabled = 1 [json_name = "disabled"]; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
-     * `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
-     * This includes any fields within the message that would otherwise support validation.
-     *
-     * ```proto
-     * message MyMessage {
-     * // validation will be bypassed for this message
-     * option (buf.validate.message).disabled = true;
-     * }
-     * ```
-     * 
- * - * optional bool disabled = 1 [json_name = "disabled"]; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
-     * This includes any fields within the message that would otherwise support validation.
-     *
-     * ```proto
-     * message MyMessage {
-     * // validation will be bypassed for this message
-     * option (buf.validate.message).disabled = true;
-     * }
-     * ```
-     * 
- * - * optional bool disabled = 1 [json_name = "disabled"]; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - disabled_ = false; - onChanged(); - return this; - } - - private java.util.List cel_ = - java.util.Collections.emptyList(); - private void ensureCelIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - cel_ = new java.util.ArrayList(cel_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder> celBuilder_; - - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public java.util.List getCelList() { - if (celBuilder_ == null) { - return java.util.Collections.unmodifiableList(cel_); - } else { - return celBuilder_.getMessageList(); - } - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public int getCelCount() { - if (celBuilder_ == null) { - return cel_.size(); - } else { - return celBuilder_.getCount(); - } - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public build.buf.validate.Constraint getCel(int index) { - if (celBuilder_ == null) { - return cel_.get(index); - } else { - return celBuilder_.getMessage(index); - } - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public Builder setCel( - int index, build.buf.validate.Constraint value) { - if (celBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCelIsMutable(); - cel_.set(index, value); - onChanged(); - } else { - celBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public Builder setCel( - int index, build.buf.validate.Constraint.Builder builderForValue) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.set(index, builderForValue.build()); - onChanged(); - } else { - celBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public Builder addCel(build.buf.validate.Constraint value) { - if (celBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCelIsMutable(); - cel_.add(value); - onChanged(); - } else { - celBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public Builder addCel( - int index, build.buf.validate.Constraint value) { - if (celBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCelIsMutable(); - cel_.add(index, value); - onChanged(); - } else { - celBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public Builder addCel( - build.buf.validate.Constraint.Builder builderForValue) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.add(builderForValue.build()); - onChanged(); - } else { - celBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public Builder addCel( - int index, build.buf.validate.Constraint.Builder builderForValue) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.add(index, builderForValue.build()); - onChanged(); - } else { - celBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public Builder addAllCel( - java.lang.Iterable values) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cel_); - onChanged(); - } else { - celBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public Builder clearCel() { - if (celBuilder_ == null) { - cel_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - celBuilder_.clear(); - } - return this; - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public Builder removeCel(int index) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.remove(index); - onChanged(); - } else { - celBuilder_.remove(index); - } - return this; - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public build.buf.validate.Constraint.Builder getCelBuilder( - int index) { - return internalGetCelFieldBuilder().getBuilder(index); - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public build.buf.validate.ConstraintOrBuilder getCelOrBuilder( - int index) { - if (celBuilder_ == null) { - return cel_.get(index); } else { - return celBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public java.util.List - getCelOrBuilderList() { - if (celBuilder_ != null) { - return celBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cel_); - } - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public build.buf.validate.Constraint.Builder addCelBuilder() { - return internalGetCelFieldBuilder().addBuilder( - build.buf.validate.Constraint.getDefaultInstance()); - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public build.buf.validate.Constraint.Builder addCelBuilder( - int index) { - return internalGetCelFieldBuilder().addBuilder( - index, build.buf.validate.Constraint.getDefaultInstance()); - } - /** - *
-     * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-     * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `foo` must be greater than 42.
-     * option (buf.validate.message).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this.foo > 42",
-     * };
-     * optional int32 foo = 1;
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - public java.util.List - getCelBuilderList() { - return internalGetCelFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder> - internalGetCelFieldBuilder() { - if (celBuilder_ == null) { - celBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder>( - cel_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - cel_ = null; - } - return celBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.MessageConstraints) - } - - // @@protoc_insertion_point(class_scope:buf.validate.MessageConstraints) - private static final build.buf.validate.MessageConstraints DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.MessageConstraints(); - } - - public static build.buf.validate.MessageConstraints getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageConstraints 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.MessageConstraints getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/MessageConstraintsOrBuilder.java b/src/main/java/build/buf/validate/MessageConstraintsOrBuilder.java deleted file mode 100644 index b943e812..00000000 --- a/src/main/java/build/buf/validate/MessageConstraintsOrBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface MessageConstraintsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.MessageConstraints) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
-   * This includes any fields within the message that would otherwise support validation.
-   *
-   * ```proto
-   * message MyMessage {
-   * // validation will be bypassed for this message
-   * option (buf.validate.message).disabled = true;
-   * }
-   * ```
-   * 
- * - * optional bool disabled = 1 [json_name = "disabled"]; - * @return Whether the disabled field is set. - */ - boolean hasDisabled(); - /** - *
-   * `disabled` is a boolean flag that, when set to true, nullifies any validation rules for this message.
-   * This includes any fields within the message that would otherwise support validation.
-   *
-   * ```proto
-   * message MyMessage {
-   * // validation will be bypassed for this message
-   * option (buf.validate.message).disabled = true;
-   * }
-   * ```
-   * 
- * - * optional bool disabled = 1 [json_name = "disabled"]; - * @return The disabled. - */ - boolean getDisabled(); - - /** - *
-   * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-   * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `foo` must be greater than 42.
-   * option (buf.validate.message).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this.foo > 42",
-   * };
-   * optional int32 foo = 1;
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - java.util.List - getCelList(); - /** - *
-   * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-   * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `foo` must be greater than 42.
-   * option (buf.validate.message).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this.foo > 42",
-   * };
-   * optional int32 foo = 1;
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - build.buf.validate.Constraint getCel(int index); - /** - *
-   * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-   * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `foo` must be greater than 42.
-   * option (buf.validate.message).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this.foo > 42",
-   * };
-   * optional int32 foo = 1;
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - int getCelCount(); - /** - *
-   * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-   * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `foo` must be greater than 42.
-   * option (buf.validate.message).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this.foo > 42",
-   * };
-   * optional int32 foo = 1;
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - java.util.List - getCelOrBuilderList(); - /** - *
-   * `cel` is a repeated field of type Constraint. Each Constraint specifies a validation rule to be applied to this message.
-   * These constraints are written in Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `foo` must be greater than 42.
-   * option (buf.validate.message).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this.foo > 42",
-   * };
-   * optional int32 foo = 1;
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 3 [json_name = "cel"]; - */ - build.buf.validate.ConstraintOrBuilder getCelOrBuilder( - int index); -} diff --git a/src/main/java/build/buf/validate/OneofConstraints.java b/src/main/java/build/buf/validate/OneofConstraints.java deleted file mode 100644 index a6f3b9c5..00000000 --- a/src/main/java/build/buf/validate/OneofConstraints.java +++ /dev/null @@ -1,587 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * The `OneofConstraints` message type enables you to manage constraints for
- * oneof fields in your protobuf messages.
- * 
- * - * Protobuf type {@code buf.validate.OneofConstraints} - */ -public final class OneofConstraints extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.OneofConstraints) - OneofConstraintsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - OneofConstraints.class.getName()); - } - // Use OneofConstraints.newBuilder() to construct. - private OneofConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private OneofConstraints() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_OneofConstraints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_OneofConstraints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.OneofConstraints.class, build.buf.validate.OneofConstraints.Builder.class); - } - - private int bitField0_; - public static final int REQUIRED_FIELD_NUMBER = 1; - private boolean required_ = false; - /** - *
-   * If `required` is true, exactly one field of the oneof must be present. A
-   * validation error is returned if no fields in the oneof are present. The
-   * field itself may still be a default value; further constraints
-   * should be placed on the fields themselves to ensure they are valid values,
-   * such as `min_len` or `gt`.
-   *
-   * ```proto
-   * message MyMessage {
-   * oneof value {
-   * // Either `a` or `b` must be set. If `a` is set, it must also be
-   * // non-empty; whereas if `b` is set, it can still be an empty string.
-   * option (buf.validate.oneof).required = true;
-   * string a = 1 [(buf.validate.field).string.min_len = 1];
-   * string b = 2;
-   * }
-   * }
-   * ```
-   * 
- * - * optional bool required = 1 [json_name = "required"]; - * @return Whether the required field is set. - */ - @java.lang.Override - public boolean hasRequired() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * If `required` is true, exactly one field of the oneof must be present. A
-   * validation error is returned if no fields in the oneof are present. The
-   * field itself may still be a default value; further constraints
-   * should be placed on the fields themselves to ensure they are valid values,
-   * such as `min_len` or `gt`.
-   *
-   * ```proto
-   * message MyMessage {
-   * oneof value {
-   * // Either `a` or `b` must be set. If `a` is set, it must also be
-   * // non-empty; whereas if `b` is set, it can still be an empty string.
-   * option (buf.validate.oneof).required = true;
-   * string a = 1 [(buf.validate.field).string.min_len = 1];
-   * string b = 2;
-   * }
-   * }
-   * ```
-   * 
- * - * optional bool required = 1 [json_name = "required"]; - * @return The required. - */ - @java.lang.Override - public boolean getRequired() { - return required_; - } - - 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 { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(1, required_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, required_); - } - 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.OneofConstraints)) { - return super.equals(obj); - } - build.buf.validate.OneofConstraints other = (build.buf.validate.OneofConstraints) obj; - - if (hasRequired() != other.hasRequired()) return false; - if (hasRequired()) { - if (getRequired() - != other.getRequired()) 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 (hasRequired()) { - hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequired()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.OneofConstraints parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.OneofConstraints 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.OneofConstraints parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.OneofConstraints 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.OneofConstraints parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.OneofConstraints parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.OneofConstraints parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.OneofConstraints 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.OneofConstraints parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.OneofConstraints 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.OneofConstraints parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.OneofConstraints 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.OneofConstraints 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; - } - /** - *
-   * The `OneofConstraints` message type enables you to manage constraints for
-   * oneof fields in your protobuf messages.
-   * 
- * - * Protobuf type {@code buf.validate.OneofConstraints} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.OneofConstraints) - build.buf.validate.OneofConstraintsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_OneofConstraints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_OneofConstraints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.OneofConstraints.class, build.buf.validate.OneofConstraints.Builder.class); - } - - // Construct using build.buf.validate.OneofConstraints.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - required_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_OneofConstraints_descriptor; - } - - @java.lang.Override - public build.buf.validate.OneofConstraints getDefaultInstanceForType() { - return build.buf.validate.OneofConstraints.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.OneofConstraints build() { - build.buf.validate.OneofConstraints result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.OneofConstraints buildPartial() { - build.buf.validate.OneofConstraints result = new build.buf.validate.OneofConstraints(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.OneofConstraints result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.required_ = required_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.OneofConstraints) { - return mergeFrom((build.buf.validate.OneofConstraints)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.OneofConstraints other) { - if (other == build.buf.validate.OneofConstraints.getDefaultInstance()) return this; - if (other.hasRequired()) { - setRequired(other.getRequired()); - } - 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 8: { - required_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - 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 boolean required_ ; - /** - *
-     * If `required` is true, exactly one field of the oneof must be present. A
-     * validation error is returned if no fields in the oneof are present. The
-     * field itself may still be a default value; further constraints
-     * should be placed on the fields themselves to ensure they are valid values,
-     * such as `min_len` or `gt`.
-     *
-     * ```proto
-     * message MyMessage {
-     * oneof value {
-     * // Either `a` or `b` must be set. If `a` is set, it must also be
-     * // non-empty; whereas if `b` is set, it can still be an empty string.
-     * option (buf.validate.oneof).required = true;
-     * string a = 1 [(buf.validate.field).string.min_len = 1];
-     * string b = 2;
-     * }
-     * }
-     * ```
-     * 
- * - * optional bool required = 1 [json_name = "required"]; - * @return Whether the required field is set. - */ - @java.lang.Override - public boolean hasRequired() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * If `required` is true, exactly one field of the oneof must be present. A
-     * validation error is returned if no fields in the oneof are present. The
-     * field itself may still be a default value; further constraints
-     * should be placed on the fields themselves to ensure they are valid values,
-     * such as `min_len` or `gt`.
-     *
-     * ```proto
-     * message MyMessage {
-     * oneof value {
-     * // Either `a` or `b` must be set. If `a` is set, it must also be
-     * // non-empty; whereas if `b` is set, it can still be an empty string.
-     * option (buf.validate.oneof).required = true;
-     * string a = 1 [(buf.validate.field).string.min_len = 1];
-     * string b = 2;
-     * }
-     * }
-     * ```
-     * 
- * - * optional bool required = 1 [json_name = "required"]; - * @return The required. - */ - @java.lang.Override - public boolean getRequired() { - return required_; - } - /** - *
-     * If `required` is true, exactly one field of the oneof must be present. A
-     * validation error is returned if no fields in the oneof are present. The
-     * field itself may still be a default value; further constraints
-     * should be placed on the fields themselves to ensure they are valid values,
-     * such as `min_len` or `gt`.
-     *
-     * ```proto
-     * message MyMessage {
-     * oneof value {
-     * // Either `a` or `b` must be set. If `a` is set, it must also be
-     * // non-empty; whereas if `b` is set, it can still be an empty string.
-     * option (buf.validate.oneof).required = true;
-     * string a = 1 [(buf.validate.field).string.min_len = 1];
-     * string b = 2;
-     * }
-     * }
-     * ```
-     * 
- * - * optional bool required = 1 [json_name = "required"]; - * @param value The required to set. - * @return This builder for chaining. - */ - public Builder setRequired(boolean value) { - - required_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * If `required` is true, exactly one field of the oneof must be present. A
-     * validation error is returned if no fields in the oneof are present. The
-     * field itself may still be a default value; further constraints
-     * should be placed on the fields themselves to ensure they are valid values,
-     * such as `min_len` or `gt`.
-     *
-     * ```proto
-     * message MyMessage {
-     * oneof value {
-     * // Either `a` or `b` must be set. If `a` is set, it must also be
-     * // non-empty; whereas if `b` is set, it can still be an empty string.
-     * option (buf.validate.oneof).required = true;
-     * string a = 1 [(buf.validate.field).string.min_len = 1];
-     * string b = 2;
-     * }
-     * }
-     * ```
-     * 
- * - * optional bool required = 1 [json_name = "required"]; - * @return This builder for chaining. - */ - public Builder clearRequired() { - bitField0_ = (bitField0_ & ~0x00000001); - required_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.OneofConstraints) - } - - // @@protoc_insertion_point(class_scope:buf.validate.OneofConstraints) - private static final build.buf.validate.OneofConstraints DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.OneofConstraints(); - } - - public static build.buf.validate.OneofConstraints getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OneofConstraints 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.OneofConstraints getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/OneofConstraintsOrBuilder.java b/src/main/java/build/buf/validate/OneofConstraintsOrBuilder.java deleted file mode 100644 index 737c9c7a..00000000 --- a/src/main/java/build/buf/validate/OneofConstraintsOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface OneofConstraintsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.OneofConstraints) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * If `required` is true, exactly one field of the oneof must be present. A
-   * validation error is returned if no fields in the oneof are present. The
-   * field itself may still be a default value; further constraints
-   * should be placed on the fields themselves to ensure they are valid values,
-   * such as `min_len` or `gt`.
-   *
-   * ```proto
-   * message MyMessage {
-   * oneof value {
-   * // Either `a` or `b` must be set. If `a` is set, it must also be
-   * // non-empty; whereas if `b` is set, it can still be an empty string.
-   * option (buf.validate.oneof).required = true;
-   * string a = 1 [(buf.validate.field).string.min_len = 1];
-   * string b = 2;
-   * }
-   * }
-   * ```
-   * 
- * - * optional bool required = 1 [json_name = "required"]; - * @return Whether the required field is set. - */ - boolean hasRequired(); - /** - *
-   * If `required` is true, exactly one field of the oneof must be present. A
-   * validation error is returned if no fields in the oneof are present. The
-   * field itself may still be a default value; further constraints
-   * should be placed on the fields themselves to ensure they are valid values,
-   * such as `min_len` or `gt`.
-   *
-   * ```proto
-   * message MyMessage {
-   * oneof value {
-   * // Either `a` or `b` must be set. If `a` is set, it must also be
-   * // non-empty; whereas if `b` is set, it can still be an empty string.
-   * option (buf.validate.oneof).required = true;
-   * string a = 1 [(buf.validate.field).string.min_len = 1];
-   * string b = 2;
-   * }
-   * }
-   * ```
-   * 
- * - * optional bool required = 1 [json_name = "required"]; - * @return The required. - */ - boolean getRequired(); -} diff --git a/src/main/java/build/buf/validate/PredefinedConstraints.java b/src/main/java/build/buf/validate/PredefinedConstraints.java deleted file mode 100644 index e3969425..00000000 --- a/src/main/java/build/buf/validate/PredefinedConstraints.java +++ /dev/null @@ -1,1120 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * PredefinedConstraints are custom constraints that can be re-used with
- * multiple fields.
- * 
- * - * Protobuf type {@code buf.validate.PredefinedConstraints} - */ -public final class PredefinedConstraints extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.PredefinedConstraints) - PredefinedConstraintsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - PredefinedConstraints.class.getName()); - } - // Use PredefinedConstraints.newBuilder() to construct. - private PredefinedConstraints(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PredefinedConstraints() { - cel_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_PredefinedConstraints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_PredefinedConstraints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.PredefinedConstraints.class, build.buf.validate.PredefinedConstraints.Builder.class); - } - - public static final int CEL_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List cel_; - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.predefined).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - @java.lang.Override - public java.util.List getCelList() { - return cel_; - } - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.predefined).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - @java.lang.Override - public java.util.List - getCelOrBuilderList() { - return cel_; - } - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.predefined).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - @java.lang.Override - public int getCelCount() { - return cel_.size(); - } - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.predefined).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - @java.lang.Override - public build.buf.validate.Constraint getCel(int index) { - return cel_.get(index); - } - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.predefined).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - @java.lang.Override - public build.buf.validate.ConstraintOrBuilder getCelOrBuilder( - int index) { - return cel_.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 < cel_.size(); i++) { - output.writeMessage(1, cel_.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 < cel_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, cel_.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.PredefinedConstraints)) { - return super.equals(obj); - } - build.buf.validate.PredefinedConstraints other = (build.buf.validate.PredefinedConstraints) obj; - - if (!getCelList() - .equals(other.getCelList())) 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 (getCelCount() > 0) { - hash = (37 * hash) + CEL_FIELD_NUMBER; - hash = (53 * hash) + getCelList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.PredefinedConstraints parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.PredefinedConstraints 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.PredefinedConstraints parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.PredefinedConstraints 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.PredefinedConstraints parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.PredefinedConstraints parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.PredefinedConstraints parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.PredefinedConstraints 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.PredefinedConstraints parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.PredefinedConstraints 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.PredefinedConstraints parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.PredefinedConstraints 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.PredefinedConstraints 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; - } - /** - *
-   * PredefinedConstraints are custom constraints that can be re-used with
-   * multiple fields.
-   * 
- * - * Protobuf type {@code buf.validate.PredefinedConstraints} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.PredefinedConstraints) - build.buf.validate.PredefinedConstraintsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_PredefinedConstraints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_PredefinedConstraints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.PredefinedConstraints.class, build.buf.validate.PredefinedConstraints.Builder.class); - } - - // Construct using build.buf.validate.PredefinedConstraints.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (celBuilder_ == null) { - cel_ = java.util.Collections.emptyList(); - } else { - cel_ = null; - celBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_PredefinedConstraints_descriptor; - } - - @java.lang.Override - public build.buf.validate.PredefinedConstraints getDefaultInstanceForType() { - return build.buf.validate.PredefinedConstraints.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.PredefinedConstraints build() { - build.buf.validate.PredefinedConstraints result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.PredefinedConstraints buildPartial() { - build.buf.validate.PredefinedConstraints result = new build.buf.validate.PredefinedConstraints(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.PredefinedConstraints result) { - if (celBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - cel_ = java.util.Collections.unmodifiableList(cel_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.cel_ = cel_; - } else { - result.cel_ = celBuilder_.build(); - } - } - - private void buildPartial0(build.buf.validate.PredefinedConstraints result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.PredefinedConstraints) { - return mergeFrom((build.buf.validate.PredefinedConstraints)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.PredefinedConstraints other) { - if (other == build.buf.validate.PredefinedConstraints.getDefaultInstance()) return this; - if (celBuilder_ == null) { - if (!other.cel_.isEmpty()) { - if (cel_.isEmpty()) { - cel_ = other.cel_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCelIsMutable(); - cel_.addAll(other.cel_); - } - onChanged(); - } - } else { - if (!other.cel_.isEmpty()) { - if (celBuilder_.isEmpty()) { - celBuilder_.dispose(); - celBuilder_ = null; - cel_ = other.cel_; - bitField0_ = (bitField0_ & ~0x00000001); - celBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetCelFieldBuilder() : null; - } else { - celBuilder_.addAllMessages(other.cel_); - } - } - } - 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: { - build.buf.validate.Constraint m = - input.readMessage( - build.buf.validate.Constraint.parser(), - extensionRegistry); - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.add(m); - } else { - celBuilder_.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 cel_ = - java.util.Collections.emptyList(); - private void ensureCelIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cel_ = new java.util.ArrayList(cel_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder> celBuilder_; - - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public java.util.List getCelList() { - if (celBuilder_ == null) { - return java.util.Collections.unmodifiableList(cel_); - } else { - return celBuilder_.getMessageList(); - } - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public int getCelCount() { - if (celBuilder_ == null) { - return cel_.size(); - } else { - return celBuilder_.getCount(); - } - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public build.buf.validate.Constraint getCel(int index) { - if (celBuilder_ == null) { - return cel_.get(index); - } else { - return celBuilder_.getMessage(index); - } - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public Builder setCel( - int index, build.buf.validate.Constraint value) { - if (celBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCelIsMutable(); - cel_.set(index, value); - onChanged(); - } else { - celBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public Builder setCel( - int index, build.buf.validate.Constraint.Builder builderForValue) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.set(index, builderForValue.build()); - onChanged(); - } else { - celBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public Builder addCel(build.buf.validate.Constraint value) { - if (celBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCelIsMutable(); - cel_.add(value); - onChanged(); - } else { - celBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public Builder addCel( - int index, build.buf.validate.Constraint value) { - if (celBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCelIsMutable(); - cel_.add(index, value); - onChanged(); - } else { - celBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public Builder addCel( - build.buf.validate.Constraint.Builder builderForValue) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.add(builderForValue.build()); - onChanged(); - } else { - celBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public Builder addCel( - int index, build.buf.validate.Constraint.Builder builderForValue) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.add(index, builderForValue.build()); - onChanged(); - } else { - celBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public Builder addAllCel( - java.lang.Iterable values) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cel_); - onChanged(); - } else { - celBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public Builder clearCel() { - if (celBuilder_ == null) { - cel_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - celBuilder_.clear(); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public Builder removeCel(int index) { - if (celBuilder_ == null) { - ensureCelIsMutable(); - cel_.remove(index); - onChanged(); - } else { - celBuilder_.remove(index); - } - return this; - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public build.buf.validate.Constraint.Builder getCelBuilder( - int index) { - return internalGetCelFieldBuilder().getBuilder(index); - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public build.buf.validate.ConstraintOrBuilder getCelOrBuilder( - int index) { - if (celBuilder_ == null) { - return cel_.get(index); } else { - return celBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public java.util.List - getCelOrBuilderList() { - if (celBuilder_ != null) { - return celBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cel_); - } - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public build.buf.validate.Constraint.Builder addCelBuilder() { - return internalGetCelFieldBuilder().addBuilder( - build.buf.validate.Constraint.getDefaultInstance()); - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public build.buf.validate.Constraint.Builder addCelBuilder( - int index) { - return internalGetCelFieldBuilder().addBuilder( - index, build.buf.validate.Constraint.getDefaultInstance()); - } - /** - *
-     * `cel` is a repeated field used to represent a textual expression
-     * in the Common Expression Language (CEL) syntax. For more information on
-     * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-     *
-     * ```proto
-     * message MyMessage {
-     * // The field `value` must be greater than 42.
-     * optional int32 value = 1 [(buf.validate.predefined).cel = {
-     * id: "my_message.value",
-     * message: "value must be greater than 42",
-     * expression: "this > 42",
-     * }];
-     * }
-     * ```
-     * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - public java.util.List - getCelBuilderList() { - return internalGetCelFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder> - internalGetCelFieldBuilder() { - if (celBuilder_ == null) { - celBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Constraint, build.buf.validate.Constraint.Builder, build.buf.validate.ConstraintOrBuilder>( - cel_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - cel_ = null; - } - return celBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.PredefinedConstraints) - } - - // @@protoc_insertion_point(class_scope:buf.validate.PredefinedConstraints) - private static final build.buf.validate.PredefinedConstraints DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.PredefinedConstraints(); - } - - public static build.buf.validate.PredefinedConstraints getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredefinedConstraints 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.PredefinedConstraints getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/PredefinedConstraintsOrBuilder.java b/src/main/java/build/buf/validate/PredefinedConstraintsOrBuilder.java deleted file mode 100644 index 0d81b78d..00000000 --- a/src/main/java/build/buf/validate/PredefinedConstraintsOrBuilder.java +++ /dev/null @@ -1,120 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface PredefinedConstraintsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.PredefinedConstraints) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.predefined).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - java.util.List - getCelList(); - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.predefined).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - build.buf.validate.Constraint getCel(int index); - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.predefined).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - int getCelCount(); - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.predefined).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - java.util.List - getCelOrBuilderList(); - /** - *
-   * `cel` is a repeated field used to represent a textual expression
-   * in the Common Expression Language (CEL) syntax. For more information on
-   * CEL, [see our documentation](https://github.com/bufbuild/protovalidate/blob/main/docs/cel.md).
-   *
-   * ```proto
-   * message MyMessage {
-   * // The field `value` must be greater than 42.
-   * optional int32 value = 1 [(buf.validate.predefined).cel = {
-   * id: "my_message.value",
-   * message: "value must be greater than 42",
-   * expression: "this > 42",
-   * }];
-   * }
-   * ```
-   * 
- * - * repeated .buf.validate.Constraint cel = 1 [json_name = "cel"]; - */ - build.buf.validate.ConstraintOrBuilder getCelOrBuilder( - int index); -} diff --git a/src/main/java/build/buf/validate/RepeatedRules.java b/src/main/java/build/buf/validate/RepeatedRules.java deleted file mode 100644 index a055e05f..00000000 --- a/src/main/java/build/buf/validate/RepeatedRules.java +++ /dev/null @@ -1,1324 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * RepeatedRules describe the constraints applied to `repeated` values.
- * 
- * - * Protobuf type {@code buf.validate.RepeatedRules} - */ -public final class RepeatedRules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - RepeatedRules> implements - // @@protoc_insertion_point(message_implements:buf.validate.RepeatedRules) - RepeatedRulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - RepeatedRules.class.getName()); - } - // Use RepeatedRules.newBuilder() to construct. - private RepeatedRules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private RepeatedRules() { - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_RepeatedRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_RepeatedRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.RepeatedRules.class, build.buf.validate.RepeatedRules.Builder.class); - } - - private int bitField0_; - public static final int MIN_ITEMS_FIELD_NUMBER = 1; - private long minItems_ = 0L; - /** - *
-   * `min_items` requires that this field must contain at least the specified
-   * minimum number of items.
-   *
-   * Note that `min_items = 1` is equivalent to setting a field as `required`.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // value must contain at least  2 items
-   * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_items = 1 [json_name = "minItems", (.buf.validate.predefined) = { ... } - * @return Whether the minItems field is set. - */ - @java.lang.Override - public boolean hasMinItems() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `min_items` requires that this field must contain at least the specified
-   * minimum number of items.
-   *
-   * Note that `min_items = 1` is equivalent to setting a field as `required`.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // value must contain at least  2 items
-   * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_items = 1 [json_name = "minItems", (.buf.validate.predefined) = { ... } - * @return The minItems. - */ - @java.lang.Override - public long getMinItems() { - return minItems_; - } - - public static final int MAX_ITEMS_FIELD_NUMBER = 2; - private long maxItems_ = 0L; - /** - *
-   * `max_items` denotes that this field must not exceed a
-   * certain number of items as the upper limit. If the field contains more
-   * items than specified, an error message will be generated, requiring the
-   * field to maintain no more than the specified number of items.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // value must contain no more than 3 item(s)
-   * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_items = 2 [json_name = "maxItems", (.buf.validate.predefined) = { ... } - * @return Whether the maxItems field is set. - */ - @java.lang.Override - public boolean hasMaxItems() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * `max_items` denotes that this field must not exceed a
-   * certain number of items as the upper limit. If the field contains more
-   * items than specified, an error message will be generated, requiring the
-   * field to maintain no more than the specified number of items.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // value must contain no more than 3 item(s)
-   * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_items = 2 [json_name = "maxItems", (.buf.validate.predefined) = { ... } - * @return The maxItems. - */ - @java.lang.Override - public long getMaxItems() { - return maxItems_; - } - - public static final int UNIQUE_FIELD_NUMBER = 3; - private boolean unique_ = false; - /** - *
-   * `unique` indicates that all elements in this field must
-   * be unique. This constraint is strictly applicable to scalar and enum
-   * types, with message types not being supported.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // repeated value must contain unique items
-   * repeated string value = 1 [(buf.validate.field).repeated.unique = true];
-   * }
-   * ```
-   * 
- * - * optional bool unique = 3 [json_name = "unique", (.buf.validate.predefined) = { ... } - * @return Whether the unique field is set. - */ - @java.lang.Override - public boolean hasUnique() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-   * `unique` indicates that all elements in this field must
-   * be unique. This constraint is strictly applicable to scalar and enum
-   * types, with message types not being supported.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // repeated value must contain unique items
-   * repeated string value = 1 [(buf.validate.field).repeated.unique = true];
-   * }
-   * ```
-   * 
- * - * optional bool unique = 3 [json_name = "unique", (.buf.validate.predefined) = { ... } - * @return The unique. - */ - @java.lang.Override - public boolean getUnique() { - return unique_; - } - - public static final int ITEMS_FIELD_NUMBER = 4; - private build.buf.validate.FieldConstraints items_; - /** - *
-   * `items` details the constraints to be applied to each item
-   * in the field. Even for repeated message fields, validation is executed
-   * against each item unless skip is explicitly specified.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // The items in the field `value` must follow the specified constraints.
-   * repeated string value = 1 [(buf.validate.field).repeated.items = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - * @return Whether the items field is set. - */ - @java.lang.Override - public boolean hasItems() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-   * `items` details the constraints to be applied to each item
-   * in the field. Even for repeated message fields, validation is executed
-   * against each item unless skip is explicitly specified.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // The items in the field `value` must follow the specified constraints.
-   * repeated string value = 1 [(buf.validate.field).repeated.items = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - * @return The items. - */ - @java.lang.Override - public build.buf.validate.FieldConstraints getItems() { - return items_ == null ? build.buf.validate.FieldConstraints.getDefaultInstance() : items_; - } - /** - *
-   * `items` details the constraints to be applied to each item
-   * in the field. Even for repeated message fields, validation is executed
-   * against each item unless skip is explicitly specified.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // The items in the field `value` must follow the specified constraints.
-   * repeated string value = 1 [(buf.validate.field).repeated.items = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - */ - @java.lang.Override - public build.buf.validate.FieldConstraintsOrBuilder getItemsOrBuilder() { - return items_ == null ? build.buf.validate.FieldConstraints.getDefaultInstance() : items_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasItems()) { - if (!getItems().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeUInt64(1, minItems_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeUInt64(2, maxItems_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeBool(3, unique_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(4, getItems()); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, minItems_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, maxItems_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, unique_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getItems()); - } - size += extensionsSerializedSize(); - 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.RepeatedRules)) { - return super.equals(obj); - } - build.buf.validate.RepeatedRules other = (build.buf.validate.RepeatedRules) obj; - - if (hasMinItems() != other.hasMinItems()) return false; - if (hasMinItems()) { - if (getMinItems() - != other.getMinItems()) return false; - } - if (hasMaxItems() != other.hasMaxItems()) return false; - if (hasMaxItems()) { - if (getMaxItems() - != other.getMaxItems()) return false; - } - if (hasUnique() != other.hasUnique()) return false; - if (hasUnique()) { - if (getUnique() - != other.getUnique()) return false; - } - if (hasItems() != other.hasItems()) return false; - if (hasItems()) { - if (!getItems() - .equals(other.getItems())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMinItems()) { - hash = (37 * hash) + MIN_ITEMS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinItems()); - } - if (hasMaxItems()) { - hash = (37 * hash) + MAX_ITEMS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxItems()); - } - if (hasUnique()) { - hash = (37 * hash) + UNIQUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUnique()); - } - if (hasItems()) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItems().hashCode(); - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.RepeatedRules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.RepeatedRules 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.RepeatedRules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.RepeatedRules 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.RepeatedRules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.RepeatedRules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.RepeatedRules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.RepeatedRules 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.RepeatedRules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.RepeatedRules 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.RepeatedRules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.RepeatedRules 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.RepeatedRules 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; - } - /** - *
-   * RepeatedRules describe the constraints applied to `repeated` values.
-   * 
- * - * Protobuf type {@code buf.validate.RepeatedRules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.RepeatedRules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.RepeatedRules) - build.buf.validate.RepeatedRulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_RepeatedRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_RepeatedRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.RepeatedRules.class, build.buf.validate.RepeatedRules.Builder.class); - } - - // Construct using build.buf.validate.RepeatedRules.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetItemsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - minItems_ = 0L; - maxItems_ = 0L; - unique_ = false; - items_ = null; - if (itemsBuilder_ != null) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_RepeatedRules_descriptor; - } - - @java.lang.Override - public build.buf.validate.RepeatedRules getDefaultInstanceForType() { - return build.buf.validate.RepeatedRules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.RepeatedRules build() { - build.buf.validate.RepeatedRules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.RepeatedRules buildPartial() { - build.buf.validate.RepeatedRules result = new build.buf.validate.RepeatedRules(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.RepeatedRules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.minItems_ = minItems_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxItems_ = maxItems_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.unique_ = unique_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.items_ = itemsBuilder_ == null - ? items_ - : itemsBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.RepeatedRules) { - return mergeFrom((build.buf.validate.RepeatedRules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.RepeatedRules other) { - if (other == build.buf.validate.RepeatedRules.getDefaultInstance()) return this; - if (other.hasMinItems()) { - setMinItems(other.getMinItems()); - } - if (other.hasMaxItems()) { - setMaxItems(other.getMaxItems()); - } - if (other.hasUnique()) { - setUnique(other.getUnique()); - } - if (other.hasItems()) { - mergeItems(other.getItems()); - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasItems()) { - if (!getItems().isInitialized()) { - return false; - } - } - if (!extensionsAreInitialized()) { - return false; - } - 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 8: { - minItems_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - maxItems_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - unique_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - internalGetItemsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - 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 long minItems_ ; - /** - *
-     * `min_items` requires that this field must contain at least the specified
-     * minimum number of items.
-     *
-     * Note that `min_items = 1` is equivalent to setting a field as `required`.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // value must contain at least  2 items
-     * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_items = 1 [json_name = "minItems", (.buf.validate.predefined) = { ... } - * @return Whether the minItems field is set. - */ - @java.lang.Override - public boolean hasMinItems() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `min_items` requires that this field must contain at least the specified
-     * minimum number of items.
-     *
-     * Note that `min_items = 1` is equivalent to setting a field as `required`.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // value must contain at least  2 items
-     * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_items = 1 [json_name = "minItems", (.buf.validate.predefined) = { ... } - * @return The minItems. - */ - @java.lang.Override - public long getMinItems() { - return minItems_; - } - /** - *
-     * `min_items` requires that this field must contain at least the specified
-     * minimum number of items.
-     *
-     * Note that `min_items = 1` is equivalent to setting a field as `required`.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // value must contain at least  2 items
-     * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_items = 1 [json_name = "minItems", (.buf.validate.predefined) = { ... } - * @param value The minItems to set. - * @return This builder for chaining. - */ - public Builder setMinItems(long value) { - - minItems_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `min_items` requires that this field must contain at least the specified
-     * minimum number of items.
-     *
-     * Note that `min_items = 1` is equivalent to setting a field as `required`.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // value must contain at least  2 items
-     * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_items = 1 [json_name = "minItems", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearMinItems() { - bitField0_ = (bitField0_ & ~0x00000001); - minItems_ = 0L; - onChanged(); - return this; - } - - private long maxItems_ ; - /** - *
-     * `max_items` denotes that this field must not exceed a
-     * certain number of items as the upper limit. If the field contains more
-     * items than specified, an error message will be generated, requiring the
-     * field to maintain no more than the specified number of items.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // value must contain no more than 3 item(s)
-     * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_items = 2 [json_name = "maxItems", (.buf.validate.predefined) = { ... } - * @return Whether the maxItems field is set. - */ - @java.lang.Override - public boolean hasMaxItems() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * `max_items` denotes that this field must not exceed a
-     * certain number of items as the upper limit. If the field contains more
-     * items than specified, an error message will be generated, requiring the
-     * field to maintain no more than the specified number of items.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // value must contain no more than 3 item(s)
-     * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_items = 2 [json_name = "maxItems", (.buf.validate.predefined) = { ... } - * @return The maxItems. - */ - @java.lang.Override - public long getMaxItems() { - return maxItems_; - } - /** - *
-     * `max_items` denotes that this field must not exceed a
-     * certain number of items as the upper limit. If the field contains more
-     * items than specified, an error message will be generated, requiring the
-     * field to maintain no more than the specified number of items.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // value must contain no more than 3 item(s)
-     * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_items = 2 [json_name = "maxItems", (.buf.validate.predefined) = { ... } - * @param value The maxItems to set. - * @return This builder for chaining. - */ - public Builder setMaxItems(long value) { - - maxItems_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `max_items` denotes that this field must not exceed a
-     * certain number of items as the upper limit. If the field contains more
-     * items than specified, an error message will be generated, requiring the
-     * field to maintain no more than the specified number of items.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // value must contain no more than 3 item(s)
-     * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_items = 2 [json_name = "maxItems", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearMaxItems() { - bitField0_ = (bitField0_ & ~0x00000002); - maxItems_ = 0L; - onChanged(); - return this; - } - - private boolean unique_ ; - /** - *
-     * `unique` indicates that all elements in this field must
-     * be unique. This constraint is strictly applicable to scalar and enum
-     * types, with message types not being supported.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // repeated value must contain unique items
-     * repeated string value = 1 [(buf.validate.field).repeated.unique = true];
-     * }
-     * ```
-     * 
- * - * optional bool unique = 3 [json_name = "unique", (.buf.validate.predefined) = { ... } - * @return Whether the unique field is set. - */ - @java.lang.Override - public boolean hasUnique() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * `unique` indicates that all elements in this field must
-     * be unique. This constraint is strictly applicable to scalar and enum
-     * types, with message types not being supported.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // repeated value must contain unique items
-     * repeated string value = 1 [(buf.validate.field).repeated.unique = true];
-     * }
-     * ```
-     * 
- * - * optional bool unique = 3 [json_name = "unique", (.buf.validate.predefined) = { ... } - * @return The unique. - */ - @java.lang.Override - public boolean getUnique() { - return unique_; - } - /** - *
-     * `unique` indicates that all elements in this field must
-     * be unique. This constraint is strictly applicable to scalar and enum
-     * types, with message types not being supported.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // repeated value must contain unique items
-     * repeated string value = 1 [(buf.validate.field).repeated.unique = true];
-     * }
-     * ```
-     * 
- * - * optional bool unique = 3 [json_name = "unique", (.buf.validate.predefined) = { ... } - * @param value The unique to set. - * @return This builder for chaining. - */ - public Builder setUnique(boolean value) { - - unique_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * `unique` indicates that all elements in this field must
-     * be unique. This constraint is strictly applicable to scalar and enum
-     * types, with message types not being supported.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // repeated value must contain unique items
-     * repeated string value = 1 [(buf.validate.field).repeated.unique = true];
-     * }
-     * ```
-     * 
- * - * optional bool unique = 3 [json_name = "unique", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearUnique() { - bitField0_ = (bitField0_ & ~0x00000004); - unique_ = false; - onChanged(); - return this; - } - - private build.buf.validate.FieldConstraints items_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder> itemsBuilder_; - /** - *
-     * `items` details the constraints to be applied to each item
-     * in the field. Even for repeated message fields, validation is executed
-     * against each item unless skip is explicitly specified.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // The items in the field `value` must follow the specified constraints.
-     * repeated string value = 1 [(buf.validate.field).repeated.items = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - * @return Whether the items field is set. - */ - public boolean hasItems() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * `items` details the constraints to be applied to each item
-     * in the field. Even for repeated message fields, validation is executed
-     * against each item unless skip is explicitly specified.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // The items in the field `value` must follow the specified constraints.
-     * repeated string value = 1 [(buf.validate.field).repeated.items = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - * @return The items. - */ - public build.buf.validate.FieldConstraints getItems() { - if (itemsBuilder_ == null) { - return items_ == null ? build.buf.validate.FieldConstraints.getDefaultInstance() : items_; - } else { - return itemsBuilder_.getMessage(); - } - } - /** - *
-     * `items` details the constraints to be applied to each item
-     * in the field. Even for repeated message fields, validation is executed
-     * against each item unless skip is explicitly specified.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // The items in the field `value` must follow the specified constraints.
-     * repeated string value = 1 [(buf.validate.field).repeated.items = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - */ - public Builder setItems(build.buf.validate.FieldConstraints value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - items_ = value; - } else { - itemsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * `items` details the constraints to be applied to each item
-     * in the field. Even for repeated message fields, validation is executed
-     * against each item unless skip is explicitly specified.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // The items in the field `value` must follow the specified constraints.
-     * repeated string value = 1 [(buf.validate.field).repeated.items = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - */ - public Builder setItems( - build.buf.validate.FieldConstraints.Builder builderForValue) { - if (itemsBuilder_ == null) { - items_ = builderForValue.build(); - } else { - itemsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * `items` details the constraints to be applied to each item
-     * in the field. Even for repeated message fields, validation is executed
-     * against each item unless skip is explicitly specified.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // The items in the field `value` must follow the specified constraints.
-     * repeated string value = 1 [(buf.validate.field).repeated.items = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - */ - public Builder mergeItems(build.buf.validate.FieldConstraints value) { - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - items_ != null && - items_ != build.buf.validate.FieldConstraints.getDefaultInstance()) { - getItemsBuilder().mergeFrom(value); - } else { - items_ = value; - } - } else { - itemsBuilder_.mergeFrom(value); - } - if (items_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - *
-     * `items` details the constraints to be applied to each item
-     * in the field. Even for repeated message fields, validation is executed
-     * against each item unless skip is explicitly specified.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // The items in the field `value` must follow the specified constraints.
-     * repeated string value = 1 [(buf.validate.field).repeated.items = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - */ - public Builder clearItems() { - bitField0_ = (bitField0_ & ~0x00000008); - items_ = null; - if (itemsBuilder_ != null) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * `items` details the constraints to be applied to each item
-     * in the field. Even for repeated message fields, validation is executed
-     * against each item unless skip is explicitly specified.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // The items in the field `value` must follow the specified constraints.
-     * repeated string value = 1 [(buf.validate.field).repeated.items = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - */ - public build.buf.validate.FieldConstraints.Builder getItemsBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetItemsFieldBuilder().getBuilder(); - } - /** - *
-     * `items` details the constraints to be applied to each item
-     * in the field. Even for repeated message fields, validation is executed
-     * against each item unless skip is explicitly specified.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // The items in the field `value` must follow the specified constraints.
-     * repeated string value = 1 [(buf.validate.field).repeated.items = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - */ - public build.buf.validate.FieldConstraintsOrBuilder getItemsOrBuilder() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilder(); - } else { - return items_ == null ? - build.buf.validate.FieldConstraints.getDefaultInstance() : items_; - } - } - /** - *
-     * `items` details the constraints to be applied to each item
-     * in the field. Even for repeated message fields, validation is executed
-     * against each item unless skip is explicitly specified.
-     *
-     * ```proto
-     * message MyRepeated {
-     * // The items in the field `value` must follow the specified constraints.
-     * repeated string value = 1 [(buf.validate.field).repeated.items = {
-     * string: {
-     * min_len: 3
-     * max_len: 10
-     * }
-     * }];
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder> - internalGetItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldConstraints, build.buf.validate.FieldConstraints.Builder, build.buf.validate.FieldConstraintsOrBuilder>( - getItems(), - getParentForChildren(), - isClean()); - items_ = null; - } - return itemsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.RepeatedRules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.RepeatedRules) - private static final build.buf.validate.RepeatedRules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.RepeatedRules(); - } - - public static build.buf.validate.RepeatedRules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RepeatedRules 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.RepeatedRules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/RepeatedRulesOrBuilder.java b/src/main/java/build/buf/validate/RepeatedRulesOrBuilder.java deleted file mode 100644 index 050cf88d..00000000 --- a/src/main/java/build/buf/validate/RepeatedRulesOrBuilder.java +++ /dev/null @@ -1,196 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface RepeatedRulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.RepeatedRules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `min_items` requires that this field must contain at least the specified
-   * minimum number of items.
-   *
-   * Note that `min_items = 1` is equivalent to setting a field as `required`.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // value must contain at least  2 items
-   * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_items = 1 [json_name = "minItems", (.buf.validate.predefined) = { ... } - * @return Whether the minItems field is set. - */ - boolean hasMinItems(); - /** - *
-   * `min_items` requires that this field must contain at least the specified
-   * minimum number of items.
-   *
-   * Note that `min_items = 1` is equivalent to setting a field as `required`.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // value must contain at least  2 items
-   * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_items = 1 [json_name = "minItems", (.buf.validate.predefined) = { ... } - * @return The minItems. - */ - long getMinItems(); - - /** - *
-   * `max_items` denotes that this field must not exceed a
-   * certain number of items as the upper limit. If the field contains more
-   * items than specified, an error message will be generated, requiring the
-   * field to maintain no more than the specified number of items.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // value must contain no more than 3 item(s)
-   * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_items = 2 [json_name = "maxItems", (.buf.validate.predefined) = { ... } - * @return Whether the maxItems field is set. - */ - boolean hasMaxItems(); - /** - *
-   * `max_items` denotes that this field must not exceed a
-   * certain number of items as the upper limit. If the field contains more
-   * items than specified, an error message will be generated, requiring the
-   * field to maintain no more than the specified number of items.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // value must contain no more than 3 item(s)
-   * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_items = 2 [json_name = "maxItems", (.buf.validate.predefined) = { ... } - * @return The maxItems. - */ - long getMaxItems(); - - /** - *
-   * `unique` indicates that all elements in this field must
-   * be unique. This constraint is strictly applicable to scalar and enum
-   * types, with message types not being supported.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // repeated value must contain unique items
-   * repeated string value = 1 [(buf.validate.field).repeated.unique = true];
-   * }
-   * ```
-   * 
- * - * optional bool unique = 3 [json_name = "unique", (.buf.validate.predefined) = { ... } - * @return Whether the unique field is set. - */ - boolean hasUnique(); - /** - *
-   * `unique` indicates that all elements in this field must
-   * be unique. This constraint is strictly applicable to scalar and enum
-   * types, with message types not being supported.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // repeated value must contain unique items
-   * repeated string value = 1 [(buf.validate.field).repeated.unique = true];
-   * }
-   * ```
-   * 
- * - * optional bool unique = 3 [json_name = "unique", (.buf.validate.predefined) = { ... } - * @return The unique. - */ - boolean getUnique(); - - /** - *
-   * `items` details the constraints to be applied to each item
-   * in the field. Even for repeated message fields, validation is executed
-   * against each item unless skip is explicitly specified.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // The items in the field `value` must follow the specified constraints.
-   * repeated string value = 1 [(buf.validate.field).repeated.items = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - * @return Whether the items field is set. - */ - boolean hasItems(); - /** - *
-   * `items` details the constraints to be applied to each item
-   * in the field. Even for repeated message fields, validation is executed
-   * against each item unless skip is explicitly specified.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // The items in the field `value` must follow the specified constraints.
-   * repeated string value = 1 [(buf.validate.field).repeated.items = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - * @return The items. - */ - build.buf.validate.FieldConstraints getItems(); - /** - *
-   * `items` details the constraints to be applied to each item
-   * in the field. Even for repeated message fields, validation is executed
-   * against each item unless skip is explicitly specified.
-   *
-   * ```proto
-   * message MyRepeated {
-   * // The items in the field `value` must follow the specified constraints.
-   * repeated string value = 1 [(buf.validate.field).repeated.items = {
-   * string: {
-   * min_len: 3
-   * max_len: 10
-   * }
-   * }];
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldConstraints items = 4 [json_name = "items"]; - */ - build.buf.validate.FieldConstraintsOrBuilder getItemsOrBuilder(); -} diff --git a/src/main/java/build/buf/validate/SFixed32Rules.java b/src/main/java/build/buf/validate/SFixed32Rules.java deleted file mode 100644 index f6644148..00000000 --- a/src/main/java/build/buf/validate/SFixed32Rules.java +++ /dev/null @@ -1,2386 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * SFixed32Rules describes the constraints applied to `fixed32` values.
- * 
- * - * Protobuf type {@code buf.validate.SFixed32Rules} - */ -public final class SFixed32Rules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - SFixed32Rules> implements - // @@protoc_insertion_point(message_implements:buf.validate.SFixed32Rules) - SFixed32RulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed32Rules.class.getName()); - } - // Use SFixed32Rules.newBuilder() to construct. - private SFixed32Rules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private SFixed32Rules() { - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.SFixed32Rules.class, build.buf.validate.SFixed32Rules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private int const_ = 0; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must equal 42
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must equal 42
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be less than 10
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
-   * }
-   * ```
-   * 
- * - * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be less than 10
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
-   * }
-   * ```
-   * 
- * - * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public int getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be less than or equal to 10
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
-   * }
-   * ```
-   * 
- * - * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be less than or equal to 10
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
-   * }
-   * ```
-   * 
- * - * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public int getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be greater than 5 [sfixed32.gt]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
-   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
-   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be greater than 5 [sfixed32.gt]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
-   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
-   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public int getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be greater than or equal to 5 [sfixed32.gte]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
-   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
-   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be greater than or equal to 5 [sfixed32.gte]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
-   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
-   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public int getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList in_ = - emptyIntList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList notIn_ = - emptyIntList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList example_ = - emptyIntList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * sfixed32 value = 1 [
-   * (buf.validate.field).sfixed32.example = 1,
-   * (buf.validate.field).sfixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * sfixed32 value = 1 [
-   * (buf.validate.field).sfixed32.example = 1,
-   * (buf.validate.field).sfixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * sfixed32 value = 1 [
-   * (buf.validate.field).sfixed32.example = 1,
-   * (buf.validate.field).sfixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSFixed32(1, const_); - } - if (lessThanCase_ == 2) { - output.writeSFixed32( - 2, (int)((java.lang.Integer) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeSFixed32( - 3, (int)((java.lang.Integer) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeSFixed32( - 4, (int)((java.lang.Integer) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeSFixed32( - 5, (int)((java.lang.Integer) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeSFixed32(6, in_.getInt(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeSFixed32(7, notIn_.getInt(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeSFixed32(8, example_.getInt(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size( - 2, (int)((java.lang.Integer) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size( - 3, (int)((java.lang.Integer) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size( - 4, (int)((java.lang.Integer) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed32Size( - 5, (int)((java.lang.Integer) greaterThan_)); - } - { - int dataSize = 0; - dataSize = 4 * getInList().size(); - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - dataSize = 4 * getNotInList().size(); - size += dataSize; - size += 1 * getNotInList().size(); - } - { - int dataSize = 0; - dataSize = 4 * getExampleList().size(); - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.SFixed32Rules)) { - return super.equals(obj); - } - build.buf.validate.SFixed32Rules other = (build.buf.validate.SFixed32Rules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (getLt() - != other.getLt()) return false; - break; - case 3: - if (getLte() - != other.getLte()) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (getGt() - != other.getGt()) return false; - break; - case 5: - if (getGte() - != other.getGte()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst(); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + getLt(); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + getLte(); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + getGt(); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + getGte(); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.SFixed32Rules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SFixed32Rules 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.SFixed32Rules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SFixed32Rules 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.SFixed32Rules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SFixed32Rules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.SFixed32Rules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.SFixed32Rules 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.SFixed32Rules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.SFixed32Rules 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.SFixed32Rules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.SFixed32Rules 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.SFixed32Rules 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; - } - /** - *
-   * SFixed32Rules describes the constraints applied to `fixed32` values.
-   * 
- * - * Protobuf type {@code buf.validate.SFixed32Rules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.SFixed32Rules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.SFixed32Rules) - build.buf.validate.SFixed32RulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.SFixed32Rules.class, build.buf.validate.SFixed32Rules.Builder.class); - } - - // Construct using build.buf.validate.SFixed32Rules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0; - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed32Rules_descriptor; - } - - @java.lang.Override - public build.buf.validate.SFixed32Rules getDefaultInstanceForType() { - return build.buf.validate.SFixed32Rules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.SFixed32Rules build() { - build.buf.validate.SFixed32Rules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.SFixed32Rules buildPartial() { - build.buf.validate.SFixed32Rules result = new build.buf.validate.SFixed32Rules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.SFixed32Rules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.SFixed32Rules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.SFixed32Rules) { - return mergeFrom((build.buf.validate.SFixed32Rules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.SFixed32Rules other) { - if (other == build.buf.validate.SFixed32Rules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000080; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 13: { - const_ = input.readSFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 21: { - lessThan_ = input.readSFixed32(); - lessThanCase_ = 2; - break; - } // case 21 - case 29: { - lessThan_ = input.readSFixed32(); - lessThanCase_ = 3; - break; - } // case 29 - case 37: { - greaterThan_ = input.readSFixed32(); - greaterThanCase_ = 4; - break; - } // case 37 - case 45: { - greaterThan_ = input.readSFixed32(); - greaterThanCase_ = 5; - break; - } // case 45 - case 53: { - int v = input.readSFixed32(); - ensureInIsMutable(); - in_.addInt(v); - break; - } // case 53 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureInIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - in_.addInt(input.readSFixed32()); - } - input.popLimit(limit); - break; - } // case 50 - case 61: { - int v = input.readSFixed32(); - ensureNotInIsMutable(); - notIn_.addInt(v); - break; - } // case 61 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureNotInIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - notIn_.addInt(input.readSFixed32()); - } - input.popLimit(limit); - break; - } // case 58 - case 69: { - int v = input.readSFixed32(); - ensureExampleIsMutable(); - example_.addInt(v); - break; - } // case 69 - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureExampleIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - example_.addInt(input.readSFixed32()); - } - input.popLimit(limit); - break; - } // case 66 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must equal 42
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must equal 42
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must equal 42
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(int value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must equal 42
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be less than 10
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
-     * }
-     * ```
-     * 
- * - * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be less than 10
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
-     * }
-     * ```
-     * 
- * - * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public int getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be less than 10
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
-     * }
-     * ```
-     * 
- * - * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(int value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be less than 10
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
-     * }
-     * ```
-     * 
- * - * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be less than or equal to 10
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
-     * }
-     * ```
-     * 
- * - * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be less than or equal to 10
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
-     * }
-     * ```
-     * 
- * - * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public int getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be less than or equal to 10
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
-     * }
-     * ```
-     * 
- * - * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(int value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be less than or equal to 10
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
-     * }
-     * ```
-     * 
- * - * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be greater than 5 [sfixed32.gt]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
-     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
-     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be greater than 5 [sfixed32.gt]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
-     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
-     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public int getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be greater than 5 [sfixed32.gt]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
-     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
-     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(int value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be greater than 5 [sfixed32.gt]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
-     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
-     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be greater than or equal to 5 [sfixed32.gte]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
-     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
-     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be greater than or equal to 5 [sfixed32.gte]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
-     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
-     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public int getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be greater than or equal to 5 [sfixed32.gte]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
-     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
-     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(int value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be greater than or equal to 5 [sfixed32.gte]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
-     * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
-     * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.IntList in_ = emptyIntList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - private void ensureInIsMutable(int capacity) { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_, capacity); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, int value) { - - ensureInIsMutable(); - in_.setInt(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(int value) { - - ensureInIsMutable(); - in_.addInt(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList notIn_ = emptyIntList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - private void ensureNotInIsMutable(int capacity) { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_, capacity); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, int value) { - - ensureNotInIsMutable(); - notIn_.setInt(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(int value) { - - ensureNotInIsMutable(); - notIn_.addInt(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList example_ = emptyIntList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000080; - } - private void ensureExampleIsMutable(int capacity) { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_, capacity); - } - bitField0_ |= 0x00000080; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * sfixed32 value = 1 [
-     * (buf.validate.field).sfixed32.example = 1,
-     * (buf.validate.field).sfixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * sfixed32 value = 1 [
-     * (buf.validate.field).sfixed32.example = 1,
-     * (buf.validate.field).sfixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * sfixed32 value = 1 [
-     * (buf.validate.field).sfixed32.example = 1,
-     * (buf.validate.field).sfixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * sfixed32 value = 1 [
-     * (buf.validate.field).sfixed32.example = 1,
-     * (buf.validate.field).sfixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, int value) { - - ensureExampleIsMutable(); - example_.setInt(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * sfixed32 value = 1 [
-     * (buf.validate.field).sfixed32.example = 1,
-     * (buf.validate.field).sfixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(int value) { - - ensureExampleIsMutable(); - example_.addInt(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * sfixed32 value = 1 [
-     * (buf.validate.field).sfixed32.example = 1,
-     * (buf.validate.field).sfixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed32 {
-     * sfixed32 value = 1 [
-     * (buf.validate.field).sfixed32.example = 1,
-     * (buf.validate.field).sfixed32.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.SFixed32Rules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.SFixed32Rules) - private static final build.buf.validate.SFixed32Rules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.SFixed32Rules(); - } - - public static build.buf.validate.SFixed32Rules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed32Rules 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.SFixed32Rules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/SFixed32RulesOrBuilder.java b/src/main/java/build/buf/validate/SFixed32RulesOrBuilder.java deleted file mode 100644 index 174c5280..00000000 --- a/src/main/java/build/buf/validate/SFixed32RulesOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface SFixed32RulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.SFixed32Rules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must equal 42
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must equal 42
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sfixed32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - int getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be less than 10
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
-   * }
-   * ```
-   * 
- * - * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be less than 10
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
-   * }
-   * ```
-   * 
- * - * sfixed32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - int getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be less than or equal to 10
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
-   * }
-   * ```
-   * 
- * - * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be less than or equal to 10
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
-   * }
-   * ```
-   * 
- * - * sfixed32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - int getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be greater than 5 [sfixed32.gt]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
-   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
-   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be greater than 5 [sfixed32.gt]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
-   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
-   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - int getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be greater than or equal to 5 [sfixed32.gte]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
-   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
-   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be greater than or equal to 5 [sfixed32.gte]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
-   * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
-   * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - int getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - int getIn(int index); - - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - int getNotIn(int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * sfixed32 value = 1 [
-   * (buf.validate.field).sfixed32.example = 1,
-   * (buf.validate.field).sfixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * sfixed32 value = 1 [
-   * (buf.validate.field).sfixed32.example = 1,
-   * (buf.validate.field).sfixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed32 {
-   * sfixed32 value = 1 [
-   * (buf.validate.field).sfixed32.example = 1,
-   * (buf.validate.field).sfixed32.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - int getExample(int index); - - build.buf.validate.SFixed32Rules.LessThanCase getLessThanCase(); - - build.buf.validate.SFixed32Rules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/SFixed64Rules.java b/src/main/java/build/buf/validate/SFixed64Rules.java deleted file mode 100644 index d534390d..00000000 --- a/src/main/java/build/buf/validate/SFixed64Rules.java +++ /dev/null @@ -1,2391 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * SFixed64Rules describes the constraints applied to `fixed64` values.
- * 
- * - * Protobuf type {@code buf.validate.SFixed64Rules} - */ -public final class SFixed64Rules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - SFixed64Rules> implements - // @@protoc_insertion_point(message_implements:buf.validate.SFixed64Rules) - SFixed64RulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SFixed64Rules.class.getName()); - } - // Use SFixed64Rules.newBuilder() to construct. - private SFixed64Rules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private SFixed64Rules() { - in_ = emptyLongList(); - notIn_ = emptyLongList(); - example_ = emptyLongList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed64Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed64Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.SFixed64Rules.class, build.buf.validate.SFixed64Rules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private long const_ = 0L; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must equal 42
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sfixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must equal 42
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sfixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public long getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be less than 10
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
-   * }
-   * ```
-   * 
- * - * sfixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be less than 10
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
-   * }
-   * ```
-   * 
- * - * sfixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public long getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be less than or equal to 10
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
-   * }
-   * ```
-   * 
- * - * sfixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be less than or equal to 10
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
-   * }
-   * ```
-   * 
- * - * sfixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public long getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be greater than 5 [sfixed64.gt]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
-   * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
-   * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be greater than 5 [sfixed64.gt]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
-   * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
-   * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public long getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be greater than or equal to 5 [sfixed64.gte]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
-   * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
-   * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be greater than or equal to 5 [sfixed64.gte]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
-   * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
-   * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public long getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList in_ = - emptyLongList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public long getIn(int index) { - return in_.getLong(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList notIn_ = - emptyLongList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public long getNotIn(int index) { - return notIn_.getLong(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList example_ = - emptyLongList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * sfixed64 value = 1 [
-   * (buf.validate.field).sfixed64.example = 1,
-   * (buf.validate.field).sfixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * sfixed64 value = 1 [
-   * (buf.validate.field).sfixed64.example = 1,
-   * (buf.validate.field).sfixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * sfixed64 value = 1 [
-   * (buf.validate.field).sfixed64.example = 1,
-   * (buf.validate.field).sfixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public long getExample(int index) { - return example_.getLong(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSFixed64(1, const_); - } - if (lessThanCase_ == 2) { - output.writeSFixed64( - 2, (long)((java.lang.Long) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeSFixed64( - 3, (long)((java.lang.Long) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeSFixed64( - 4, (long)((java.lang.Long) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeSFixed64( - 5, (long)((java.lang.Long) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeSFixed64(6, in_.getLong(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeSFixed64(7, notIn_.getLong(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeSFixed64(8, example_.getLong(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size( - 2, (long)((java.lang.Long) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size( - 3, (long)((java.lang.Long) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size( - 4, (long)((java.lang.Long) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeSFixed64Size( - 5, (long)((java.lang.Long) greaterThan_)); - } - { - int dataSize = 0; - dataSize = 8 * getInList().size(); - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - dataSize = 8 * getNotInList().size(); - size += dataSize; - size += 1 * getNotInList().size(); - } - { - int dataSize = 0; - dataSize = 8 * getExampleList().size(); - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.SFixed64Rules)) { - return super.equals(obj); - } - build.buf.validate.SFixed64Rules other = (build.buf.validate.SFixed64Rules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (getLt() - != other.getLt()) return false; - break; - case 3: - if (getLte() - != other.getLte()) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (getGt() - != other.getGt()) return false; - break; - case 5: - if (getGte() - != other.getGte()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConst()); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLt()); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLte()); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGt()); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGte()); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.SFixed64Rules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SFixed64Rules 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.SFixed64Rules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SFixed64Rules 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.SFixed64Rules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SFixed64Rules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.SFixed64Rules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.SFixed64Rules 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.SFixed64Rules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.SFixed64Rules 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.SFixed64Rules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.SFixed64Rules 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.SFixed64Rules 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; - } - /** - *
-   * SFixed64Rules describes the constraints applied to `fixed64` values.
-   * 
- * - * Protobuf type {@code buf.validate.SFixed64Rules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.SFixed64Rules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.SFixed64Rules) - build.buf.validate.SFixed64RulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed64Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed64Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.SFixed64Rules.class, build.buf.validate.SFixed64Rules.Builder.class); - } - - // Construct using build.buf.validate.SFixed64Rules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0L; - in_ = emptyLongList(); - notIn_ = emptyLongList(); - example_ = emptyLongList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SFixed64Rules_descriptor; - } - - @java.lang.Override - public build.buf.validate.SFixed64Rules getDefaultInstanceForType() { - return build.buf.validate.SFixed64Rules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.SFixed64Rules build() { - build.buf.validate.SFixed64Rules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.SFixed64Rules buildPartial() { - build.buf.validate.SFixed64Rules result = new build.buf.validate.SFixed64Rules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.SFixed64Rules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.SFixed64Rules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.SFixed64Rules) { - return mergeFrom((build.buf.validate.SFixed64Rules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.SFixed64Rules other) { - if (other == build.buf.validate.SFixed64Rules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000080; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 9: { - const_ = input.readSFixed64(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 17: { - lessThan_ = input.readSFixed64(); - lessThanCase_ = 2; - break; - } // case 17 - case 25: { - lessThan_ = input.readSFixed64(); - lessThanCase_ = 3; - break; - } // case 25 - case 33: { - greaterThan_ = input.readSFixed64(); - greaterThanCase_ = 4; - break; - } // case 33 - case 41: { - greaterThan_ = input.readSFixed64(); - greaterThanCase_ = 5; - break; - } // case 41 - case 49: { - long v = input.readSFixed64(); - ensureInIsMutable(); - in_.addLong(v); - break; - } // case 49 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureInIsMutable(alloc / 8); - while (input.getBytesUntilLimit() > 0) { - in_.addLong(input.readSFixed64()); - } - input.popLimit(limit); - break; - } // case 50 - case 57: { - long v = input.readSFixed64(); - ensureNotInIsMutable(); - notIn_.addLong(v); - break; - } // case 57 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureNotInIsMutable(alloc / 8); - while (input.getBytesUntilLimit() > 0) { - notIn_.addLong(input.readSFixed64()); - } - input.popLimit(limit); - break; - } // case 58 - case 65: { - long v = input.readSFixed64(); - ensureExampleIsMutable(); - example_.addLong(v); - break; - } // case 65 - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureExampleIsMutable(alloc / 8); - while (input.getBytesUntilLimit() > 0) { - example_.addLong(input.readSFixed64()); - } - input.popLimit(limit); - break; - } // case 66 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private long const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must equal 42
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sfixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must equal 42
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sfixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public long getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must equal 42
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sfixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(long value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must equal 42
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sfixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0L; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be less than 10
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
-     * }
-     * ```
-     * 
- * - * sfixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be less than 10
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
-     * }
-     * ```
-     * 
- * - * sfixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public long getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be less than 10
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
-     * }
-     * ```
-     * 
- * - * sfixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(long value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be less than 10
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
-     * }
-     * ```
-     * 
- * - * sfixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be less than or equal to 10
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
-     * }
-     * ```
-     * 
- * - * sfixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be less than or equal to 10
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
-     * }
-     * ```
-     * 
- * - * sfixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public long getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be less than or equal to 10
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
-     * }
-     * ```
-     * 
- * - * sfixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(long value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be less than or equal to 10
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
-     * }
-     * ```
-     * 
- * - * sfixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be greater than 5 [sfixed64.gt]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
-     * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
-     * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be greater than 5 [sfixed64.gt]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
-     * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
-     * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public long getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be greater than 5 [sfixed64.gt]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
-     * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
-     * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(long value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be greater than 5 [sfixed64.gt]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
-     * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
-     * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be greater than or equal to 5 [sfixed64.gte]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
-     * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
-     * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be greater than or equal to 5 [sfixed64.gte]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
-     * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
-     * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public long getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be greater than or equal to 5 [sfixed64.gte]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
-     * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
-     * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(long value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be greater than or equal to 5 [sfixed64.gte]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
-     * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
-     * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sfixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.LongList in_ = emptyLongList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - private void ensureInIsMutable(int capacity) { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_, capacity); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public long getIn(int index) { - return in_.getLong(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, long value) { - - ensureInIsMutable(); - in_.setLong(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(long value) { - - ensureInIsMutable(); - in_.addLong(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList notIn_ = emptyLongList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - private void ensureNotInIsMutable(int capacity) { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_, capacity); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public long getNotIn(int index) { - return notIn_.getLong(index); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, long value) { - - ensureNotInIsMutable(); - notIn_.setLong(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(long value) { - - ensureNotInIsMutable(); - notIn_.addLong(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * // value must not be in list [1, 2, 3]
-     * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList example_ = emptyLongList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000080; - } - private void ensureExampleIsMutable(int capacity) { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_, capacity); - } - bitField0_ |= 0x00000080; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * sfixed64 value = 1 [
-     * (buf.validate.field).sfixed64.example = 1,
-     * (buf.validate.field).sfixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * sfixed64 value = 1 [
-     * (buf.validate.field).sfixed64.example = 1,
-     * (buf.validate.field).sfixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * sfixed64 value = 1 [
-     * (buf.validate.field).sfixed64.example = 1,
-     * (buf.validate.field).sfixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public long getExample(int index) { - return example_.getLong(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * sfixed64 value = 1 [
-     * (buf.validate.field).sfixed64.example = 1,
-     * (buf.validate.field).sfixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, long value) { - - ensureExampleIsMutable(); - example_.setLong(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * sfixed64 value = 1 [
-     * (buf.validate.field).sfixed64.example = 1,
-     * (buf.validate.field).sfixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(long value) { - - ensureExampleIsMutable(); - example_.addLong(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * sfixed64 value = 1 [
-     * (buf.validate.field).sfixed64.example = 1,
-     * (buf.validate.field).sfixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySFixed64 {
-     * sfixed64 value = 1 [
-     * (buf.validate.field).sfixed64.example = 1,
-     * (buf.validate.field).sfixed64.example = 2
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.SFixed64Rules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.SFixed64Rules) - private static final build.buf.validate.SFixed64Rules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.SFixed64Rules(); - } - - public static build.buf.validate.SFixed64Rules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SFixed64Rules 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.SFixed64Rules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/SFixed64RulesOrBuilder.java b/src/main/java/build/buf/validate/SFixed64RulesOrBuilder.java deleted file mode 100644 index f88224fa..00000000 --- a/src/main/java/build/buf/validate/SFixed64RulesOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface SFixed64RulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.SFixed64Rules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must equal 42
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sfixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must equal 42
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sfixed64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - long getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be less than 10
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
-   * }
-   * ```
-   * 
- * - * sfixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be less than 10
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
-   * }
-   * ```
-   * 
- * - * sfixed64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - long getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be less than or equal to 10
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
-   * }
-   * ```
-   * 
- * - * sfixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be less than or equal to 10
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
-   * }
-   * ```
-   * 
- * - * sfixed64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - long getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be greater than 5 [sfixed64.gt]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
-   * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
-   * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be greater than 5 [sfixed64.gt]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
-   * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
-   * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - long getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be greater than or equal to 5 [sfixed64.gte]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
-   * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
-   * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be greater than or equal to 5 [sfixed64.gte]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
-   * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
-   * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sfixed64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - long getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - long getIn(int index); - - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * // value must not be in list [1, 2, 3]
-   * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - long getNotIn(int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * sfixed64 value = 1 [
-   * (buf.validate.field).sfixed64.example = 1,
-   * (buf.validate.field).sfixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * sfixed64 value = 1 [
-   * (buf.validate.field).sfixed64.example = 1,
-   * (buf.validate.field).sfixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySFixed64 {
-   * sfixed64 value = 1 [
-   * (buf.validate.field).sfixed64.example = 1,
-   * (buf.validate.field).sfixed64.example = 2
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sfixed64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - long getExample(int index); - - build.buf.validate.SFixed64Rules.LessThanCase getLessThanCase(); - - build.buf.validate.SFixed64Rules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/SInt32Rules.java b/src/main/java/build/buf/validate/SInt32Rules.java deleted file mode 100644 index 8ee2f843..00000000 --- a/src/main/java/build/buf/validate/SInt32Rules.java +++ /dev/null @@ -1,2374 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * SInt32Rules describes the constraints applied to `sint32` values.
- * 
- * - * Protobuf type {@code buf.validate.SInt32Rules} - */ -public final class SInt32Rules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - SInt32Rules> implements - // @@protoc_insertion_point(message_implements:buf.validate.SInt32Rules) - SInt32RulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt32Rules.class.getName()); - } - // Use SInt32Rules.newBuilder() to construct. - private SInt32Rules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private SInt32Rules() { - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt32Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt32Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.SInt32Rules.class, build.buf.validate.SInt32Rules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private int const_ = 0; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must equal 42
-   * sint32 value = 1 [(buf.validate.field).sint32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must equal 42
-   * sint32 value = 1 [(buf.validate.field).sint32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be less than 10
-   * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
-   * }
-   * ```
-   * 
- * - * sint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be less than 10
-   * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
-   * }
-   * ```
-   * 
- * - * sint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public int getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be less than or equal to 10
-   * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
-   * }
-   * ```
-   * 
- * - * sint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be less than or equal to 10
-   * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
-   * }
-   * ```
-   * 
- * - * sint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public int getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be greater than 5 [sint32.gt]
-   * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sint32.gt_lt]
-   * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
-   * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be greater than 5 [sint32.gt]
-   * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sint32.gt_lt]
-   * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
-   * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public int getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be greater than or equal to 5 [sint32.gte]
-   * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
-   * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
-   * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be greater than or equal to 5 [sint32.gte]
-   * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
-   * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
-   * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public int getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList in_ = - emptyIntList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList notIn_ = - emptyIntList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must not be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must not be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must not be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList example_ = - emptyIntList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt32 {
-   * sint32 value = 1 [
-   * (buf.validate.field).sint32.example = 1,
-   * (buf.validate.field).sint32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt32 {
-   * sint32 value = 1 [
-   * (buf.validate.field).sint32.example = 1,
-   * (buf.validate.field).sint32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt32 {
-   * sint32 value = 1 [
-   * (buf.validate.field).sint32.example = 1,
-   * (buf.validate.field).sint32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt32(1, const_); - } - if (lessThanCase_ == 2) { - output.writeSInt32( - 2, (int)((java.lang.Integer) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeSInt32( - 3, (int)((java.lang.Integer) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeSInt32( - 4, (int)((java.lang.Integer) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeSInt32( - 5, (int)((java.lang.Integer) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeSInt32(6, in_.getInt(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeSInt32(7, notIn_.getInt(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeSInt32(8, example_.getInt(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size( - 2, (int)((java.lang.Integer) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size( - 3, (int)((java.lang.Integer) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size( - 4, (int)((java.lang.Integer) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeSInt32Size( - 5, (int)((java.lang.Integer) greaterThan_)); - } - { - int dataSize = 0; - for (int i = 0; i < in_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeSInt32SizeNoTag(in_.getInt(i)); - } - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < notIn_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeSInt32SizeNoTag(notIn_.getInt(i)); - } - size += dataSize; - size += 1 * getNotInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < example_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeSInt32SizeNoTag(example_.getInt(i)); - } - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.SInt32Rules)) { - return super.equals(obj); - } - build.buf.validate.SInt32Rules other = (build.buf.validate.SInt32Rules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (getLt() - != other.getLt()) return false; - break; - case 3: - if (getLte() - != other.getLte()) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (getGt() - != other.getGt()) return false; - break; - case 5: - if (getGte() - != other.getGte()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst(); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + getLt(); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + getLte(); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + getGt(); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + getGte(); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.SInt32Rules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SInt32Rules 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.SInt32Rules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SInt32Rules 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.SInt32Rules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SInt32Rules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.SInt32Rules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.SInt32Rules 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.SInt32Rules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.SInt32Rules 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.SInt32Rules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.SInt32Rules 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.SInt32Rules 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; - } - /** - *
-   * SInt32Rules describes the constraints applied to `sint32` values.
-   * 
- * - * Protobuf type {@code buf.validate.SInt32Rules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.SInt32Rules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.SInt32Rules) - build.buf.validate.SInt32RulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt32Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt32Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.SInt32Rules.class, build.buf.validate.SInt32Rules.Builder.class); - } - - // Construct using build.buf.validate.SInt32Rules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0; - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt32Rules_descriptor; - } - - @java.lang.Override - public build.buf.validate.SInt32Rules getDefaultInstanceForType() { - return build.buf.validate.SInt32Rules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.SInt32Rules build() { - build.buf.validate.SInt32Rules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.SInt32Rules buildPartial() { - build.buf.validate.SInt32Rules result = new build.buf.validate.SInt32Rules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.SInt32Rules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.SInt32Rules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.SInt32Rules) { - return mergeFrom((build.buf.validate.SInt32Rules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.SInt32Rules other) { - if (other == build.buf.validate.SInt32Rules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000080; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 8: { - const_ = input.readSInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - lessThan_ = input.readSInt32(); - lessThanCase_ = 2; - break; - } // case 16 - case 24: { - lessThan_ = input.readSInt32(); - lessThanCase_ = 3; - break; - } // case 24 - case 32: { - greaterThan_ = input.readSInt32(); - greaterThanCase_ = 4; - break; - } // case 32 - case 40: { - greaterThan_ = input.readSInt32(); - greaterThanCase_ = 5; - break; - } // case 40 - case 48: { - int v = input.readSInt32(); - ensureInIsMutable(); - in_.addInt(v); - break; - } // case 48 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - in_.addInt(input.readSInt32()); - } - input.popLimit(limit); - break; - } // case 50 - case 56: { - int v = input.readSInt32(); - ensureNotInIsMutable(); - notIn_.addInt(v); - break; - } // case 56 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureNotInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - notIn_.addInt(input.readSInt32()); - } - input.popLimit(limit); - break; - } // case 58 - case 64: { - int v = input.readSInt32(); - ensureExampleIsMutable(); - example_.addInt(v); - break; - } // case 64 - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureExampleIsMutable(); - while (input.getBytesUntilLimit() > 0) { - example_.addInt(input.readSInt32()); - } - input.popLimit(limit); - break; - } // case 66 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must equal 42
-     * sint32 value = 1 [(buf.validate.field).sint32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must equal 42
-     * sint32 value = 1 [(buf.validate.field).sint32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must equal 42
-     * sint32 value = 1 [(buf.validate.field).sint32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(int value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must equal 42
-     * sint32 value = 1 [(buf.validate.field).sint32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be less than 10
-     * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
-     * }
-     * ```
-     * 
- * - * sint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be less than 10
-     * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
-     * }
-     * ```
-     * 
- * - * sint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public int getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be less than 10
-     * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
-     * }
-     * ```
-     * 
- * - * sint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(int value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be less than 10
-     * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
-     * }
-     * ```
-     * 
- * - * sint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be less than or equal to 10
-     * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
-     * }
-     * ```
-     * 
- * - * sint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be less than or equal to 10
-     * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
-     * }
-     * ```
-     * 
- * - * sint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public int getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be less than or equal to 10
-     * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
-     * }
-     * ```
-     * 
- * - * sint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(int value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be less than or equal to 10
-     * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
-     * }
-     * ```
-     * 
- * - * sint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be greater than 5 [sint32.gt]
-     * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sint32.gt_lt]
-     * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
-     * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be greater than 5 [sint32.gt]
-     * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sint32.gt_lt]
-     * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
-     * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public int getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be greater than 5 [sint32.gt]
-     * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sint32.gt_lt]
-     * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
-     * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(int value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be greater than 5 [sint32.gt]
-     * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sint32.gt_lt]
-     * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
-     * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be greater than or equal to 5 [sint32.gte]
-     * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
-     * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
-     * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be greater than or equal to 5 [sint32.gte]
-     * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
-     * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
-     * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public int getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be greater than or equal to 5 [sint32.gte]
-     * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
-     * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
-     * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(int value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be greater than or equal to 5 [sint32.gte]
-     * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
-     * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
-     * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.IntList in_ = emptyIntList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, int value) { - - ensureInIsMutable(); - in_.setInt(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(int value) { - - ensureInIsMutable(); - in_.addInt(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList notIn_ = emptyIntList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must not be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must not be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must not be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must not be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, int value) { - - ensureNotInIsMutable(); - notIn_.setInt(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must not be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(int value) { - - ensureNotInIsMutable(); - notIn_.addInt(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must not be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt32 {
-     * // value must not be in list [1, 2, 3]
-     * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList example_ = emptyIntList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000080; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt32 {
-     * sint32 value = 1 [
-     * (buf.validate.field).sint32.example = 1,
-     * (buf.validate.field).sint32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt32 {
-     * sint32 value = 1 [
-     * (buf.validate.field).sint32.example = 1,
-     * (buf.validate.field).sint32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt32 {
-     * sint32 value = 1 [
-     * (buf.validate.field).sint32.example = 1,
-     * (buf.validate.field).sint32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt32 {
-     * sint32 value = 1 [
-     * (buf.validate.field).sint32.example = 1,
-     * (buf.validate.field).sint32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, int value) { - - ensureExampleIsMutable(); - example_.setInt(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt32 {
-     * sint32 value = 1 [
-     * (buf.validate.field).sint32.example = 1,
-     * (buf.validate.field).sint32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(int value) { - - ensureExampleIsMutable(); - example_.addInt(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt32 {
-     * sint32 value = 1 [
-     * (buf.validate.field).sint32.example = 1,
-     * (buf.validate.field).sint32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt32 {
-     * sint32 value = 1 [
-     * (buf.validate.field).sint32.example = 1,
-     * (buf.validate.field).sint32.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.SInt32Rules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.SInt32Rules) - private static final build.buf.validate.SInt32Rules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.SInt32Rules(); - } - - public static build.buf.validate.SInt32Rules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt32Rules 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.SInt32Rules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/SInt32RulesOrBuilder.java b/src/main/java/build/buf/validate/SInt32RulesOrBuilder.java deleted file mode 100644 index 811d9f9d..00000000 --- a/src/main/java/build/buf/validate/SInt32RulesOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface SInt32RulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.SInt32Rules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must equal 42
-   * sint32 value = 1 [(buf.validate.field).sint32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must equal 42
-   * sint32 value = 1 [(buf.validate.field).sint32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - int getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be less than 10
-   * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
-   * }
-   * ```
-   * 
- * - * sint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be less than 10
-   * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
-   * }
-   * ```
-   * 
- * - * sint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - int getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be less than or equal to 10
-   * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
-   * }
-   * ```
-   * 
- * - * sint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be less than or equal to 10
-   * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
-   * }
-   * ```
-   * 
- * - * sint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - int getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be greater than 5 [sint32.gt]
-   * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sint32.gt_lt]
-   * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
-   * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be greater than 5 [sint32.gt]
-   * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sint32.gt_lt]
-   * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
-   * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - int getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be greater than or equal to 5 [sint32.gte]
-   * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
-   * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
-   * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be greater than or equal to 5 [sint32.gte]
-   * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
-   * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
-   * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - int getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - int getIn(int index); - - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must not be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must not be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt32 {
-   * // value must not be in list [1, 2, 3]
-   * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - int getNotIn(int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt32 {
-   * sint32 value = 1 [
-   * (buf.validate.field).sint32.example = 1,
-   * (buf.validate.field).sint32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt32 {
-   * sint32 value = 1 [
-   * (buf.validate.field).sint32.example = 1,
-   * (buf.validate.field).sint32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt32 {
-   * sint32 value = 1 [
-   * (buf.validate.field).sint32.example = 1,
-   * (buf.validate.field).sint32.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - int getExample(int index); - - build.buf.validate.SInt32Rules.LessThanCase getLessThanCase(); - - build.buf.validate.SInt32Rules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/SInt64Rules.java b/src/main/java/build/buf/validate/SInt64Rules.java deleted file mode 100644 index fae5d8a4..00000000 --- a/src/main/java/build/buf/validate/SInt64Rules.java +++ /dev/null @@ -1,2379 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * SInt64Rules describes the constraints applied to `sint64` values.
- * 
- * - * Protobuf type {@code buf.validate.SInt64Rules} - */ -public final class SInt64Rules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - SInt64Rules> implements - // @@protoc_insertion_point(message_implements:buf.validate.SInt64Rules) - SInt64RulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - SInt64Rules.class.getName()); - } - // Use SInt64Rules.newBuilder() to construct. - private SInt64Rules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private SInt64Rules() { - in_ = emptyLongList(); - notIn_ = emptyLongList(); - example_ = emptyLongList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt64Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt64Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.SInt64Rules.class, build.buf.validate.SInt64Rules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private long const_ = 0L; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must equal 42
-   * sint64 value = 1 [(buf.validate.field).sint64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must equal 42
-   * sint64 value = 1 [(buf.validate.field).sint64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public long getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be less than 10
-   * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
-   * }
-   * ```
-   * 
- * - * sint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be less than 10
-   * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
-   * }
-   * ```
-   * 
- * - * sint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public long getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be less than or equal to 10
-   * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
-   * }
-   * ```
-   * 
- * - * sint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be less than or equal to 10
-   * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
-   * }
-   * ```
-   * 
- * - * sint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public long getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be greater than 5 [sint64.gt]
-   * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sint64.gt_lt]
-   * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
-   * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be greater than 5 [sint64.gt]
-   * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sint64.gt_lt]
-   * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
-   * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public long getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be greater than or equal to 5 [sint64.gte]
-   * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
-   * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
-   * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be greater than or equal to 5 [sint64.gte]
-   * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
-   * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
-   * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public long getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList in_ = - emptyLongList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public long getIn(int index) { - return in_.getLong(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList notIn_ = - emptyLongList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must not be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must not be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must not be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public long getNotIn(int index) { - return notIn_.getLong(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList example_ = - emptyLongList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt64 {
-   * sint64 value = 1 [
-   * (buf.validate.field).sint64.example = 1,
-   * (buf.validate.field).sint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt64 {
-   * sint64 value = 1 [
-   * (buf.validate.field).sint64.example = 1,
-   * (buf.validate.field).sint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt64 {
-   * sint64 value = 1 [
-   * (buf.validate.field).sint64.example = 1,
-   * (buf.validate.field).sint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public long getExample(int index) { - return example_.getLong(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeSInt64(1, const_); - } - if (lessThanCase_ == 2) { - output.writeSInt64( - 2, (long)((java.lang.Long) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeSInt64( - 3, (long)((java.lang.Long) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeSInt64( - 4, (long)((java.lang.Long) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeSInt64( - 5, (long)((java.lang.Long) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeSInt64(6, in_.getLong(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeSInt64(7, notIn_.getLong(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeSInt64(8, example_.getLong(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size( - 2, (long)((java.lang.Long) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size( - 3, (long)((java.lang.Long) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size( - 4, (long)((java.lang.Long) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size( - 5, (long)((java.lang.Long) greaterThan_)); - } - { - int dataSize = 0; - for (int i = 0; i < in_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeSInt64SizeNoTag(in_.getLong(i)); - } - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < notIn_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeSInt64SizeNoTag(notIn_.getLong(i)); - } - size += dataSize; - size += 1 * getNotInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < example_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeSInt64SizeNoTag(example_.getLong(i)); - } - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.SInt64Rules)) { - return super.equals(obj); - } - build.buf.validate.SInt64Rules other = (build.buf.validate.SInt64Rules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (getLt() - != other.getLt()) return false; - break; - case 3: - if (getLte() - != other.getLte()) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (getGt() - != other.getGt()) return false; - break; - case 5: - if (getGte() - != other.getGte()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConst()); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLt()); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLte()); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGt()); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGte()); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.SInt64Rules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SInt64Rules 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.SInt64Rules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SInt64Rules 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.SInt64Rules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.SInt64Rules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.SInt64Rules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.SInt64Rules 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.SInt64Rules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.SInt64Rules 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.SInt64Rules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.SInt64Rules 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.SInt64Rules 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; - } - /** - *
-   * SInt64Rules describes the constraints applied to `sint64` values.
-   * 
- * - * Protobuf type {@code buf.validate.SInt64Rules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.SInt64Rules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.SInt64Rules) - build.buf.validate.SInt64RulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt64Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt64Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.SInt64Rules.class, build.buf.validate.SInt64Rules.Builder.class); - } - - // Construct using build.buf.validate.SInt64Rules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0L; - in_ = emptyLongList(); - notIn_ = emptyLongList(); - example_ = emptyLongList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_SInt64Rules_descriptor; - } - - @java.lang.Override - public build.buf.validate.SInt64Rules getDefaultInstanceForType() { - return build.buf.validate.SInt64Rules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.SInt64Rules build() { - build.buf.validate.SInt64Rules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.SInt64Rules buildPartial() { - build.buf.validate.SInt64Rules result = new build.buf.validate.SInt64Rules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.SInt64Rules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.SInt64Rules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.SInt64Rules) { - return mergeFrom((build.buf.validate.SInt64Rules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.SInt64Rules other) { - if (other == build.buf.validate.SInt64Rules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000080; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 8: { - const_ = input.readSInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - lessThan_ = input.readSInt64(); - lessThanCase_ = 2; - break; - } // case 16 - case 24: { - lessThan_ = input.readSInt64(); - lessThanCase_ = 3; - break; - } // case 24 - case 32: { - greaterThan_ = input.readSInt64(); - greaterThanCase_ = 4; - break; - } // case 32 - case 40: { - greaterThan_ = input.readSInt64(); - greaterThanCase_ = 5; - break; - } // case 40 - case 48: { - long v = input.readSInt64(); - ensureInIsMutable(); - in_.addLong(v); - break; - } // case 48 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - in_.addLong(input.readSInt64()); - } - input.popLimit(limit); - break; - } // case 50 - case 56: { - long v = input.readSInt64(); - ensureNotInIsMutable(); - notIn_.addLong(v); - break; - } // case 56 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureNotInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - notIn_.addLong(input.readSInt64()); - } - input.popLimit(limit); - break; - } // case 58 - case 64: { - long v = input.readSInt64(); - ensureExampleIsMutable(); - example_.addLong(v); - break; - } // case 64 - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureExampleIsMutable(); - while (input.getBytesUntilLimit() > 0) { - example_.addLong(input.readSInt64()); - } - input.popLimit(limit); - break; - } // case 66 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private long const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must equal 42
-     * sint64 value = 1 [(buf.validate.field).sint64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must equal 42
-     * sint64 value = 1 [(buf.validate.field).sint64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public long getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must equal 42
-     * sint64 value = 1 [(buf.validate.field).sint64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(long value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must equal 42
-     * sint64 value = 1 [(buf.validate.field).sint64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional sint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0L; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be less than 10
-     * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
-     * }
-     * ```
-     * 
- * - * sint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be less than 10
-     * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
-     * }
-     * ```
-     * 
- * - * sint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public long getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be less than 10
-     * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
-     * }
-     * ```
-     * 
- * - * sint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(long value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field
-     * < value). If the field value is equal to or greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be less than 10
-     * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
-     * }
-     * ```
-     * 
- * - * sint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be less than or equal to 10
-     * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
-     * }
-     * ```
-     * 
- * - * sint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be less than or equal to 10
-     * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
-     * }
-     * ```
-     * 
- * - * sint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public long getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be less than or equal to 10
-     * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
-     * }
-     * ```
-     * 
- * - * sint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(long value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be less than or equal to 10
-     * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
-     * }
-     * ```
-     * 
- * - * sint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be greater than 5 [sint64.gt]
-     * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sint64.gt_lt]
-     * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
-     * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be greater than 5 [sint64.gt]
-     * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sint64.gt_lt]
-     * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
-     * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public long getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be greater than 5 [sint64.gt]
-     * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sint64.gt_lt]
-     * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
-     * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(long value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be greater than 5 [sint64.gt]
-     * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [sint64.gt_lt]
-     * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
-     * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be greater than or equal to 5 [sint64.gte]
-     * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
-     * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
-     * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be greater than or equal to 5 [sint64.gte]
-     * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
-     * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
-     * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public long getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be greater than or equal to 5 [sint64.gte]
-     * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
-     * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
-     * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(long value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be greater than or equal to 5 [sint64.gte]
-     * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
-     * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
-     * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * sint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.LongList in_ = emptyLongList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public long getIn(int index) { - return in_.getLong(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, long value) { - - ensureInIsMutable(); - in_.setLong(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(long value) { - - ensureInIsMutable(); - in_.addLong(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message
-     * is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList notIn_ = emptyLongList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must not be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must not be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must not be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public long getNotIn(int index) { - return notIn_.getLong(index); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must not be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, long value) { - - ensureNotInIsMutable(); - notIn_.setLong(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must not be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(long value) { - - ensureNotInIsMutable(); - notIn_.addLong(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must not be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MySInt64 {
-     * // value must not be in list [1, 2, 3]
-     * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList example_ = emptyLongList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000080; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt64 {
-     * sint64 value = 1 [
-     * (buf.validate.field).sint64.example = 1,
-     * (buf.validate.field).sint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt64 {
-     * sint64 value = 1 [
-     * (buf.validate.field).sint64.example = 1,
-     * (buf.validate.field).sint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt64 {
-     * sint64 value = 1 [
-     * (buf.validate.field).sint64.example = 1,
-     * (buf.validate.field).sint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public long getExample(int index) { - return example_.getLong(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt64 {
-     * sint64 value = 1 [
-     * (buf.validate.field).sint64.example = 1,
-     * (buf.validate.field).sint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, long value) { - - ensureExampleIsMutable(); - example_.setLong(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt64 {
-     * sint64 value = 1 [
-     * (buf.validate.field).sint64.example = 1,
-     * (buf.validate.field).sint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(long value) { - - ensureExampleIsMutable(); - example_.addLong(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt64 {
-     * sint64 value = 1 [
-     * (buf.validate.field).sint64.example = 1,
-     * (buf.validate.field).sint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MySInt64 {
-     * sint64 value = 1 [
-     * (buf.validate.field).sint64.example = 1,
-     * (buf.validate.field).sint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.SInt64Rules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.SInt64Rules) - private static final build.buf.validate.SInt64Rules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.SInt64Rules(); - } - - public static build.buf.validate.SInt64Rules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SInt64Rules 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.SInt64Rules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/SInt64RulesOrBuilder.java b/src/main/java/build/buf/validate/SInt64RulesOrBuilder.java deleted file mode 100644 index e02980fa..00000000 --- a/src/main/java/build/buf/validate/SInt64RulesOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface SInt64RulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.SInt64Rules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must equal 42
-   * sint64 value = 1 [(buf.validate.field).sint64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must equal 42
-   * sint64 value = 1 [(buf.validate.field).sint64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional sint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - long getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be less than 10
-   * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
-   * }
-   * ```
-   * 
- * - * sint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field
-   * < value). If the field value is equal to or greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be less than 10
-   * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
-   * }
-   * ```
-   * 
- * - * sint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - long getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be less than or equal to 10
-   * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
-   * }
-   * ```
-   * 
- * - * sint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be less than or equal to 10
-   * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
-   * }
-   * ```
-   * 
- * - * sint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - long getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be greater than 5 [sint64.gt]
-   * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sint64.gt_lt]
-   * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
-   * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be greater than 5 [sint64.gt]
-   * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [sint64.gt_lt]
-   * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
-   * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - long getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be greater than or equal to 5 [sint64.gte]
-   * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
-   * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
-   * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be greater than or equal to 5 [sint64.gte]
-   * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
-   * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
-   * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * sint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - long getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message
-   * is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - long getIn(int index); - - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must not be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must not be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MySInt64 {
-   * // value must not be in list [1, 2, 3]
-   * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated sint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - long getNotIn(int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt64 {
-   * sint64 value = 1 [
-   * (buf.validate.field).sint64.example = 1,
-   * (buf.validate.field).sint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt64 {
-   * sint64 value = 1 [
-   * (buf.validate.field).sint64.example = 1,
-   * (buf.validate.field).sint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MySInt64 {
-   * sint64 value = 1 [
-   * (buf.validate.field).sint64.example = 1,
-   * (buf.validate.field).sint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated sint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - long getExample(int index); - - build.buf.validate.SInt64Rules.LessThanCase getLessThanCase(); - - build.buf.validate.SInt64Rules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/StringRules.java b/src/main/java/build/buf/validate/StringRules.java deleted file mode 100644 index ab197458..00000000 --- a/src/main/java/build/buf/validate/StringRules.java +++ /dev/null @@ -1,7636 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * StringRules describes the constraints applied to `string` values These
- * rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type.
- * 
- * - * Protobuf type {@code buf.validate.StringRules} - */ -public final class StringRules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - StringRules> implements - // @@protoc_insertion_point(message_implements:buf.validate.StringRules) - StringRulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - StringRules.class.getName()); - } - // Use StringRules.newBuilder() to construct. - private StringRules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private StringRules() { - const_ = ""; - pattern_ = ""; - prefix_ = ""; - suffix_ = ""; - contains_ = ""; - notContains_ = ""; - in_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - notIn_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - example_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_StringRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_StringRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.StringRules.class, build.buf.validate.StringRules.Builder.class); - } - - private int bitField0_; - private int wellKnownCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object wellKnown_; - public enum WellKnownCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - EMAIL(12), - HOSTNAME(13), - IP(14), - IPV4(15), - IPV6(16), - URI(17), - URI_REF(18), - ADDRESS(21), - UUID(22), - TUUID(33), - IP_WITH_PREFIXLEN(26), - IPV4_WITH_PREFIXLEN(27), - IPV6_WITH_PREFIXLEN(28), - IP_PREFIX(29), - IPV4_PREFIX(30), - IPV6_PREFIX(31), - HOST_AND_PORT(32), - WELL_KNOWN_REGEX(24), - WELLKNOWN_NOT_SET(0); - private final int value; - private WellKnownCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static WellKnownCase valueOf(int value) { - return forNumber(value); - } - - public static WellKnownCase forNumber(int value) { - switch (value) { - case 12: return EMAIL; - case 13: return HOSTNAME; - case 14: return IP; - case 15: return IPV4; - case 16: return IPV6; - case 17: return URI; - case 18: return URI_REF; - case 21: return ADDRESS; - case 22: return UUID; - case 33: return TUUID; - case 26: return IP_WITH_PREFIXLEN; - case 27: return IPV4_WITH_PREFIXLEN; - case 28: return IPV6_WITH_PREFIXLEN; - case 29: return IP_PREFIX; - case 30: return IPV4_PREFIX; - case 31: return IPV6_PREFIX; - case 32: return HOST_AND_PORT; - case 24: return WELL_KNOWN_REGEX; - case 0: return WELLKNOWN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public WellKnownCase - getWellKnownCase() { - return WellKnownCase.forNumber( - wellKnownCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object const_ = ""; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must equal `hello`
-   * string value = 1 [(buf.validate.field).string.const = "hello"];
-   * }
-   * ```
-   * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must equal `hello`
-   * string value = 1 [(buf.validate.field).string.const = "hello"];
-   * }
-   * ```
-   * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public java.lang.String getConst() { - java.lang.Object ref = const_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - const_ = s; - } - return s; - } - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must equal `hello`
-   * string value = 1 [(buf.validate.field).string.const = "hello"];
-   * }
-   * ```
-   * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The bytes for const. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getConstBytes() { - java.lang.Object ref = const_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - const_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LEN_FIELD_NUMBER = 19; - private long len_ = 0L; - /** - *
-   * `len` dictates that the field value must have the specified
-   * number of characters (Unicode code points), which may differ from the number
-   * of bytes in the string. If the field value does not meet the specified
-   * length, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be 5 characters
-   * string value = 1 [(buf.validate.field).string.len = 5];
-   * }
-   * ```
-   * 
- * - * optional uint64 len = 19 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return Whether the len field is set. - */ - @java.lang.Override - public boolean hasLen() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * `len` dictates that the field value must have the specified
-   * number of characters (Unicode code points), which may differ from the number
-   * of bytes in the string. If the field value does not meet the specified
-   * length, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be 5 characters
-   * string value = 1 [(buf.validate.field).string.len = 5];
-   * }
-   * ```
-   * 
- * - * optional uint64 len = 19 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return The len. - */ - @java.lang.Override - public long getLen() { - return len_; - } - - public static final int MIN_LEN_FIELD_NUMBER = 2; - private long minLen_ = 0L; - /** - *
-   * `min_len` specifies that the field value must have at least the specified
-   * number of characters (Unicode code points), which may differ from the number
-   * of bytes in the string. If the field value contains fewer characters, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at least 3 characters
-   * string value = 1 [(buf.validate.field).string.min_len = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return Whether the minLen field is set. - */ - @java.lang.Override - public boolean hasMinLen() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-   * `min_len` specifies that the field value must have at least the specified
-   * number of characters (Unicode code points), which may differ from the number
-   * of bytes in the string. If the field value contains fewer characters, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at least 3 characters
-   * string value = 1 [(buf.validate.field).string.min_len = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return The minLen. - */ - @java.lang.Override - public long getMinLen() { - return minLen_; - } - - public static final int MAX_LEN_FIELD_NUMBER = 3; - private long maxLen_ = 0L; - /** - *
-   * `max_len` specifies that the field value must have no more than the specified
-   * number of characters (Unicode code points), which may differ from the
-   * number of bytes in the string. If the field value contains more characters,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at most 10 characters
-   * string value = 1 [(buf.validate.field).string.max_len = 10];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return Whether the maxLen field is set. - */ - @java.lang.Override - public boolean hasMaxLen() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-   * `max_len` specifies that the field value must have no more than the specified
-   * number of characters (Unicode code points), which may differ from the
-   * number of bytes in the string. If the field value contains more characters,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at most 10 characters
-   * string value = 1 [(buf.validate.field).string.max_len = 10];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return The maxLen. - */ - @java.lang.Override - public long getMaxLen() { - return maxLen_; - } - - public static final int LEN_BYTES_FIELD_NUMBER = 20; - private long lenBytes_ = 0L; - /** - *
-   * `len_bytes` dictates that the field value must have the specified number of
-   * bytes. If the field value does not match the specified length in bytes,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be 6 bytes
-   * string value = 1 [(buf.validate.field).string.len_bytes = 6];
-   * }
-   * ```
-   * 
- * - * optional uint64 len_bytes = 20 [json_name = "lenBytes", (.buf.validate.predefined) = { ... } - * @return Whether the lenBytes field is set. - */ - @java.lang.Override - public boolean hasLenBytes() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-   * `len_bytes` dictates that the field value must have the specified number of
-   * bytes. If the field value does not match the specified length in bytes,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be 6 bytes
-   * string value = 1 [(buf.validate.field).string.len_bytes = 6];
-   * }
-   * ```
-   * 
- * - * optional uint64 len_bytes = 20 [json_name = "lenBytes", (.buf.validate.predefined) = { ... } - * @return The lenBytes. - */ - @java.lang.Override - public long getLenBytes() { - return lenBytes_; - } - - public static final int MIN_BYTES_FIELD_NUMBER = 4; - private long minBytes_ = 0L; - /** - *
-   * `min_bytes` specifies that the field value must have at least the specified
-   * number of bytes. If the field value contains fewer bytes, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at least 4 bytes
-   * string value = 1 [(buf.validate.field).string.min_bytes = 4];
-   * }
-   *
-   * ```
-   * 
- * - * optional uint64 min_bytes = 4 [json_name = "minBytes", (.buf.validate.predefined) = { ... } - * @return Whether the minBytes field is set. - */ - @java.lang.Override - public boolean hasMinBytes() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-   * `min_bytes` specifies that the field value must have at least the specified
-   * number of bytes. If the field value contains fewer bytes, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at least 4 bytes
-   * string value = 1 [(buf.validate.field).string.min_bytes = 4];
-   * }
-   *
-   * ```
-   * 
- * - * optional uint64 min_bytes = 4 [json_name = "minBytes", (.buf.validate.predefined) = { ... } - * @return The minBytes. - */ - @java.lang.Override - public long getMinBytes() { - return minBytes_; - } - - public static final int MAX_BYTES_FIELD_NUMBER = 5; - private long maxBytes_ = 0L; - /** - *
-   * `max_bytes` specifies that the field value must have no more than the
-   * specified number of bytes. If the field value contains more bytes, an
-   * error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at most 8 bytes
-   * string value = 1 [(buf.validate.field).string.max_bytes = 8];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_bytes = 5 [json_name = "maxBytes", (.buf.validate.predefined) = { ... } - * @return Whether the maxBytes field is set. - */ - @java.lang.Override - public boolean hasMaxBytes() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-   * `max_bytes` specifies that the field value must have no more than the
-   * specified number of bytes. If the field value contains more bytes, an
-   * error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at most 8 bytes
-   * string value = 1 [(buf.validate.field).string.max_bytes = 8];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_bytes = 5 [json_name = "maxBytes", (.buf.validate.predefined) = { ... } - * @return The maxBytes. - */ - @java.lang.Override - public long getMaxBytes() { - return maxBytes_; - } - - public static final int PATTERN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object pattern_ = ""; - /** - *
-   * `pattern` specifies that the field value must match the specified
-   * regular expression (RE2 syntax), with the expression provided without any
-   * delimiters. If the field value doesn't match the regular expression, an
-   * error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not match regex pattern `^[a-zA-Z]//$`
-   * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return Whether the pattern field is set. - */ - @java.lang.Override - public boolean hasPattern() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-   * `pattern` specifies that the field value must match the specified
-   * regular expression (RE2 syntax), with the expression provided without any
-   * delimiters. If the field value doesn't match the regular expression, an
-   * error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not match regex pattern `^[a-zA-Z]//$`
-   * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The pattern. - */ - @java.lang.Override - public java.lang.String getPattern() { - java.lang.Object ref = pattern_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - pattern_ = s; - } - return s; - } - } - /** - *
-   * `pattern` specifies that the field value must match the specified
-   * regular expression (RE2 syntax), with the expression provided without any
-   * delimiters. If the field value doesn't match the regular expression, an
-   * error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not match regex pattern `^[a-zA-Z]//$`
-   * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The bytes for pattern. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPatternBytes() { - java.lang.Object ref = pattern_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREFIX_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object prefix_ = ""; - /** - *
-   * `prefix` specifies that the field value must have the
-   * specified substring at the beginning of the string. If the field value
-   * doesn't start with the specified prefix, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have prefix `pre`
-   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-   * }
-   * ```
-   * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return Whether the prefix field is set. - */ - @java.lang.Override - public boolean hasPrefix() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - *
-   * `prefix` specifies that the field value must have the
-   * specified substring at the beginning of the string. If the field value
-   * doesn't start with the specified prefix, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have prefix `pre`
-   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-   * }
-   * ```
-   * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return The prefix. - */ - @java.lang.Override - public java.lang.String getPrefix() { - java.lang.Object ref = prefix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - prefix_ = s; - } - return s; - } - } - /** - *
-   * `prefix` specifies that the field value must have the
-   * specified substring at the beginning of the string. If the field value
-   * doesn't start with the specified prefix, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have prefix `pre`
-   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-   * }
-   * ```
-   * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return The bytes for prefix. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPrefixBytes() { - java.lang.Object ref = prefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - prefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUFFIX_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private volatile java.lang.Object suffix_ = ""; - /** - *
-   * `suffix` specifies that the field value must have the
-   * specified substring at the end of the string. If the field value doesn't
-   * end with the specified suffix, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have suffix `post`
-   * string value = 1 [(buf.validate.field).string.suffix = "post"];
-   * }
-   * ```
-   * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return Whether the suffix field is set. - */ - @java.lang.Override - public boolean hasSuffix() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-   * `suffix` specifies that the field value must have the
-   * specified substring at the end of the string. If the field value doesn't
-   * end with the specified suffix, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have suffix `post`
-   * string value = 1 [(buf.validate.field).string.suffix = "post"];
-   * }
-   * ```
-   * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return The suffix. - */ - @java.lang.Override - public java.lang.String getSuffix() { - java.lang.Object ref = suffix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - suffix_ = s; - } - return s; - } - } - /** - *
-   * `suffix` specifies that the field value must have the
-   * specified substring at the end of the string. If the field value doesn't
-   * end with the specified suffix, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have suffix `post`
-   * string value = 1 [(buf.validate.field).string.suffix = "post"];
-   * }
-   * ```
-   * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return The bytes for suffix. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSuffixBytes() { - java.lang.Object ref = suffix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - suffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTAINS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object contains_ = ""; - /** - *
-   * `contains` specifies that the field value must have the
-   * specified substring anywhere in the string. If the field value doesn't
-   * contain the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not contain substring `inside`.
-   * string value = 1 [(buf.validate.field).string.contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return Whether the contains field is set. - */ - @java.lang.Override - public boolean hasContains() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - *
-   * `contains` specifies that the field value must have the
-   * specified substring anywhere in the string. If the field value doesn't
-   * contain the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not contain substring `inside`.
-   * string value = 1 [(buf.validate.field).string.contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return The contains. - */ - @java.lang.Override - public java.lang.String getContains() { - java.lang.Object ref = contains_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - contains_ = s; - } - return s; - } - } - /** - *
-   * `contains` specifies that the field value must have the
-   * specified substring anywhere in the string. If the field value doesn't
-   * contain the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not contain substring `inside`.
-   * string value = 1 [(buf.validate.field).string.contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return The bytes for contains. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getContainsBytes() { - java.lang.Object ref = contains_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contains_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NOT_CONTAINS_FIELD_NUMBER = 23; - @SuppressWarnings("serial") - private volatile java.lang.Object notContains_ = ""; - /** - *
-   * `not_contains` specifies that the field value must not have the
-   * specified substring anywhere in the string. If the field value contains
-   * the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value contains substring `inside`.
-   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @return Whether the notContains field is set. - */ - @java.lang.Override - public boolean hasNotContains() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - *
-   * `not_contains` specifies that the field value must not have the
-   * specified substring anywhere in the string. If the field value contains
-   * the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value contains substring `inside`.
-   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @return The notContains. - */ - @java.lang.Override - public java.lang.String getNotContains() { - java.lang.Object ref = notContains_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - notContains_ = s; - } - return s; - } - } - /** - *
-   * `not_contains` specifies that the field value must not have the
-   * specified substring anywhere in the string. If the field value contains
-   * the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value contains substring `inside`.
-   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @return The bytes for notContains. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNotContainsBytes() { - java.lang.Object ref = notContains_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - notContains_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IN_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList in_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * `in` specifies that the field value must be equal to one of the specified
-   * values. If the field value isn't one of the specified values, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be in list ["apple", "banana"]
-   * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-   * }
-   * ```
-   * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public com.google.protobuf.ProtocolStringList - getInList() { - return in_; - } - /** - *
-   * `in` specifies that the field value must be equal to one of the specified
-   * values. If the field value isn't one of the specified values, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be in list ["apple", "banana"]
-   * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-   * }
-   * ```
-   * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` specifies that the field value must be equal to one of the specified
-   * values. If the field value isn't one of the specified values, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be in list ["apple", "banana"]
-   * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-   * }
-   * ```
-   * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public java.lang.String getIn(int index) { - return in_.get(index); - } - /** - *
-   * `in` specifies that the field value must be equal to one of the specified
-   * values. If the field value isn't one of the specified values, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be in list ["apple", "banana"]
-   * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-   * }
-   * ```
-   * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the value to return. - * @return The bytes of the in at the given index. - */ - public com.google.protobuf.ByteString - getInBytes(int index) { - return in_.getByteString(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList notIn_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * `not_in` specifies that the field value cannot be equal to any
-   * of the specified values. If the field value is one of the specified values,
-   * an error message will be generated.
-   * ```proto
-   * message MyString {
-   * // value must not be in list ["orange", "grape"]
-   * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public com.google.protobuf.ProtocolStringList - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` specifies that the field value cannot be equal to any
-   * of the specified values. If the field value is one of the specified values,
-   * an error message will be generated.
-   * ```proto
-   * message MyString {
-   * // value must not be in list ["orange", "grape"]
-   * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` specifies that the field value cannot be equal to any
-   * of the specified values. If the field value is one of the specified values,
-   * an error message will be generated.
-   * ```proto
-   * message MyString {
-   * // value must not be in list ["orange", "grape"]
-   * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public java.lang.String getNotIn(int index) { - return notIn_.get(index); - } - /** - *
-   * `not_in` specifies that the field value cannot be equal to any
-   * of the specified values. If the field value is one of the specified values,
-   * an error message will be generated.
-   * ```proto
-   * message MyString {
-   * // value must not be in list ["orange", "grape"]
-   * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the value to return. - * @return The bytes of the notIn at the given index. - */ - public com.google.protobuf.ByteString - getNotInBytes(int index) { - return notIn_.getByteString(index); - } - - public static final int EMAIL_FIELD_NUMBER = 12; - /** - *
-   * `email` specifies that the field value must be a valid email address
-   * (addr-spec only) as defined by [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1).
-   * If the field value isn't a valid email address, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid email address
-   * string value = 1 [(buf.validate.field).string.email = true];
-   * }
-   * ```
-   * 
- * - * bool email = 12 [json_name = "email", (.buf.validate.predefined) = { ... } - * @return Whether the email field is set. - */ - @java.lang.Override - public boolean hasEmail() { - return wellKnownCase_ == 12; - } - /** - *
-   * `email` specifies that the field value must be a valid email address
-   * (addr-spec only) as defined by [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1).
-   * If the field value isn't a valid email address, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid email address
-   * string value = 1 [(buf.validate.field).string.email = true];
-   * }
-   * ```
-   * 
- * - * bool email = 12 [json_name = "email", (.buf.validate.predefined) = { ... } - * @return The email. - */ - @java.lang.Override - public boolean getEmail() { - if (wellKnownCase_ == 12) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int HOSTNAME_FIELD_NUMBER = 13; - /** - *
-   * `hostname` specifies that the field value must be a valid
-   * hostname as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5). This constraint doesn't support
-   * internationalized domain names (IDNs). If the field value isn't a
-   * valid hostname, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid hostname
-   * string value = 1 [(buf.validate.field).string.hostname = true];
-   * }
-   * ```
-   * 
- * - * bool hostname = 13 [json_name = "hostname", (.buf.validate.predefined) = { ... } - * @return Whether the hostname field is set. - */ - @java.lang.Override - public boolean hasHostname() { - return wellKnownCase_ == 13; - } - /** - *
-   * `hostname` specifies that the field value must be a valid
-   * hostname as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5). This constraint doesn't support
-   * internationalized domain names (IDNs). If the field value isn't a
-   * valid hostname, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid hostname
-   * string value = 1 [(buf.validate.field).string.hostname = true];
-   * }
-   * ```
-   * 
- * - * bool hostname = 13 [json_name = "hostname", (.buf.validate.predefined) = { ... } - * @return The hostname. - */ - @java.lang.Override - public boolean getHostname() { - if (wellKnownCase_ == 13) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int IP_FIELD_NUMBER = 14; - /** - *
-   * `ip` specifies that the field value must be a valid IP
-   * (v4 or v6) address, without surrounding square brackets for IPv6 addresses.
-   * If the field value isn't a valid IP address, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP address
-   * string value = 1 [(buf.validate.field).string.ip = true];
-   * }
-   * ```
-   * 
- * - * bool ip = 14 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return Whether the ip field is set. - */ - @java.lang.Override - public boolean hasIp() { - return wellKnownCase_ == 14; - } - /** - *
-   * `ip` specifies that the field value must be a valid IP
-   * (v4 or v6) address, without surrounding square brackets for IPv6 addresses.
-   * If the field value isn't a valid IP address, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP address
-   * string value = 1 [(buf.validate.field).string.ip = true];
-   * }
-   * ```
-   * 
- * - * bool ip = 14 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return The ip. - */ - @java.lang.Override - public boolean getIp() { - if (wellKnownCase_ == 14) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int IPV4_FIELD_NUMBER = 15; - /** - *
-   * `ipv4` specifies that the field value must be a valid IPv4
-   * address. If the field value isn't a valid IPv4 address, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 address
-   * string value = 1 [(buf.validate.field).string.ipv4 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4 = 15 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4 field is set. - */ - @java.lang.Override - public boolean hasIpv4() { - return wellKnownCase_ == 15; - } - /** - *
-   * `ipv4` specifies that the field value must be a valid IPv4
-   * address. If the field value isn't a valid IPv4 address, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 address
-   * string value = 1 [(buf.validate.field).string.ipv4 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4 = 15 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return The ipv4. - */ - @java.lang.Override - public boolean getIpv4() { - if (wellKnownCase_ == 15) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int IPV6_FIELD_NUMBER = 16; - /** - *
-   * `ipv6` specifies that the field value must be a valid
-   * IPv6 address, without surrounding square brackets. If the field value is
-   * not a valid IPv6 address, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 address
-   * string value = 1 [(buf.validate.field).string.ipv6 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6 = 16 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6 field is set. - */ - @java.lang.Override - public boolean hasIpv6() { - return wellKnownCase_ == 16; - } - /** - *
-   * `ipv6` specifies that the field value must be a valid
-   * IPv6 address, without surrounding square brackets. If the field value is
-   * not a valid IPv6 address, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 address
-   * string value = 1 [(buf.validate.field).string.ipv6 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6 = 16 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return The ipv6. - */ - @java.lang.Override - public boolean getIpv6() { - if (wellKnownCase_ == 16) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int URI_FIELD_NUMBER = 17; - /** - *
-   * `uri` specifies that the field value must be a valid URI as defined by
-   * [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3).
-   *
-   * If the field value isn't a valid URI, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid URI
-   * string value = 1 [(buf.validate.field).string.uri = true];
-   * }
-   * ```
-   * 
- * - * bool uri = 17 [json_name = "uri", (.buf.validate.predefined) = { ... } - * @return Whether the uri field is set. - */ - @java.lang.Override - public boolean hasUri() { - return wellKnownCase_ == 17; - } - /** - *
-   * `uri` specifies that the field value must be a valid URI as defined by
-   * [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3).
-   *
-   * If the field value isn't a valid URI, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid URI
-   * string value = 1 [(buf.validate.field).string.uri = true];
-   * }
-   * ```
-   * 
- * - * bool uri = 17 [json_name = "uri", (.buf.validate.predefined) = { ... } - * @return The uri. - */ - @java.lang.Override - public boolean getUri() { - if (wellKnownCase_ == 17) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int URI_REF_FIELD_NUMBER = 18; - /** - *
-   * `uri_ref` specifies that the field value must be a valid URI Reference as
-   * defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-4.1).
-   *
-   * A URI Reference is either a [URI](https://datatracker.ietf.org/doc/html/rfc3986#section-3),
-   * or a [Relative Reference](https://datatracker.ietf.org/doc/html/rfc3986#section-4.2).
-   *
-   * If the field value isn't a valid URI Reference, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid URI Reference
-   * string value = 1 [(buf.validate.field).string.uri_ref = true];
-   * }
-   * ```
-   * 
- * - * bool uri_ref = 18 [json_name = "uriRef", (.buf.validate.predefined) = { ... } - * @return Whether the uriRef field is set. - */ - @java.lang.Override - public boolean hasUriRef() { - return wellKnownCase_ == 18; - } - /** - *
-   * `uri_ref` specifies that the field value must be a valid URI Reference as
-   * defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-4.1).
-   *
-   * A URI Reference is either a [URI](https://datatracker.ietf.org/doc/html/rfc3986#section-3),
-   * or a [Relative Reference](https://datatracker.ietf.org/doc/html/rfc3986#section-4.2).
-   *
-   * If the field value isn't a valid URI Reference, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid URI Reference
-   * string value = 1 [(buf.validate.field).string.uri_ref = true];
-   * }
-   * ```
-   * 
- * - * bool uri_ref = 18 [json_name = "uriRef", (.buf.validate.predefined) = { ... } - * @return The uriRef. - */ - @java.lang.Override - public boolean getUriRef() { - if (wellKnownCase_ == 18) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int ADDRESS_FIELD_NUMBER = 21; - /** - *
-   * `address` specifies that the field value must be either a valid hostname
-   * as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5)
-   * (which doesn't support internationalized domain names or IDNs) or a valid
-   * IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid hostname, or ip address
-   * string value = 1 [(buf.validate.field).string.address = true];
-   * }
-   * ```
-   * 
- * - * bool address = 21 [json_name = "address", (.buf.validate.predefined) = { ... } - * @return Whether the address field is set. - */ - @java.lang.Override - public boolean hasAddress() { - return wellKnownCase_ == 21; - } - /** - *
-   * `address` specifies that the field value must be either a valid hostname
-   * as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5)
-   * (which doesn't support internationalized domain names or IDNs) or a valid
-   * IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid hostname, or ip address
-   * string value = 1 [(buf.validate.field).string.address = true];
-   * }
-   * ```
-   * 
- * - * bool address = 21 [json_name = "address", (.buf.validate.predefined) = { ... } - * @return The address. - */ - @java.lang.Override - public boolean getAddress() { - if (wellKnownCase_ == 21) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int UUID_FIELD_NUMBER = 22; - /** - *
-   * `uuid` specifies that the field value must be a valid UUID as defined by
-   * [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the
-   * field value isn't a valid UUID, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid UUID
-   * string value = 1 [(buf.validate.field).string.uuid = true];
-   * }
-   * ```
-   * 
- * - * bool uuid = 22 [json_name = "uuid", (.buf.validate.predefined) = { ... } - * @return Whether the uuid field is set. - */ - @java.lang.Override - public boolean hasUuid() { - return wellKnownCase_ == 22; - } - /** - *
-   * `uuid` specifies that the field value must be a valid UUID as defined by
-   * [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the
-   * field value isn't a valid UUID, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid UUID
-   * string value = 1 [(buf.validate.field).string.uuid = true];
-   * }
-   * ```
-   * 
- * - * bool uuid = 22 [json_name = "uuid", (.buf.validate.predefined) = { ... } - * @return The uuid. - */ - @java.lang.Override - public boolean getUuid() { - if (wellKnownCase_ == 22) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int TUUID_FIELD_NUMBER = 33; - /** - *
-   * `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
-   * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes
-   * omitted. If the field value isn't a valid UUID without dashes, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid trimmed UUID
-   * string value = 1 [(buf.validate.field).string.tuuid = true];
-   * }
-   * ```
-   * 
- * - * bool tuuid = 33 [json_name = "tuuid", (.buf.validate.predefined) = { ... } - * @return Whether the tuuid field is set. - */ - @java.lang.Override - public boolean hasTuuid() { - return wellKnownCase_ == 33; - } - /** - *
-   * `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
-   * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes
-   * omitted. If the field value isn't a valid UUID without dashes, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid trimmed UUID
-   * string value = 1 [(buf.validate.field).string.tuuid = true];
-   * }
-   * ```
-   * 
- * - * bool tuuid = 33 [json_name = "tuuid", (.buf.validate.predefined) = { ... } - * @return The tuuid. - */ - @java.lang.Override - public boolean getTuuid() { - if (wellKnownCase_ == 33) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int IP_WITH_PREFIXLEN_FIELD_NUMBER = 26; - /** - *
-   * `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
-   * address with prefix length. If the field value isn't a valid IP with prefix
-   * length, an error message will be generated.
-   *
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP with prefix length
-   * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ip_with_prefixlen = 26 [json_name = "ipWithPrefixlen", (.buf.validate.predefined) = { ... } - * @return Whether the ipWithPrefixlen field is set. - */ - @java.lang.Override - public boolean hasIpWithPrefixlen() { - return wellKnownCase_ == 26; - } - /** - *
-   * `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
-   * address with prefix length. If the field value isn't a valid IP with prefix
-   * length, an error message will be generated.
-   *
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP with prefix length
-   * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ip_with_prefixlen = 26 [json_name = "ipWithPrefixlen", (.buf.validate.predefined) = { ... } - * @return The ipWithPrefixlen. - */ - @java.lang.Override - public boolean getIpWithPrefixlen() { - if (wellKnownCase_ == 26) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int IPV4_WITH_PREFIXLEN_FIELD_NUMBER = 27; - /** - *
-   * `ipv4_with_prefixlen` specifies that the field value must be a valid
-   * IPv4 address with prefix.
-   * If the field value isn't a valid IPv4 address with prefix length,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 address with prefix length
-   * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4_with_prefixlen = 27 [json_name = "ipv4WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4WithPrefixlen field is set. - */ - @java.lang.Override - public boolean hasIpv4WithPrefixlen() { - return wellKnownCase_ == 27; - } - /** - *
-   * `ipv4_with_prefixlen` specifies that the field value must be a valid
-   * IPv4 address with prefix.
-   * If the field value isn't a valid IPv4 address with prefix length,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 address with prefix length
-   * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4_with_prefixlen = 27 [json_name = "ipv4WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return The ipv4WithPrefixlen. - */ - @java.lang.Override - public boolean getIpv4WithPrefixlen() { - if (wellKnownCase_ == 27) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int IPV6_WITH_PREFIXLEN_FIELD_NUMBER = 28; - /** - *
-   * `ipv6_with_prefixlen` specifies that the field value must be a valid
-   * IPv6 address with prefix length.
-   * If the field value is not a valid IPv6 address with prefix length,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 address prefix length
-   * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6_with_prefixlen = 28 [json_name = "ipv6WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6WithPrefixlen field is set. - */ - @java.lang.Override - public boolean hasIpv6WithPrefixlen() { - return wellKnownCase_ == 28; - } - /** - *
-   * `ipv6_with_prefixlen` specifies that the field value must be a valid
-   * IPv6 address with prefix length.
-   * If the field value is not a valid IPv6 address with prefix length,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 address prefix length
-   * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6_with_prefixlen = 28 [json_name = "ipv6WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return The ipv6WithPrefixlen. - */ - @java.lang.Override - public boolean getIpv6WithPrefixlen() { - if (wellKnownCase_ == 28) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int IP_PREFIX_FIELD_NUMBER = 29; - /** - *
-   * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
-   * If the field value isn't a valid IP prefix, an error message will be
-   * generated. The prefix must have all zeros for the masked bits of the prefix (e.g.,
-   * `127.0.0.0/16`, not `127.0.0.1/16`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP prefix
-   * string value = 1 [(buf.validate.field).string.ip_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ip_prefix = 29 [json_name = "ipPrefix", (.buf.validate.predefined) = { ... } - * @return Whether the ipPrefix field is set. - */ - @java.lang.Override - public boolean hasIpPrefix() { - return wellKnownCase_ == 29; - } - /** - *
-   * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
-   * If the field value isn't a valid IP prefix, an error message will be
-   * generated. The prefix must have all zeros for the masked bits of the prefix (e.g.,
-   * `127.0.0.0/16`, not `127.0.0.1/16`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP prefix
-   * string value = 1 [(buf.validate.field).string.ip_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ip_prefix = 29 [json_name = "ipPrefix", (.buf.validate.predefined) = { ... } - * @return The ipPrefix. - */ - @java.lang.Override - public boolean getIpPrefix() { - if (wellKnownCase_ == 29) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int IPV4_PREFIX_FIELD_NUMBER = 30; - /** - *
-   * `ipv4_prefix` specifies that the field value must be a valid IPv4
-   * prefix. If the field value isn't a valid IPv4 prefix, an error message
-   * will be generated. The prefix must have all zeros for the masked bits of
-   * the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 prefix
-   * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4_prefix = 30 [json_name = "ipv4Prefix", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4Prefix field is set. - */ - @java.lang.Override - public boolean hasIpv4Prefix() { - return wellKnownCase_ == 30; - } - /** - *
-   * `ipv4_prefix` specifies that the field value must be a valid IPv4
-   * prefix. If the field value isn't a valid IPv4 prefix, an error message
-   * will be generated. The prefix must have all zeros for the masked bits of
-   * the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 prefix
-   * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4_prefix = 30 [json_name = "ipv4Prefix", (.buf.validate.predefined) = { ... } - * @return The ipv4Prefix. - */ - @java.lang.Override - public boolean getIpv4Prefix() { - if (wellKnownCase_ == 30) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int IPV6_PREFIX_FIELD_NUMBER = 31; - /** - *
-   * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
-   * If the field value is not a valid IPv6 prefix, an error message will be
-   * generated. The prefix must have all zeros for the masked bits of the prefix
-   * (e.g., `2001:db8::/48`, not `2001:db8::1/48`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 prefix
-   * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6_prefix = 31 [json_name = "ipv6Prefix", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6Prefix field is set. - */ - @java.lang.Override - public boolean hasIpv6Prefix() { - return wellKnownCase_ == 31; - } - /** - *
-   * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
-   * If the field value is not a valid IPv6 prefix, an error message will be
-   * generated. The prefix must have all zeros for the masked bits of the prefix
-   * (e.g., `2001:db8::/48`, not `2001:db8::1/48`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 prefix
-   * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6_prefix = 31 [json_name = "ipv6Prefix", (.buf.validate.predefined) = { ... } - * @return The ipv6Prefix. - */ - @java.lang.Override - public boolean getIpv6Prefix() { - if (wellKnownCase_ == 31) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int HOST_AND_PORT_FIELD_NUMBER = 32; - /** - *
-   * `host_and_port` specifies the field value must be a valid host and port
-   * pair. The host must be a valid hostname or IP address while the port
-   * must be in the range of 0-65535, inclusive. IPv6 addresses must be delimited
-   * with square brackets (e.g., `[::1]:1234`).
-   * 
- * - * bool host_and_port = 32 [json_name = "hostAndPort", (.buf.validate.predefined) = { ... } - * @return Whether the hostAndPort field is set. - */ - @java.lang.Override - public boolean hasHostAndPort() { - return wellKnownCase_ == 32; - } - /** - *
-   * `host_and_port` specifies the field value must be a valid host and port
-   * pair. The host must be a valid hostname or IP address while the port
-   * must be in the range of 0-65535, inclusive. IPv6 addresses must be delimited
-   * with square brackets (e.g., `[::1]:1234`).
-   * 
- * - * bool host_and_port = 32 [json_name = "hostAndPort", (.buf.validate.predefined) = { ... } - * @return The hostAndPort. - */ - @java.lang.Override - public boolean getHostAndPort() { - if (wellKnownCase_ == 32) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - - public static final int WELL_KNOWN_REGEX_FIELD_NUMBER = 24; - /** - *
-   * `well_known_regex` specifies a common well-known pattern
-   * defined as a regex. If the field value doesn't match the well-known
-   * regex, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid HTTP header value
-   * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
-   * }
-   * ```
-   *
-   * #### KnownRegex
-   *
-   * `well_known_regex` contains some well-known patterns.
-   *
-   * | Name                          | Number | Description                               |
-   * |-------------------------------|--------|-------------------------------------------|
-   * | KNOWN_REGEX_UNSPECIFIED       | 0      |                                           |
-   * | KNOWN_REGEX_HTTP_HEADER_NAME  | 1      | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2)  |
-   * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2      | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |
-   * 
- * - * .buf.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex", (.buf.validate.predefined) = { ... } - * @return Whether the wellKnownRegex field is set. - */ - public boolean hasWellKnownRegex() { - return wellKnownCase_ == 24; - } - /** - *
-   * `well_known_regex` specifies a common well-known pattern
-   * defined as a regex. If the field value doesn't match the well-known
-   * regex, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid HTTP header value
-   * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
-   * }
-   * ```
-   *
-   * #### KnownRegex
-   *
-   * `well_known_regex` contains some well-known patterns.
-   *
-   * | Name                          | Number | Description                               |
-   * |-------------------------------|--------|-------------------------------------------|
-   * | KNOWN_REGEX_UNSPECIFIED       | 0      |                                           |
-   * | KNOWN_REGEX_HTTP_HEADER_NAME  | 1      | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2)  |
-   * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2      | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |
-   * 
- * - * .buf.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex", (.buf.validate.predefined) = { ... } - * @return The wellKnownRegex. - */ - public build.buf.validate.KnownRegex getWellKnownRegex() { - if (wellKnownCase_ == 24) { - build.buf.validate.KnownRegex result = build.buf.validate.KnownRegex.forNumber( - (java.lang.Integer) wellKnown_); - return result == null ? build.buf.validate.KnownRegex.KNOWN_REGEX_UNSPECIFIED : result; - } - return build.buf.validate.KnownRegex.KNOWN_REGEX_UNSPECIFIED; - } - - public static final int STRICT_FIELD_NUMBER = 25; - private boolean strict_ = false; - /** - *
-   * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
-   * enable strict header validation. By default, this is true, and HTTP header
-   * validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser
-   * validations that only disallow `\r\n\0` characters, which can be used to
-   * bypass header matching rules.
-   *
-   * ```proto
-   * message MyString {
-   * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
-   * string value = 1 [(buf.validate.field).string.strict = false];
-   * }
-   * ```
-   * 
- * - * optional bool strict = 25 [json_name = "strict"]; - * @return Whether the strict field is set. - */ - @java.lang.Override - public boolean hasStrict() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - *
-   * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
-   * enable strict header validation. By default, this is true, and HTTP header
-   * validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser
-   * validations that only disallow `\r\n\0` characters, which can be used to
-   * bypass header matching rules.
-   *
-   * ```proto
-   * message MyString {
-   * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
-   * string value = 1 [(buf.validate.field).string.strict = false];
-   * }
-   * ```
-   * 
- * - * optional bool strict = 25 [json_name = "strict"]; - * @return The strict. - */ - @java.lang.Override - public boolean getStrict() { - return strict_; - } - - public static final int EXAMPLE_FIELD_NUMBER = 34; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList example_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyString {
-   * string value = 1 [
-   * (buf.validate.field).string.example = "hello",
-   * (buf.validate.field).string.example = "world"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public com.google.protobuf.ProtocolStringList - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyString {
-   * string value = 1 [
-   * (buf.validate.field).string.example = "hello",
-   * (buf.validate.field).string.example = "world"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyString {
-   * string value = 1 [
-   * (buf.validate.field).string.example = "hello",
-   * (buf.validate.field).string.example = "world"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public java.lang.String getExample(int index) { - return example_.get(index); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyString {
-   * string value = 1 [
-   * (buf.validate.field).string.example = "hello",
-   * (buf.validate.field).string.example = "world"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the value to return. - * @return The bytes of the example at the given index. - */ - public com.google.protobuf.ByteString - getExampleBytes(int index) { - return example_.getByteString(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, const_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeUInt64(2, minLen_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeUInt64(3, maxLen_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeUInt64(4, minBytes_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeUInt64(5, maxBytes_); - } - if (((bitField0_ & 0x00000080) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, pattern_); - } - if (((bitField0_ & 0x00000100) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 7, prefix_); - } - if (((bitField0_ & 0x00000200) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 8, suffix_); - } - if (((bitField0_ & 0x00000400) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 9, contains_); - } - for (int i = 0; i < in_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 10, in_.getRaw(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 11, notIn_.getRaw(i)); - } - if (wellKnownCase_ == 12) { - output.writeBool( - 12, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 13) { - output.writeBool( - 13, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 14) { - output.writeBool( - 14, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 15) { - output.writeBool( - 15, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 16) { - output.writeBool( - 16, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 17) { - output.writeBool( - 17, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 18) { - output.writeBool( - 18, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeUInt64(19, len_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeUInt64(20, lenBytes_); - } - if (wellKnownCase_ == 21) { - output.writeBool( - 21, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 22) { - output.writeBool( - 22, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (((bitField0_ & 0x00000800) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 23, notContains_); - } - if (wellKnownCase_ == 24) { - output.writeEnum(24, ((java.lang.Integer) wellKnown_)); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeBool(25, strict_); - } - if (wellKnownCase_ == 26) { - output.writeBool( - 26, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 27) { - output.writeBool( - 27, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 28) { - output.writeBool( - 28, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 29) { - output.writeBool( - 29, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 30) { - output.writeBool( - 30, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 31) { - output.writeBool( - 31, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 32) { - output.writeBool( - 32, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 33) { - output.writeBool( - 33, (boolean)((java.lang.Boolean) wellKnown_)); - } - for (int i = 0; i < example_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 34, example_.getRaw(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, const_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, minLen_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, maxLen_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, minBytes_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, maxBytes_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(6, pattern_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(7, prefix_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(8, suffix_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(9, contains_); - } - { - int dataSize = 0; - for (int i = 0; i < in_.size(); i++) { - dataSize += computeStringSizeNoTag(in_.getRaw(i)); - } - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < notIn_.size(); i++) { - dataSize += computeStringSizeNoTag(notIn_.getRaw(i)); - } - size += dataSize; - size += 1 * getNotInList().size(); - } - if (wellKnownCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 12, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 13, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 14, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 15, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 16) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 16, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 17, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 18, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(19, len_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(20, lenBytes_); - } - if (wellKnownCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 21, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 22) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 22, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(23, notContains_); - } - if (wellKnownCase_ == 24) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(24, ((java.lang.Integer) wellKnown_)); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(25, strict_); - } - if (wellKnownCase_ == 26) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 26, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 27) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 27, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 28) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 28, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 29) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 29, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 30) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 30, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 31) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 31, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 32) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 32, (boolean)((java.lang.Boolean) wellKnown_)); - } - if (wellKnownCase_ == 33) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 33, (boolean)((java.lang.Boolean) wellKnown_)); - } - { - int dataSize = 0; - for (int i = 0; i < example_.size(); i++) { - dataSize += computeStringSizeNoTag(example_.getRaw(i)); - } - size += dataSize; - size += 2 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.StringRules)) { - return super.equals(obj); - } - build.buf.validate.StringRules other = (build.buf.validate.StringRules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (!getConst() - .equals(other.getConst())) return false; - } - if (hasLen() != other.hasLen()) return false; - if (hasLen()) { - if (getLen() - != other.getLen()) return false; - } - if (hasMinLen() != other.hasMinLen()) return false; - if (hasMinLen()) { - if (getMinLen() - != other.getMinLen()) return false; - } - if (hasMaxLen() != other.hasMaxLen()) return false; - if (hasMaxLen()) { - if (getMaxLen() - != other.getMaxLen()) return false; - } - if (hasLenBytes() != other.hasLenBytes()) return false; - if (hasLenBytes()) { - if (getLenBytes() - != other.getLenBytes()) return false; - } - if (hasMinBytes() != other.hasMinBytes()) return false; - if (hasMinBytes()) { - if (getMinBytes() - != other.getMinBytes()) return false; - } - if (hasMaxBytes() != other.hasMaxBytes()) return false; - if (hasMaxBytes()) { - if (getMaxBytes() - != other.getMaxBytes()) return false; - } - if (hasPattern() != other.hasPattern()) return false; - if (hasPattern()) { - if (!getPattern() - .equals(other.getPattern())) return false; - } - if (hasPrefix() != other.hasPrefix()) return false; - if (hasPrefix()) { - if (!getPrefix() - .equals(other.getPrefix())) return false; - } - if (hasSuffix() != other.hasSuffix()) return false; - if (hasSuffix()) { - if (!getSuffix() - .equals(other.getSuffix())) return false; - } - if (hasContains() != other.hasContains()) return false; - if (hasContains()) { - if (!getContains() - .equals(other.getContains())) return false; - } - if (hasNotContains() != other.hasNotContains()) return false; - if (hasNotContains()) { - if (!getNotContains() - .equals(other.getNotContains())) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (hasStrict() != other.hasStrict()) return false; - if (hasStrict()) { - if (getStrict() - != other.getStrict()) return false; - } - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getWellKnownCase().equals(other.getWellKnownCase())) return false; - switch (wellKnownCase_) { - case 12: - if (getEmail() - != other.getEmail()) return false; - break; - case 13: - if (getHostname() - != other.getHostname()) return false; - break; - case 14: - if (getIp() - != other.getIp()) return false; - break; - case 15: - if (getIpv4() - != other.getIpv4()) return false; - break; - case 16: - if (getIpv6() - != other.getIpv6()) return false; - break; - case 17: - if (getUri() - != other.getUri()) return false; - break; - case 18: - if (getUriRef() - != other.getUriRef()) return false; - break; - case 21: - if (getAddress() - != other.getAddress()) return false; - break; - case 22: - if (getUuid() - != other.getUuid()) return false; - break; - case 33: - if (getTuuid() - != other.getTuuid()) return false; - break; - case 26: - if (getIpWithPrefixlen() - != other.getIpWithPrefixlen()) return false; - break; - case 27: - if (getIpv4WithPrefixlen() - != other.getIpv4WithPrefixlen()) return false; - break; - case 28: - if (getIpv6WithPrefixlen() - != other.getIpv6WithPrefixlen()) return false; - break; - case 29: - if (getIpPrefix() - != other.getIpPrefix()) return false; - break; - case 30: - if (getIpv4Prefix() - != other.getIpv4Prefix()) return false; - break; - case 31: - if (getIpv6Prefix() - != other.getIpv6Prefix()) return false; - break; - case 32: - if (getHostAndPort() - != other.getHostAndPort()) return false; - break; - case 24: - if (!getWellKnownRegex() - .equals(other.getWellKnownRegex())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst().hashCode(); - } - if (hasLen()) { - hash = (37 * hash) + LEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLen()); - } - if (hasMinLen()) { - hash = (37 * hash) + MIN_LEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinLen()); - } - if (hasMaxLen()) { - hash = (37 * hash) + MAX_LEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxLen()); - } - if (hasLenBytes()) { - hash = (37 * hash) + LEN_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLenBytes()); - } - if (hasMinBytes()) { - hash = (37 * hash) + MIN_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinBytes()); - } - if (hasMaxBytes()) { - hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxBytes()); - } - if (hasPattern()) { - hash = (37 * hash) + PATTERN_FIELD_NUMBER; - hash = (53 * hash) + getPattern().hashCode(); - } - if (hasPrefix()) { - hash = (37 * hash) + PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getPrefix().hashCode(); - } - if (hasSuffix()) { - hash = (37 * hash) + SUFFIX_FIELD_NUMBER; - hash = (53 * hash) + getSuffix().hashCode(); - } - if (hasContains()) { - hash = (37 * hash) + CONTAINS_FIELD_NUMBER; - hash = (53 * hash) + getContains().hashCode(); - } - if (hasNotContains()) { - hash = (37 * hash) + NOT_CONTAINS_FIELD_NUMBER; - hash = (53 * hash) + getNotContains().hashCode(); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (hasStrict()) { - hash = (37 * hash) + STRICT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStrict()); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (wellKnownCase_) { - case 12: - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEmail()); - break; - case 13: - hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHostname()); - break; - case 14: - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIp()); - break; - case 15: - hash = (37 * hash) + IPV4_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIpv4()); - break; - case 16: - hash = (37 * hash) + IPV6_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIpv6()); - break; - case 17: - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUri()); - break; - case 18: - hash = (37 * hash) + URI_REF_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUriRef()); - break; - case 21: - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAddress()); - break; - case 22: - hash = (37 * hash) + UUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUuid()); - break; - case 33: - hash = (37 * hash) + TUUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTuuid()); - break; - case 26: - hash = (37 * hash) + IP_WITH_PREFIXLEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIpWithPrefixlen()); - break; - case 27: - hash = (37 * hash) + IPV4_WITH_PREFIXLEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIpv4WithPrefixlen()); - break; - case 28: - hash = (37 * hash) + IPV6_WITH_PREFIXLEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIpv6WithPrefixlen()); - break; - case 29: - hash = (37 * hash) + IP_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIpPrefix()); - break; - case 30: - hash = (37 * hash) + IPV4_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIpv4Prefix()); - break; - case 31: - hash = (37 * hash) + IPV6_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIpv6Prefix()); - break; - case 32: - hash = (37 * hash) + HOST_AND_PORT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHostAndPort()); - break; - case 24: - hash = (37 * hash) + WELL_KNOWN_REGEX_FIELD_NUMBER; - hash = (53 * hash) + getWellKnownRegex().getNumber(); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.StringRules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.StringRules 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.StringRules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.StringRules 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.StringRules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.StringRules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.StringRules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.StringRules 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.StringRules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.StringRules 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.StringRules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.StringRules 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.StringRules 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; - } - /** - *
-   * StringRules describes the constraints applied to `string` values These
-   * rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type.
-   * 
- * - * Protobuf type {@code buf.validate.StringRules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.StringRules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.StringRules) - build.buf.validate.StringRulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_StringRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_StringRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.StringRules.class, build.buf.validate.StringRules.Builder.class); - } - - // Construct using build.buf.validate.StringRules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - const_ = ""; - len_ = 0L; - minLen_ = 0L; - maxLen_ = 0L; - lenBytes_ = 0L; - minBytes_ = 0L; - maxBytes_ = 0L; - pattern_ = ""; - prefix_ = ""; - suffix_ = ""; - contains_ = ""; - notContains_ = ""; - in_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - notIn_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - strict_ = false; - example_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - wellKnownCase_ = 0; - wellKnown_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_StringRules_descriptor; - } - - @java.lang.Override - public build.buf.validate.StringRules getDefaultInstanceForType() { - return build.buf.validate.StringRules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.StringRules build() { - build.buf.validate.StringRules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.StringRules buildPartial() { - build.buf.validate.StringRules result = new build.buf.validate.StringRules(this); - if (bitField0_ != 0) { buildPartial0(result); } - if (bitField1_ != 0) { buildPartial1(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.StringRules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.len_ = len_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.minLen_ = minLen_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.maxLen_ = maxLen_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.lenBytes_ = lenBytes_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.minBytes_ = minBytes_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.maxBytes_ = maxBytes_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.pattern_ = pattern_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.prefix_ = prefix_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.suffix_ = suffix_; - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.contains_ = contains_; - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.notContains_ = notContains_; - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartial1(build.buf.validate.StringRules result) { - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.strict_ = strict_; - to_bitField0_ |= 0x00001000; - } - if (((from_bitField1_ & 0x00000002) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.StringRules result) { - result.wellKnownCase_ = wellKnownCase_; - result.wellKnown_ = this.wellKnown_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.StringRules) { - return mergeFrom((build.buf.validate.StringRules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.StringRules other) { - if (other == build.buf.validate.StringRules.getDefaultInstance()) return this; - if (other.hasConst()) { - const_ = other.const_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasLen()) { - setLen(other.getLen()); - } - if (other.hasMinLen()) { - setMinLen(other.getMinLen()); - } - if (other.hasMaxLen()) { - setMaxLen(other.getMaxLen()); - } - if (other.hasLenBytes()) { - setLenBytes(other.getLenBytes()); - } - if (other.hasMinBytes()) { - setMinBytes(other.getMinBytes()); - } - if (other.hasMaxBytes()) { - setMaxBytes(other.getMaxBytes()); - } - if (other.hasPattern()) { - pattern_ = other.pattern_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (other.hasPrefix()) { - prefix_ = other.prefix_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.hasSuffix()) { - suffix_ = other.suffix_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (other.hasContains()) { - contains_ = other.contains_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (other.hasNotContains()) { - notContains_ = other.notContains_; - bitField0_ |= 0x00000800; - onChanged(); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - bitField0_ |= 0x00001000; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - bitField0_ |= 0x00002000; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (other.hasStrict()) { - setStrict(other.getStrict()); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - bitField1_ |= 0x00000002; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getWellKnownCase()) { - case EMAIL: { - setEmail(other.getEmail()); - break; - } - case HOSTNAME: { - setHostname(other.getHostname()); - break; - } - case IP: { - setIp(other.getIp()); - break; - } - case IPV4: { - setIpv4(other.getIpv4()); - break; - } - case IPV6: { - setIpv6(other.getIpv6()); - break; - } - case URI: { - setUri(other.getUri()); - break; - } - case URI_REF: { - setUriRef(other.getUriRef()); - break; - } - case ADDRESS: { - setAddress(other.getAddress()); - break; - } - case UUID: { - setUuid(other.getUuid()); - break; - } - case TUUID: { - setTuuid(other.getTuuid()); - break; - } - case IP_WITH_PREFIXLEN: { - setIpWithPrefixlen(other.getIpWithPrefixlen()); - break; - } - case IPV4_WITH_PREFIXLEN: { - setIpv4WithPrefixlen(other.getIpv4WithPrefixlen()); - break; - } - case IPV6_WITH_PREFIXLEN: { - setIpv6WithPrefixlen(other.getIpv6WithPrefixlen()); - break; - } - case IP_PREFIX: { - setIpPrefix(other.getIpPrefix()); - break; - } - case IPV4_PREFIX: { - setIpv4Prefix(other.getIpv4Prefix()); - break; - } - case IPV6_PREFIX: { - setIpv6Prefix(other.getIpv6Prefix()); - break; - } - case HOST_AND_PORT: { - setHostAndPort(other.getHostAndPort()); - break; - } - case WELL_KNOWN_REGEX: { - setWellKnownRegex(other.getWellKnownRegex()); - break; - } - case WELLKNOWN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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: { - const_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - minLen_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 24: { - maxLen_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 32: { - minBytes_ = input.readUInt64(); - bitField0_ |= 0x00000020; - break; - } // case 32 - case 40: { - maxBytes_ = input.readUInt64(); - bitField0_ |= 0x00000040; - break; - } // case 40 - case 50: { - pattern_ = input.readBytes(); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: { - prefix_ = input.readBytes(); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 66: { - suffix_ = input.readBytes(); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 74: { - contains_ = input.readBytes(); - bitField0_ |= 0x00000400; - break; - } // case 74 - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - ensureInIsMutable(); - in_.add(bs); - break; - } // case 82 - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - ensureNotInIsMutable(); - notIn_.add(bs); - break; - } // case 90 - case 96: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 12; - break; - } // case 96 - case 104: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 13; - break; - } // case 104 - case 112: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 14; - break; - } // case 112 - case 120: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 15; - break; - } // case 120 - case 128: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 16; - break; - } // case 128 - case 136: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 17; - break; - } // case 136 - case 144: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 18; - break; - } // case 144 - case 152: { - len_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 152 - case 160: { - lenBytes_ = input.readUInt64(); - bitField0_ |= 0x00000010; - break; - } // case 160 - case 168: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 21; - break; - } // case 168 - case 176: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 22; - break; - } // case 176 - case 186: { - notContains_ = input.readBytes(); - bitField0_ |= 0x00000800; - break; - } // case 186 - case 192: { - int rawValue = input.readEnum(); - build.buf.validate.KnownRegex value = - build.buf.validate.KnownRegex.forNumber(rawValue); - if (value == null) { - mergeUnknownVarintField(24, rawValue); - } else { - wellKnownCase_ = 24; - wellKnown_ = rawValue; - } - break; - } // case 192 - case 200: { - strict_ = input.readBool(); - bitField1_ |= 0x00000001; - break; - } // case 200 - case 208: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 26; - break; - } // case 208 - case 216: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 27; - break; - } // case 216 - case 224: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 28; - break; - } // case 224 - case 232: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 29; - break; - } // case 232 - case 240: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 30; - break; - } // case 240 - case 248: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 31; - break; - } // case 248 - case 256: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 32; - break; - } // case 256 - case 264: { - wellKnown_ = input.readBool(); - wellKnownCase_ = 33; - break; - } // case 264 - case 274: { - com.google.protobuf.ByteString bs = input.readBytes(); - ensureExampleIsMutable(); - example_.add(bs); - break; - } // case 274 - 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 wellKnownCase_ = 0; - private java.lang.Object wellKnown_; - public WellKnownCase - getWellKnownCase() { - return WellKnownCase.forNumber( - wellKnownCase_); - } - - public Builder clearWellKnown() { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - return this; - } - - private int bitField0_; - private int bitField1_; - - private java.lang.Object const_ = ""; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must equal `hello`
-     * string value = 1 [(buf.validate.field).string.const = "hello"];
-     * }
-     * ```
-     * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must equal `hello`
-     * string value = 1 [(buf.validate.field).string.const = "hello"];
-     * }
-     * ```
-     * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - public java.lang.String getConst() { - java.lang.Object ref = const_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - const_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must equal `hello`
-     * string value = 1 [(buf.validate.field).string.const = "hello"];
-     * }
-     * ```
-     * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The bytes for const. - */ - public com.google.protobuf.ByteString - getConstBytes() { - java.lang.Object ref = const_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - const_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must equal `hello`
-     * string value = 1 [(buf.validate.field).string.const = "hello"];
-     * }
-     * ```
-     * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must equal `hello`
-     * string value = 1 [(buf.validate.field).string.const = "hello"];
-     * }
-     * ```
-     * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - const_ = getDefaultInstance().getConst(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must equal `hello`
-     * string value = 1 [(buf.validate.field).string.const = "hello"];
-     * }
-     * ```
-     * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The bytes for const to set. - * @return This builder for chaining. - */ - public Builder setConstBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private long len_ ; - /** - *
-     * `len` dictates that the field value must have the specified
-     * number of characters (Unicode code points), which may differ from the number
-     * of bytes in the string. If the field value does not meet the specified
-     * length, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be 5 characters
-     * string value = 1 [(buf.validate.field).string.len = 5];
-     * }
-     * ```
-     * 
- * - * optional uint64 len = 19 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return Whether the len field is set. - */ - @java.lang.Override - public boolean hasLen() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * `len` dictates that the field value must have the specified
-     * number of characters (Unicode code points), which may differ from the number
-     * of bytes in the string. If the field value does not meet the specified
-     * length, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be 5 characters
-     * string value = 1 [(buf.validate.field).string.len = 5];
-     * }
-     * ```
-     * 
- * - * optional uint64 len = 19 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return The len. - */ - @java.lang.Override - public long getLen() { - return len_; - } - /** - *
-     * `len` dictates that the field value must have the specified
-     * number of characters (Unicode code points), which may differ from the number
-     * of bytes in the string. If the field value does not meet the specified
-     * length, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be 5 characters
-     * string value = 1 [(buf.validate.field).string.len = 5];
-     * }
-     * ```
-     * 
- * - * optional uint64 len = 19 [json_name = "len", (.buf.validate.predefined) = { ... } - * @param value The len to set. - * @return This builder for chaining. - */ - public Builder setLen(long value) { - - len_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `len` dictates that the field value must have the specified
-     * number of characters (Unicode code points), which may differ from the number
-     * of bytes in the string. If the field value does not meet the specified
-     * length, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be 5 characters
-     * string value = 1 [(buf.validate.field).string.len = 5];
-     * }
-     * ```
-     * 
- * - * optional uint64 len = 19 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLen() { - bitField0_ = (bitField0_ & ~0x00000002); - len_ = 0L; - onChanged(); - return this; - } - - private long minLen_ ; - /** - *
-     * `min_len` specifies that the field value must have at least the specified
-     * number of characters (Unicode code points), which may differ from the number
-     * of bytes in the string. If the field value contains fewer characters, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at least 3 characters
-     * string value = 1 [(buf.validate.field).string.min_len = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return Whether the minLen field is set. - */ - @java.lang.Override - public boolean hasMinLen() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * `min_len` specifies that the field value must have at least the specified
-     * number of characters (Unicode code points), which may differ from the number
-     * of bytes in the string. If the field value contains fewer characters, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at least 3 characters
-     * string value = 1 [(buf.validate.field).string.min_len = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return The minLen. - */ - @java.lang.Override - public long getMinLen() { - return minLen_; - } - /** - *
-     * `min_len` specifies that the field value must have at least the specified
-     * number of characters (Unicode code points), which may differ from the number
-     * of bytes in the string. If the field value contains fewer characters, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at least 3 characters
-     * string value = 1 [(buf.validate.field).string.min_len = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @param value The minLen to set. - * @return This builder for chaining. - */ - public Builder setMinLen(long value) { - - minLen_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * `min_len` specifies that the field value must have at least the specified
-     * number of characters (Unicode code points), which may differ from the number
-     * of bytes in the string. If the field value contains fewer characters, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at least 3 characters
-     * string value = 1 [(buf.validate.field).string.min_len = 3];
-     * }
-     * ```
-     * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearMinLen() { - bitField0_ = (bitField0_ & ~0x00000004); - minLen_ = 0L; - onChanged(); - return this; - } - - private long maxLen_ ; - /** - *
-     * `max_len` specifies that the field value must have no more than the specified
-     * number of characters (Unicode code points), which may differ from the
-     * number of bytes in the string. If the field value contains more characters,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at most 10 characters
-     * string value = 1 [(buf.validate.field).string.max_len = 10];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return Whether the maxLen field is set. - */ - @java.lang.Override - public boolean hasMaxLen() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * `max_len` specifies that the field value must have no more than the specified
-     * number of characters (Unicode code points), which may differ from the
-     * number of bytes in the string. If the field value contains more characters,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at most 10 characters
-     * string value = 1 [(buf.validate.field).string.max_len = 10];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return The maxLen. - */ - @java.lang.Override - public long getMaxLen() { - return maxLen_; - } - /** - *
-     * `max_len` specifies that the field value must have no more than the specified
-     * number of characters (Unicode code points), which may differ from the
-     * number of bytes in the string. If the field value contains more characters,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at most 10 characters
-     * string value = 1 [(buf.validate.field).string.max_len = 10];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @param value The maxLen to set. - * @return This builder for chaining. - */ - public Builder setMaxLen(long value) { - - maxLen_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * `max_len` specifies that the field value must have no more than the specified
-     * number of characters (Unicode code points), which may differ from the
-     * number of bytes in the string. If the field value contains more characters,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at most 10 characters
-     * string value = 1 [(buf.validate.field).string.max_len = 10];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearMaxLen() { - bitField0_ = (bitField0_ & ~0x00000008); - maxLen_ = 0L; - onChanged(); - return this; - } - - private long lenBytes_ ; - /** - *
-     * `len_bytes` dictates that the field value must have the specified number of
-     * bytes. If the field value does not match the specified length in bytes,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be 6 bytes
-     * string value = 1 [(buf.validate.field).string.len_bytes = 6];
-     * }
-     * ```
-     * 
- * - * optional uint64 len_bytes = 20 [json_name = "lenBytes", (.buf.validate.predefined) = { ... } - * @return Whether the lenBytes field is set. - */ - @java.lang.Override - public boolean hasLenBytes() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * `len_bytes` dictates that the field value must have the specified number of
-     * bytes. If the field value does not match the specified length in bytes,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be 6 bytes
-     * string value = 1 [(buf.validate.field).string.len_bytes = 6];
-     * }
-     * ```
-     * 
- * - * optional uint64 len_bytes = 20 [json_name = "lenBytes", (.buf.validate.predefined) = { ... } - * @return The lenBytes. - */ - @java.lang.Override - public long getLenBytes() { - return lenBytes_; - } - /** - *
-     * `len_bytes` dictates that the field value must have the specified number of
-     * bytes. If the field value does not match the specified length in bytes,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be 6 bytes
-     * string value = 1 [(buf.validate.field).string.len_bytes = 6];
-     * }
-     * ```
-     * 
- * - * optional uint64 len_bytes = 20 [json_name = "lenBytes", (.buf.validate.predefined) = { ... } - * @param value The lenBytes to set. - * @return This builder for chaining. - */ - public Builder setLenBytes(long value) { - - lenBytes_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * `len_bytes` dictates that the field value must have the specified number of
-     * bytes. If the field value does not match the specified length in bytes,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be 6 bytes
-     * string value = 1 [(buf.validate.field).string.len_bytes = 6];
-     * }
-     * ```
-     * 
- * - * optional uint64 len_bytes = 20 [json_name = "lenBytes", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLenBytes() { - bitField0_ = (bitField0_ & ~0x00000010); - lenBytes_ = 0L; - onChanged(); - return this; - } - - private long minBytes_ ; - /** - *
-     * `min_bytes` specifies that the field value must have at least the specified
-     * number of bytes. If the field value contains fewer bytes, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at least 4 bytes
-     * string value = 1 [(buf.validate.field).string.min_bytes = 4];
-     * }
-     *
-     * ```
-     * 
- * - * optional uint64 min_bytes = 4 [json_name = "minBytes", (.buf.validate.predefined) = { ... } - * @return Whether the minBytes field is set. - */ - @java.lang.Override - public boolean hasMinBytes() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * `min_bytes` specifies that the field value must have at least the specified
-     * number of bytes. If the field value contains fewer bytes, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at least 4 bytes
-     * string value = 1 [(buf.validate.field).string.min_bytes = 4];
-     * }
-     *
-     * ```
-     * 
- * - * optional uint64 min_bytes = 4 [json_name = "minBytes", (.buf.validate.predefined) = { ... } - * @return The minBytes. - */ - @java.lang.Override - public long getMinBytes() { - return minBytes_; - } - /** - *
-     * `min_bytes` specifies that the field value must have at least the specified
-     * number of bytes. If the field value contains fewer bytes, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at least 4 bytes
-     * string value = 1 [(buf.validate.field).string.min_bytes = 4];
-     * }
-     *
-     * ```
-     * 
- * - * optional uint64 min_bytes = 4 [json_name = "minBytes", (.buf.validate.predefined) = { ... } - * @param value The minBytes to set. - * @return This builder for chaining. - */ - public Builder setMinBytes(long value) { - - minBytes_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `min_bytes` specifies that the field value must have at least the specified
-     * number of bytes. If the field value contains fewer bytes, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at least 4 bytes
-     * string value = 1 [(buf.validate.field).string.min_bytes = 4];
-     * }
-     *
-     * ```
-     * 
- * - * optional uint64 min_bytes = 4 [json_name = "minBytes", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearMinBytes() { - bitField0_ = (bitField0_ & ~0x00000020); - minBytes_ = 0L; - onChanged(); - return this; - } - - private long maxBytes_ ; - /** - *
-     * `max_bytes` specifies that the field value must have no more than the
-     * specified number of bytes. If the field value contains more bytes, an
-     * error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at most 8 bytes
-     * string value = 1 [(buf.validate.field).string.max_bytes = 8];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_bytes = 5 [json_name = "maxBytes", (.buf.validate.predefined) = { ... } - * @return Whether the maxBytes field is set. - */ - @java.lang.Override - public boolean hasMaxBytes() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * `max_bytes` specifies that the field value must have no more than the
-     * specified number of bytes. If the field value contains more bytes, an
-     * error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at most 8 bytes
-     * string value = 1 [(buf.validate.field).string.max_bytes = 8];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_bytes = 5 [json_name = "maxBytes", (.buf.validate.predefined) = { ... } - * @return The maxBytes. - */ - @java.lang.Override - public long getMaxBytes() { - return maxBytes_; - } - /** - *
-     * `max_bytes` specifies that the field value must have no more than the
-     * specified number of bytes. If the field value contains more bytes, an
-     * error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at most 8 bytes
-     * string value = 1 [(buf.validate.field).string.max_bytes = 8];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_bytes = 5 [json_name = "maxBytes", (.buf.validate.predefined) = { ... } - * @param value The maxBytes to set. - * @return This builder for chaining. - */ - public Builder setMaxBytes(long value) { - - maxBytes_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `max_bytes` specifies that the field value must have no more than the
-     * specified number of bytes. If the field value contains more bytes, an
-     * error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value length must be at most 8 bytes
-     * string value = 1 [(buf.validate.field).string.max_bytes = 8];
-     * }
-     * ```
-     * 
- * - * optional uint64 max_bytes = 5 [json_name = "maxBytes", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearMaxBytes() { - bitField0_ = (bitField0_ & ~0x00000040); - maxBytes_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object pattern_ = ""; - /** - *
-     * `pattern` specifies that the field value must match the specified
-     * regular expression (RE2 syntax), with the expression provided without any
-     * delimiters. If the field value doesn't match the regular expression, an
-     * error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not match regex pattern `^[a-zA-Z]//$`
-     * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return Whether the pattern field is set. - */ - public boolean hasPattern() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * `pattern` specifies that the field value must match the specified
-     * regular expression (RE2 syntax), with the expression provided without any
-     * delimiters. If the field value doesn't match the regular expression, an
-     * error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not match regex pattern `^[a-zA-Z]//$`
-     * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The pattern. - */ - public java.lang.String getPattern() { - java.lang.Object ref = pattern_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - pattern_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `pattern` specifies that the field value must match the specified
-     * regular expression (RE2 syntax), with the expression provided without any
-     * delimiters. If the field value doesn't match the regular expression, an
-     * error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not match regex pattern `^[a-zA-Z]//$`
-     * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The bytes for pattern. - */ - public com.google.protobuf.ByteString - getPatternBytes() { - java.lang.Object ref = pattern_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `pattern` specifies that the field value must match the specified
-     * regular expression (RE2 syntax), with the expression provided without any
-     * delimiters. If the field value doesn't match the regular expression, an
-     * error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not match regex pattern `^[a-zA-Z]//$`
-     * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @param value The pattern to set. - * @return This builder for chaining. - */ - public Builder setPattern( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pattern_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `pattern` specifies that the field value must match the specified
-     * regular expression (RE2 syntax), with the expression provided without any
-     * delimiters. If the field value doesn't match the regular expression, an
-     * error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not match regex pattern `^[a-zA-Z]//$`
-     * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearPattern() { - pattern_ = getDefaultInstance().getPattern(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - *
-     * `pattern` specifies that the field value must match the specified
-     * regular expression (RE2 syntax), with the expression provided without any
-     * delimiters. If the field value doesn't match the regular expression, an
-     * error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not match regex pattern `^[a-zA-Z]//$`
-     * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-     * }
-     * ```
-     * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @param value The bytes for pattern to set. - * @return This builder for chaining. - */ - public Builder setPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - pattern_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object prefix_ = ""; - /** - *
-     * `prefix` specifies that the field value must have the
-     * specified substring at the beginning of the string. If the field value
-     * doesn't start with the specified prefix, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have prefix `pre`
-     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-     * }
-     * ```
-     * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return Whether the prefix field is set. - */ - public boolean hasPrefix() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - *
-     * `prefix` specifies that the field value must have the
-     * specified substring at the beginning of the string. If the field value
-     * doesn't start with the specified prefix, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have prefix `pre`
-     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-     * }
-     * ```
-     * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return The prefix. - */ - public java.lang.String getPrefix() { - java.lang.Object ref = prefix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - prefix_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `prefix` specifies that the field value must have the
-     * specified substring at the beginning of the string. If the field value
-     * doesn't start with the specified prefix, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have prefix `pre`
-     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-     * }
-     * ```
-     * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return The bytes for prefix. - */ - public com.google.protobuf.ByteString - getPrefixBytes() { - java.lang.Object ref = prefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - prefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `prefix` specifies that the field value must have the
-     * specified substring at the beginning of the string. If the field value
-     * doesn't start with the specified prefix, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have prefix `pre`
-     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-     * }
-     * ```
-     * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @param value The prefix to set. - * @return This builder for chaining. - */ - public Builder setPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - prefix_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * `prefix` specifies that the field value must have the
-     * specified substring at the beginning of the string. If the field value
-     * doesn't start with the specified prefix, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have prefix `pre`
-     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-     * }
-     * ```
-     * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearPrefix() { - prefix_ = getDefaultInstance().getPrefix(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - *
-     * `prefix` specifies that the field value must have the
-     * specified substring at the beginning of the string. If the field value
-     * doesn't start with the specified prefix, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have prefix `pre`
-     * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-     * }
-     * ```
-     * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @param value The bytes for prefix to set. - * @return This builder for chaining. - */ - public Builder setPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - prefix_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private java.lang.Object suffix_ = ""; - /** - *
-     * `suffix` specifies that the field value must have the
-     * specified substring at the end of the string. If the field value doesn't
-     * end with the specified suffix, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have suffix `post`
-     * string value = 1 [(buf.validate.field).string.suffix = "post"];
-     * }
-     * ```
-     * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return Whether the suffix field is set. - */ - public boolean hasSuffix() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-     * `suffix` specifies that the field value must have the
-     * specified substring at the end of the string. If the field value doesn't
-     * end with the specified suffix, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have suffix `post`
-     * string value = 1 [(buf.validate.field).string.suffix = "post"];
-     * }
-     * ```
-     * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return The suffix. - */ - public java.lang.String getSuffix() { - java.lang.Object ref = suffix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - suffix_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `suffix` specifies that the field value must have the
-     * specified substring at the end of the string. If the field value doesn't
-     * end with the specified suffix, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have suffix `post`
-     * string value = 1 [(buf.validate.field).string.suffix = "post"];
-     * }
-     * ```
-     * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return The bytes for suffix. - */ - public com.google.protobuf.ByteString - getSuffixBytes() { - java.lang.Object ref = suffix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - suffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `suffix` specifies that the field value must have the
-     * specified substring at the end of the string. If the field value doesn't
-     * end with the specified suffix, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have suffix `post`
-     * string value = 1 [(buf.validate.field).string.suffix = "post"];
-     * }
-     * ```
-     * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @param value The suffix to set. - * @return This builder for chaining. - */ - public Builder setSuffix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - suffix_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-     * `suffix` specifies that the field value must have the
-     * specified substring at the end of the string. If the field value doesn't
-     * end with the specified suffix, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have suffix `post`
-     * string value = 1 [(buf.validate.field).string.suffix = "post"];
-     * }
-     * ```
-     * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearSuffix() { - suffix_ = getDefaultInstance().getSuffix(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - *
-     * `suffix` specifies that the field value must have the
-     * specified substring at the end of the string. If the field value doesn't
-     * end with the specified suffix, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not have suffix `post`
-     * string value = 1 [(buf.validate.field).string.suffix = "post"];
-     * }
-     * ```
-     * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @param value The bytes for suffix to set. - * @return This builder for chaining. - */ - public Builder setSuffixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - suffix_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - private java.lang.Object contains_ = ""; - /** - *
-     * `contains` specifies that the field value must have the
-     * specified substring anywhere in the string. If the field value doesn't
-     * contain the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not contain substring `inside`.
-     * string value = 1 [(buf.validate.field).string.contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return Whether the contains field is set. - */ - public boolean hasContains() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - *
-     * `contains` specifies that the field value must have the
-     * specified substring anywhere in the string. If the field value doesn't
-     * contain the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not contain substring `inside`.
-     * string value = 1 [(buf.validate.field).string.contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return The contains. - */ - public java.lang.String getContains() { - java.lang.Object ref = contains_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - contains_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `contains` specifies that the field value must have the
-     * specified substring anywhere in the string. If the field value doesn't
-     * contain the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not contain substring `inside`.
-     * string value = 1 [(buf.validate.field).string.contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return The bytes for contains. - */ - public com.google.protobuf.ByteString - getContainsBytes() { - java.lang.Object ref = contains_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contains_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `contains` specifies that the field value must have the
-     * specified substring anywhere in the string. If the field value doesn't
-     * contain the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not contain substring `inside`.
-     * string value = 1 [(buf.validate.field).string.contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @param value The contains to set. - * @return This builder for chaining. - */ - public Builder setContains( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - contains_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * `contains` specifies that the field value must have the
-     * specified substring anywhere in the string. If the field value doesn't
-     * contain the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not contain substring `inside`.
-     * string value = 1 [(buf.validate.field).string.contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearContains() { - contains_ = getDefaultInstance().getContains(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - /** - *
-     * `contains` specifies that the field value must have the
-     * specified substring anywhere in the string. If the field value doesn't
-     * contain the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value does not contain substring `inside`.
-     * string value = 1 [(buf.validate.field).string.contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @param value The bytes for contains to set. - * @return This builder for chaining. - */ - public Builder setContainsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - contains_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private java.lang.Object notContains_ = ""; - /** - *
-     * `not_contains` specifies that the field value must not have the
-     * specified substring anywhere in the string. If the field value contains
-     * the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value contains substring `inside`.
-     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @return Whether the notContains field is set. - */ - public boolean hasNotContains() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - *
-     * `not_contains` specifies that the field value must not have the
-     * specified substring anywhere in the string. If the field value contains
-     * the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value contains substring `inside`.
-     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @return The notContains. - */ - public java.lang.String getNotContains() { - java.lang.Object ref = notContains_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - notContains_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `not_contains` specifies that the field value must not have the
-     * specified substring anywhere in the string. If the field value contains
-     * the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value contains substring `inside`.
-     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @return The bytes for notContains. - */ - public com.google.protobuf.ByteString - getNotContainsBytes() { - java.lang.Object ref = notContains_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - notContains_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `not_contains` specifies that the field value must not have the
-     * specified substring anywhere in the string. If the field value contains
-     * the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value contains substring `inside`.
-     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @param value The notContains to set. - * @return This builder for chaining. - */ - public Builder setNotContains( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - notContains_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - *
-     * `not_contains` specifies that the field value must not have the
-     * specified substring anywhere in the string. If the field value contains
-     * the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value contains substring `inside`.
-     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotContains() { - notContains_ = getDefaultInstance().getNotContains(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; - } - /** - *
-     * `not_contains` specifies that the field value must not have the
-     * specified substring anywhere in the string. If the field value contains
-     * the specified substring, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value contains substring `inside`.
-     * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-     * }
-     * ```
-     * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @param value The bytes for notContains to set. - * @return This builder for chaining. - */ - public Builder setNotContainsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - notContains_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList in_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = new com.google.protobuf.LazyStringArrayList(in_); - } - bitField0_ |= 0x00001000; - } - /** - *
-     * `in` specifies that the field value must be equal to one of the specified
-     * values. If the field value isn't one of the specified values, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be in list ["apple", "banana"]
-     * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-     * }
-     * ```
-     * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public com.google.protobuf.ProtocolStringList - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` specifies that the field value must be equal to one of the specified
-     * values. If the field value isn't one of the specified values, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be in list ["apple", "banana"]
-     * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-     * }
-     * ```
-     * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` specifies that the field value must be equal to one of the specified
-     * values. If the field value isn't one of the specified values, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be in list ["apple", "banana"]
-     * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-     * }
-     * ```
-     * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public java.lang.String getIn(int index) { - return in_.get(index); - } - /** - *
-     * `in` specifies that the field value must be equal to one of the specified
-     * values. If the field value isn't one of the specified values, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be in list ["apple", "banana"]
-     * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-     * }
-     * ```
-     * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the value to return. - * @return The bytes of the in at the given index. - */ - public com.google.protobuf.ByteString - getInBytes(int index) { - return in_.getByteString(index); - } - /** - *
-     * `in` specifies that the field value must be equal to one of the specified
-     * values. If the field value isn't one of the specified values, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be in list ["apple", "banana"]
-     * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-     * }
-     * ```
-     * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureInIsMutable(); - in_.set(index, value); - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - *
-     * `in` specifies that the field value must be equal to one of the specified
-     * values. If the field value isn't one of the specified values, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be in list ["apple", "banana"]
-     * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-     * }
-     * ```
-     * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureInIsMutable(); - in_.add(value); - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - *
-     * `in` specifies that the field value must be equal to one of the specified
-     * values. If the field value isn't one of the specified values, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be in list ["apple", "banana"]
-     * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-     * }
-     * ```
-     * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - *
-     * `in` specifies that the field value must be equal to one of the specified
-     * values. If the field value isn't one of the specified values, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be in list ["apple", "banana"]
-     * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-     * }
-     * ```
-     * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000);; - onChanged(); - return this; - } - /** - *
-     * `in` specifies that the field value must be equal to one of the specified
-     * values. If the field value isn't one of the specified values, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be in list ["apple", "banana"]
-     * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-     * }
-     * ```
-     * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The bytes of the in to add. - * @return This builder for chaining. - */ - public Builder addInBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureInIsMutable(); - in_.add(value); - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList notIn_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = new com.google.protobuf.LazyStringArrayList(notIn_); - } - bitField0_ |= 0x00002000; - } - /** - *
-     * `not_in` specifies that the field value cannot be equal to any
-     * of the specified values. If the field value is one of the specified values,
-     * an error message will be generated.
-     * ```proto
-     * message MyString {
-     * // value must not be in list ["orange", "grape"]
-     * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public com.google.protobuf.ProtocolStringList - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` specifies that the field value cannot be equal to any
-     * of the specified values. If the field value is one of the specified values,
-     * an error message will be generated.
-     * ```proto
-     * message MyString {
-     * // value must not be in list ["orange", "grape"]
-     * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` specifies that the field value cannot be equal to any
-     * of the specified values. If the field value is one of the specified values,
-     * an error message will be generated.
-     * ```proto
-     * message MyString {
-     * // value must not be in list ["orange", "grape"]
-     * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public java.lang.String getNotIn(int index) { - return notIn_.get(index); - } - /** - *
-     * `not_in` specifies that the field value cannot be equal to any
-     * of the specified values. If the field value is one of the specified values,
-     * an error message will be generated.
-     * ```proto
-     * message MyString {
-     * // value must not be in list ["orange", "grape"]
-     * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the value to return. - * @return The bytes of the notIn at the given index. - */ - public com.google.protobuf.ByteString - getNotInBytes(int index) { - return notIn_.getByteString(index); - } - /** - *
-     * `not_in` specifies that the field value cannot be equal to any
-     * of the specified values. If the field value is one of the specified values,
-     * an error message will be generated.
-     * ```proto
-     * message MyString {
-     * // value must not be in list ["orange", "grape"]
-     * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureNotInIsMutable(); - notIn_.set(index, value); - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - *
-     * `not_in` specifies that the field value cannot be equal to any
-     * of the specified values. If the field value is one of the specified values,
-     * an error message will be generated.
-     * ```proto
-     * message MyString {
-     * // value must not be in list ["orange", "grape"]
-     * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureNotInIsMutable(); - notIn_.add(value); - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - *
-     * `not_in` specifies that the field value cannot be equal to any
-     * of the specified values. If the field value is one of the specified values,
-     * an error message will be generated.
-     * ```proto
-     * message MyString {
-     * // value must not be in list ["orange", "grape"]
-     * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - *
-     * `not_in` specifies that the field value cannot be equal to any
-     * of the specified values. If the field value is one of the specified values,
-     * an error message will be generated.
-     * ```proto
-     * message MyString {
-     * // value must not be in list ["orange", "grape"]
-     * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000);; - onChanged(); - return this; - } - /** - *
-     * `not_in` specifies that the field value cannot be equal to any
-     * of the specified values. If the field value is one of the specified values,
-     * an error message will be generated.
-     * ```proto
-     * message MyString {
-     * // value must not be in list ["orange", "grape"]
-     * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-     * }
-     * ```
-     * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The bytes of the notIn to add. - * @return This builder for chaining. - */ - public Builder addNotInBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureNotInIsMutable(); - notIn_.add(value); - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - /** - *
-     * `email` specifies that the field value must be a valid email address
-     * (addr-spec only) as defined by [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1).
-     * If the field value isn't a valid email address, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid email address
-     * string value = 1 [(buf.validate.field).string.email = true];
-     * }
-     * ```
-     * 
- * - * bool email = 12 [json_name = "email", (.buf.validate.predefined) = { ... } - * @return Whether the email field is set. - */ - public boolean hasEmail() { - return wellKnownCase_ == 12; - } - /** - *
-     * `email` specifies that the field value must be a valid email address
-     * (addr-spec only) as defined by [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1).
-     * If the field value isn't a valid email address, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid email address
-     * string value = 1 [(buf.validate.field).string.email = true];
-     * }
-     * ```
-     * 
- * - * bool email = 12 [json_name = "email", (.buf.validate.predefined) = { ... } - * @return The email. - */ - public boolean getEmail() { - if (wellKnownCase_ == 12) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `email` specifies that the field value must be a valid email address
-     * (addr-spec only) as defined by [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1).
-     * If the field value isn't a valid email address, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid email address
-     * string value = 1 [(buf.validate.field).string.email = true];
-     * }
-     * ```
-     * 
- * - * bool email = 12 [json_name = "email", (.buf.validate.predefined) = { ... } - * @param value The email to set. - * @return This builder for chaining. - */ - public Builder setEmail(boolean value) { - - wellKnownCase_ = 12; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `email` specifies that the field value must be a valid email address
-     * (addr-spec only) as defined by [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1).
-     * If the field value isn't a valid email address, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid email address
-     * string value = 1 [(buf.validate.field).string.email = true];
-     * }
-     * ```
-     * 
- * - * bool email = 12 [json_name = "email", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearEmail() { - if (wellKnownCase_ == 12) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `hostname` specifies that the field value must be a valid
-     * hostname as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5). This constraint doesn't support
-     * internationalized domain names (IDNs). If the field value isn't a
-     * valid hostname, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid hostname
-     * string value = 1 [(buf.validate.field).string.hostname = true];
-     * }
-     * ```
-     * 
- * - * bool hostname = 13 [json_name = "hostname", (.buf.validate.predefined) = { ... } - * @return Whether the hostname field is set. - */ - public boolean hasHostname() { - return wellKnownCase_ == 13; - } - /** - *
-     * `hostname` specifies that the field value must be a valid
-     * hostname as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5). This constraint doesn't support
-     * internationalized domain names (IDNs). If the field value isn't a
-     * valid hostname, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid hostname
-     * string value = 1 [(buf.validate.field).string.hostname = true];
-     * }
-     * ```
-     * 
- * - * bool hostname = 13 [json_name = "hostname", (.buf.validate.predefined) = { ... } - * @return The hostname. - */ - public boolean getHostname() { - if (wellKnownCase_ == 13) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `hostname` specifies that the field value must be a valid
-     * hostname as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5). This constraint doesn't support
-     * internationalized domain names (IDNs). If the field value isn't a
-     * valid hostname, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid hostname
-     * string value = 1 [(buf.validate.field).string.hostname = true];
-     * }
-     * ```
-     * 
- * - * bool hostname = 13 [json_name = "hostname", (.buf.validate.predefined) = { ... } - * @param value The hostname to set. - * @return This builder for chaining. - */ - public Builder setHostname(boolean value) { - - wellKnownCase_ = 13; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `hostname` specifies that the field value must be a valid
-     * hostname as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5). This constraint doesn't support
-     * internationalized domain names (IDNs). If the field value isn't a
-     * valid hostname, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid hostname
-     * string value = 1 [(buf.validate.field).string.hostname = true];
-     * }
-     * ```
-     * 
- * - * bool hostname = 13 [json_name = "hostname", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearHostname() { - if (wellKnownCase_ == 13) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `ip` specifies that the field value must be a valid IP
-     * (v4 or v6) address, without surrounding square brackets for IPv6 addresses.
-     * If the field value isn't a valid IP address, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP address
-     * string value = 1 [(buf.validate.field).string.ip = true];
-     * }
-     * ```
-     * 
- * - * bool ip = 14 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return Whether the ip field is set. - */ - public boolean hasIp() { - return wellKnownCase_ == 14; - } - /** - *
-     * `ip` specifies that the field value must be a valid IP
-     * (v4 or v6) address, without surrounding square brackets for IPv6 addresses.
-     * If the field value isn't a valid IP address, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP address
-     * string value = 1 [(buf.validate.field).string.ip = true];
-     * }
-     * ```
-     * 
- * - * bool ip = 14 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return The ip. - */ - public boolean getIp() { - if (wellKnownCase_ == 14) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ip` specifies that the field value must be a valid IP
-     * (v4 or v6) address, without surrounding square brackets for IPv6 addresses.
-     * If the field value isn't a valid IP address, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP address
-     * string value = 1 [(buf.validate.field).string.ip = true];
-     * }
-     * ```
-     * 
- * - * bool ip = 14 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @param value The ip to set. - * @return This builder for chaining. - */ - public Builder setIp(boolean value) { - - wellKnownCase_ = 14; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ip` specifies that the field value must be a valid IP
-     * (v4 or v6) address, without surrounding square brackets for IPv6 addresses.
-     * If the field value isn't a valid IP address, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP address
-     * string value = 1 [(buf.validate.field).string.ip = true];
-     * }
-     * ```
-     * 
- * - * bool ip = 14 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIp() { - if (wellKnownCase_ == 14) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `ipv4` specifies that the field value must be a valid IPv4
-     * address. If the field value isn't a valid IPv4 address, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 address
-     * string value = 1 [(buf.validate.field).string.ipv4 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4 = 15 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4 field is set. - */ - public boolean hasIpv4() { - return wellKnownCase_ == 15; - } - /** - *
-     * `ipv4` specifies that the field value must be a valid IPv4
-     * address. If the field value isn't a valid IPv4 address, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 address
-     * string value = 1 [(buf.validate.field).string.ipv4 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4 = 15 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return The ipv4. - */ - public boolean getIpv4() { - if (wellKnownCase_ == 15) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ipv4` specifies that the field value must be a valid IPv4
-     * address. If the field value isn't a valid IPv4 address, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 address
-     * string value = 1 [(buf.validate.field).string.ipv4 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4 = 15 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @param value The ipv4 to set. - * @return This builder for chaining. - */ - public Builder setIpv4(boolean value) { - - wellKnownCase_ = 15; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ipv4` specifies that the field value must be a valid IPv4
-     * address. If the field value isn't a valid IPv4 address, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 address
-     * string value = 1 [(buf.validate.field).string.ipv4 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4 = 15 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIpv4() { - if (wellKnownCase_ == 15) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `ipv6` specifies that the field value must be a valid
-     * IPv6 address, without surrounding square brackets. If the field value is
-     * not a valid IPv6 address, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 address
-     * string value = 1 [(buf.validate.field).string.ipv6 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6 = 16 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6 field is set. - */ - public boolean hasIpv6() { - return wellKnownCase_ == 16; - } - /** - *
-     * `ipv6` specifies that the field value must be a valid
-     * IPv6 address, without surrounding square brackets. If the field value is
-     * not a valid IPv6 address, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 address
-     * string value = 1 [(buf.validate.field).string.ipv6 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6 = 16 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return The ipv6. - */ - public boolean getIpv6() { - if (wellKnownCase_ == 16) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ipv6` specifies that the field value must be a valid
-     * IPv6 address, without surrounding square brackets. If the field value is
-     * not a valid IPv6 address, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 address
-     * string value = 1 [(buf.validate.field).string.ipv6 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6 = 16 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @param value The ipv6 to set. - * @return This builder for chaining. - */ - public Builder setIpv6(boolean value) { - - wellKnownCase_ = 16; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ipv6` specifies that the field value must be a valid
-     * IPv6 address, without surrounding square brackets. If the field value is
-     * not a valid IPv6 address, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 address
-     * string value = 1 [(buf.validate.field).string.ipv6 = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6 = 16 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIpv6() { - if (wellKnownCase_ == 16) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `uri` specifies that the field value must be a valid URI as defined by
-     * [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3).
-     *
-     * If the field value isn't a valid URI, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid URI
-     * string value = 1 [(buf.validate.field).string.uri = true];
-     * }
-     * ```
-     * 
- * - * bool uri = 17 [json_name = "uri", (.buf.validate.predefined) = { ... } - * @return Whether the uri field is set. - */ - public boolean hasUri() { - return wellKnownCase_ == 17; - } - /** - *
-     * `uri` specifies that the field value must be a valid URI as defined by
-     * [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3).
-     *
-     * If the field value isn't a valid URI, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid URI
-     * string value = 1 [(buf.validate.field).string.uri = true];
-     * }
-     * ```
-     * 
- * - * bool uri = 17 [json_name = "uri", (.buf.validate.predefined) = { ... } - * @return The uri. - */ - public boolean getUri() { - if (wellKnownCase_ == 17) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `uri` specifies that the field value must be a valid URI as defined by
-     * [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3).
-     *
-     * If the field value isn't a valid URI, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid URI
-     * string value = 1 [(buf.validate.field).string.uri = true];
-     * }
-     * ```
-     * 
- * - * bool uri = 17 [json_name = "uri", (.buf.validate.predefined) = { ... } - * @param value The uri to set. - * @return This builder for chaining. - */ - public Builder setUri(boolean value) { - - wellKnownCase_ = 17; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `uri` specifies that the field value must be a valid URI as defined by
-     * [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3).
-     *
-     * If the field value isn't a valid URI, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid URI
-     * string value = 1 [(buf.validate.field).string.uri = true];
-     * }
-     * ```
-     * 
- * - * bool uri = 17 [json_name = "uri", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearUri() { - if (wellKnownCase_ == 17) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `uri_ref` specifies that the field value must be a valid URI Reference as
-     * defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-4.1).
-     *
-     * A URI Reference is either a [URI](https://datatracker.ietf.org/doc/html/rfc3986#section-3),
-     * or a [Relative Reference](https://datatracker.ietf.org/doc/html/rfc3986#section-4.2).
-     *
-     * If the field value isn't a valid URI Reference, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid URI Reference
-     * string value = 1 [(buf.validate.field).string.uri_ref = true];
-     * }
-     * ```
-     * 
- * - * bool uri_ref = 18 [json_name = "uriRef", (.buf.validate.predefined) = { ... } - * @return Whether the uriRef field is set. - */ - public boolean hasUriRef() { - return wellKnownCase_ == 18; - } - /** - *
-     * `uri_ref` specifies that the field value must be a valid URI Reference as
-     * defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-4.1).
-     *
-     * A URI Reference is either a [URI](https://datatracker.ietf.org/doc/html/rfc3986#section-3),
-     * or a [Relative Reference](https://datatracker.ietf.org/doc/html/rfc3986#section-4.2).
-     *
-     * If the field value isn't a valid URI Reference, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid URI Reference
-     * string value = 1 [(buf.validate.field).string.uri_ref = true];
-     * }
-     * ```
-     * 
- * - * bool uri_ref = 18 [json_name = "uriRef", (.buf.validate.predefined) = { ... } - * @return The uriRef. - */ - public boolean getUriRef() { - if (wellKnownCase_ == 18) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `uri_ref` specifies that the field value must be a valid URI Reference as
-     * defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-4.1).
-     *
-     * A URI Reference is either a [URI](https://datatracker.ietf.org/doc/html/rfc3986#section-3),
-     * or a [Relative Reference](https://datatracker.ietf.org/doc/html/rfc3986#section-4.2).
-     *
-     * If the field value isn't a valid URI Reference, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid URI Reference
-     * string value = 1 [(buf.validate.field).string.uri_ref = true];
-     * }
-     * ```
-     * 
- * - * bool uri_ref = 18 [json_name = "uriRef", (.buf.validate.predefined) = { ... } - * @param value The uriRef to set. - * @return This builder for chaining. - */ - public Builder setUriRef(boolean value) { - - wellKnownCase_ = 18; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `uri_ref` specifies that the field value must be a valid URI Reference as
-     * defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-4.1).
-     *
-     * A URI Reference is either a [URI](https://datatracker.ietf.org/doc/html/rfc3986#section-3),
-     * or a [Relative Reference](https://datatracker.ietf.org/doc/html/rfc3986#section-4.2).
-     *
-     * If the field value isn't a valid URI Reference, an error message will be
-     * generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid URI Reference
-     * string value = 1 [(buf.validate.field).string.uri_ref = true];
-     * }
-     * ```
-     * 
- * - * bool uri_ref = 18 [json_name = "uriRef", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearUriRef() { - if (wellKnownCase_ == 18) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `address` specifies that the field value must be either a valid hostname
-     * as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5)
-     * (which doesn't support internationalized domain names or IDNs) or a valid
-     * IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid hostname, or ip address
-     * string value = 1 [(buf.validate.field).string.address = true];
-     * }
-     * ```
-     * 
- * - * bool address = 21 [json_name = "address", (.buf.validate.predefined) = { ... } - * @return Whether the address field is set. - */ - public boolean hasAddress() { - return wellKnownCase_ == 21; - } - /** - *
-     * `address` specifies that the field value must be either a valid hostname
-     * as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5)
-     * (which doesn't support internationalized domain names or IDNs) or a valid
-     * IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid hostname, or ip address
-     * string value = 1 [(buf.validate.field).string.address = true];
-     * }
-     * ```
-     * 
- * - * bool address = 21 [json_name = "address", (.buf.validate.predefined) = { ... } - * @return The address. - */ - public boolean getAddress() { - if (wellKnownCase_ == 21) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `address` specifies that the field value must be either a valid hostname
-     * as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5)
-     * (which doesn't support internationalized domain names or IDNs) or a valid
-     * IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid hostname, or ip address
-     * string value = 1 [(buf.validate.field).string.address = true];
-     * }
-     * ```
-     * 
- * - * bool address = 21 [json_name = "address", (.buf.validate.predefined) = { ... } - * @param value The address to set. - * @return This builder for chaining. - */ - public Builder setAddress(boolean value) { - - wellKnownCase_ = 21; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `address` specifies that the field value must be either a valid hostname
-     * as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5)
-     * (which doesn't support internationalized domain names or IDNs) or a valid
-     * IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
-     * message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid hostname, or ip address
-     * string value = 1 [(buf.validate.field).string.address = true];
-     * }
-     * ```
-     * 
- * - * bool address = 21 [json_name = "address", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearAddress() { - if (wellKnownCase_ == 21) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `uuid` specifies that the field value must be a valid UUID as defined by
-     * [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the
-     * field value isn't a valid UUID, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid UUID
-     * string value = 1 [(buf.validate.field).string.uuid = true];
-     * }
-     * ```
-     * 
- * - * bool uuid = 22 [json_name = "uuid", (.buf.validate.predefined) = { ... } - * @return Whether the uuid field is set. - */ - public boolean hasUuid() { - return wellKnownCase_ == 22; - } - /** - *
-     * `uuid` specifies that the field value must be a valid UUID as defined by
-     * [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the
-     * field value isn't a valid UUID, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid UUID
-     * string value = 1 [(buf.validate.field).string.uuid = true];
-     * }
-     * ```
-     * 
- * - * bool uuid = 22 [json_name = "uuid", (.buf.validate.predefined) = { ... } - * @return The uuid. - */ - public boolean getUuid() { - if (wellKnownCase_ == 22) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `uuid` specifies that the field value must be a valid UUID as defined by
-     * [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the
-     * field value isn't a valid UUID, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid UUID
-     * string value = 1 [(buf.validate.field).string.uuid = true];
-     * }
-     * ```
-     * 
- * - * bool uuid = 22 [json_name = "uuid", (.buf.validate.predefined) = { ... } - * @param value The uuid to set. - * @return This builder for chaining. - */ - public Builder setUuid(boolean value) { - - wellKnownCase_ = 22; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `uuid` specifies that the field value must be a valid UUID as defined by
-     * [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the
-     * field value isn't a valid UUID, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid UUID
-     * string value = 1 [(buf.validate.field).string.uuid = true];
-     * }
-     * ```
-     * 
- * - * bool uuid = 22 [json_name = "uuid", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearUuid() { - if (wellKnownCase_ == 22) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
-     * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes
-     * omitted. If the field value isn't a valid UUID without dashes, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid trimmed UUID
-     * string value = 1 [(buf.validate.field).string.tuuid = true];
-     * }
-     * ```
-     * 
- * - * bool tuuid = 33 [json_name = "tuuid", (.buf.validate.predefined) = { ... } - * @return Whether the tuuid field is set. - */ - public boolean hasTuuid() { - return wellKnownCase_ == 33; - } - /** - *
-     * `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
-     * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes
-     * omitted. If the field value isn't a valid UUID without dashes, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid trimmed UUID
-     * string value = 1 [(buf.validate.field).string.tuuid = true];
-     * }
-     * ```
-     * 
- * - * bool tuuid = 33 [json_name = "tuuid", (.buf.validate.predefined) = { ... } - * @return The tuuid. - */ - public boolean getTuuid() { - if (wellKnownCase_ == 33) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
-     * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes
-     * omitted. If the field value isn't a valid UUID without dashes, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid trimmed UUID
-     * string value = 1 [(buf.validate.field).string.tuuid = true];
-     * }
-     * ```
-     * 
- * - * bool tuuid = 33 [json_name = "tuuid", (.buf.validate.predefined) = { ... } - * @param value The tuuid to set. - * @return This builder for chaining. - */ - public Builder setTuuid(boolean value) { - - wellKnownCase_ = 33; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
-     * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes
-     * omitted. If the field value isn't a valid UUID without dashes, an error message
-     * will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid trimmed UUID
-     * string value = 1 [(buf.validate.field).string.tuuid = true];
-     * }
-     * ```
-     * 
- * - * bool tuuid = 33 [json_name = "tuuid", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearTuuid() { - if (wellKnownCase_ == 33) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
-     * address with prefix length. If the field value isn't a valid IP with prefix
-     * length, an error message will be generated.
-     *
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP with prefix length
-     * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ip_with_prefixlen = 26 [json_name = "ipWithPrefixlen", (.buf.validate.predefined) = { ... } - * @return Whether the ipWithPrefixlen field is set. - */ - public boolean hasIpWithPrefixlen() { - return wellKnownCase_ == 26; - } - /** - *
-     * `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
-     * address with prefix length. If the field value isn't a valid IP with prefix
-     * length, an error message will be generated.
-     *
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP with prefix length
-     * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ip_with_prefixlen = 26 [json_name = "ipWithPrefixlen", (.buf.validate.predefined) = { ... } - * @return The ipWithPrefixlen. - */ - public boolean getIpWithPrefixlen() { - if (wellKnownCase_ == 26) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
-     * address with prefix length. If the field value isn't a valid IP with prefix
-     * length, an error message will be generated.
-     *
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP with prefix length
-     * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ip_with_prefixlen = 26 [json_name = "ipWithPrefixlen", (.buf.validate.predefined) = { ... } - * @param value The ipWithPrefixlen to set. - * @return This builder for chaining. - */ - public Builder setIpWithPrefixlen(boolean value) { - - wellKnownCase_ = 26; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
-     * address with prefix length. If the field value isn't a valid IP with prefix
-     * length, an error message will be generated.
-     *
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP with prefix length
-     * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ip_with_prefixlen = 26 [json_name = "ipWithPrefixlen", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIpWithPrefixlen() { - if (wellKnownCase_ == 26) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `ipv4_with_prefixlen` specifies that the field value must be a valid
-     * IPv4 address with prefix.
-     * If the field value isn't a valid IPv4 address with prefix length,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 address with prefix length
-     * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4_with_prefixlen = 27 [json_name = "ipv4WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4WithPrefixlen field is set. - */ - public boolean hasIpv4WithPrefixlen() { - return wellKnownCase_ == 27; - } - /** - *
-     * `ipv4_with_prefixlen` specifies that the field value must be a valid
-     * IPv4 address with prefix.
-     * If the field value isn't a valid IPv4 address with prefix length,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 address with prefix length
-     * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4_with_prefixlen = 27 [json_name = "ipv4WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return The ipv4WithPrefixlen. - */ - public boolean getIpv4WithPrefixlen() { - if (wellKnownCase_ == 27) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ipv4_with_prefixlen` specifies that the field value must be a valid
-     * IPv4 address with prefix.
-     * If the field value isn't a valid IPv4 address with prefix length,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 address with prefix length
-     * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4_with_prefixlen = 27 [json_name = "ipv4WithPrefixlen", (.buf.validate.predefined) = { ... } - * @param value The ipv4WithPrefixlen to set. - * @return This builder for chaining. - */ - public Builder setIpv4WithPrefixlen(boolean value) { - - wellKnownCase_ = 27; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ipv4_with_prefixlen` specifies that the field value must be a valid
-     * IPv4 address with prefix.
-     * If the field value isn't a valid IPv4 address with prefix length,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 address with prefix length
-     * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4_with_prefixlen = 27 [json_name = "ipv4WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIpv4WithPrefixlen() { - if (wellKnownCase_ == 27) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `ipv6_with_prefixlen` specifies that the field value must be a valid
-     * IPv6 address with prefix length.
-     * If the field value is not a valid IPv6 address with prefix length,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 address prefix length
-     * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6_with_prefixlen = 28 [json_name = "ipv6WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6WithPrefixlen field is set. - */ - public boolean hasIpv6WithPrefixlen() { - return wellKnownCase_ == 28; - } - /** - *
-     * `ipv6_with_prefixlen` specifies that the field value must be a valid
-     * IPv6 address with prefix length.
-     * If the field value is not a valid IPv6 address with prefix length,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 address prefix length
-     * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6_with_prefixlen = 28 [json_name = "ipv6WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return The ipv6WithPrefixlen. - */ - public boolean getIpv6WithPrefixlen() { - if (wellKnownCase_ == 28) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ipv6_with_prefixlen` specifies that the field value must be a valid
-     * IPv6 address with prefix length.
-     * If the field value is not a valid IPv6 address with prefix length,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 address prefix length
-     * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6_with_prefixlen = 28 [json_name = "ipv6WithPrefixlen", (.buf.validate.predefined) = { ... } - * @param value The ipv6WithPrefixlen to set. - * @return This builder for chaining. - */ - public Builder setIpv6WithPrefixlen(boolean value) { - - wellKnownCase_ = 28; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ipv6_with_prefixlen` specifies that the field value must be a valid
-     * IPv6 address with prefix length.
-     * If the field value is not a valid IPv6 address with prefix length,
-     * an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 address prefix length
-     * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6_with_prefixlen = 28 [json_name = "ipv6WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIpv6WithPrefixlen() { - if (wellKnownCase_ == 28) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
-     * If the field value isn't a valid IP prefix, an error message will be
-     * generated. The prefix must have all zeros for the masked bits of the prefix (e.g.,
-     * `127.0.0.0/16`, not `127.0.0.1/16`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP prefix
-     * string value = 1 [(buf.validate.field).string.ip_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ip_prefix = 29 [json_name = "ipPrefix", (.buf.validate.predefined) = { ... } - * @return Whether the ipPrefix field is set. - */ - public boolean hasIpPrefix() { - return wellKnownCase_ == 29; - } - /** - *
-     * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
-     * If the field value isn't a valid IP prefix, an error message will be
-     * generated. The prefix must have all zeros for the masked bits of the prefix (e.g.,
-     * `127.0.0.0/16`, not `127.0.0.1/16`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP prefix
-     * string value = 1 [(buf.validate.field).string.ip_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ip_prefix = 29 [json_name = "ipPrefix", (.buf.validate.predefined) = { ... } - * @return The ipPrefix. - */ - public boolean getIpPrefix() { - if (wellKnownCase_ == 29) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
-     * If the field value isn't a valid IP prefix, an error message will be
-     * generated. The prefix must have all zeros for the masked bits of the prefix (e.g.,
-     * `127.0.0.0/16`, not `127.0.0.1/16`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP prefix
-     * string value = 1 [(buf.validate.field).string.ip_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ip_prefix = 29 [json_name = "ipPrefix", (.buf.validate.predefined) = { ... } - * @param value The ipPrefix to set. - * @return This builder for chaining. - */ - public Builder setIpPrefix(boolean value) { - - wellKnownCase_ = 29; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
-     * If the field value isn't a valid IP prefix, an error message will be
-     * generated. The prefix must have all zeros for the masked bits of the prefix (e.g.,
-     * `127.0.0.0/16`, not `127.0.0.1/16`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IP prefix
-     * string value = 1 [(buf.validate.field).string.ip_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ip_prefix = 29 [json_name = "ipPrefix", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIpPrefix() { - if (wellKnownCase_ == 29) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `ipv4_prefix` specifies that the field value must be a valid IPv4
-     * prefix. If the field value isn't a valid IPv4 prefix, an error message
-     * will be generated. The prefix must have all zeros for the masked bits of
-     * the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 prefix
-     * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4_prefix = 30 [json_name = "ipv4Prefix", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4Prefix field is set. - */ - public boolean hasIpv4Prefix() { - return wellKnownCase_ == 30; - } - /** - *
-     * `ipv4_prefix` specifies that the field value must be a valid IPv4
-     * prefix. If the field value isn't a valid IPv4 prefix, an error message
-     * will be generated. The prefix must have all zeros for the masked bits of
-     * the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 prefix
-     * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4_prefix = 30 [json_name = "ipv4Prefix", (.buf.validate.predefined) = { ... } - * @return The ipv4Prefix. - */ - public boolean getIpv4Prefix() { - if (wellKnownCase_ == 30) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ipv4_prefix` specifies that the field value must be a valid IPv4
-     * prefix. If the field value isn't a valid IPv4 prefix, an error message
-     * will be generated. The prefix must have all zeros for the masked bits of
-     * the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 prefix
-     * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4_prefix = 30 [json_name = "ipv4Prefix", (.buf.validate.predefined) = { ... } - * @param value The ipv4Prefix to set. - * @return This builder for chaining. - */ - public Builder setIpv4Prefix(boolean value) { - - wellKnownCase_ = 30; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ipv4_prefix` specifies that the field value must be a valid IPv4
-     * prefix. If the field value isn't a valid IPv4 prefix, an error message
-     * will be generated. The prefix must have all zeros for the masked bits of
-     * the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv4 prefix
-     * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ipv4_prefix = 30 [json_name = "ipv4Prefix", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIpv4Prefix() { - if (wellKnownCase_ == 30) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
-     * If the field value is not a valid IPv6 prefix, an error message will be
-     * generated. The prefix must have all zeros for the masked bits of the prefix
-     * (e.g., `2001:db8::/48`, not `2001:db8::1/48`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 prefix
-     * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6_prefix = 31 [json_name = "ipv6Prefix", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6Prefix field is set. - */ - public boolean hasIpv6Prefix() { - return wellKnownCase_ == 31; - } - /** - *
-     * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
-     * If the field value is not a valid IPv6 prefix, an error message will be
-     * generated. The prefix must have all zeros for the masked bits of the prefix
-     * (e.g., `2001:db8::/48`, not `2001:db8::1/48`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 prefix
-     * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6_prefix = 31 [json_name = "ipv6Prefix", (.buf.validate.predefined) = { ... } - * @return The ipv6Prefix. - */ - public boolean getIpv6Prefix() { - if (wellKnownCase_ == 31) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
-     * If the field value is not a valid IPv6 prefix, an error message will be
-     * generated. The prefix must have all zeros for the masked bits of the prefix
-     * (e.g., `2001:db8::/48`, not `2001:db8::1/48`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 prefix
-     * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6_prefix = 31 [json_name = "ipv6Prefix", (.buf.validate.predefined) = { ... } - * @param value The ipv6Prefix to set. - * @return This builder for chaining. - */ - public Builder setIpv6Prefix(boolean value) { - - wellKnownCase_ = 31; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
-     * If the field value is not a valid IPv6 prefix, an error message will be
-     * generated. The prefix must have all zeros for the masked bits of the prefix
-     * (e.g., `2001:db8::/48`, not `2001:db8::1/48`).
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid IPv6 prefix
-     * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
-     * }
-     * ```
-     * 
- * - * bool ipv6_prefix = 31 [json_name = "ipv6Prefix", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIpv6Prefix() { - if (wellKnownCase_ == 31) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `host_and_port` specifies the field value must be a valid host and port
-     * pair. The host must be a valid hostname or IP address while the port
-     * must be in the range of 0-65535, inclusive. IPv6 addresses must be delimited
-     * with square brackets (e.g., `[::1]:1234`).
-     * 
- * - * bool host_and_port = 32 [json_name = "hostAndPort", (.buf.validate.predefined) = { ... } - * @return Whether the hostAndPort field is set. - */ - public boolean hasHostAndPort() { - return wellKnownCase_ == 32; - } - /** - *
-     * `host_and_port` specifies the field value must be a valid host and port
-     * pair. The host must be a valid hostname or IP address while the port
-     * must be in the range of 0-65535, inclusive. IPv6 addresses must be delimited
-     * with square brackets (e.g., `[::1]:1234`).
-     * 
- * - * bool host_and_port = 32 [json_name = "hostAndPort", (.buf.validate.predefined) = { ... } - * @return The hostAndPort. - */ - public boolean getHostAndPort() { - if (wellKnownCase_ == 32) { - return (java.lang.Boolean) wellKnown_; - } - return false; - } - /** - *
-     * `host_and_port` specifies the field value must be a valid host and port
-     * pair. The host must be a valid hostname or IP address while the port
-     * must be in the range of 0-65535, inclusive. IPv6 addresses must be delimited
-     * with square brackets (e.g., `[::1]:1234`).
-     * 
- * - * bool host_and_port = 32 [json_name = "hostAndPort", (.buf.validate.predefined) = { ... } - * @param value The hostAndPort to set. - * @return This builder for chaining. - */ - public Builder setHostAndPort(boolean value) { - - wellKnownCase_ = 32; - wellKnown_ = value; - onChanged(); - return this; - } - /** - *
-     * `host_and_port` specifies the field value must be a valid host and port
-     * pair. The host must be a valid hostname or IP address while the port
-     * must be in the range of 0-65535, inclusive. IPv6 addresses must be delimited
-     * with square brackets (e.g., `[::1]:1234`).
-     * 
- * - * bool host_and_port = 32 [json_name = "hostAndPort", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearHostAndPort() { - if (wellKnownCase_ == 32) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `well_known_regex` specifies a common well-known pattern
-     * defined as a regex. If the field value doesn't match the well-known
-     * regex, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid HTTP header value
-     * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
-     * }
-     * ```
-     *
-     * #### KnownRegex
-     *
-     * `well_known_regex` contains some well-known patterns.
-     *
-     * | Name                          | Number | Description                               |
-     * |-------------------------------|--------|-------------------------------------------|
-     * | KNOWN_REGEX_UNSPECIFIED       | 0      |                                           |
-     * | KNOWN_REGEX_HTTP_HEADER_NAME  | 1      | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2)  |
-     * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2      | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |
-     * 
- * - * .buf.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex", (.buf.validate.predefined) = { ... } - * @return Whether the wellKnownRegex field is set. - */ - @java.lang.Override - public boolean hasWellKnownRegex() { - return wellKnownCase_ == 24; - } - /** - *
-     * `well_known_regex` specifies a common well-known pattern
-     * defined as a regex. If the field value doesn't match the well-known
-     * regex, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid HTTP header value
-     * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
-     * }
-     * ```
-     *
-     * #### KnownRegex
-     *
-     * `well_known_regex` contains some well-known patterns.
-     *
-     * | Name                          | Number | Description                               |
-     * |-------------------------------|--------|-------------------------------------------|
-     * | KNOWN_REGEX_UNSPECIFIED       | 0      |                                           |
-     * | KNOWN_REGEX_HTTP_HEADER_NAME  | 1      | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2)  |
-     * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2      | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |
-     * 
- * - * .buf.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex", (.buf.validate.predefined) = { ... } - * @return The wellKnownRegex. - */ - @java.lang.Override - public build.buf.validate.KnownRegex getWellKnownRegex() { - if (wellKnownCase_ == 24) { - build.buf.validate.KnownRegex result = build.buf.validate.KnownRegex.forNumber( - (java.lang.Integer) wellKnown_); - return result == null ? build.buf.validate.KnownRegex.KNOWN_REGEX_UNSPECIFIED : result; - } - return build.buf.validate.KnownRegex.KNOWN_REGEX_UNSPECIFIED; - } - /** - *
-     * `well_known_regex` specifies a common well-known pattern
-     * defined as a regex. If the field value doesn't match the well-known
-     * regex, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid HTTP header value
-     * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
-     * }
-     * ```
-     *
-     * #### KnownRegex
-     *
-     * `well_known_regex` contains some well-known patterns.
-     *
-     * | Name                          | Number | Description                               |
-     * |-------------------------------|--------|-------------------------------------------|
-     * | KNOWN_REGEX_UNSPECIFIED       | 0      |                                           |
-     * | KNOWN_REGEX_HTTP_HEADER_NAME  | 1      | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2)  |
-     * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2      | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |
-     * 
- * - * .buf.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex", (.buf.validate.predefined) = { ... } - * @param value The wellKnownRegex to set. - * @return This builder for chaining. - */ - public Builder setWellKnownRegex(build.buf.validate.KnownRegex value) { - if (value == null) { - throw new NullPointerException(); - } - wellKnownCase_ = 24; - wellKnown_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * `well_known_regex` specifies a common well-known pattern
-     * defined as a regex. If the field value doesn't match the well-known
-     * regex, an error message will be generated.
-     *
-     * ```proto
-     * message MyString {
-     * // value must be a valid HTTP header value
-     * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
-     * }
-     * ```
-     *
-     * #### KnownRegex
-     *
-     * `well_known_regex` contains some well-known patterns.
-     *
-     * | Name                          | Number | Description                               |
-     * |-------------------------------|--------|-------------------------------------------|
-     * | KNOWN_REGEX_UNSPECIFIED       | 0      |                                           |
-     * | KNOWN_REGEX_HTTP_HEADER_NAME  | 1      | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2)  |
-     * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2      | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |
-     * 
- * - * .buf.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearWellKnownRegex() { - if (wellKnownCase_ == 24) { - wellKnownCase_ = 0; - wellKnown_ = null; - onChanged(); - } - return this; - } - - private boolean strict_ ; - /** - *
-     * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
-     * enable strict header validation. By default, this is true, and HTTP header
-     * validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser
-     * validations that only disallow `\r\n\0` characters, which can be used to
-     * bypass header matching rules.
-     *
-     * ```proto
-     * message MyString {
-     * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
-     * string value = 1 [(buf.validate.field).string.strict = false];
-     * }
-     * ```
-     * 
- * - * optional bool strict = 25 [json_name = "strict"]; - * @return Whether the strict field is set. - */ - @java.lang.Override - public boolean hasStrict() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - *
-     * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
-     * enable strict header validation. By default, this is true, and HTTP header
-     * validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser
-     * validations that only disallow `\r\n\0` characters, which can be used to
-     * bypass header matching rules.
-     *
-     * ```proto
-     * message MyString {
-     * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
-     * string value = 1 [(buf.validate.field).string.strict = false];
-     * }
-     * ```
-     * 
- * - * optional bool strict = 25 [json_name = "strict"]; - * @return The strict. - */ - @java.lang.Override - public boolean getStrict() { - return strict_; - } - /** - *
-     * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
-     * enable strict header validation. By default, this is true, and HTTP header
-     * validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser
-     * validations that only disallow `\r\n\0` characters, which can be used to
-     * bypass header matching rules.
-     *
-     * ```proto
-     * message MyString {
-     * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
-     * string value = 1 [(buf.validate.field).string.strict = false];
-     * }
-     * ```
-     * 
- * - * optional bool strict = 25 [json_name = "strict"]; - * @param value The strict to set. - * @return This builder for chaining. - */ - public Builder setStrict(boolean value) { - - strict_ = value; - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
-     * enable strict header validation. By default, this is true, and HTTP header
-     * validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser
-     * validations that only disallow `\r\n\0` characters, which can be used to
-     * bypass header matching rules.
-     *
-     * ```proto
-     * message MyString {
-     * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
-     * string value = 1 [(buf.validate.field).string.strict = false];
-     * }
-     * ```
-     * 
- * - * optional bool strict = 25 [json_name = "strict"]; - * @return This builder for chaining. - */ - public Builder clearStrict() { - bitField1_ = (bitField1_ & ~0x00000001); - strict_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList example_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = new com.google.protobuf.LazyStringArrayList(example_); - } - bitField1_ |= 0x00000002; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyString {
-     * string value = 1 [
-     * (buf.validate.field).string.example = "hello",
-     * (buf.validate.field).string.example = "world"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public com.google.protobuf.ProtocolStringList - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyString {
-     * string value = 1 [
-     * (buf.validate.field).string.example = "hello",
-     * (buf.validate.field).string.example = "world"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyString {
-     * string value = 1 [
-     * (buf.validate.field).string.example = "hello",
-     * (buf.validate.field).string.example = "world"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public java.lang.String getExample(int index) { - return example_.get(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyString {
-     * string value = 1 [
-     * (buf.validate.field).string.example = "hello",
-     * (buf.validate.field).string.example = "world"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the value to return. - * @return The bytes of the example at the given index. - */ - public com.google.protobuf.ByteString - getExampleBytes(int index) { - return example_.getByteString(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyString {
-     * string value = 1 [
-     * (buf.validate.field).string.example = "hello",
-     * (buf.validate.field).string.example = "world"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureExampleIsMutable(); - example_.set(index, value); - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyString {
-     * string value = 1 [
-     * (buf.validate.field).string.example = "hello",
-     * (buf.validate.field).string.example = "world"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureExampleIsMutable(); - example_.add(value); - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyString {
-     * string value = 1 [
-     * (buf.validate.field).string.example = "hello",
-     * (buf.validate.field).string.example = "world"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyString {
-     * string value = 1 [
-     * (buf.validate.field).string.example = "hello",
-     * (buf.validate.field).string.example = "world"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField1_ = (bitField1_ & ~0x00000002);; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyString {
-     * string value = 1 [
-     * (buf.validate.field).string.example = "hello",
-     * (buf.validate.field).string.example = "world"
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The bytes of the example to add. - * @return This builder for chaining. - */ - public Builder addExampleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureExampleIsMutable(); - example_.add(value); - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.StringRules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.StringRules) - private static final build.buf.validate.StringRules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.StringRules(); - } - - public static build.buf.validate.StringRules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringRules 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.StringRules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/StringRulesOrBuilder.java b/src/main/java/build/buf/validate/StringRulesOrBuilder.java deleted file mode 100644 index 7c05e67f..00000000 --- a/src/main/java/build/buf/validate/StringRulesOrBuilder.java +++ /dev/null @@ -1,1567 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface StringRulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.StringRules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must equal `hello`
-   * string value = 1 [(buf.validate.field).string.const = "hello"];
-   * }
-   * ```
-   * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must equal `hello`
-   * string value = 1 [(buf.validate.field).string.const = "hello"];
-   * }
-   * ```
-   * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - java.lang.String getConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must equal `hello`
-   * string value = 1 [(buf.validate.field).string.const = "hello"];
-   * }
-   * ```
-   * 
- * - * optional string const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The bytes for const. - */ - com.google.protobuf.ByteString - getConstBytes(); - - /** - *
-   * `len` dictates that the field value must have the specified
-   * number of characters (Unicode code points), which may differ from the number
-   * of bytes in the string. If the field value does not meet the specified
-   * length, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be 5 characters
-   * string value = 1 [(buf.validate.field).string.len = 5];
-   * }
-   * ```
-   * 
- * - * optional uint64 len = 19 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return Whether the len field is set. - */ - boolean hasLen(); - /** - *
-   * `len` dictates that the field value must have the specified
-   * number of characters (Unicode code points), which may differ from the number
-   * of bytes in the string. If the field value does not meet the specified
-   * length, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be 5 characters
-   * string value = 1 [(buf.validate.field).string.len = 5];
-   * }
-   * ```
-   * 
- * - * optional uint64 len = 19 [json_name = "len", (.buf.validate.predefined) = { ... } - * @return The len. - */ - long getLen(); - - /** - *
-   * `min_len` specifies that the field value must have at least the specified
-   * number of characters (Unicode code points), which may differ from the number
-   * of bytes in the string. If the field value contains fewer characters, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at least 3 characters
-   * string value = 1 [(buf.validate.field).string.min_len = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return Whether the minLen field is set. - */ - boolean hasMinLen(); - /** - *
-   * `min_len` specifies that the field value must have at least the specified
-   * number of characters (Unicode code points), which may differ from the number
-   * of bytes in the string. If the field value contains fewer characters, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at least 3 characters
-   * string value = 1 [(buf.validate.field).string.min_len = 3];
-   * }
-   * ```
-   * 
- * - * optional uint64 min_len = 2 [json_name = "minLen", (.buf.validate.predefined) = { ... } - * @return The minLen. - */ - long getMinLen(); - - /** - *
-   * `max_len` specifies that the field value must have no more than the specified
-   * number of characters (Unicode code points), which may differ from the
-   * number of bytes in the string. If the field value contains more characters,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at most 10 characters
-   * string value = 1 [(buf.validate.field).string.max_len = 10];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return Whether the maxLen field is set. - */ - boolean hasMaxLen(); - /** - *
-   * `max_len` specifies that the field value must have no more than the specified
-   * number of characters (Unicode code points), which may differ from the
-   * number of bytes in the string. If the field value contains more characters,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at most 10 characters
-   * string value = 1 [(buf.validate.field).string.max_len = 10];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_len = 3 [json_name = "maxLen", (.buf.validate.predefined) = { ... } - * @return The maxLen. - */ - long getMaxLen(); - - /** - *
-   * `len_bytes` dictates that the field value must have the specified number of
-   * bytes. If the field value does not match the specified length in bytes,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be 6 bytes
-   * string value = 1 [(buf.validate.field).string.len_bytes = 6];
-   * }
-   * ```
-   * 
- * - * optional uint64 len_bytes = 20 [json_name = "lenBytes", (.buf.validate.predefined) = { ... } - * @return Whether the lenBytes field is set. - */ - boolean hasLenBytes(); - /** - *
-   * `len_bytes` dictates that the field value must have the specified number of
-   * bytes. If the field value does not match the specified length in bytes,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be 6 bytes
-   * string value = 1 [(buf.validate.field).string.len_bytes = 6];
-   * }
-   * ```
-   * 
- * - * optional uint64 len_bytes = 20 [json_name = "lenBytes", (.buf.validate.predefined) = { ... } - * @return The lenBytes. - */ - long getLenBytes(); - - /** - *
-   * `min_bytes` specifies that the field value must have at least the specified
-   * number of bytes. If the field value contains fewer bytes, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at least 4 bytes
-   * string value = 1 [(buf.validate.field).string.min_bytes = 4];
-   * }
-   *
-   * ```
-   * 
- * - * optional uint64 min_bytes = 4 [json_name = "minBytes", (.buf.validate.predefined) = { ... } - * @return Whether the minBytes field is set. - */ - boolean hasMinBytes(); - /** - *
-   * `min_bytes` specifies that the field value must have at least the specified
-   * number of bytes. If the field value contains fewer bytes, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at least 4 bytes
-   * string value = 1 [(buf.validate.field).string.min_bytes = 4];
-   * }
-   *
-   * ```
-   * 
- * - * optional uint64 min_bytes = 4 [json_name = "minBytes", (.buf.validate.predefined) = { ... } - * @return The minBytes. - */ - long getMinBytes(); - - /** - *
-   * `max_bytes` specifies that the field value must have no more than the
-   * specified number of bytes. If the field value contains more bytes, an
-   * error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at most 8 bytes
-   * string value = 1 [(buf.validate.field).string.max_bytes = 8];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_bytes = 5 [json_name = "maxBytes", (.buf.validate.predefined) = { ... } - * @return Whether the maxBytes field is set. - */ - boolean hasMaxBytes(); - /** - *
-   * `max_bytes` specifies that the field value must have no more than the
-   * specified number of bytes. If the field value contains more bytes, an
-   * error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value length must be at most 8 bytes
-   * string value = 1 [(buf.validate.field).string.max_bytes = 8];
-   * }
-   * ```
-   * 
- * - * optional uint64 max_bytes = 5 [json_name = "maxBytes", (.buf.validate.predefined) = { ... } - * @return The maxBytes. - */ - long getMaxBytes(); - - /** - *
-   * `pattern` specifies that the field value must match the specified
-   * regular expression (RE2 syntax), with the expression provided without any
-   * delimiters. If the field value doesn't match the regular expression, an
-   * error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not match regex pattern `^[a-zA-Z]//$`
-   * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return Whether the pattern field is set. - */ - boolean hasPattern(); - /** - *
-   * `pattern` specifies that the field value must match the specified
-   * regular expression (RE2 syntax), with the expression provided without any
-   * delimiters. If the field value doesn't match the regular expression, an
-   * error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not match regex pattern `^[a-zA-Z]//$`
-   * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The pattern. - */ - java.lang.String getPattern(); - /** - *
-   * `pattern` specifies that the field value must match the specified
-   * regular expression (RE2 syntax), with the expression provided without any
-   * delimiters. If the field value doesn't match the regular expression, an
-   * error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not match regex pattern `^[a-zA-Z]//$`
-   * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
-   * }
-   * ```
-   * 
- * - * optional string pattern = 6 [json_name = "pattern", (.buf.validate.predefined) = { ... } - * @return The bytes for pattern. - */ - com.google.protobuf.ByteString - getPatternBytes(); - - /** - *
-   * `prefix` specifies that the field value must have the
-   * specified substring at the beginning of the string. If the field value
-   * doesn't start with the specified prefix, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have prefix `pre`
-   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-   * }
-   * ```
-   * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return Whether the prefix field is set. - */ - boolean hasPrefix(); - /** - *
-   * `prefix` specifies that the field value must have the
-   * specified substring at the beginning of the string. If the field value
-   * doesn't start with the specified prefix, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have prefix `pre`
-   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-   * }
-   * ```
-   * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return The prefix. - */ - java.lang.String getPrefix(); - /** - *
-   * `prefix` specifies that the field value must have the
-   * specified substring at the beginning of the string. If the field value
-   * doesn't start with the specified prefix, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have prefix `pre`
-   * string value = 1 [(buf.validate.field).string.prefix = "pre"];
-   * }
-   * ```
-   * 
- * - * optional string prefix = 7 [json_name = "prefix", (.buf.validate.predefined) = { ... } - * @return The bytes for prefix. - */ - com.google.protobuf.ByteString - getPrefixBytes(); - - /** - *
-   * `suffix` specifies that the field value must have the
-   * specified substring at the end of the string. If the field value doesn't
-   * end with the specified suffix, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have suffix `post`
-   * string value = 1 [(buf.validate.field).string.suffix = "post"];
-   * }
-   * ```
-   * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return Whether the suffix field is set. - */ - boolean hasSuffix(); - /** - *
-   * `suffix` specifies that the field value must have the
-   * specified substring at the end of the string. If the field value doesn't
-   * end with the specified suffix, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have suffix `post`
-   * string value = 1 [(buf.validate.field).string.suffix = "post"];
-   * }
-   * ```
-   * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return The suffix. - */ - java.lang.String getSuffix(); - /** - *
-   * `suffix` specifies that the field value must have the
-   * specified substring at the end of the string. If the field value doesn't
-   * end with the specified suffix, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not have suffix `post`
-   * string value = 1 [(buf.validate.field).string.suffix = "post"];
-   * }
-   * ```
-   * 
- * - * optional string suffix = 8 [json_name = "suffix", (.buf.validate.predefined) = { ... } - * @return The bytes for suffix. - */ - com.google.protobuf.ByteString - getSuffixBytes(); - - /** - *
-   * `contains` specifies that the field value must have the
-   * specified substring anywhere in the string. If the field value doesn't
-   * contain the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not contain substring `inside`.
-   * string value = 1 [(buf.validate.field).string.contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return Whether the contains field is set. - */ - boolean hasContains(); - /** - *
-   * `contains` specifies that the field value must have the
-   * specified substring anywhere in the string. If the field value doesn't
-   * contain the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not contain substring `inside`.
-   * string value = 1 [(buf.validate.field).string.contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return The contains. - */ - java.lang.String getContains(); - /** - *
-   * `contains` specifies that the field value must have the
-   * specified substring anywhere in the string. If the field value doesn't
-   * contain the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value does not contain substring `inside`.
-   * string value = 1 [(buf.validate.field).string.contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string contains = 9 [json_name = "contains", (.buf.validate.predefined) = { ... } - * @return The bytes for contains. - */ - com.google.protobuf.ByteString - getContainsBytes(); - - /** - *
-   * `not_contains` specifies that the field value must not have the
-   * specified substring anywhere in the string. If the field value contains
-   * the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value contains substring `inside`.
-   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @return Whether the notContains field is set. - */ - boolean hasNotContains(); - /** - *
-   * `not_contains` specifies that the field value must not have the
-   * specified substring anywhere in the string. If the field value contains
-   * the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value contains substring `inside`.
-   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @return The notContains. - */ - java.lang.String getNotContains(); - /** - *
-   * `not_contains` specifies that the field value must not have the
-   * specified substring anywhere in the string. If the field value contains
-   * the specified substring, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value contains substring `inside`.
-   * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
-   * }
-   * ```
-   * 
- * - * optional string not_contains = 23 [json_name = "notContains", (.buf.validate.predefined) = { ... } - * @return The bytes for notContains. - */ - com.google.protobuf.ByteString - getNotContainsBytes(); - - /** - *
-   * `in` specifies that the field value must be equal to one of the specified
-   * values. If the field value isn't one of the specified values, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be in list ["apple", "banana"]
-   * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-   * }
-   * ```
-   * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List - getInList(); - /** - *
-   * `in` specifies that the field value must be equal to one of the specified
-   * values. If the field value isn't one of the specified values, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be in list ["apple", "banana"]
-   * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-   * }
-   * ```
-   * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` specifies that the field value must be equal to one of the specified
-   * values. If the field value isn't one of the specified values, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be in list ["apple", "banana"]
-   * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-   * }
-   * ```
-   * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - java.lang.String getIn(int index); - /** - *
-   * `in` specifies that the field value must be equal to one of the specified
-   * values. If the field value isn't one of the specified values, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be in list ["apple", "banana"]
-   * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
-   * }
-   * ```
-   * 
- * - * repeated string in = 10 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the value to return. - * @return The bytes of the in at the given index. - */ - com.google.protobuf.ByteString - getInBytes(int index); - - /** - *
-   * `not_in` specifies that the field value cannot be equal to any
-   * of the specified values. If the field value is one of the specified values,
-   * an error message will be generated.
-   * ```proto
-   * message MyString {
-   * // value must not be in list ["orange", "grape"]
-   * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List - getNotInList(); - /** - *
-   * `not_in` specifies that the field value cannot be equal to any
-   * of the specified values. If the field value is one of the specified values,
-   * an error message will be generated.
-   * ```proto
-   * message MyString {
-   * // value must not be in list ["orange", "grape"]
-   * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` specifies that the field value cannot be equal to any
-   * of the specified values. If the field value is one of the specified values,
-   * an error message will be generated.
-   * ```proto
-   * message MyString {
-   * // value must not be in list ["orange", "grape"]
-   * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - java.lang.String getNotIn(int index); - /** - *
-   * `not_in` specifies that the field value cannot be equal to any
-   * of the specified values. If the field value is one of the specified values,
-   * an error message will be generated.
-   * ```proto
-   * message MyString {
-   * // value must not be in list ["orange", "grape"]
-   * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
-   * }
-   * ```
-   * 
- * - * repeated string not_in = 11 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the value to return. - * @return The bytes of the notIn at the given index. - */ - com.google.protobuf.ByteString - getNotInBytes(int index); - - /** - *
-   * `email` specifies that the field value must be a valid email address
-   * (addr-spec only) as defined by [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1).
-   * If the field value isn't a valid email address, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid email address
-   * string value = 1 [(buf.validate.field).string.email = true];
-   * }
-   * ```
-   * 
- * - * bool email = 12 [json_name = "email", (.buf.validate.predefined) = { ... } - * @return Whether the email field is set. - */ - boolean hasEmail(); - /** - *
-   * `email` specifies that the field value must be a valid email address
-   * (addr-spec only) as defined by [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1).
-   * If the field value isn't a valid email address, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid email address
-   * string value = 1 [(buf.validate.field).string.email = true];
-   * }
-   * ```
-   * 
- * - * bool email = 12 [json_name = "email", (.buf.validate.predefined) = { ... } - * @return The email. - */ - boolean getEmail(); - - /** - *
-   * `hostname` specifies that the field value must be a valid
-   * hostname as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5). This constraint doesn't support
-   * internationalized domain names (IDNs). If the field value isn't a
-   * valid hostname, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid hostname
-   * string value = 1 [(buf.validate.field).string.hostname = true];
-   * }
-   * ```
-   * 
- * - * bool hostname = 13 [json_name = "hostname", (.buf.validate.predefined) = { ... } - * @return Whether the hostname field is set. - */ - boolean hasHostname(); - /** - *
-   * `hostname` specifies that the field value must be a valid
-   * hostname as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5). This constraint doesn't support
-   * internationalized domain names (IDNs). If the field value isn't a
-   * valid hostname, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid hostname
-   * string value = 1 [(buf.validate.field).string.hostname = true];
-   * }
-   * ```
-   * 
- * - * bool hostname = 13 [json_name = "hostname", (.buf.validate.predefined) = { ... } - * @return The hostname. - */ - boolean getHostname(); - - /** - *
-   * `ip` specifies that the field value must be a valid IP
-   * (v4 or v6) address, without surrounding square brackets for IPv6 addresses.
-   * If the field value isn't a valid IP address, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP address
-   * string value = 1 [(buf.validate.field).string.ip = true];
-   * }
-   * ```
-   * 
- * - * bool ip = 14 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return Whether the ip field is set. - */ - boolean hasIp(); - /** - *
-   * `ip` specifies that the field value must be a valid IP
-   * (v4 or v6) address, without surrounding square brackets for IPv6 addresses.
-   * If the field value isn't a valid IP address, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP address
-   * string value = 1 [(buf.validate.field).string.ip = true];
-   * }
-   * ```
-   * 
- * - * bool ip = 14 [json_name = "ip", (.buf.validate.predefined) = { ... } - * @return The ip. - */ - boolean getIp(); - - /** - *
-   * `ipv4` specifies that the field value must be a valid IPv4
-   * address. If the field value isn't a valid IPv4 address, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 address
-   * string value = 1 [(buf.validate.field).string.ipv4 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4 = 15 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4 field is set. - */ - boolean hasIpv4(); - /** - *
-   * `ipv4` specifies that the field value must be a valid IPv4
-   * address. If the field value isn't a valid IPv4 address, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 address
-   * string value = 1 [(buf.validate.field).string.ipv4 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4 = 15 [json_name = "ipv4", (.buf.validate.predefined) = { ... } - * @return The ipv4. - */ - boolean getIpv4(); - - /** - *
-   * `ipv6` specifies that the field value must be a valid
-   * IPv6 address, without surrounding square brackets. If the field value is
-   * not a valid IPv6 address, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 address
-   * string value = 1 [(buf.validate.field).string.ipv6 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6 = 16 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6 field is set. - */ - boolean hasIpv6(); - /** - *
-   * `ipv6` specifies that the field value must be a valid
-   * IPv6 address, without surrounding square brackets. If the field value is
-   * not a valid IPv6 address, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 address
-   * string value = 1 [(buf.validate.field).string.ipv6 = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6 = 16 [json_name = "ipv6", (.buf.validate.predefined) = { ... } - * @return The ipv6. - */ - boolean getIpv6(); - - /** - *
-   * `uri` specifies that the field value must be a valid URI as defined by
-   * [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3).
-   *
-   * If the field value isn't a valid URI, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid URI
-   * string value = 1 [(buf.validate.field).string.uri = true];
-   * }
-   * ```
-   * 
- * - * bool uri = 17 [json_name = "uri", (.buf.validate.predefined) = { ... } - * @return Whether the uri field is set. - */ - boolean hasUri(); - /** - *
-   * `uri` specifies that the field value must be a valid URI as defined by
-   * [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3).
-   *
-   * If the field value isn't a valid URI, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid URI
-   * string value = 1 [(buf.validate.field).string.uri = true];
-   * }
-   * ```
-   * 
- * - * bool uri = 17 [json_name = "uri", (.buf.validate.predefined) = { ... } - * @return The uri. - */ - boolean getUri(); - - /** - *
-   * `uri_ref` specifies that the field value must be a valid URI Reference as
-   * defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-4.1).
-   *
-   * A URI Reference is either a [URI](https://datatracker.ietf.org/doc/html/rfc3986#section-3),
-   * or a [Relative Reference](https://datatracker.ietf.org/doc/html/rfc3986#section-4.2).
-   *
-   * If the field value isn't a valid URI Reference, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid URI Reference
-   * string value = 1 [(buf.validate.field).string.uri_ref = true];
-   * }
-   * ```
-   * 
- * - * bool uri_ref = 18 [json_name = "uriRef", (.buf.validate.predefined) = { ... } - * @return Whether the uriRef field is set. - */ - boolean hasUriRef(); - /** - *
-   * `uri_ref` specifies that the field value must be a valid URI Reference as
-   * defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-4.1).
-   *
-   * A URI Reference is either a [URI](https://datatracker.ietf.org/doc/html/rfc3986#section-3),
-   * or a [Relative Reference](https://datatracker.ietf.org/doc/html/rfc3986#section-4.2).
-   *
-   * If the field value isn't a valid URI Reference, an error message will be
-   * generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid URI Reference
-   * string value = 1 [(buf.validate.field).string.uri_ref = true];
-   * }
-   * ```
-   * 
- * - * bool uri_ref = 18 [json_name = "uriRef", (.buf.validate.predefined) = { ... } - * @return The uriRef. - */ - boolean getUriRef(); - - /** - *
-   * `address` specifies that the field value must be either a valid hostname
-   * as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5)
-   * (which doesn't support internationalized domain names or IDNs) or a valid
-   * IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid hostname, or ip address
-   * string value = 1 [(buf.validate.field).string.address = true];
-   * }
-   * ```
-   * 
- * - * bool address = 21 [json_name = "address", (.buf.validate.predefined) = { ... } - * @return Whether the address field is set. - */ - boolean hasAddress(); - /** - *
-   * `address` specifies that the field value must be either a valid hostname
-   * as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5)
-   * (which doesn't support internationalized domain names or IDNs) or a valid
-   * IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
-   * message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid hostname, or ip address
-   * string value = 1 [(buf.validate.field).string.address = true];
-   * }
-   * ```
-   * 
- * - * bool address = 21 [json_name = "address", (.buf.validate.predefined) = { ... } - * @return The address. - */ - boolean getAddress(); - - /** - *
-   * `uuid` specifies that the field value must be a valid UUID as defined by
-   * [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the
-   * field value isn't a valid UUID, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid UUID
-   * string value = 1 [(buf.validate.field).string.uuid = true];
-   * }
-   * ```
-   * 
- * - * bool uuid = 22 [json_name = "uuid", (.buf.validate.predefined) = { ... } - * @return Whether the uuid field is set. - */ - boolean hasUuid(); - /** - *
-   * `uuid` specifies that the field value must be a valid UUID as defined by
-   * [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the
-   * field value isn't a valid UUID, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid UUID
-   * string value = 1 [(buf.validate.field).string.uuid = true];
-   * }
-   * ```
-   * 
- * - * bool uuid = 22 [json_name = "uuid", (.buf.validate.predefined) = { ... } - * @return The uuid. - */ - boolean getUuid(); - - /** - *
-   * `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
-   * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes
-   * omitted. If the field value isn't a valid UUID without dashes, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid trimmed UUID
-   * string value = 1 [(buf.validate.field).string.tuuid = true];
-   * }
-   * ```
-   * 
- * - * bool tuuid = 33 [json_name = "tuuid", (.buf.validate.predefined) = { ... } - * @return Whether the tuuid field is set. - */ - boolean hasTuuid(); - /** - *
-   * `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
-   * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes
-   * omitted. If the field value isn't a valid UUID without dashes, an error message
-   * will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid trimmed UUID
-   * string value = 1 [(buf.validate.field).string.tuuid = true];
-   * }
-   * ```
-   * 
- * - * bool tuuid = 33 [json_name = "tuuid", (.buf.validate.predefined) = { ... } - * @return The tuuid. - */ - boolean getTuuid(); - - /** - *
-   * `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
-   * address with prefix length. If the field value isn't a valid IP with prefix
-   * length, an error message will be generated.
-   *
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP with prefix length
-   * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ip_with_prefixlen = 26 [json_name = "ipWithPrefixlen", (.buf.validate.predefined) = { ... } - * @return Whether the ipWithPrefixlen field is set. - */ - boolean hasIpWithPrefixlen(); - /** - *
-   * `ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
-   * address with prefix length. If the field value isn't a valid IP with prefix
-   * length, an error message will be generated.
-   *
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP with prefix length
-   * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ip_with_prefixlen = 26 [json_name = "ipWithPrefixlen", (.buf.validate.predefined) = { ... } - * @return The ipWithPrefixlen. - */ - boolean getIpWithPrefixlen(); - - /** - *
-   * `ipv4_with_prefixlen` specifies that the field value must be a valid
-   * IPv4 address with prefix.
-   * If the field value isn't a valid IPv4 address with prefix length,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 address with prefix length
-   * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4_with_prefixlen = 27 [json_name = "ipv4WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4WithPrefixlen field is set. - */ - boolean hasIpv4WithPrefixlen(); - /** - *
-   * `ipv4_with_prefixlen` specifies that the field value must be a valid
-   * IPv4 address with prefix.
-   * If the field value isn't a valid IPv4 address with prefix length,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 address with prefix length
-   * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4_with_prefixlen = 27 [json_name = "ipv4WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return The ipv4WithPrefixlen. - */ - boolean getIpv4WithPrefixlen(); - - /** - *
-   * `ipv6_with_prefixlen` specifies that the field value must be a valid
-   * IPv6 address with prefix length.
-   * If the field value is not a valid IPv6 address with prefix length,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 address prefix length
-   * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6_with_prefixlen = 28 [json_name = "ipv6WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6WithPrefixlen field is set. - */ - boolean hasIpv6WithPrefixlen(); - /** - *
-   * `ipv6_with_prefixlen` specifies that the field value must be a valid
-   * IPv6 address with prefix length.
-   * If the field value is not a valid IPv6 address with prefix length,
-   * an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 address prefix length
-   * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6_with_prefixlen = 28 [json_name = "ipv6WithPrefixlen", (.buf.validate.predefined) = { ... } - * @return The ipv6WithPrefixlen. - */ - boolean getIpv6WithPrefixlen(); - - /** - *
-   * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
-   * If the field value isn't a valid IP prefix, an error message will be
-   * generated. The prefix must have all zeros for the masked bits of the prefix (e.g.,
-   * `127.0.0.0/16`, not `127.0.0.1/16`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP prefix
-   * string value = 1 [(buf.validate.field).string.ip_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ip_prefix = 29 [json_name = "ipPrefix", (.buf.validate.predefined) = { ... } - * @return Whether the ipPrefix field is set. - */ - boolean hasIpPrefix(); - /** - *
-   * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
-   * If the field value isn't a valid IP prefix, an error message will be
-   * generated. The prefix must have all zeros for the masked bits of the prefix (e.g.,
-   * `127.0.0.0/16`, not `127.0.0.1/16`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IP prefix
-   * string value = 1 [(buf.validate.field).string.ip_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ip_prefix = 29 [json_name = "ipPrefix", (.buf.validate.predefined) = { ... } - * @return The ipPrefix. - */ - boolean getIpPrefix(); - - /** - *
-   * `ipv4_prefix` specifies that the field value must be a valid IPv4
-   * prefix. If the field value isn't a valid IPv4 prefix, an error message
-   * will be generated. The prefix must have all zeros for the masked bits of
-   * the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 prefix
-   * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4_prefix = 30 [json_name = "ipv4Prefix", (.buf.validate.predefined) = { ... } - * @return Whether the ipv4Prefix field is set. - */ - boolean hasIpv4Prefix(); - /** - *
-   * `ipv4_prefix` specifies that the field value must be a valid IPv4
-   * prefix. If the field value isn't a valid IPv4 prefix, an error message
-   * will be generated. The prefix must have all zeros for the masked bits of
-   * the prefix (e.g., `127.0.0.0/16`, not `127.0.0.1/16`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv4 prefix
-   * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ipv4_prefix = 30 [json_name = "ipv4Prefix", (.buf.validate.predefined) = { ... } - * @return The ipv4Prefix. - */ - boolean getIpv4Prefix(); - - /** - *
-   * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
-   * If the field value is not a valid IPv6 prefix, an error message will be
-   * generated. The prefix must have all zeros for the masked bits of the prefix
-   * (e.g., `2001:db8::/48`, not `2001:db8::1/48`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 prefix
-   * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6_prefix = 31 [json_name = "ipv6Prefix", (.buf.validate.predefined) = { ... } - * @return Whether the ipv6Prefix field is set. - */ - boolean hasIpv6Prefix(); - /** - *
-   * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
-   * If the field value is not a valid IPv6 prefix, an error message will be
-   * generated. The prefix must have all zeros for the masked bits of the prefix
-   * (e.g., `2001:db8::/48`, not `2001:db8::1/48`).
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid IPv6 prefix
-   * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
-   * }
-   * ```
-   * 
- * - * bool ipv6_prefix = 31 [json_name = "ipv6Prefix", (.buf.validate.predefined) = { ... } - * @return The ipv6Prefix. - */ - boolean getIpv6Prefix(); - - /** - *
-   * `host_and_port` specifies the field value must be a valid host and port
-   * pair. The host must be a valid hostname or IP address while the port
-   * must be in the range of 0-65535, inclusive. IPv6 addresses must be delimited
-   * with square brackets (e.g., `[::1]:1234`).
-   * 
- * - * bool host_and_port = 32 [json_name = "hostAndPort", (.buf.validate.predefined) = { ... } - * @return Whether the hostAndPort field is set. - */ - boolean hasHostAndPort(); - /** - *
-   * `host_and_port` specifies the field value must be a valid host and port
-   * pair. The host must be a valid hostname or IP address while the port
-   * must be in the range of 0-65535, inclusive. IPv6 addresses must be delimited
-   * with square brackets (e.g., `[::1]:1234`).
-   * 
- * - * bool host_and_port = 32 [json_name = "hostAndPort", (.buf.validate.predefined) = { ... } - * @return The hostAndPort. - */ - boolean getHostAndPort(); - - /** - *
-   * `well_known_regex` specifies a common well-known pattern
-   * defined as a regex. If the field value doesn't match the well-known
-   * regex, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid HTTP header value
-   * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
-   * }
-   * ```
-   *
-   * #### KnownRegex
-   *
-   * `well_known_regex` contains some well-known patterns.
-   *
-   * | Name                          | Number | Description                               |
-   * |-------------------------------|--------|-------------------------------------------|
-   * | KNOWN_REGEX_UNSPECIFIED       | 0      |                                           |
-   * | KNOWN_REGEX_HTTP_HEADER_NAME  | 1      | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2)  |
-   * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2      | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |
-   * 
- * - * .buf.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex", (.buf.validate.predefined) = { ... } - * @return Whether the wellKnownRegex field is set. - */ - boolean hasWellKnownRegex(); - /** - *
-   * `well_known_regex` specifies a common well-known pattern
-   * defined as a regex. If the field value doesn't match the well-known
-   * regex, an error message will be generated.
-   *
-   * ```proto
-   * message MyString {
-   * // value must be a valid HTTP header value
-   * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
-   * }
-   * ```
-   *
-   * #### KnownRegex
-   *
-   * `well_known_regex` contains some well-known patterns.
-   *
-   * | Name                          | Number | Description                               |
-   * |-------------------------------|--------|-------------------------------------------|
-   * | KNOWN_REGEX_UNSPECIFIED       | 0      |                                           |
-   * | KNOWN_REGEX_HTTP_HEADER_NAME  | 1      | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2)  |
-   * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2      | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |
-   * 
- * - * .buf.validate.KnownRegex well_known_regex = 24 [json_name = "wellKnownRegex", (.buf.validate.predefined) = { ... } - * @return The wellKnownRegex. - */ - build.buf.validate.KnownRegex getWellKnownRegex(); - - /** - *
-   * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
-   * enable strict header validation. By default, this is true, and HTTP header
-   * validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser
-   * validations that only disallow `\r\n\0` characters, which can be used to
-   * bypass header matching rules.
-   *
-   * ```proto
-   * message MyString {
-   * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
-   * string value = 1 [(buf.validate.field).string.strict = false];
-   * }
-   * ```
-   * 
- * - * optional bool strict = 25 [json_name = "strict"]; - * @return Whether the strict field is set. - */ - boolean hasStrict(); - /** - *
-   * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
-   * enable strict header validation. By default, this is true, and HTTP header
-   * validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser
-   * validations that only disallow `\r\n\0` characters, which can be used to
-   * bypass header matching rules.
-   *
-   * ```proto
-   * message MyString {
-   * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
-   * string value = 1 [(buf.validate.field).string.strict = false];
-   * }
-   * ```
-   * 
- * - * optional bool strict = 25 [json_name = "strict"]; - * @return The strict. - */ - boolean getStrict(); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyString {
-   * string value = 1 [
-   * (buf.validate.field).string.example = "hello",
-   * (buf.validate.field).string.example = "world"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List - getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyString {
-   * string value = 1 [
-   * (buf.validate.field).string.example = "hello",
-   * (buf.validate.field).string.example = "world"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyString {
-   * string value = 1 [
-   * (buf.validate.field).string.example = "hello",
-   * (buf.validate.field).string.example = "world"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - java.lang.String getExample(int index); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyString {
-   * string value = 1 [
-   * (buf.validate.field).string.example = "hello",
-   * (buf.validate.field).string.example = "world"
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated string example = 34 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the value to return. - * @return The bytes of the example at the given index. - */ - com.google.protobuf.ByteString - getExampleBytes(int index); - - build.buf.validate.StringRules.WellKnownCase getWellKnownCase(); -} diff --git a/src/main/java/build/buf/validate/TimestampRules.java b/src/main/java/build/buf/validate/TimestampRules.java deleted file mode 100644 index ff845463..00000000 --- a/src/main/java/build/buf/validate/TimestampRules.java +++ /dev/null @@ -1,3450 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type.
- * 
- * - * Protobuf type {@code buf.validate.TimestampRules} - */ -public final class TimestampRules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - TimestampRules> implements - // @@protoc_insertion_point(message_implements:buf.validate.TimestampRules) - TimestampRulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - TimestampRules.class.getName()); - } - // Use TimestampRules.newBuilder() to construct. - private TimestampRules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private TimestampRules() { - example_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_TimestampRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_TimestampRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.TimestampRules.class, build.buf.validate.TimestampRules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(3), - LTE(4), - LT_NOW(7), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 3: return LT; - case 4: return LTE; - case 7: return LT_NOW; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(5), - GTE(6), - GT_NOW(8), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 5: return GT; - case 6: return GTE; - case 8: return GT_NOW; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp const_; - /** - *
-   * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must equal 2023-05-03T10:00:00Z
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must equal 2023-05-03T10:00:00Z
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getConst() { - return const_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : const_; - } - /** - *
-   * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must equal 2023-05-03T10:00:00Z
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getConstOrBuilder() { - return const_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : const_; - } - - public static final int LT_FIELD_NUMBER = 3; - /** - *
-   * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be less than 'P3D' [duration.lt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 3; - } - /** - *
-   * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be less than 'P3D' [duration.lt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getLt() { - if (lessThanCase_ == 3) { - return (com.google.protobuf.Timestamp) lessThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - /** - *
-   * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be less than 'P3D' [duration.lt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getLtOrBuilder() { - if (lessThanCase_ == 3) { - return (com.google.protobuf.Timestamp) lessThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - public static final int LTE_FIELD_NUMBER = 4; - /** - *
-   * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 4; - } - /** - *
-   * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getLte() { - if (lessThanCase_ == 4) { - return (com.google.protobuf.Timestamp) lessThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - /** - *
-   * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getLteOrBuilder() { - if (lessThanCase_ == 4) { - return (com.google.protobuf.Timestamp) lessThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - public static final int LT_NOW_FIELD_NUMBER = 7; - /** - *
-   * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be less than now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
-   * }
-   * ```
-   * 
- * - * bool lt_now = 7 [json_name = "ltNow", (.buf.validate.predefined) = { ... } - * @return Whether the ltNow field is set. - */ - @java.lang.Override - public boolean hasLtNow() { - return lessThanCase_ == 7; - } - /** - *
-   * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be less than now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
-   * }
-   * ```
-   * 
- * - * bool lt_now = 7 [json_name = "ltNow", (.buf.validate.predefined) = { ... } - * @return The ltNow. - */ - @java.lang.Override - public boolean getLtNow() { - if (lessThanCase_ == 7) { - return (java.lang.Boolean) lessThan_; - } - return false; - } - - public static final int GT_FIELD_NUMBER = 5; - /** - *
-   * `gt` requires the timestamp field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gt` requires the timestamp field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getGt() { - if (greaterThanCase_ == 5) { - return (com.google.protobuf.Timestamp) greaterThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - /** - *
-   * `gt` requires the timestamp field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getGtOrBuilder() { - if (greaterThanCase_ == 5) { - return (com.google.protobuf.Timestamp) greaterThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - public static final int GTE_FIELD_NUMBER = 6; - /** - *
-   * `gte` requires the timestamp field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value
-   * must be outside the specified range. If the field value doesn't meet
-   * the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 6; - } - /** - *
-   * `gte` requires the timestamp field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value
-   * must be outside the specified range. If the field value doesn't meet
-   * the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getGte() { - if (greaterThanCase_ == 6) { - return (com.google.protobuf.Timestamp) greaterThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - /** - *
-   * `gte` requires the timestamp field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value
-   * must be outside the specified range. If the field value doesn't meet
-   * the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getGteOrBuilder() { - if (greaterThanCase_ == 6) { - return (com.google.protobuf.Timestamp) greaterThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - public static final int GT_NOW_FIELD_NUMBER = 8; - /** - *
-   * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be greater than now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
-   * }
-   * ```
-   * 
- * - * bool gt_now = 8 [json_name = "gtNow", (.buf.validate.predefined) = { ... } - * @return Whether the gtNow field is set. - */ - @java.lang.Override - public boolean hasGtNow() { - return greaterThanCase_ == 8; - } - /** - *
-   * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be greater than now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
-   * }
-   * ```
-   * 
- * - * bool gt_now = 8 [json_name = "gtNow", (.buf.validate.predefined) = { ... } - * @return The gtNow. - */ - @java.lang.Override - public boolean getGtNow() { - if (greaterThanCase_ == 8) { - return (java.lang.Boolean) greaterThan_; - } - return false; - } - - public static final int WITHIN_FIELD_NUMBER = 9; - private com.google.protobuf.Duration within_; - /** - *
-   * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be within 1 hour of now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - * @return Whether the within field is set. - */ - @java.lang.Override - public boolean hasWithin() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be within 1 hour of now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - * @return The within. - */ - @java.lang.Override - public com.google.protobuf.Duration getWithin() { - return within_ == null ? com.google.protobuf.Duration.getDefaultInstance() : within_; - } - /** - *
-   * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be within 1 hour of now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getWithinOrBuilder() { - return within_ == null ? com.google.protobuf.Duration.getDefaultInstance() : within_; - } - - public static final int EXAMPLE_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private java.util.List example_; - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public java.util.List getExampleList() { - return example_; - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public java.util.List - getExampleOrBuilderList() { - return example_; - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public int getExampleCount() { - return example_.size(); - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.Timestamp getExample(int index) { - return example_.get(index); - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getExampleOrBuilder( - int index) { - return example_.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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getConst()); - } - if (lessThanCase_ == 3) { - output.writeMessage(3, (com.google.protobuf.Timestamp) lessThan_); - } - if (lessThanCase_ == 4) { - output.writeMessage(4, (com.google.protobuf.Timestamp) lessThan_); - } - if (greaterThanCase_ == 5) { - output.writeMessage(5, (com.google.protobuf.Timestamp) greaterThan_); - } - if (greaterThanCase_ == 6) { - output.writeMessage(6, (com.google.protobuf.Timestamp) greaterThan_); - } - if (lessThanCase_ == 7) { - output.writeBool( - 7, (boolean)((java.lang.Boolean) lessThan_)); - } - if (greaterThanCase_ == 8) { - output.writeBool( - 8, (boolean)((java.lang.Boolean) greaterThan_)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(9, getWithin()); - } - for (int i = 0; i < example_.size(); i++) { - output.writeMessage(10, example_.get(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConst()); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.protobuf.Timestamp) lessThan_); - } - if (lessThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.protobuf.Timestamp) lessThan_); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.protobuf.Timestamp) greaterThan_); - } - if (greaterThanCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.protobuf.Timestamp) greaterThan_); - } - if (lessThanCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 7, (boolean)((java.lang.Boolean) lessThan_)); - } - if (greaterThanCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 8, (boolean)((java.lang.Boolean) greaterThan_)); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getWithin()); - } - for (int i = 0; i < example_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, example_.get(i)); - } - size += extensionsSerializedSize(); - 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.TimestampRules)) { - return super.equals(obj); - } - build.buf.validate.TimestampRules other = (build.buf.validate.TimestampRules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (!getConst() - .equals(other.getConst())) return false; - } - if (hasWithin() != other.hasWithin()) return false; - if (hasWithin()) { - if (!getWithin() - .equals(other.getWithin())) return false; - } - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 3: - if (!getLt() - .equals(other.getLt())) return false; - break; - case 4: - if (!getLte() - .equals(other.getLte())) return false; - break; - case 7: - if (getLtNow() - != other.getLtNow()) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 5: - if (!getGt() - .equals(other.getGt())) return false; - break; - case 6: - if (!getGte() - .equals(other.getGte())) return false; - break; - case 8: - if (getGtNow() - != other.getGtNow()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst().hashCode(); - } - if (hasWithin()) { - hash = (37 * hash) + WITHIN_FIELD_NUMBER; - hash = (53 * hash) + getWithin().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 3: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + getLt().hashCode(); - break; - case 4: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + getLte().hashCode(); - break; - case 7: - hash = (37 * hash) + LT_NOW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLtNow()); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 5: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + getGt().hashCode(); - break; - case 6: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + getGte().hashCode(); - break; - case 8: - hash = (37 * hash) + GT_NOW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getGtNow()); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.TimestampRules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.TimestampRules 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.TimestampRules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.TimestampRules 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.TimestampRules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.TimestampRules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.TimestampRules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.TimestampRules 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.TimestampRules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.TimestampRules 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.TimestampRules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.TimestampRules 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.TimestampRules 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; - } - /** - *
-   * TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type.
-   * 
- * - * Protobuf type {@code buf.validate.TimestampRules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.TimestampRules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.TimestampRules) - build.buf.validate.TimestampRulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_TimestampRules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_TimestampRules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.TimestampRules.class, build.buf.validate.TimestampRules.Builder.class); - } - - // Construct using build.buf.validate.TimestampRules.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetConstFieldBuilder(); - internalGetWithinFieldBuilder(); - internalGetExampleFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = null; - if (constBuilder_ != null) { - constBuilder_.dispose(); - constBuilder_ = null; - } - if (ltBuilder_ != null) { - ltBuilder_.clear(); - } - if (lteBuilder_ != null) { - lteBuilder_.clear(); - } - if (gtBuilder_ != null) { - gtBuilder_.clear(); - } - if (gteBuilder_ != null) { - gteBuilder_.clear(); - } - within_ = null; - if (withinBuilder_ != null) { - withinBuilder_.dispose(); - withinBuilder_ = null; - } - if (exampleBuilder_ == null) { - example_ = java.util.Collections.emptyList(); - } else { - example_ = null; - exampleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_TimestampRules_descriptor; - } - - @java.lang.Override - public build.buf.validate.TimestampRules getDefaultInstanceForType() { - return build.buf.validate.TimestampRules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.TimestampRules build() { - build.buf.validate.TimestampRules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.TimestampRules buildPartial() { - build.buf.validate.TimestampRules result = new build.buf.validate.TimestampRules(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.TimestampRules result) { - if (exampleBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { - example_ = java.util.Collections.unmodifiableList(example_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.example_ = example_; - } else { - result.example_ = exampleBuilder_.build(); - } - } - - private void buildPartial0(build.buf.validate.TimestampRules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = constBuilder_ == null - ? const_ - : constBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.within_ = withinBuilder_ == null - ? within_ - : withinBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.TimestampRules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - if (lessThanCase_ == 3 && - ltBuilder_ != null) { - result.lessThan_ = ltBuilder_.build(); - } - if (lessThanCase_ == 4 && - lteBuilder_ != null) { - result.lessThan_ = lteBuilder_.build(); - } - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - if (greaterThanCase_ == 5 && - gtBuilder_ != null) { - result.greaterThan_ = gtBuilder_.build(); - } - if (greaterThanCase_ == 6 && - gteBuilder_ != null) { - result.greaterThan_ = gteBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.TimestampRules) { - return mergeFrom((build.buf.validate.TimestampRules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.TimestampRules other) { - if (other == build.buf.validate.TimestampRules.getDefaultInstance()) return this; - if (other.hasConst()) { - mergeConst(other.getConst()); - } - if (other.hasWithin()) { - mergeWithin(other.getWithin()); - } - if (exampleBuilder_ == null) { - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - } else { - if (!other.example_.isEmpty()) { - if (exampleBuilder_.isEmpty()) { - exampleBuilder_.dispose(); - exampleBuilder_ = null; - example_ = other.example_; - bitField0_ = (bitField0_ & ~0x00000100); - exampleBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetExampleFieldBuilder() : null; - } else { - exampleBuilder_.addAllMessages(other.example_); - } - } - } - switch (other.getLessThanCase()) { - case LT: { - mergeLt(other.getLt()); - break; - } - case LTE: { - mergeLte(other.getLte()); - break; - } - case LT_NOW: { - setLtNow(other.getLtNow()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - mergeGt(other.getGt()); - break; - } - case GTE: { - mergeGte(other.getGte()); - break; - } - case GT_NOW: { - setGtNow(other.getGtNow()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 18: { - input.readMessage( - internalGetConstFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: { - input.readMessage( - internalGetLtFieldBuilder().getBuilder(), - extensionRegistry); - lessThanCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - internalGetLteFieldBuilder().getBuilder(), - extensionRegistry); - lessThanCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - internalGetGtFieldBuilder().getBuilder(), - extensionRegistry); - greaterThanCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - internalGetGteFieldBuilder().getBuilder(), - extensionRegistry); - greaterThanCase_ = 6; - break; - } // case 50 - case 56: { - lessThan_ = input.readBool(); - lessThanCase_ = 7; - break; - } // case 56 - case 64: { - greaterThan_ = input.readBool(); - greaterThanCase_ = 8; - break; - } // case 64 - case 74: { - input.readMessage( - internalGetWithinFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 74 - case 82: { - com.google.protobuf.Timestamp m = - input.readMessage( - com.google.protobuf.Timestamp.parser(), - extensionRegistry); - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - example_.add(m); - } else { - exampleBuilder_.addMessage(m); - } - break; - } // case 82 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.Timestamp const_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> constBuilder_; - /** - *
-     * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must equal 2023-05-03T10:00:00Z
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must equal 2023-05-03T10:00:00Z
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - public com.google.protobuf.Timestamp getConst() { - if (constBuilder_ == null) { - return const_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : const_; - } else { - return constBuilder_.getMessage(); - } - } - /** - *
-     * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must equal 2023-05-03T10:00:00Z
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public Builder setConst(com.google.protobuf.Timestamp value) { - if (constBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - const_ = value; - } else { - constBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must equal 2023-05-03T10:00:00Z
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public Builder setConst( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (constBuilder_ == null) { - const_ = builderForValue.build(); - } else { - constBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must equal 2023-05-03T10:00:00Z
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public Builder mergeConst(com.google.protobuf.Timestamp value) { - if (constBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - const_ != null && - const_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getConstBuilder().mergeFrom(value); - } else { - const_ = value; - } - } else { - constBuilder_.mergeFrom(value); - } - if (const_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-     * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must equal 2023-05-03T10:00:00Z
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = null; - if (constBuilder_ != null) { - constBuilder_.dispose(); - constBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must equal 2023-05-03T10:00:00Z
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getConstBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetConstFieldBuilder().getBuilder(); - } - /** - *
-     * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must equal 2023-05-03T10:00:00Z
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getConstOrBuilder() { - if (constBuilder_ != null) { - return constBuilder_.getMessageOrBuilder(); - } else { - return const_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : const_; - } - } - /** - *
-     * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must equal 2023-05-03T10:00:00Z
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetConstFieldBuilder() { - if (constBuilder_ == null) { - constBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getConst(), - getParentForChildren(), - isClean()); - const_ = null; - } - return constBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> ltBuilder_; - /** - *
-     * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be less than 'P3D' [duration.lt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 3; - } - /** - *
-     * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be less than 'P3D' [duration.lt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getLt() { - if (ltBuilder_ == null) { - if (lessThanCase_ == 3) { - return (com.google.protobuf.Timestamp) lessThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (lessThanCase_ == 3) { - return ltBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - *
-     * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be less than 'P3D' [duration.lt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - public Builder setLt(com.google.protobuf.Timestamp value) { - if (ltBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lessThan_ = value; - onChanged(); - } else { - ltBuilder_.setMessage(value); - } - lessThanCase_ = 3; - return this; - } - /** - *
-     * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be less than 'P3D' [duration.lt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - public Builder setLt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (ltBuilder_ == null) { - lessThan_ = builderForValue.build(); - onChanged(); - } else { - ltBuilder_.setMessage(builderForValue.build()); - } - lessThanCase_ = 3; - return this; - } - /** - *
-     * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be less than 'P3D' [duration.lt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - public Builder mergeLt(com.google.protobuf.Timestamp value) { - if (ltBuilder_ == null) { - if (lessThanCase_ == 3 && - lessThan_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - lessThan_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) lessThan_) - .mergeFrom(value).buildPartial(); - } else { - lessThan_ = value; - } - onChanged(); - } else { - if (lessThanCase_ == 3) { - ltBuilder_.mergeFrom(value); - } else { - ltBuilder_.setMessage(value); - } - } - lessThanCase_ = 3; - return this; - } - /** - *
-     * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be less than 'P3D' [duration.lt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - public Builder clearLt() { - if (ltBuilder_ == null) { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - } else { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - } - ltBuilder_.clear(); - } - return this; - } - /** - *
-     * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be less than 'P3D' [duration.lt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getLtBuilder() { - return internalGetLtFieldBuilder().getBuilder(); - } - /** - *
-     * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be less than 'P3D' [duration.lt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getLtOrBuilder() { - if ((lessThanCase_ == 3) && (ltBuilder_ != null)) { - return ltBuilder_.getMessageOrBuilder(); - } else { - if (lessThanCase_ == 3) { - return (com.google.protobuf.Timestamp) lessThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - *
-     * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyDuration {
-     * // duration must be less than 'P3D' [duration.lt]
-     * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetLtFieldBuilder() { - if (ltBuilder_ == null) { - if (!(lessThanCase_ == 3)) { - lessThan_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - ltBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) lessThan_, - getParentForChildren(), - isClean()); - lessThan_ = null; - } - lessThanCase_ = 3; - onChanged(); - return ltBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lteBuilder_; - /** - *
-     * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 4; - } - /** - *
-     * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getLte() { - if (lteBuilder_ == null) { - if (lessThanCase_ == 4) { - return (com.google.protobuf.Timestamp) lessThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (lessThanCase_ == 4) { - return lteBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - *
-     * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - public Builder setLte(com.google.protobuf.Timestamp value) { - if (lteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lessThan_ = value; - onChanged(); - } else { - lteBuilder_.setMessage(value); - } - lessThanCase_ = 4; - return this; - } - /** - *
-     * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - public Builder setLte( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (lteBuilder_ == null) { - lessThan_ = builderForValue.build(); - onChanged(); - } else { - lteBuilder_.setMessage(builderForValue.build()); - } - lessThanCase_ = 4; - return this; - } - /** - *
-     * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - public Builder mergeLte(com.google.protobuf.Timestamp value) { - if (lteBuilder_ == null) { - if (lessThanCase_ == 4 && - lessThan_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - lessThan_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) lessThan_) - .mergeFrom(value).buildPartial(); - } else { - lessThan_ = value; - } - onChanged(); - } else { - if (lessThanCase_ == 4) { - lteBuilder_.mergeFrom(value); - } else { - lteBuilder_.setMessage(value); - } - } - lessThanCase_ = 4; - return this; - } - /** - *
-     * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - public Builder clearLte() { - if (lteBuilder_ == null) { - if (lessThanCase_ == 4) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - } else { - if (lessThanCase_ == 4) { - lessThanCase_ = 0; - lessThan_ = null; - } - lteBuilder_.clear(); - } - return this; - } - /** - *
-     * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getLteBuilder() { - return internalGetLteFieldBuilder().getBuilder(); - } - /** - *
-     * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getLteOrBuilder() { - if ((lessThanCase_ == 4) && (lteBuilder_ != null)) { - return lteBuilder_.getMessageOrBuilder(); - } else { - if (lessThanCase_ == 4) { - return (com.google.protobuf.Timestamp) lessThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - *
-     * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetLteFieldBuilder() { - if (lteBuilder_ == null) { - if (!(lessThanCase_ == 4)) { - lessThan_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - lteBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) lessThan_, - getParentForChildren(), - isClean()); - lessThan_ = null; - } - lessThanCase_ = 4; - onChanged(); - return lteBuilder_; - } - - /** - *
-     * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be less than now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
-     * }
-     * ```
-     * 
- * - * bool lt_now = 7 [json_name = "ltNow", (.buf.validate.predefined) = { ... } - * @return Whether the ltNow field is set. - */ - public boolean hasLtNow() { - return lessThanCase_ == 7; - } - /** - *
-     * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be less than now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
-     * }
-     * ```
-     * 
- * - * bool lt_now = 7 [json_name = "ltNow", (.buf.validate.predefined) = { ... } - * @return The ltNow. - */ - public boolean getLtNow() { - if (lessThanCase_ == 7) { - return (java.lang.Boolean) lessThan_; - } - return false; - } - /** - *
-     * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be less than now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
-     * }
-     * ```
-     * 
- * - * bool lt_now = 7 [json_name = "ltNow", (.buf.validate.predefined) = { ... } - * @param value The ltNow to set. - * @return This builder for chaining. - */ - public Builder setLtNow(boolean value) { - - lessThanCase_ = 7; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be less than now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
-     * }
-     * ```
-     * 
- * - * bool lt_now = 7 [json_name = "ltNow", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLtNow() { - if (lessThanCase_ == 7) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> gtBuilder_; - /** - *
-     * `gt` requires the timestamp field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gt` requires the timestamp field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getGt() { - if (gtBuilder_ == null) { - if (greaterThanCase_ == 5) { - return (com.google.protobuf.Timestamp) greaterThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (greaterThanCase_ == 5) { - return gtBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - *
-     * `gt` requires the timestamp field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - public Builder setGt(com.google.protobuf.Timestamp value) { - if (gtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - greaterThan_ = value; - onChanged(); - } else { - gtBuilder_.setMessage(value); - } - greaterThanCase_ = 5; - return this; - } - /** - *
-     * `gt` requires the timestamp field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - public Builder setGt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (gtBuilder_ == null) { - greaterThan_ = builderForValue.build(); - onChanged(); - } else { - gtBuilder_.setMessage(builderForValue.build()); - } - greaterThanCase_ = 5; - return this; - } - /** - *
-     * `gt` requires the timestamp field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - public Builder mergeGt(com.google.protobuf.Timestamp value) { - if (gtBuilder_ == null) { - if (greaterThanCase_ == 5 && - greaterThan_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - greaterThan_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) greaterThan_) - .mergeFrom(value).buildPartial(); - } else { - greaterThan_ = value; - } - onChanged(); - } else { - if (greaterThanCase_ == 5) { - gtBuilder_.mergeFrom(value); - } else { - gtBuilder_.setMessage(value); - } - } - greaterThanCase_ = 5; - return this; - } - /** - *
-     * `gt` requires the timestamp field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - public Builder clearGt() { - if (gtBuilder_ == null) { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - } else { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - } - gtBuilder_.clear(); - } - return this; - } - /** - *
-     * `gt` requires the timestamp field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getGtBuilder() { - return internalGetGtFieldBuilder().getBuilder(); - } - /** - *
-     * `gt` requires the timestamp field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getGtOrBuilder() { - if ((greaterThanCase_ == 5) && (gtBuilder_ != null)) { - return gtBuilder_.getMessageOrBuilder(); - } else { - if (greaterThanCase_ == 5) { - return (com.google.protobuf.Timestamp) greaterThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - *
-     * `gt` requires the timestamp field value to be greater than the specified
-     * value (exclusive). If the value of `gt` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetGtFieldBuilder() { - if (gtBuilder_ == null) { - if (!(greaterThanCase_ == 5)) { - greaterThan_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - gtBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) greaterThan_, - getParentForChildren(), - isClean()); - greaterThan_ = null; - } - greaterThanCase_ = 5; - onChanged(); - return gtBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> gteBuilder_; - /** - *
-     * `gte` requires the timestamp field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value
-     * must be outside the specified range. If the field value doesn't meet
-     * the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 6; - } - /** - *
-     * `gte` requires the timestamp field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value
-     * must be outside the specified range. If the field value doesn't meet
-     * the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getGte() { - if (gteBuilder_ == null) { - if (greaterThanCase_ == 6) { - return (com.google.protobuf.Timestamp) greaterThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (greaterThanCase_ == 6) { - return gteBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - *
-     * `gte` requires the timestamp field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value
-     * must be outside the specified range. If the field value doesn't meet
-     * the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - public Builder setGte(com.google.protobuf.Timestamp value) { - if (gteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - greaterThan_ = value; - onChanged(); - } else { - gteBuilder_.setMessage(value); - } - greaterThanCase_ = 6; - return this; - } - /** - *
-     * `gte` requires the timestamp field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value
-     * must be outside the specified range. If the field value doesn't meet
-     * the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - public Builder setGte( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (gteBuilder_ == null) { - greaterThan_ = builderForValue.build(); - onChanged(); - } else { - gteBuilder_.setMessage(builderForValue.build()); - } - greaterThanCase_ = 6; - return this; - } - /** - *
-     * `gte` requires the timestamp field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value
-     * must be outside the specified range. If the field value doesn't meet
-     * the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - public Builder mergeGte(com.google.protobuf.Timestamp value) { - if (gteBuilder_ == null) { - if (greaterThanCase_ == 6 && - greaterThan_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - greaterThan_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) greaterThan_) - .mergeFrom(value).buildPartial(); - } else { - greaterThan_ = value; - } - onChanged(); - } else { - if (greaterThanCase_ == 6) { - gteBuilder_.mergeFrom(value); - } else { - gteBuilder_.setMessage(value); - } - } - greaterThanCase_ = 6; - return this; - } - /** - *
-     * `gte` requires the timestamp field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value
-     * must be outside the specified range. If the field value doesn't meet
-     * the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - public Builder clearGte() { - if (gteBuilder_ == null) { - if (greaterThanCase_ == 6) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - } else { - if (greaterThanCase_ == 6) { - greaterThanCase_ = 0; - greaterThan_ = null; - } - gteBuilder_.clear(); - } - return this; - } - /** - *
-     * `gte` requires the timestamp field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value
-     * must be outside the specified range. If the field value doesn't meet
-     * the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getGteBuilder() { - return internalGetGteFieldBuilder().getBuilder(); - } - /** - *
-     * `gte` requires the timestamp field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value
-     * must be outside the specified range. If the field value doesn't meet
-     * the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getGteOrBuilder() { - if ((greaterThanCase_ == 6) && (gteBuilder_ != null)) { - return gteBuilder_.getMessageOrBuilder(); - } else { - if (greaterThanCase_ == 6) { - return (com.google.protobuf.Timestamp) greaterThan_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - *
-     * `gte` requires the timestamp field value to be greater than or equal to the
-     * specified value (exclusive). If the value of `gte` is larger than a
-     * specified `lt` or `lte`, the range is reversed, and the field value
-     * must be outside the specified range. If the field value doesn't meet
-     * the required conditions, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-     * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-     * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-     *
-     * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-     * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-     * }
-     * ```
-     * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetGteFieldBuilder() { - if (gteBuilder_ == null) { - if (!(greaterThanCase_ == 6)) { - greaterThan_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - gteBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) greaterThan_, - getParentForChildren(), - isClean()); - greaterThan_ = null; - } - greaterThanCase_ = 6; - onChanged(); - return gteBuilder_; - } - - /** - *
-     * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be greater than now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
-     * }
-     * ```
-     * 
- * - * bool gt_now = 8 [json_name = "gtNow", (.buf.validate.predefined) = { ... } - * @return Whether the gtNow field is set. - */ - public boolean hasGtNow() { - return greaterThanCase_ == 8; - } - /** - *
-     * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be greater than now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
-     * }
-     * ```
-     * 
- * - * bool gt_now = 8 [json_name = "gtNow", (.buf.validate.predefined) = { ... } - * @return The gtNow. - */ - public boolean getGtNow() { - if (greaterThanCase_ == 8) { - return (java.lang.Boolean) greaterThan_; - } - return false; - } - /** - *
-     * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be greater than now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
-     * }
-     * ```
-     * 
- * - * bool gt_now = 8 [json_name = "gtNow", (.buf.validate.predefined) = { ... } - * @param value The gtNow to set. - * @return This builder for chaining. - */ - public Builder setGtNow(boolean value) { - - greaterThanCase_ = 8; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be greater than now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
-     * }
-     * ```
-     * 
- * - * bool gt_now = 8 [json_name = "gtNow", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGtNow() { - if (greaterThanCase_ == 8) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Duration within_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> withinBuilder_; - /** - *
-     * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be within 1 hour of now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - * @return Whether the within field is set. - */ - public boolean hasWithin() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be within 1 hour of now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - * @return The within. - */ - public com.google.protobuf.Duration getWithin() { - if (withinBuilder_ == null) { - return within_ == null ? com.google.protobuf.Duration.getDefaultInstance() : within_; - } else { - return withinBuilder_.getMessage(); - } - } - /** - *
-     * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be within 1 hour of now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - */ - public Builder setWithin(com.google.protobuf.Duration value) { - if (withinBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - within_ = value; - } else { - withinBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be within 1 hour of now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - */ - public Builder setWithin( - com.google.protobuf.Duration.Builder builderForValue) { - if (withinBuilder_ == null) { - within_ = builderForValue.build(); - } else { - withinBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be within 1 hour of now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - */ - public Builder mergeWithin(com.google.protobuf.Duration value) { - if (withinBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - within_ != null && - within_ != com.google.protobuf.Duration.getDefaultInstance()) { - getWithinBuilder().mergeFrom(value); - } else { - within_ = value; - } - } else { - withinBuilder_.mergeFrom(value); - } - if (within_ != null) { - bitField0_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - *
-     * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be within 1 hour of now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - */ - public Builder clearWithin() { - bitField0_ = (bitField0_ & ~0x00000080); - within_ = null; - if (withinBuilder_ != null) { - withinBuilder_.dispose(); - withinBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be within 1 hour of now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Duration.Builder getWithinBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return internalGetWithinFieldBuilder().getBuilder(); - } - /** - *
-     * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be within 1 hour of now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.DurationOrBuilder getWithinOrBuilder() { - if (withinBuilder_ != null) { - return withinBuilder_.getMessageOrBuilder(); - } else { - return within_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : within_; - } - } - /** - *
-     * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-     *
-     * ```proto
-     * message MyTimestamp {
-     * // value must be within 1 hour of now
-     * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-     * }
-     * ```
-     * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - internalGetWithinFieldBuilder() { - if (withinBuilder_ == null) { - withinBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getWithin(), - getParentForChildren(), - isClean()); - within_ = null; - } - return withinBuilder_; - } - - private java.util.List example_ = - java.util.Collections.emptyList(); - private void ensureExampleIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - example_ = new java.util.ArrayList(example_); - bitField0_ |= 0x00000100; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> exampleBuilder_; - - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public java.util.List getExampleList() { - if (exampleBuilder_ == null) { - return java.util.Collections.unmodifiableList(example_); - } else { - return exampleBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public int getExampleCount() { - if (exampleBuilder_ == null) { - return example_.size(); - } else { - return exampleBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Timestamp getExample(int index) { - if (exampleBuilder_ == null) { - return example_.get(index); - } else { - return exampleBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder setExample( - int index, com.google.protobuf.Timestamp value) { - if (exampleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExampleIsMutable(); - example_.set(index, value); - onChanged(); - } else { - exampleBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder setExample( - int index, com.google.protobuf.Timestamp.Builder builderForValue) { - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - example_.set(index, builderForValue.build()); - onChanged(); - } else { - exampleBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder addExample(com.google.protobuf.Timestamp value) { - if (exampleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExampleIsMutable(); - example_.add(value); - onChanged(); - } else { - exampleBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder addExample( - int index, com.google.protobuf.Timestamp value) { - if (exampleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExampleIsMutable(); - example_.add(index, value); - onChanged(); - } else { - exampleBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder addExample( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - example_.add(builderForValue.build()); - onChanged(); - } else { - exampleBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder addExample( - int index, com.google.protobuf.Timestamp.Builder builderForValue) { - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - example_.add(index, builderForValue.build()); - onChanged(); - } else { - exampleBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder addAllExample( - java.lang.Iterable values) { - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - onChanged(); - } else { - exampleBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder clearExample() { - if (exampleBuilder_ == null) { - example_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - } else { - exampleBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public Builder removeExample(int index) { - if (exampleBuilder_ == null) { - ensureExampleIsMutable(); - example_.remove(index); - onChanged(); - } else { - exampleBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Timestamp.Builder getExampleBuilder( - int index) { - return internalGetExampleFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.TimestampOrBuilder getExampleOrBuilder( - int index) { - if (exampleBuilder_ == null) { - return example_.get(index); } else { - return exampleBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public java.util.List - getExampleOrBuilderList() { - if (exampleBuilder_ != null) { - return exampleBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(example_); - } - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Timestamp.Builder addExampleBuilder() { - return internalGetExampleFieldBuilder().addBuilder( - com.google.protobuf.Timestamp.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public com.google.protobuf.Timestamp.Builder addExampleBuilder( - int index) { - return internalGetExampleFieldBuilder().addBuilder( - index, com.google.protobuf.Timestamp.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - public java.util.List - getExampleBuilderList() { - return internalGetExampleFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - internalGetExampleFieldBuilder() { - if (exampleBuilder_ == null) { - exampleBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - example_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); - example_ = null; - } - return exampleBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.TimestampRules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.TimestampRules) - private static final build.buf.validate.TimestampRules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.TimestampRules(); - } - - public static build.buf.validate.TimestampRules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimestampRules 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.TimestampRules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/TimestampRulesOrBuilder.java b/src/main/java/build/buf/validate/TimestampRulesOrBuilder.java deleted file mode 100644 index 60730f80..00000000 --- a/src/main/java/build/buf/validate/TimestampRulesOrBuilder.java +++ /dev/null @@ -1,454 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface TimestampRulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.TimestampRules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must equal 2023-05-03T10:00:00Z
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must equal 2023-05-03T10:00:00Z
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - com.google.protobuf.Timestamp getConst(); - /** - *
-   * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must equal 2023-05-03T10:00:00Z
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Timestamp const = 2 [json_name = "const", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getConstOrBuilder(); - - /** - *
-   * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be less than 'P3D' [duration.lt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be less than 'P3D' [duration.lt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - com.google.protobuf.Timestamp getLt(); - /** - *
-   * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyDuration {
-   * // duration must be less than 'P3D' [duration.lt]
-   * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lt = 3 [json_name = "lt", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getLtOrBuilder(); - - /** - *
-   * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - com.google.protobuf.Timestamp getLte(); - /** - *
-   * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp lte = 4 [json_name = "lte", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getLteOrBuilder(); - - /** - *
-   * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be less than now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
-   * }
-   * ```
-   * 
- * - * bool lt_now = 7 [json_name = "ltNow", (.buf.validate.predefined) = { ... } - * @return Whether the ltNow field is set. - */ - boolean hasLtNow(); - /** - *
-   * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be less than now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
-   * }
-   * ```
-   * 
- * - * bool lt_now = 7 [json_name = "ltNow", (.buf.validate.predefined) = { ... } - * @return The ltNow. - */ - boolean getLtNow(); - - /** - *
-   * `gt` requires the timestamp field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the timestamp field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - com.google.protobuf.Timestamp getGt(); - /** - *
-   * `gt` requires the timestamp field value to be greater than the specified
-   * value (exclusive). If the value of `gt` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gt = 5 [json_name = "gt", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getGtOrBuilder(); - - /** - *
-   * `gte` requires the timestamp field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value
-   * must be outside the specified range. If the field value doesn't meet
-   * the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the timestamp field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value
-   * must be outside the specified range. If the field value doesn't meet
-   * the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - com.google.protobuf.Timestamp getGte(); - /** - *
-   * `gte` requires the timestamp field value to be greater than or equal to the
-   * specified value (exclusive). If the value of `gte` is larger than a
-   * specified `lt` or `lte`, the range is reversed, and the field value
-   * must be outside the specified range. If the field value doesn't meet
-   * the required conditions, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
-   * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
-   * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
-   *
-   * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
-   * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
-   * }
-   * ```
-   * 
- * - * .google.protobuf.Timestamp gte = 6 [json_name = "gte", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getGteOrBuilder(); - - /** - *
-   * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be greater than now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
-   * }
-   * ```
-   * 
- * - * bool gt_now = 8 [json_name = "gtNow", (.buf.validate.predefined) = { ... } - * @return Whether the gtNow field is set. - */ - boolean hasGtNow(); - /** - *
-   * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be greater than now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
-   * }
-   * ```
-   * 
- * - * bool gt_now = 8 [json_name = "gtNow", (.buf.validate.predefined) = { ... } - * @return The gtNow. - */ - boolean getGtNow(); - - /** - *
-   * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be within 1 hour of now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - * @return Whether the within field is set. - */ - boolean hasWithin(); - /** - *
-   * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be within 1 hour of now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - * @return The within. - */ - com.google.protobuf.Duration getWithin(); - /** - *
-   * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
-   *
-   * ```proto
-   * message MyTimestamp {
-   * // value must be within 1 hour of now
-   * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
-   * }
-   * ```
-   * 
- * - * optional .google.protobuf.Duration within = 9 [json_name = "within", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.DurationOrBuilder getWithinOrBuilder(); - - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - java.util.List - getExampleList(); - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.Timestamp getExample(int index); - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - int getExampleCount(); - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - java.util.List - getExampleOrBuilderList(); - /** - * repeated .google.protobuf.Timestamp example = 10 [json_name = "example", (.buf.validate.predefined) = { ... } - */ - com.google.protobuf.TimestampOrBuilder getExampleOrBuilder( - int index); - - build.buf.validate.TimestampRules.LessThanCase getLessThanCase(); - - build.buf.validate.TimestampRules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/UInt32Rules.java b/src/main/java/build/buf/validate/UInt32Rules.java deleted file mode 100644 index f19e3df6..00000000 --- a/src/main/java/build/buf/validate/UInt32Rules.java +++ /dev/null @@ -1,2376 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * UInt32Rules describes the constraints applied to `uint32` values. These
- * rules may also be applied to the `google.protobuf.UInt32Value` Well-Known-Type.
- * 
- * - * Protobuf type {@code buf.validate.UInt32Rules} - */ -public final class UInt32Rules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - UInt32Rules> implements - // @@protoc_insertion_point(message_implements:buf.validate.UInt32Rules) - UInt32RulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt32Rules.class.getName()); - } - // Use UInt32Rules.newBuilder() to construct. - private UInt32Rules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private UInt32Rules() { - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt32Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt32Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.UInt32Rules.class, build.buf.validate.UInt32Rules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private int const_ = 0; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must equal 42
-   * uint32 value = 1 [(buf.validate.field).uint32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional uint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must equal 42
-   * uint32 value = 1 [(buf.validate.field).uint32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional uint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be less than 10
-   * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
-   * }
-   * ```
-   * 
- * - * uint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be less than 10
-   * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
-   * }
-   * ```
-   * 
- * - * uint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public int getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be less than or equal to 10
-   * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
-   * }
-   * ```
-   * 
- * - * uint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be less than or equal to 10
-   * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
-   * }
-   * ```
-   * 
- * - * uint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public int getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be greater than 5 [uint32.gt]
-   * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [uint32.gt_lt]
-   * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
-   * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be greater than 5 [uint32.gt]
-   * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [uint32.gt_lt]
-   * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
-   * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public int getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be greater than or equal to 5 [uint32.gte]
-   * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
-   * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
-   * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be greater than or equal to 5 [uint32.gte]
-   * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
-   * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
-   * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public int getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList in_ = - emptyIntList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList notIn_ = - emptyIntList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must not be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must not be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must not be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList example_ = - emptyIntList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * uint32 value = 1 [
-   * (buf.validate.field).uint32.example = 1,
-   * (buf.validate.field).uint32.example = 10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * uint32 value = 1 [
-   * (buf.validate.field).uint32.example = 1,
-   * (buf.validate.field).uint32.example = 10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * uint32 value = 1 [
-   * (buf.validate.field).uint32.example = 1,
-   * (buf.validate.field).uint32.example = 10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeUInt32(1, const_); - } - if (lessThanCase_ == 2) { - output.writeUInt32( - 2, (int)((java.lang.Integer) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeUInt32( - 3, (int)((java.lang.Integer) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeUInt32( - 4, (int)((java.lang.Integer) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeUInt32( - 5, (int)((java.lang.Integer) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeUInt32(6, in_.getInt(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeUInt32(7, notIn_.getInt(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeUInt32(8, example_.getInt(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 2, (int)((java.lang.Integer) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 3, (int)((java.lang.Integer) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 4, (int)((java.lang.Integer) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 5, (int)((java.lang.Integer) greaterThan_)); - } - { - int dataSize = 0; - for (int i = 0; i < in_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(in_.getInt(i)); - } - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < notIn_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(notIn_.getInt(i)); - } - size += dataSize; - size += 1 * getNotInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < example_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(example_.getInt(i)); - } - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.UInt32Rules)) { - return super.equals(obj); - } - build.buf.validate.UInt32Rules other = (build.buf.validate.UInt32Rules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (getLt() - != other.getLt()) return false; - break; - case 3: - if (getLte() - != other.getLte()) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (getGt() - != other.getGt()) return false; - break; - case 5: - if (getGte() - != other.getGte()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + getConst(); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + getLt(); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + getLte(); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + getGt(); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + getGte(); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.UInt32Rules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.UInt32Rules 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.UInt32Rules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.UInt32Rules 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.UInt32Rules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.UInt32Rules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.UInt32Rules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.UInt32Rules 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.UInt32Rules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.UInt32Rules 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.UInt32Rules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.UInt32Rules 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.UInt32Rules 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; - } - /** - *
-   * UInt32Rules describes the constraints applied to `uint32` values. These
-   * rules may also be applied to the `google.protobuf.UInt32Value` Well-Known-Type.
-   * 
- * - * Protobuf type {@code buf.validate.UInt32Rules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.UInt32Rules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.UInt32Rules) - build.buf.validate.UInt32RulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt32Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt32Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.UInt32Rules.class, build.buf.validate.UInt32Rules.Builder.class); - } - - // Construct using build.buf.validate.UInt32Rules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0; - in_ = emptyIntList(); - notIn_ = emptyIntList(); - example_ = emptyIntList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt32Rules_descriptor; - } - - @java.lang.Override - public build.buf.validate.UInt32Rules getDefaultInstanceForType() { - return build.buf.validate.UInt32Rules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.UInt32Rules build() { - build.buf.validate.UInt32Rules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.UInt32Rules buildPartial() { - build.buf.validate.UInt32Rules result = new build.buf.validate.UInt32Rules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.UInt32Rules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.UInt32Rules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.UInt32Rules) { - return mergeFrom((build.buf.validate.UInt32Rules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.UInt32Rules other) { - if (other == build.buf.validate.UInt32Rules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000080; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 8: { - const_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - lessThan_ = input.readUInt32(); - lessThanCase_ = 2; - break; - } // case 16 - case 24: { - lessThan_ = input.readUInt32(); - lessThanCase_ = 3; - break; - } // case 24 - case 32: { - greaterThan_ = input.readUInt32(); - greaterThanCase_ = 4; - break; - } // case 32 - case 40: { - greaterThan_ = input.readUInt32(); - greaterThanCase_ = 5; - break; - } // case 40 - case 48: { - int v = input.readUInt32(); - ensureInIsMutable(); - in_.addInt(v); - break; - } // case 48 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - in_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } // case 50 - case 56: { - int v = input.readUInt32(); - ensureNotInIsMutable(); - notIn_.addInt(v); - break; - } // case 56 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureNotInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - notIn_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } // case 58 - case 64: { - int v = input.readUInt32(); - ensureExampleIsMutable(); - example_.addInt(v); - break; - } // case 64 - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureExampleIsMutable(); - while (input.getBytesUntilLimit() > 0) { - example_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } // case 66 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must equal 42
-     * uint32 value = 1 [(buf.validate.field).uint32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional uint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must equal 42
-     * uint32 value = 1 [(buf.validate.field).uint32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional uint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public int getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must equal 42
-     * uint32 value = 1 [(buf.validate.field).uint32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional uint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(int value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must equal 42
-     * uint32 value = 1 [(buf.validate.field).uint32.const = 42];
-     * }
-     * ```
-     * 
- * - * optional uint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be less than 10
-     * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
-     * }
-     * ```
-     * 
- * - * uint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be less than 10
-     * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
-     * }
-     * ```
-     * 
- * - * uint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public int getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be less than 10
-     * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
-     * }
-     * ```
-     * 
- * - * uint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(int value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be less than 10
-     * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
-     * }
-     * ```
-     * 
- * - * uint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be less than or equal to 10
-     * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
-     * }
-     * ```
-     * 
- * - * uint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be less than or equal to 10
-     * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
-     * }
-     * ```
-     * 
- * - * uint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public int getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Integer) lessThan_; - } - return 0; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be less than or equal to 10
-     * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
-     * }
-     * ```
-     * 
- * - * uint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(int value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be less than or equal to 10
-     * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
-     * }
-     * ```
-     * 
- * - * uint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be greater than 5 [uint32.gt]
-     * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [uint32.gt_lt]
-     * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
-     * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be greater than 5 [uint32.gt]
-     * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [uint32.gt_lt]
-     * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
-     * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public int getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be greater than 5 [uint32.gt]
-     * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [uint32.gt_lt]
-     * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
-     * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(int value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be greater than 5 [uint32.gt]
-     * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [uint32.gt_lt]
-     * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
-     * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be greater than or equal to 5 [uint32.gte]
-     * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
-     * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
-     * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be greater than or equal to 5 [uint32.gte]
-     * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
-     * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
-     * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public int getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Integer) greaterThan_; - } - return 0; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be greater than or equal to 5 [uint32.gte]
-     * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
-     * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
-     * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(int value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be greater than or equal to 5 [uint32.gte]
-     * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
-     * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
-     * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.IntList in_ = emptyIntList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public int getIn(int index) { - return in_.getInt(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, int value) { - - ensureInIsMutable(); - in_.setInt(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(int value) { - - ensureInIsMutable(); - in_.addInt(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList notIn_ = emptyIntList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must not be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must not be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must not be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public int getNotIn(int index) { - return notIn_.getInt(index); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must not be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, int value) { - - ensureNotInIsMutable(); - notIn_.setInt(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must not be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(int value) { - - ensureNotInIsMutable(); - notIn_.addInt(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must not be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * // value must not be in list [1, 2, 3]
-     * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList example_ = emptyIntList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000080; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * uint32 value = 1 [
-     * (buf.validate.field).uint32.example = 1,
-     * (buf.validate.field).uint32.example = 10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * uint32 value = 1 [
-     * (buf.validate.field).uint32.example = 1,
-     * (buf.validate.field).uint32.example = 10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * uint32 value = 1 [
-     * (buf.validate.field).uint32.example = 1,
-     * (buf.validate.field).uint32.example = 10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public int getExample(int index) { - return example_.getInt(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * uint32 value = 1 [
-     * (buf.validate.field).uint32.example = 1,
-     * (buf.validate.field).uint32.example = 10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, int value) { - - ensureExampleIsMutable(); - example_.setInt(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * uint32 value = 1 [
-     * (buf.validate.field).uint32.example = 1,
-     * (buf.validate.field).uint32.example = 10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(int value) { - - ensureExampleIsMutable(); - example_.addInt(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * uint32 value = 1 [
-     * (buf.validate.field).uint32.example = 1,
-     * (buf.validate.field).uint32.example = 10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt32 {
-     * uint32 value = 1 [
-     * (buf.validate.field).uint32.example = 1,
-     * (buf.validate.field).uint32.example = 10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.UInt32Rules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.UInt32Rules) - private static final build.buf.validate.UInt32Rules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.UInt32Rules(); - } - - public static build.buf.validate.UInt32Rules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt32Rules 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.UInt32Rules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/UInt32RulesOrBuilder.java b/src/main/java/build/buf/validate/UInt32RulesOrBuilder.java deleted file mode 100644 index 1ab31b75..00000000 --- a/src/main/java/build/buf/validate/UInt32RulesOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface UInt32RulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.UInt32Rules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must equal 42
-   * uint32 value = 1 [(buf.validate.field).uint32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional uint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must equal 42
-   * uint32 value = 1 [(buf.validate.field).uint32.const = 42];
-   * }
-   * ```
-   * 
- * - * optional uint32 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - int getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be less than 10
-   * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
-   * }
-   * ```
-   * 
- * - * uint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be less than 10
-   * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
-   * }
-   * ```
-   * 
- * - * uint32 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - int getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be less than or equal to 10
-   * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
-   * }
-   * ```
-   * 
- * - * uint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be less than or equal to 10
-   * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
-   * }
-   * ```
-   * 
- * - * uint32 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - int getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be greater than 5 [uint32.gt]
-   * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [uint32.gt_lt]
-   * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
-   * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be greater than 5 [uint32.gt]
-   * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [uint32.gt_lt]
-   * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
-   * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint32 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - int getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be greater than or equal to 5 [uint32.gte]
-   * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
-   * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
-   * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be greater than or equal to 5 [uint32.gte]
-   * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
-   * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
-   * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint32 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - int getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - int getIn(int index); - - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must not be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must not be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * // value must not be in list [1, 2, 3]
-   * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint32 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - int getNotIn(int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * uint32 value = 1 [
-   * (buf.validate.field).uint32.example = 1,
-   * (buf.validate.field).uint32.example = 10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * uint32 value = 1 [
-   * (buf.validate.field).uint32.example = 1,
-   * (buf.validate.field).uint32.example = 10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt32 {
-   * uint32 value = 1 [
-   * (buf.validate.field).uint32.example = 1,
-   * (buf.validate.field).uint32.example = 10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint32 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - int getExample(int index); - - build.buf.validate.UInt32Rules.LessThanCase getLessThanCase(); - - build.buf.validate.UInt32Rules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/UInt64Rules.java b/src/main/java/build/buf/validate/UInt64Rules.java deleted file mode 100644 index 31b7774a..00000000 --- a/src/main/java/build/buf/validate/UInt64Rules.java +++ /dev/null @@ -1,2381 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * UInt64Rules describes the constraints applied to `uint64` values. These
- * rules may also be applied to the `google.protobuf.UInt64Value` Well-Known-Type.
- * 
- * - * Protobuf type {@code buf.validate.UInt64Rules} - */ -public final class UInt64Rules extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - UInt64Rules> implements - // @@protoc_insertion_point(message_implements:buf.validate.UInt64Rules) - UInt64RulesOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - UInt64Rules.class.getName()); - } - // Use UInt64Rules.newBuilder() to construct. - private UInt64Rules(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { - super(builder); - } - private UInt64Rules() { - in_ = emptyLongList(); - notIn_ = emptyLongList(); - example_ = emptyLongList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt64Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt64Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.UInt64Rules.class, build.buf.validate.UInt64Rules.Builder.class); - } - - private int bitField0_; - private int lessThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object lessThan_; - public enum LessThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LT(2), - LTE(3), - LESSTHAN_NOT_SET(0); - private final int value; - private LessThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LessThanCase valueOf(int value) { - return forNumber(value); - } - - public static LessThanCase forNumber(int value) { - switch (value) { - case 2: return LT; - case 3: return LTE; - case 0: return LESSTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - private int greaterThanCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object greaterThan_; - public enum GreaterThanCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GT(4), - GTE(5), - GREATERTHAN_NOT_SET(0); - private final int value; - private GreaterThanCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GreaterThanCase valueOf(int value) { - return forNumber(value); - } - - public static GreaterThanCase forNumber(int value) { - switch (value) { - case 4: return GT; - case 5: return GTE; - case 0: return GREATERTHAN_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public static final int CONST_FIELD_NUMBER = 1; - private long const_ = 0L; - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must equal 42
-   * uint64 value = 1 [(buf.validate.field).uint64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional uint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must equal 42
-   * uint64 value = 1 [(buf.validate.field).uint64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional uint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public long getConst() { - return const_; - } - - public static final int LT_FIELD_NUMBER = 2; - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be less than 10
-   * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
-   * }
-   * ```
-   * 
- * - * uint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - @java.lang.Override - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be less than 10
-   * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
-   * }
-   * ```
-   * 
- * - * uint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - @java.lang.Override - public long getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - - public static final int LTE_FIELD_NUMBER = 3; - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be less than or equal to 10
-   * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
-   * }
-   * ```
-   * 
- * - * uint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - @java.lang.Override - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be less than or equal to 10
-   * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
-   * }
-   * ```
-   * 
- * - * uint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - @java.lang.Override - public long getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - - public static final int GT_FIELD_NUMBER = 4; - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be greater than 5 [uint64.gt]
-   * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [uint64.gt_lt]
-   * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
-   * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - @java.lang.Override - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be greater than 5 [uint64.gt]
-   * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [uint64.gt_lt]
-   * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
-   * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - @java.lang.Override - public long getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - - public static final int GTE_FIELD_NUMBER = 5; - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be greater than or equal to 5 [uint64.gte]
-   * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
-   * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
-   * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - @java.lang.Override - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be greater than or equal to 5 [uint64.gte]
-   * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
-   * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
-   * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - @java.lang.Override - public long getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - - public static final int IN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList in_ = - emptyLongList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - @java.lang.Override - public java.util.List - getInList() { - return in_; - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public long getIn(int index) { - return in_.getLong(index); - } - - public static final int NOT_IN_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList notIn_ = - emptyLongList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must not be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - @java.lang.Override - public java.util.List - getNotInList() { - return notIn_; - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must not be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must not be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public long getNotIn(int index) { - return notIn_.getLong(index); - } - - public static final int EXAMPLE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList example_ = - emptyLongList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * uint64 value = 1 [
-   * (buf.validate.field).uint64.example = 1,
-   * (buf.validate.field).uint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - @java.lang.Override - public java.util.List - getExampleList() { - return example_; - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * uint64 value = 1 [
-   * (buf.validate.field).uint64.example = 1,
-   * (buf.validate.field).uint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * uint64 value = 1 [
-   * (buf.validate.field).uint64.example = 1,
-   * (buf.validate.field).uint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public long getExample(int index) { - return example_.getLong(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; - - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionSerializer - extensionWriter = newExtensionSerializer(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeUInt64(1, const_); - } - if (lessThanCase_ == 2) { - output.writeUInt64( - 2, (long)((java.lang.Long) lessThan_)); - } - if (lessThanCase_ == 3) { - output.writeUInt64( - 3, (long)((java.lang.Long) lessThan_)); - } - if (greaterThanCase_ == 4) { - output.writeUInt64( - 4, (long)((java.lang.Long) greaterThan_)); - } - if (greaterThanCase_ == 5) { - output.writeUInt64( - 5, (long)((java.lang.Long) greaterThan_)); - } - for (int i = 0; i < in_.size(); i++) { - output.writeUInt64(6, in_.getLong(i)); - } - for (int i = 0; i < notIn_.size(); i++) { - output.writeUInt64(7, notIn_.getLong(i)); - } - for (int i = 0; i < example_.size(); i++) { - output.writeUInt64(8, example_.getLong(i)); - } - extensionWriter.writeUntil(536870912, output); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, const_); - } - if (lessThanCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size( - 2, (long)((java.lang.Long) lessThan_)); - } - if (lessThanCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size( - 3, (long)((java.lang.Long) lessThan_)); - } - if (greaterThanCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size( - 4, (long)((java.lang.Long) greaterThan_)); - } - if (greaterThanCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size( - 5, (long)((java.lang.Long) greaterThan_)); - } - { - int dataSize = 0; - for (int i = 0; i < in_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(in_.getLong(i)); - } - size += dataSize; - size += 1 * getInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < notIn_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(notIn_.getLong(i)); - } - size += dataSize; - size += 1 * getNotInList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < example_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(example_.getLong(i)); - } - size += dataSize; - size += 1 * getExampleList().size(); - } - size += extensionsSerializedSize(); - 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.UInt64Rules)) { - return super.equals(obj); - } - build.buf.validate.UInt64Rules other = (build.buf.validate.UInt64Rules) obj; - - if (hasConst() != other.hasConst()) return false; - if (hasConst()) { - if (getConst() - != other.getConst()) return false; - } - if (!getInList() - .equals(other.getInList())) return false; - if (!getNotInList() - .equals(other.getNotInList())) return false; - if (!getExampleList() - .equals(other.getExampleList())) return false; - if (!getLessThanCase().equals(other.getLessThanCase())) return false; - switch (lessThanCase_) { - case 2: - if (getLt() - != other.getLt()) return false; - break; - case 3: - if (getLte() - != other.getLte()) return false; - break; - case 0: - default: - } - if (!getGreaterThanCase().equals(other.getGreaterThanCase())) return false; - switch (greaterThanCase_) { - case 4: - if (getGt() - != other.getGt()) return false; - break; - case 5: - if (getGte() - != other.getGte()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConst()) { - hash = (37 * hash) + CONST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConst()); - } - if (getInCount() > 0) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getInList().hashCode(); - } - if (getNotInCount() > 0) { - hash = (37 * hash) + NOT_IN_FIELD_NUMBER; - hash = (53 * hash) + getNotInList().hashCode(); - } - if (getExampleCount() > 0) { - hash = (37 * hash) + EXAMPLE_FIELD_NUMBER; - hash = (53 * hash) + getExampleList().hashCode(); - } - switch (lessThanCase_) { - case 2: - hash = (37 * hash) + LT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLt()); - break; - case 3: - hash = (37 * hash) + LTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLte()); - break; - case 0: - default: - } - switch (greaterThanCase_) { - case 4: - hash = (37 * hash) + GT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGt()); - break; - case 5: - hash = (37 * hash) + GTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGte()); - break; - case 0: - default: - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.UInt64Rules parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.UInt64Rules 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.UInt64Rules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.UInt64Rules 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.UInt64Rules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.UInt64Rules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.UInt64Rules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.UInt64Rules 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.UInt64Rules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.UInt64Rules 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.UInt64Rules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.UInt64Rules 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.UInt64Rules 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; - } - /** - *
-   * UInt64Rules describes the constraints applied to `uint64` values. These
-   * rules may also be applied to the `google.protobuf.UInt64Value` Well-Known-Type.
-   * 
- * - * Protobuf type {@code buf.validate.UInt64Rules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - build.buf.validate.UInt64Rules, Builder> implements - // @@protoc_insertion_point(builder_implements:buf.validate.UInt64Rules) - build.buf.validate.UInt64RulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt64Rules_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt64Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.UInt64Rules.class, build.buf.validate.UInt64Rules.Builder.class); - } - - // Construct using build.buf.validate.UInt64Rules.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - const_ = 0L; - in_ = emptyLongList(); - notIn_ = emptyLongList(); - example_ = emptyLongList(); - lessThanCase_ = 0; - lessThan_ = null; - greaterThanCase_ = 0; - greaterThan_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_UInt64Rules_descriptor; - } - - @java.lang.Override - public build.buf.validate.UInt64Rules getDefaultInstanceForType() { - return build.buf.validate.UInt64Rules.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.UInt64Rules build() { - build.buf.validate.UInt64Rules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.UInt64Rules buildPartial() { - build.buf.validate.UInt64Rules result = new build.buf.validate.UInt64Rules(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.UInt64Rules result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.const_ = const_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - in_.makeImmutable(); - result.in_ = in_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - notIn_.makeImmutable(); - result.notIn_ = notIn_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - example_.makeImmutable(); - result.example_ = example_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(build.buf.validate.UInt64Rules result) { - result.lessThanCase_ = lessThanCase_; - result.lessThan_ = this.lessThan_; - result.greaterThanCase_ = greaterThanCase_; - result.greaterThan_ = this.greaterThan_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.UInt64Rules) { - return mergeFrom((build.buf.validate.UInt64Rules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.UInt64Rules other) { - if (other == build.buf.validate.UInt64Rules.getDefaultInstance()) return this; - if (other.hasConst()) { - setConst(other.getConst()); - } - if (!other.in_.isEmpty()) { - if (in_.isEmpty()) { - in_ = other.in_; - in_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureInIsMutable(); - in_.addAll(other.in_); - } - onChanged(); - } - if (!other.notIn_.isEmpty()) { - if (notIn_.isEmpty()) { - notIn_ = other.notIn_; - notIn_.makeImmutable(); - bitField0_ |= 0x00000040; - } else { - ensureNotInIsMutable(); - notIn_.addAll(other.notIn_); - } - onChanged(); - } - if (!other.example_.isEmpty()) { - if (example_.isEmpty()) { - example_ = other.example_; - example_.makeImmutable(); - bitField0_ |= 0x00000080; - } else { - ensureExampleIsMutable(); - example_.addAll(other.example_); - } - onChanged(); - } - switch (other.getLessThanCase()) { - case LT: { - setLt(other.getLt()); - break; - } - case LTE: { - setLte(other.getLte()); - break; - } - case LESSTHAN_NOT_SET: { - break; - } - } - switch (other.getGreaterThanCase()) { - case GT: { - setGt(other.getGt()); - break; - } - case GTE: { - setGte(other.getGte()); - break; - } - case GREATERTHAN_NOT_SET: { - break; - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!extensionsAreInitialized()) { - return false; - } - 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 8: { - const_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - lessThan_ = input.readUInt64(); - lessThanCase_ = 2; - break; - } // case 16 - case 24: { - lessThan_ = input.readUInt64(); - lessThanCase_ = 3; - break; - } // case 24 - case 32: { - greaterThan_ = input.readUInt64(); - greaterThanCase_ = 4; - break; - } // case 32 - case 40: { - greaterThan_ = input.readUInt64(); - greaterThanCase_ = 5; - break; - } // case 40 - case 48: { - long v = input.readUInt64(); - ensureInIsMutable(); - in_.addLong(v); - break; - } // case 48 - case 50: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - in_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } // case 50 - case 56: { - long v = input.readUInt64(); - ensureNotInIsMutable(); - notIn_.addLong(v); - break; - } // case 56 - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureNotInIsMutable(); - while (input.getBytesUntilLimit() > 0) { - notIn_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } // case 58 - case 64: { - long v = input.readUInt64(); - ensureExampleIsMutable(); - example_.addLong(v); - break; - } // case 64 - case 66: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureExampleIsMutable(); - while (input.getBytesUntilLimit() > 0) { - example_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } // case 66 - 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 lessThanCase_ = 0; - private java.lang.Object lessThan_; - public LessThanCase - getLessThanCase() { - return LessThanCase.forNumber( - lessThanCase_); - } - - public Builder clearLessThan() { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - return this; - } - - private int greaterThanCase_ = 0; - private java.lang.Object greaterThan_; - public GreaterThanCase - getGreaterThanCase() { - return GreaterThanCase.forNumber( - greaterThanCase_); - } - - public Builder clearGreaterThan() { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private long const_ ; - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must equal 42
-     * uint64 value = 1 [(buf.validate.field).uint64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional uint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - @java.lang.Override - public boolean hasConst() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must equal 42
-     * uint64 value = 1 [(buf.validate.field).uint64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional uint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - @java.lang.Override - public long getConst() { - return const_; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must equal 42
-     * uint64 value = 1 [(buf.validate.field).uint64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional uint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @param value The const to set. - * @return This builder for chaining. - */ - public Builder setConst(long value) { - - const_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `const` requires the field value to exactly match the specified value. If
-     * the field value doesn't match, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must equal 42
-     * uint64 value = 1 [(buf.validate.field).uint64.const = 42];
-     * }
-     * ```
-     * 
- * - * optional uint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearConst() { - bitField0_ = (bitField0_ & ~0x00000001); - const_ = 0L; - onChanged(); - return this; - } - - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be less than 10
-     * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
-     * }
-     * ```
-     * 
- * - * uint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - public boolean hasLt() { - return lessThanCase_ == 2; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be less than 10
-     * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
-     * }
-     * ```
-     * 
- * - * uint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - public long getLt() { - if (lessThanCase_ == 2) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be less than 10
-     * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
-     * }
-     * ```
-     * 
- * - * uint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @param value The lt to set. - * @return This builder for chaining. - */ - public Builder setLt(long value) { - - lessThanCase_ = 2; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lt` requires the field value to be less than the specified value (field <
-     * value). If the field value is equal to or greater than the specified value,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be less than 10
-     * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
-     * }
-     * ```
-     * 
- * - * uint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLt() { - if (lessThanCase_ == 2) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be less than or equal to 10
-     * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
-     * }
-     * ```
-     * 
- * - * uint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - public boolean hasLte() { - return lessThanCase_ == 3; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be less than or equal to 10
-     * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
-     * }
-     * ```
-     * 
- * - * uint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - public long getLte() { - if (lessThanCase_ == 3) { - return (java.lang.Long) lessThan_; - } - return 0L; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be less than or equal to 10
-     * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
-     * }
-     * ```
-     * 
- * - * uint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @param value The lte to set. - * @return This builder for chaining. - */ - public Builder setLte(long value) { - - lessThanCase_ = 3; - lessThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `lte` requires the field value to be less than or equal to the specified
-     * value (field <= value). If the field value is greater than the specified
-     * value, an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be less than or equal to 10
-     * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
-     * }
-     * ```
-     * 
- * - * uint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearLte() { - if (lessThanCase_ == 3) { - lessThanCase_ = 0; - lessThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be greater than 5 [uint64.gt]
-     * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [uint64.gt_lt]
-     * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
-     * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - public boolean hasGt() { - return greaterThanCase_ == 4; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be greater than 5 [uint64.gt]
-     * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [uint64.gt_lt]
-     * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
-     * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - public long getGt() { - if (greaterThanCase_ == 4) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be greater than 5 [uint64.gt]
-     * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [uint64.gt_lt]
-     * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
-     * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @param value The gt to set. - * @return This builder for chaining. - */ - public Builder setGt(long value) { - - greaterThanCase_ = 4; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gt` requires the field value to be greater than the specified value
-     * (exclusive). If the value of `gt` is larger than a specified `lt` or
-     * `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be greater than 5 [uint64.gt]
-     * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
-     *
-     * // value must be greater than 5 and less than 10 [uint64.gt_lt]
-     * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
-     *
-     * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
-     * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGt() { - if (greaterThanCase_ == 4) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be greater than or equal to 5 [uint64.gte]
-     * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
-     * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
-     * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - public boolean hasGte() { - return greaterThanCase_ == 5; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be greater than or equal to 5 [uint64.gte]
-     * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
-     * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
-     * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - public long getGte() { - if (greaterThanCase_ == 5) { - return (java.lang.Long) greaterThan_; - } - return 0L; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be greater than or equal to 5 [uint64.gte]
-     * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
-     * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
-     * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @param value The gte to set. - * @return This builder for chaining. - */ - public Builder setGte(long value) { - - greaterThanCase_ = 5; - greaterThan_ = value; - onChanged(); - return this; - } - /** - *
-     * `gte` requires the field value to be greater than or equal to the specified
-     * value (exclusive). If the value of `gte` is larger than a specified `lt`
-     * or `lte`, the range is reversed, and the field value must be outside the
-     * specified range. If the field value doesn't meet the required conditions,
-     * an error message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be greater than or equal to 5 [uint64.gte]
-     * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
-     *
-     * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
-     * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
-     *
-     * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
-     * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
-     * }
-     * ```
-     * 
- * - * uint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearGte() { - if (greaterThanCase_ == 5) { - greaterThanCase_ = 0; - greaterThan_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Internal.LongList in_ = emptyLongList(); - private void ensureInIsMutable() { - if (!in_.isModifiable()) { - in_ = makeMutableCopy(in_); - } - bitField0_ |= 0x00000020; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - public java.util.List - getInList() { - in_.makeImmutable(); - return in_; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - public int getInCount() { - return in_.size(); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - public long getIn(int index) { - return in_.getLong(index); - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn( - int index, long value) { - - ensureInIsMutable(); - in_.setLong(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param value The in to add. - * @return This builder for chaining. - */ - public Builder addIn(long value) { - - ensureInIsMutable(); - in_.addLong(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param values The in to add. - * @return This builder for chaining. - */ - public Builder addAllIn( - java.lang.Iterable values) { - ensureInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, in_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * `in` requires the field value to be equal to one of the specified values.
-     * If the field value isn't one of the specified values, an error message is
-     * generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearIn() { - in_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList notIn_ = emptyLongList(); - private void ensureNotInIsMutable() { - if (!notIn_.isModifiable()) { - notIn_ = makeMutableCopy(notIn_); - } - bitField0_ |= 0x00000040; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must not be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - public java.util.List - getNotInList() { - notIn_.makeImmutable(); - return notIn_; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must not be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - public int getNotInCount() { - return notIn_.size(); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must not be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - public long getNotIn(int index) { - return notIn_.getLong(index); - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must not be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The notIn to set. - * @return This builder for chaining. - */ - public Builder setNotIn( - int index, long value) { - - ensureNotInIsMutable(); - notIn_.setLong(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must not be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param value The notIn to add. - * @return This builder for chaining. - */ - public Builder addNotIn(long value) { - - ensureNotInIsMutable(); - notIn_.addLong(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must not be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param values The notIn to add. - * @return This builder for chaining. - */ - public Builder addAllNotIn( - java.lang.Iterable values) { - ensureNotInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notIn_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * `not_in` requires the field value to not be equal to any of the specified
-     * values. If the field value is one of the specified values, an error
-     * message is generated.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * // value must not be in list [1, 2, 3]
-     * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-     * }
-     * ```
-     * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearNotIn() { - notIn_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList example_ = emptyLongList(); - private void ensureExampleIsMutable() { - if (!example_.isModifiable()) { - example_ = makeMutableCopy(example_); - } - bitField0_ |= 0x00000080; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * uint64 value = 1 [
-     * (buf.validate.field).uint64.example = 1,
-     * (buf.validate.field).uint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - public java.util.List - getExampleList() { - example_.makeImmutable(); - return example_; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * uint64 value = 1 [
-     * (buf.validate.field).uint64.example = 1,
-     * (buf.validate.field).uint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - public int getExampleCount() { - return example_.size(); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * uint64 value = 1 [
-     * (buf.validate.field).uint64.example = 1,
-     * (buf.validate.field).uint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - public long getExample(int index) { - return example_.getLong(index); - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * uint64 value = 1 [
-     * (buf.validate.field).uint64.example = 1,
-     * (buf.validate.field).uint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index to set the value at. - * @param value The example to set. - * @return This builder for chaining. - */ - public Builder setExample( - int index, long value) { - - ensureExampleIsMutable(); - example_.setLong(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * uint64 value = 1 [
-     * (buf.validate.field).uint64.example = 1,
-     * (buf.validate.field).uint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param value The example to add. - * @return This builder for chaining. - */ - public Builder addExample(long value) { - - ensureExampleIsMutable(); - example_.addLong(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * uint64 value = 1 [
-     * (buf.validate.field).uint64.example = 1,
-     * (buf.validate.field).uint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param values The example to add. - * @return This builder for chaining. - */ - public Builder addAllExample( - java.lang.Iterable values) { - ensureExampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, example_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * `example` specifies values that the field may have. These values SHOULD
-     * conform to other constraints. `example` values will not impact validation
-     * but may be used as helpful guidance on how to populate the given field.
-     *
-     * ```proto
-     * message MyUInt64 {
-     * uint64 value = 1 [
-     * (buf.validate.field).uint64.example = 1,
-     * (buf.validate.field).uint64.example = -10
-     * ];
-     * }
-     * ```
-     * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return This builder for chaining. - */ - public Builder clearExample() { - example_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.UInt64Rules) - } - - // @@protoc_insertion_point(class_scope:buf.validate.UInt64Rules) - private static final build.buf.validate.UInt64Rules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.UInt64Rules(); - } - - public static build.buf.validate.UInt64Rules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UInt64Rules 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.UInt64Rules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/UInt64RulesOrBuilder.java b/src/main/java/build/buf/validate/UInt64RulesOrBuilder.java deleted file mode 100644 index 7d5869bc..00000000 --- a/src/main/java/build/buf/validate/UInt64RulesOrBuilder.java +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface UInt64RulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.UInt64Rules) - com.google.protobuf.GeneratedMessage. - ExtendableMessageOrBuilder { - - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must equal 42
-   * uint64 value = 1 [(buf.validate.field).uint64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional uint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return Whether the const field is set. - */ - boolean hasConst(); - /** - *
-   * `const` requires the field value to exactly match the specified value. If
-   * the field value doesn't match, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must equal 42
-   * uint64 value = 1 [(buf.validate.field).uint64.const = 42];
-   * }
-   * ```
-   * 
- * - * optional uint64 const = 1 [json_name = "const", (.buf.validate.predefined) = { ... } - * @return The const. - */ - long getConst(); - - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be less than 10
-   * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
-   * }
-   * ```
-   * 
- * - * uint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return Whether the lt field is set. - */ - boolean hasLt(); - /** - *
-   * `lt` requires the field value to be less than the specified value (field <
-   * value). If the field value is equal to or greater than the specified value,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be less than 10
-   * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
-   * }
-   * ```
-   * 
- * - * uint64 lt = 2 [json_name = "lt", (.buf.validate.predefined) = { ... } - * @return The lt. - */ - long getLt(); - - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be less than or equal to 10
-   * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
-   * }
-   * ```
-   * 
- * - * uint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return Whether the lte field is set. - */ - boolean hasLte(); - /** - *
-   * `lte` requires the field value to be less than or equal to the specified
-   * value (field <= value). If the field value is greater than the specified
-   * value, an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be less than or equal to 10
-   * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
-   * }
-   * ```
-   * 
- * - * uint64 lte = 3 [json_name = "lte", (.buf.validate.predefined) = { ... } - * @return The lte. - */ - long getLte(); - - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be greater than 5 [uint64.gt]
-   * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [uint64.gt_lt]
-   * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
-   * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return Whether the gt field is set. - */ - boolean hasGt(); - /** - *
-   * `gt` requires the field value to be greater than the specified value
-   * (exclusive). If the value of `gt` is larger than a specified `lt` or
-   * `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be greater than 5 [uint64.gt]
-   * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
-   *
-   * // value must be greater than 5 and less than 10 [uint64.gt_lt]
-   * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
-   *
-   * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
-   * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint64 gt = 4 [json_name = "gt", (.buf.validate.predefined) = { ... } - * @return The gt. - */ - long getGt(); - - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be greater than or equal to 5 [uint64.gte]
-   * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
-   * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
-   * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return Whether the gte field is set. - */ - boolean hasGte(); - /** - *
-   * `gte` requires the field value to be greater than or equal to the specified
-   * value (exclusive). If the value of `gte` is larger than a specified `lt`
-   * or `lte`, the range is reversed, and the field value must be outside the
-   * specified range. If the field value doesn't meet the required conditions,
-   * an error message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be greater than or equal to 5 [uint64.gte]
-   * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
-   *
-   * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
-   * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
-   *
-   * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
-   * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
-   * }
-   * ```
-   * 
- * - * uint64 gte = 5 [json_name = "gte", (.buf.validate.predefined) = { ... } - * @return The gte. - */ - long getGte(); - - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return A list containing the in. - */ - java.util.List getInList(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @return The count of in. - */ - int getInCount(); - /** - *
-   * `in` requires the field value to be equal to one of the specified values.
-   * If the field value isn't one of the specified values, an error message is
-   * generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 in = 6 [json_name = "in", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The in at the given index. - */ - long getIn(int index); - - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must not be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return A list containing the notIn. - */ - java.util.List getNotInList(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must not be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @return The count of notIn. - */ - int getNotInCount(); - /** - *
-   * `not_in` requires the field value to not be equal to any of the specified
-   * values. If the field value is one of the specified values, an error
-   * message is generated.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * // value must not be in list [1, 2, 3]
-   * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
-   * }
-   * ```
-   * 
- * - * repeated uint64 not_in = 7 [json_name = "notIn", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The notIn at the given index. - */ - long getNotIn(int index); - - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * uint64 value = 1 [
-   * (buf.validate.field).uint64.example = 1,
-   * (buf.validate.field).uint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return A list containing the example. - */ - java.util.List getExampleList(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * uint64 value = 1 [
-   * (buf.validate.field).uint64.example = 1,
-   * (buf.validate.field).uint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @return The count of example. - */ - int getExampleCount(); - /** - *
-   * `example` specifies values that the field may have. These values SHOULD
-   * conform to other constraints. `example` values will not impact validation
-   * but may be used as helpful guidance on how to populate the given field.
-   *
-   * ```proto
-   * message MyUInt64 {
-   * uint64 value = 1 [
-   * (buf.validate.field).uint64.example = 1,
-   * (buf.validate.field).uint64.example = -10
-   * ];
-   * }
-   * ```
-   * 
- * - * repeated uint64 example = 8 [json_name = "example", (.buf.validate.predefined) = { ... } - * @param index The index of the element to return. - * @return The example at the given index. - */ - long getExample(int index); - - build.buf.validate.UInt64Rules.LessThanCase getLessThanCase(); - - build.buf.validate.UInt64Rules.GreaterThanCase getGreaterThanCase(); -} diff --git a/src/main/java/build/buf/validate/ValidateProto.java b/src/main/java/build/buf/validate/ValidateProto.java deleted file mode 100644 index a23d5a1f..00000000 --- a/src/main/java/build/buf/validate/ValidateProto.java +++ /dev/null @@ -1,1827 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public final class ValidateProto { - private ValidateProto() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - ValidateProto.class.getName()); - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - registry.add(build.buf.validate.ValidateProto.message); - registry.add(build.buf.validate.ValidateProto.oneof); - registry.add(build.buf.validate.ValidateProto.field); - registry.add(build.buf.validate.ValidateProto.predefined); - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public static final int MESSAGE_FIELD_NUMBER = 1159; - /** - *
-   * Rules specify the validations to be performed on this message. By default,
-   * no validation is performed against a message.
-   * 
- * - * extend .google.protobuf.MessageOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.MessageOptions, - build.buf.validate.MessageConstraints> message = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - build.buf.validate.MessageConstraints.class, - build.buf.validate.MessageConstraints.getDefaultInstance()); - public static final int ONEOF_FIELD_NUMBER = 1159; - /** - *
-   * Rules specify the validations to be performed on this oneof. By default,
-   * no validation is performed against a oneof.
-   * 
- * - * extend .google.protobuf.OneofOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.OneofOptions, - build.buf.validate.OneofConstraints> oneof = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - build.buf.validate.OneofConstraints.class, - build.buf.validate.OneofConstraints.getDefaultInstance()); - public static final int FIELD_FIELD_NUMBER = 1159; - /** - *
-   * Rules specify the validations to be performed on this field. By default,
-   * no validation is performed against a field.
-   * 
- * - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - build.buf.validate.FieldConstraints> field = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - build.buf.validate.FieldConstraints.class, - build.buf.validate.FieldConstraints.getDefaultInstance()); - public static final int PREDEFINED_FIELD_NUMBER = 1160; - /** - *
-   * Specifies predefined rules. When extending a standard constraint message,
-   * this adds additional CEL expressions that apply when the extension is used.
-   *
-   * ```proto
-   * extend buf.validate.Int32Rules {
-   * bool is_zero [(buf.validate.predefined).cel = {
-   * id: "int32.is_zero",
-   * message: "value must be zero",
-   * expression: "!rule || this == 0",
-   * }];
-   * }
-   *
-   * message Foo {
-   * int32 reserved = 1 [(buf.validate.field).int32.(is_zero) = true];
-   * }
-   * ```
-   * 
- * - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - build.buf.validate.PredefinedConstraints> predefined = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - build.buf.validate.PredefinedConstraints.class, - build.buf.validate.PredefinedConstraints.getDefaultInstance()); - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_Constraint_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_Constraint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_MessageConstraints_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_MessageConstraints_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_OneofConstraints_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_OneofConstraints_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_FieldConstraints_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_FieldConstraints_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_PredefinedConstraints_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_PredefinedConstraints_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_FloatRules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_FloatRules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_DoubleRules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_DoubleRules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_Int32Rules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_Int32Rules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_Int64Rules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_Int64Rules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_UInt32Rules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_UInt32Rules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_UInt64Rules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_UInt64Rules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_SInt32Rules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_SInt32Rules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_SInt64Rules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_SInt64Rules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_Fixed32Rules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_Fixed32Rules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_Fixed64Rules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_Fixed64Rules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_SFixed32Rules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_SFixed32Rules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_SFixed64Rules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_SFixed64Rules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_BoolRules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_BoolRules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_StringRules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_StringRules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_BytesRules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_BytesRules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_EnumRules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_EnumRules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_RepeatedRules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_RepeatedRules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_MapRules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_MapRules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_AnyRules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_AnyRules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_DurationRules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_DurationRules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_TimestampRules_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_TimestampRules_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_Violations_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_Violations_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_Violation_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_Violation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_FieldPath_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_FieldPath_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_validate_FieldPathElement_descriptor; - static final - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_buf_validate_FieldPathElement_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033buf/validate/validate.proto\022\014buf.valid" + - "ate\032 google/protobuf/descriptor.proto\032\036g" + - "oogle/protobuf/duration.proto\032\037google/pr" + - "otobuf/timestamp.proto\"V\n\nConstraint\022\016\n\002" + - "id\030\001 \001(\tR\002id\022\030\n\007message\030\002 \001(\tR\007message\022\036" + - "\n\nexpression\030\003 \001(\tR\nexpression\"\\\n\022Messag" + - "eConstraints\022\032\n\010disabled\030\001 \001(\010R\010disabled" + - "\022*\n\003cel\030\003 \003(\0132\030.buf.validate.ConstraintR" + - "\003cel\".\n\020OneofConstraints\022\032\n\010required\030\001 \001" + - "(\010R\010required\"\211\n\n\020FieldConstraints\022*\n\003cel" + - "\030\027 \003(\0132\030.buf.validate.ConstraintR\003cel\022\032\n" + - "\010required\030\031 \001(\010R\010required\022,\n\006ignore\030\033 \001(" + - "\0162\024.buf.validate.IgnoreR\006ignore\0220\n\005float" + - "\030\001 \001(\0132\030.buf.validate.FloatRulesH\000R\005floa" + - "t\0223\n\006double\030\002 \001(\0132\031.buf.validate.DoubleR" + - "ulesH\000R\006double\0220\n\005int32\030\003 \001(\0132\030.buf.vali" + - "date.Int32RulesH\000R\005int32\0220\n\005int64\030\004 \001(\0132" + - "\030.buf.validate.Int64RulesH\000R\005int64\0223\n\006ui" + - "nt32\030\005 \001(\0132\031.buf.validate.UInt32RulesH\000R" + - "\006uint32\0223\n\006uint64\030\006 \001(\0132\031.buf.validate.U" + - "Int64RulesH\000R\006uint64\0223\n\006sint32\030\007 \001(\0132\031.b" + - "uf.validate.SInt32RulesH\000R\006sint32\0223\n\006sin" + - "t64\030\010 \001(\0132\031.buf.validate.SInt64RulesH\000R\006" + - "sint64\0226\n\007fixed32\030\t \001(\0132\032.buf.validate.F" + - "ixed32RulesH\000R\007fixed32\0226\n\007fixed64\030\n \001(\0132" + - "\032.buf.validate.Fixed64RulesH\000R\007fixed64\0229" + - "\n\010sfixed32\030\013 \001(\0132\033.buf.validate.SFixed32" + - "RulesH\000R\010sfixed32\0229\n\010sfixed64\030\014 \001(\0132\033.bu" + - "f.validate.SFixed64RulesH\000R\010sfixed64\022-\n\004" + - "bool\030\r \001(\0132\027.buf.validate.BoolRulesH\000R\004b" + - "ool\0223\n\006string\030\016 \001(\0132\031.buf.validate.Strin" + - "gRulesH\000R\006string\0220\n\005bytes\030\017 \001(\0132\030.buf.va" + - "lidate.BytesRulesH\000R\005bytes\022-\n\004enum\030\020 \001(\013" + - "2\027.buf.validate.EnumRulesH\000R\004enum\0229\n\010rep" + - "eated\030\022 \001(\0132\033.buf.validate.RepeatedRules" + - "H\000R\010repeated\022*\n\003map\030\023 \001(\0132\026.buf.validate" + - ".MapRulesH\000R\003map\022*\n\003any\030\024 \001(\0132\026.buf.vali" + - "date.AnyRulesH\000R\003any\0229\n\010duration\030\025 \001(\0132\033" + - ".buf.validate.DurationRulesH\000R\010duration\022" + - "<\n\ttimestamp\030\026 \001(\0132\034.buf.validate.Timest" + - "ampRulesH\000R\ttimestampB\006\n\004typeJ\004\010\030\020\031J\004\010\032\020" + - "\033R\007skippedR\014ignore_empty\"d\n\025PredefinedCo" + - "nstraints\022*\n\003cel\030\001 \003(\0132\030.buf.validate.Co" + - "nstraintR\003celJ\004\010\030\020\031J\004\010\032\020\033R\023skippedignore" + - "_empty\"\352\027\n\nFloatRules\022p\n\005const\030\001 \001(\002BZ\302H" + - "W\nU\n\013float.const\032Fthis != rules.const ? " + - "\'value must equal %s\'.format([rules.cons" + - "t]) : \'\'R\005const\022\243\001\n\002lt\030\002 \001(\002B\220\001\302H\214\001\n\211\001\n\010" + - "float.lt\032}!has(rules.gte) && !has(rules." + - "gt) && (this.isNan() || this >= rules.lt" + - ")? \'value must be less than %s\'.format([" + - "rules.lt]) : \'\'H\000R\002lt\022\264\001\n\003lte\030\003 \001(\002B\237\001\302H" + - "\233\001\n\230\001\n\tfloat.lte\032\212\001!has(rules.gte) && !h" + - "as(rules.gt) && (this.isNan() || this > " + - "rules.lte)? \'value must be less than or " + - "equal to %s\'.format([rules.lte]) : \'\'H\000R" + - "\003lte\022\363\007\n\002gt\030\004 \001(\002B\340\007\302H\334\007\n\215\001\n\010float.gt\032\200\001" + - "!has(rules.lt) && !has(rules.lte) && (th" + - "is.isNan() || this <= rules.gt)? \'value " + - "must be greater than %s\'.format([rules.g" + - "t]) : \'\'\n\303\001\n\013float.gt_lt\032\263\001has(rules.lt)" + - " && rules.lt >= rules.gt && (this.isNan(" + - ") || this >= rules.lt || this <= rules.g" + - "t)? \'value must be greater than %s and l" + - "ess than %s\'.format([rules.gt, rules.lt]" + - ") : \'\'\n\315\001\n\025float.gt_lt_exclusive\032\263\001has(r" + - "ules.lt) && rules.lt < rules.gt && (this" + - ".isNan() || (rules.lt <= this && this <=" + - " rules.gt))? \'value must be greater than" + - " %s or less than %s\'.format([rules.gt, r" + - "ules.lt]) : \'\'\n\323\001\n\014float.gt_lte\032\302\001has(ru" + - "les.lte) && rules.lte >= rules.gt && (th" + - "is.isNan() || this > rules.lte || this <" + - "= rules.gt)? \'value must be greater than" + - " %s and less than or equal to %s\'.format" + - "([rules.gt, rules.lte]) : \'\'\n\335\001\n\026float.g" + - "t_lte_exclusive\032\302\001has(rules.lte) && rule" + - "s.lte < rules.gt && (this.isNan() || (ru" + - "les.lte < this && this <= rules.gt))? \'v" + - "alue must be greater than %s or less tha" + - "n or equal to %s\'.format([rules.gt, rule" + - "s.lte]) : \'\'H\001R\002gt\022\277\010\n\003gte\030\005 \001(\002B\252\010\302H\246\010\n" + - "\233\001\n\tfloat.gte\032\215\001!has(rules.lt) && !has(r" + - "ules.lte) && (this.isNan() || this < rul" + - "es.gte)? \'value must be greater than or " + - "equal to %s\'.format([rules.gte]) : \'\'\n\322\001" + - "\n\014float.gte_lt\032\301\001has(rules.lt) && rules." + - "lt >= rules.gte && (this.isNan() || this" + - " >= rules.lt || this < rules.gte)? \'valu" + - "e must be greater than or equal to %s an" + - "d less than %s\'.format([rules.gte, rules" + - ".lt]) : \'\'\n\334\001\n\026float.gte_lt_exclusive\032\301\001" + - "has(rules.lt) && rules.lt < rules.gte &&" + - " (this.isNan() || (rules.lt <= this && t" + - "his < rules.gte))? \'value must be greate" + - "r than or equal to %s or less than %s\'.f" + - "ormat([rules.gte, rules.lt]) : \'\'\n\342\001\n\rfl" + - "oat.gte_lte\032\320\001has(rules.lte) && rules.lt" + - "e >= rules.gte && (this.isNan() || this " + - "> rules.lte || this < rules.gte)? \'value" + - " must be greater than or equal to %s and" + - " less than or equal to %s\'.format([rules" + - ".gte, rules.lte]) : \'\'\n\354\001\n\027float.gte_lte" + - "_exclusive\032\320\001has(rules.lte) && rules.lte" + - " < rules.gte && (this.isNan() || (rules." + - "lte < this && this < rules.gte))? \'value" + - " must be greater than or equal to %s or " + - "less than or equal to %s\'.format([rules." + - "gte, rules.lte]) : \'\'H\001R\003gte\022y\n\002in\030\006 \003(\002" + - "Bi\302Hf\nd\n\010float.in\032X!(this in dyn(rules)[" + - "\'in\']) ? \'value must be in list %s\'.form" + - "at([dyn(rules)[\'in\']]) : \'\'R\002in\022}\n\006not_i" + - "n\030\007 \003(\002Bf\302Hc\na\n\014float.not_in\032Qthis in ru" + - "les.not_in ? \'value must not be in list " + - "%s\'.format([rules.not_in]) : \'\'R\005notIn\022}" + - "\n\006finite\030\010 \001(\010Be\302Hb\n`\n\014float.finite\032Prul" + - "es.finite ? (this.isNan() || this.isInf(" + - ") ? \'value must be finite\' : \'\') : \'\'R\006f" + - "inite\0224\n\007example\030\t \003(\002B\032\302H\027\n\025\n\rfloat.exa" + - "mple\032\004trueR\007example*\t\010\350\007\020\200\200\200\200\002B\013\n\tless_t" + - "hanB\016\n\014greater_than\"\374\027\n\013DoubleRules\022q\n\005c" + - "onst\030\001 \001(\001B[\302HX\nV\n\014double.const\032Fthis !=" + - " rules.const ? \'value must equal %s\'.for" + - "mat([rules.const]) : \'\'R\005const\022\244\001\n\002lt\030\002 " + - "\001(\001B\221\001\302H\215\001\n\212\001\n\tdouble.lt\032}!has(rules.gte" + - ") && !has(rules.gt) && (this.isNan() || " + - "this >= rules.lt)? \'value must be less t" + - "han %s\'.format([rules.lt]) : \'\'H\000R\002lt\022\265\001" + - "\n\003lte\030\003 \001(\001B\240\001\302H\234\001\n\231\001\n\ndouble.lte\032\212\001!has" + - "(rules.gte) && !has(rules.gt) && (this.i" + - "sNan() || this > rules.lte)? \'value must" + - " be less than or equal to %s\'.format([ru" + - "les.lte]) : \'\'H\000R\003lte\022\370\007\n\002gt\030\004 \001(\001B\345\007\302H\341" + - "\007\n\216\001\n\tdouble.gt\032\200\001!has(rules.lt) && !has" + - "(rules.lte) && (this.isNan() || this <= " + - "rules.gt)? \'value must be greater than %" + - "s\'.format([rules.gt]) : \'\'\n\304\001\n\014double.gt" + - "_lt\032\263\001has(rules.lt) && rules.lt >= rules" + - ".gt && (this.isNan() || this >= rules.lt" + - " || this <= rules.gt)? \'value must be gr" + - "eater than %s and less than %s\'.format([" + - "rules.gt, rules.lt]) : \'\'\n\316\001\n\026double.gt_" + - "lt_exclusive\032\263\001has(rules.lt) && rules.lt" + - " < rules.gt && (this.isNan() || (rules.l" + - "t <= this && this <= rules.gt))? \'value " + - "must be greater than %s or less than %s\'" + - ".format([rules.gt, rules.lt]) : \'\'\n\324\001\n\rd" + - "ouble.gt_lte\032\302\001has(rules.lte) && rules.l" + - "te >= rules.gt && (this.isNan() || this " + - "> rules.lte || this <= rules.gt)? \'value" + - " must be greater than %s and less than o" + - "r equal to %s\'.format([rules.gt, rules.l" + - "te]) : \'\'\n\336\001\n\027double.gt_lte_exclusive\032\302\001" + - "has(rules.lte) && rules.lte < rules.gt &" + - "& (this.isNan() || (rules.lte < this && " + - "this <= rules.gt))? \'value must be great" + - "er than %s or less than or equal to %s\'." + - "format([rules.gt, rules.lte]) : \'\'H\001R\002gt" + - "\022\304\010\n\003gte\030\005 \001(\001B\257\010\302H\253\010\n\234\001\n\ndouble.gte\032\215\001!" + - "has(rules.lt) && !has(rules.lte) && (thi" + - "s.isNan() || this < rules.gte)? \'value m" + - "ust be greater than or equal to %s\'.form" + - "at([rules.gte]) : \'\'\n\323\001\n\rdouble.gte_lt\032\301" + - "\001has(rules.lt) && rules.lt >= rules.gte " + - "&& (this.isNan() || this >= rules.lt || " + - "this < rules.gte)? \'value must be greate" + - "r than or equal to %s and less than %s\'." + - "format([rules.gte, rules.lt]) : \'\'\n\335\001\n\027d" + - "ouble.gte_lt_exclusive\032\301\001has(rules.lt) &" + - "& rules.lt < rules.gte && (this.isNan() " + - "|| (rules.lt <= this && this < rules.gte" + - "))? \'value must be greater than or equal" + - " to %s or less than %s\'.format([rules.gt" + - "e, rules.lt]) : \'\'\n\343\001\n\016double.gte_lte\032\320\001" + - "has(rules.lte) && rules.lte >= rules.gte" + - " && (this.isNan() || this > rules.lte ||" + - " this < rules.gte)? \'value must be great" + - "er than or equal to %s and less than or " + - "equal to %s\'.format([rules.gte, rules.lt" + - "e]) : \'\'\n\355\001\n\030double.gte_lte_exclusive\032\320\001" + - "has(rules.lte) && rules.lte < rules.gte " + - "&& (this.isNan() || (rules.lte < this &&" + - " this < rules.gte))? \'value must be grea" + - "ter than or equal to %s or less than or " + - "equal to %s\'.format([rules.gte, rules.lt" + - "e]) : \'\'H\001R\003gte\022z\n\002in\030\006 \003(\001Bj\302Hg\ne\n\tdoub" + - "le.in\032X!(this in dyn(rules)[\'in\']) ? \'va" + - "lue must be in list %s\'.format([dyn(rule" + - "s)[\'in\']]) : \'\'R\002in\022~\n\006not_in\030\007 \003(\001Bg\302Hd" + - "\nb\n\rdouble.not_in\032Qthis in rules.not_in " + - "? \'value must not be in list %s\'.format(" + - "[rules.not_in]) : \'\'R\005notIn\022~\n\006finite\030\010 " + - "\001(\010Bf\302Hc\na\n\rdouble.finite\032Prules.finite " + - "? (this.isNan() || this.isInf() ? \'value" + - " must be finite\' : \'\') : \'\'R\006finite\0225\n\007e" + - "xample\030\t \003(\001B\033\302H\030\n\026\n\016double.example\032\004tru" + - "eR\007example*\t\010\350\007\020\200\200\200\200\002B\013\n\tless_thanB\016\n\014gr" + - "eater_than\"\224\025\n\nInt32Rules\022p\n\005const\030\001 \001(\005" + - "BZ\302HW\nU\n\013int32.const\032Fthis != rules.cons" + - "t ? \'value must equal %s\'.format([rules." + - "const]) : \'\'R\005const\022\216\001\n\002lt\030\002 \001(\005B|\302Hy\nw\n" + - "\010int32.lt\032k!has(rules.gte) && !has(rules" + - ".gt) && this >= rules.lt? \'value must be" + - " less than %s\'.format([rules.lt]) : \'\'H\000" + - "R\002lt\022\241\001\n\003lte\030\003 \001(\005B\214\001\302H\210\001\n\205\001\n\tint32.lte\032" + - "x!has(rules.gte) && !has(rules.gt) && th" + - "is > rules.lte? \'value must be less than" + - " or equal to %s\'.format([rules.lte]) : \'" + - "\'H\000R\003lte\022\233\007\n\002gt\030\004 \001(\005B\210\007\302H\204\007\nz\n\010int32.gt" + - "\032n!has(rules.lt) && !has(rules.lte) && t" + - "his <= rules.gt? \'value must be greater " + - "than %s\'.format([rules.gt]) : \'\'\n\263\001\n\013int" + - "32.gt_lt\032\243\001has(rules.lt) && rules.lt >= " + - "rules.gt && (this >= rules.lt || this <=" + - " rules.gt)? \'value must be greater than " + - "%s and less than %s\'.format([rules.gt, r" + - "ules.lt]) : \'\'\n\273\001\n\025int32.gt_lt_exclusive" + - "\032\241\001has(rules.lt) && rules.lt < rules.gt " + - "&& (rules.lt <= this && this <= rules.gt" + - ")? \'value must be greater than %s or les" + - "s than %s\'.format([rules.gt, rules.lt]) " + - ": \'\'\n\303\001\n\014int32.gt_lte\032\262\001has(rules.lte) &" + - "& rules.lte >= rules.gt && (this > rules" + - ".lte || this <= rules.gt)? \'value must b" + - "e greater than %s and less than or equal" + - " to %s\'.format([rules.gt, rules.lte]) : " + - "\'\'\n\313\001\n\026int32.gt_lte_exclusive\032\260\001has(rule" + - "s.lte) && rules.lte < rules.gt && (rules" + - ".lte < this && this <= rules.gt)? \'value" + - " must be greater than %s or less than or" + - " equal to %s\'.format([rules.gt, rules.lt" + - "e]) : \'\'H\001R\002gt\022\350\007\n\003gte\030\005 \001(\005B\323\007\302H\317\007\n\210\001\n\t" + - "int32.gte\032{!has(rules.lt) && !has(rules." + - "lte) && this < rules.gte? \'value must be" + - " greater than or equal to %s\'.format([ru" + - "les.gte]) : \'\'\n\302\001\n\014int32.gte_lt\032\261\001has(ru" + - "les.lt) && rules.lt >= rules.gte && (thi" + - "s >= rules.lt || this < rules.gte)? \'val" + - "ue must be greater than or equal to %s a" + - "nd less than %s\'.format([rules.gte, rule" + - "s.lt]) : \'\'\n\312\001\n\026int32.gte_lt_exclusive\032\257" + - "\001has(rules.lt) && rules.lt < rules.gte &" + - "& (rules.lt <= this && this < rules.gte)" + - "? \'value must be greater than or equal t" + - "o %s or less than %s\'.format([rules.gte," + - " rules.lt]) : \'\'\n\322\001\n\rint32.gte_lte\032\300\001has" + - "(rules.lte) && rules.lte >= rules.gte &&" + - " (this > rules.lte || this < rules.gte)?" + - " \'value must be greater than or equal to" + - " %s and less than or equal to %s\'.format" + - "([rules.gte, rules.lte]) : \'\'\n\332\001\n\027int32." + - "gte_lte_exclusive\032\276\001has(rules.lte) && ru" + - "les.lte < rules.gte && (rules.lte < this" + - " && this < rules.gte)? \'value must be gr" + - "eater than or equal to %s or less than o" + - "r equal to %s\'.format([rules.gte, rules." + - "lte]) : \'\'H\001R\003gte\022y\n\002in\030\006 \003(\005Bi\302Hf\nd\n\010in" + - "t32.in\032X!(this in dyn(rules)[\'in\']) ? \'v" + - "alue must be in list %s\'.format([dyn(rul" + - "es)[\'in\']]) : \'\'R\002in\022}\n\006not_in\030\007 \003(\005Bf\302H" + - "c\na\n\014int32.not_in\032Qthis in rules.not_in " + - "? \'value must not be in list %s\'.format(" + - "[rules.not_in]) : \'\'R\005notIn\0224\n\007example\030\010" + - " \003(\005B\032\302H\027\n\025\n\rint32.example\032\004trueR\007exampl" + - "e*\t\010\350\007\020\200\200\200\200\002B\013\n\tless_thanB\016\n\014greater_tha" + - "n\"\224\025\n\nInt64Rules\022p\n\005const\030\001 \001(\003BZ\302HW\nU\n\013" + - "int64.const\032Fthis != rules.const ? \'valu" + - "e must equal %s\'.format([rules.const]) :" + - " \'\'R\005const\022\216\001\n\002lt\030\002 \001(\003B|\302Hy\nw\n\010int64.lt" + - "\032k!has(rules.gte) && !has(rules.gt) && t" + - "his >= rules.lt? \'value must be less tha" + - "n %s\'.format([rules.lt]) : \'\'H\000R\002lt\022\241\001\n\003" + - "lte\030\003 \001(\003B\214\001\302H\210\001\n\205\001\n\tint64.lte\032x!has(rul" + - "es.gte) && !has(rules.gt) && this > rule" + - "s.lte? \'value must be less than or equal" + - " to %s\'.format([rules.lte]) : \'\'H\000R\003lte\022" + - "\233\007\n\002gt\030\004 \001(\003B\210\007\302H\204\007\nz\n\010int64.gt\032n!has(ru" + - "les.lt) && !has(rules.lte) && this <= ru" + - "les.gt? \'value must be greater than %s\'." + - "format([rules.gt]) : \'\'\n\263\001\n\013int64.gt_lt\032" + - "\243\001has(rules.lt) && rules.lt >= rules.gt " + - "&& (this >= rules.lt || this <= rules.gt" + - ")? \'value must be greater than %s and le" + - "ss than %s\'.format([rules.gt, rules.lt])" + - " : \'\'\n\273\001\n\025int64.gt_lt_exclusive\032\241\001has(ru" + - "les.lt) && rules.lt < rules.gt && (rules" + - ".lt <= this && this <= rules.gt)? \'value" + - " must be greater than %s or less than %s" + - "\'.format([rules.gt, rules.lt]) : \'\'\n\303\001\n\014" + - "int64.gt_lte\032\262\001has(rules.lte) && rules.l" + - "te >= rules.gt && (this > rules.lte || t" + - "his <= rules.gt)? \'value must be greater" + - " than %s and less than or equal to %s\'.f" + - "ormat([rules.gt, rules.lte]) : \'\'\n\313\001\n\026in" + - "t64.gt_lte_exclusive\032\260\001has(rules.lte) &&" + - " rules.lte < rules.gt && (rules.lte < th" + - "is && this <= rules.gt)? \'value must be " + - "greater than %s or less than or equal to" + - " %s\'.format([rules.gt, rules.lte]) : \'\'H" + - "\001R\002gt\022\350\007\n\003gte\030\005 \001(\003B\323\007\302H\317\007\n\210\001\n\tint64.gte" + - "\032{!has(rules.lt) && !has(rules.lte) && t" + - "his < rules.gte? \'value must be greater " + - "than or equal to %s\'.format([rules.gte])" + - " : \'\'\n\302\001\n\014int64.gte_lt\032\261\001has(rules.lt) &" + - "& rules.lt >= rules.gte && (this >= rule" + - "s.lt || this < rules.gte)? \'value must b" + - "e greater than or equal to %s and less t" + - "han %s\'.format([rules.gte, rules.lt]) : " + - "\'\'\n\312\001\n\026int64.gte_lt_exclusive\032\257\001has(rule" + - "s.lt) && rules.lt < rules.gte && (rules." + - "lt <= this && this < rules.gte)? \'value " + - "must be greater than or equal to %s or l" + - "ess than %s\'.format([rules.gte, rules.lt" + - "]) : \'\'\n\322\001\n\rint64.gte_lte\032\300\001has(rules.lt" + - "e) && rules.lte >= rules.gte && (this > " + - "rules.lte || this < rules.gte)? \'value m" + - "ust be greater than or equal to %s and l" + - "ess than or equal to %s\'.format([rules.g" + - "te, rules.lte]) : \'\'\n\332\001\n\027int64.gte_lte_e" + - "xclusive\032\276\001has(rules.lte) && rules.lte <" + - " rules.gte && (rules.lte < this && this " + - "< rules.gte)? \'value must be greater tha" + - "n or equal to %s or less than or equal t" + - "o %s\'.format([rules.gte, rules.lte]) : \'" + - "\'H\001R\003gte\022y\n\002in\030\006 \003(\003Bi\302Hf\nd\n\010int64.in\032X!" + - "(this in dyn(rules)[\'in\']) ? \'value must" + - " be in list %s\'.format([dyn(rules)[\'in\']" + - "]) : \'\'R\002in\022}\n\006not_in\030\007 \003(\003Bf\302Hc\na\n\014int6" + - "4.not_in\032Qthis in rules.not_in ? \'value " + - "must not be in list %s\'.format([rules.no" + - "t_in]) : \'\'R\005notIn\0224\n\007example\030\t \003(\003B\032\302H\027" + - "\n\025\n\rint64.example\032\004trueR\007example*\t\010\350\007\020\200\200" + - "\200\200\002B\013\n\tless_thanB\016\n\014greater_than\"\245\025\n\013UIn" + - "t32Rules\022q\n\005const\030\001 \001(\rB[\302HX\nV\n\014uint32.c" + - "onst\032Fthis != rules.const ? \'value must " + - "equal %s\'.format([rules.const]) : \'\'R\005co" + - "nst\022\217\001\n\002lt\030\002 \001(\rB}\302Hz\nx\n\tuint32.lt\032k!has" + - "(rules.gte) && !has(rules.gt) && this >=" + - " rules.lt? \'value must be less than %s\'." + - "format([rules.lt]) : \'\'H\000R\002lt\022\242\001\n\003lte\030\003 " + - "\001(\rB\215\001\302H\211\001\n\206\001\n\nuint32.lte\032x!has(rules.gt" + - "e) && !has(rules.gt) && this > rules.lte" + - "? \'value must be less than or equal to %" + - "s\'.format([rules.lte]) : \'\'H\000R\003lte\022\240\007\n\002g" + - "t\030\004 \001(\rB\215\007\302H\211\007\n{\n\tuint32.gt\032n!has(rules." + - "lt) && !has(rules.lte) && this <= rules." + - "gt? \'value must be greater than %s\'.form" + - "at([rules.gt]) : \'\'\n\264\001\n\014uint32.gt_lt\032\243\001h" + - "as(rules.lt) && rules.lt >= rules.gt && " + - "(this >= rules.lt || this <= rules.gt)? " + - "\'value must be greater than %s and less " + - "than %s\'.format([rules.gt, rules.lt]) : " + - "\'\'\n\274\001\n\026uint32.gt_lt_exclusive\032\241\001has(rule" + - "s.lt) && rules.lt < rules.gt && (rules.l" + - "t <= this && this <= rules.gt)? \'value m" + - "ust be greater than %s or less than %s\'." + - "format([rules.gt, rules.lt]) : \'\'\n\304\001\n\rui" + - "nt32.gt_lte\032\262\001has(rules.lte) && rules.lt" + - "e >= rules.gt && (this > rules.lte || th" + - "is <= rules.gt)? \'value must be greater " + - "than %s and less than or equal to %s\'.fo" + - "rmat([rules.gt, rules.lte]) : \'\'\n\314\001\n\027uin" + - "t32.gt_lte_exclusive\032\260\001has(rules.lte) &&" + - " rules.lte < rules.gt && (rules.lte < th" + - "is && this <= rules.gt)? \'value must be " + - "greater than %s or less than or equal to" + - " %s\'.format([rules.gt, rules.lte]) : \'\'H" + - "\001R\002gt\022\355\007\n\003gte\030\005 \001(\rB\330\007\302H\324\007\n\211\001\n\nuint32.gt" + - "e\032{!has(rules.lt) && !has(rules.lte) && " + - "this < rules.gte? \'value must be greater" + - " than or equal to %s\'.format([rules.gte]" + - ") : \'\'\n\303\001\n\ruint32.gte_lt\032\261\001has(rules.lt)" + - " && rules.lt >= rules.gte && (this >= ru" + - "les.lt || this < rules.gte)? \'value must" + - " be greater than or equal to %s and less" + - " than %s\'.format([rules.gte, rules.lt]) " + - ": \'\'\n\313\001\n\027uint32.gte_lt_exclusive\032\257\001has(r" + - "ules.lt) && rules.lt < rules.gte && (rul" + - "es.lt <= this && this < rules.gte)? \'val" + - "ue must be greater than or equal to %s o" + - "r less than %s\'.format([rules.gte, rules" + - ".lt]) : \'\'\n\323\001\n\016uint32.gte_lte\032\300\001has(rule" + - "s.lte) && rules.lte >= rules.gte && (thi" + - "s > rules.lte || this < rules.gte)? \'val" + - "ue must be greater than or equal to %s a" + - "nd less than or equal to %s\'.format([rul" + - "es.gte, rules.lte]) : \'\'\n\333\001\n\030uint32.gte_" + - "lte_exclusive\032\276\001has(rules.lte) && rules." + - "lte < rules.gte && (rules.lte < this && " + - "this < rules.gte)? \'value must be greate" + - "r than or equal to %s or less than or eq" + - "ual to %s\'.format([rules.gte, rules.lte]" + - ") : \'\'H\001R\003gte\022z\n\002in\030\006 \003(\rBj\302Hg\ne\n\tuint32" + - ".in\032X!(this in dyn(rules)[\'in\']) ? \'valu" + - "e must be in list %s\'.format([dyn(rules)" + - "[\'in\']]) : \'\'R\002in\022~\n\006not_in\030\007 \003(\rBg\302Hd\nb" + - "\n\ruint32.not_in\032Qthis in rules.not_in ? " + - "\'value must not be in list %s\'.format([r" + - "ules.not_in]) : \'\'R\005notIn\0225\n\007example\030\010 \003" + - "(\rB\033\302H\030\n\026\n\016uint32.example\032\004trueR\007example", - "*\t\010\350\007\020\200\200\200\200\002B\013\n\tless_thanB\016\n\014greater_than" + - "\"\245\025\n\013UInt64Rules\022q\n\005const\030\001 \001(\004B[\302HX\nV\n\014" + - "uint64.const\032Fthis != rules.const ? \'val" + - "ue must equal %s\'.format([rules.const]) " + - ": \'\'R\005const\022\217\001\n\002lt\030\002 \001(\004B}\302Hz\nx\n\tuint64." + - "lt\032k!has(rules.gte) && !has(rules.gt) &&" + - " this >= rules.lt? \'value must be less t" + - "han %s\'.format([rules.lt]) : \'\'H\000R\002lt\022\242\001" + - "\n\003lte\030\003 \001(\004B\215\001\302H\211\001\n\206\001\n\nuint64.lte\032x!has(" + - "rules.gte) && !has(rules.gt) && this > r" + - "ules.lte? \'value must be less than or eq" + - "ual to %s\'.format([rules.lte]) : \'\'H\000R\003l" + - "te\022\240\007\n\002gt\030\004 \001(\004B\215\007\302H\211\007\n{\n\tuint64.gt\032n!ha" + - "s(rules.lt) && !has(rules.lte) && this <" + - "= rules.gt? \'value must be greater than " + - "%s\'.format([rules.gt]) : \'\'\n\264\001\n\014uint64.g" + - "t_lt\032\243\001has(rules.lt) && rules.lt >= rule" + - "s.gt && (this >= rules.lt || this <= rul" + - "es.gt)? \'value must be greater than %s a" + - "nd less than %s\'.format([rules.gt, rules" + - ".lt]) : \'\'\n\274\001\n\026uint64.gt_lt_exclusive\032\241\001" + - "has(rules.lt) && rules.lt < rules.gt && " + - "(rules.lt <= this && this <= rules.gt)? " + - "\'value must be greater than %s or less t" + - "han %s\'.format([rules.gt, rules.lt]) : \'" + - "\'\n\304\001\n\ruint64.gt_lte\032\262\001has(rules.lte) && " + - "rules.lte >= rules.gt && (this > rules.l" + - "te || this <= rules.gt)? \'value must be " + - "greater than %s and less than or equal t" + - "o %s\'.format([rules.gt, rules.lte]) : \'\'" + - "\n\314\001\n\027uint64.gt_lte_exclusive\032\260\001has(rules" + - ".lte) && rules.lte < rules.gt && (rules." + - "lte < this && this <= rules.gt)? \'value " + - "must be greater than %s or less than or " + - "equal to %s\'.format([rules.gt, rules.lte" + - "]) : \'\'H\001R\002gt\022\355\007\n\003gte\030\005 \001(\004B\330\007\302H\324\007\n\211\001\n\nu" + - "int64.gte\032{!has(rules.lt) && !has(rules." + - "lte) && this < rules.gte? \'value must be" + - " greater than or equal to %s\'.format([ru" + - "les.gte]) : \'\'\n\303\001\n\ruint64.gte_lt\032\261\001has(r" + - "ules.lt) && rules.lt >= rules.gte && (th" + - "is >= rules.lt || this < rules.gte)? \'va" + - "lue must be greater than or equal to %s " + - "and less than %s\'.format([rules.gte, rul" + - "es.lt]) : \'\'\n\313\001\n\027uint64.gte_lt_exclusive" + - "\032\257\001has(rules.lt) && rules.lt < rules.gte" + - " && (rules.lt <= this && this < rules.gt" + - "e)? \'value must be greater than or equal" + - " to %s or less than %s\'.format([rules.gt" + - "e, rules.lt]) : \'\'\n\323\001\n\016uint64.gte_lte\032\300\001" + - "has(rules.lte) && rules.lte >= rules.gte" + - " && (this > rules.lte || this < rules.gt" + - "e)? \'value must be greater than or equal" + - " to %s and less than or equal to %s\'.for" + - "mat([rules.gte, rules.lte]) : \'\'\n\333\001\n\030uin" + - "t64.gte_lte_exclusive\032\276\001has(rules.lte) &" + - "& rules.lte < rules.gte && (rules.lte < " + - "this && this < rules.gte)? \'value must b" + - "e greater than or equal to %s or less th" + - "an or equal to %s\'.format([rules.gte, ru" + - "les.lte]) : \'\'H\001R\003gte\022z\n\002in\030\006 \003(\004Bj\302Hg\ne" + - "\n\tuint64.in\032X!(this in dyn(rules)[\'in\'])" + - " ? \'value must be in list %s\'.format([dy" + - "n(rules)[\'in\']]) : \'\'R\002in\022~\n\006not_in\030\007 \003(" + - "\004Bg\302Hd\nb\n\ruint64.not_in\032Qthis in rules.n" + - "ot_in ? \'value must not be in list %s\'.f" + - "ormat([rules.not_in]) : \'\'R\005notIn\0225\n\007exa" + - "mple\030\010 \003(\004B\033\302H\030\n\026\n\016uint64.example\032\004trueR" + - "\007example*\t\010\350\007\020\200\200\200\200\002B\013\n\tless_thanB\016\n\014grea" + - "ter_than\"\245\025\n\013SInt32Rules\022q\n\005const\030\001 \001(\021B" + - "[\302HX\nV\n\014sint32.const\032Fthis != rules.cons" + - "t ? \'value must equal %s\'.format([rules." + - "const]) : \'\'R\005const\022\217\001\n\002lt\030\002 \001(\021B}\302Hz\nx\n" + - "\tsint32.lt\032k!has(rules.gte) && !has(rule" + - "s.gt) && this >= rules.lt? \'value must b" + - "e less than %s\'.format([rules.lt]) : \'\'H" + - "\000R\002lt\022\242\001\n\003lte\030\003 \001(\021B\215\001\302H\211\001\n\206\001\n\nsint32.lt" + - "e\032x!has(rules.gte) && !has(rules.gt) && " + - "this > rules.lte? \'value must be less th" + - "an or equal to %s\'.format([rules.lte]) :" + - " \'\'H\000R\003lte\022\240\007\n\002gt\030\004 \001(\021B\215\007\302H\211\007\n{\n\tsint32" + - ".gt\032n!has(rules.lt) && !has(rules.lte) &" + - "& this <= rules.gt? \'value must be great" + - "er than %s\'.format([rules.gt]) : \'\'\n\264\001\n\014" + - "sint32.gt_lt\032\243\001has(rules.lt) && rules.lt" + - " >= rules.gt && (this >= rules.lt || thi" + - "s <= rules.gt)? \'value must be greater t" + - "han %s and less than %s\'.format([rules.g" + - "t, rules.lt]) : \'\'\n\274\001\n\026sint32.gt_lt_excl" + - "usive\032\241\001has(rules.lt) && rules.lt < rule" + - "s.gt && (rules.lt <= this && this <= rul" + - "es.gt)? \'value must be greater than %s o" + - "r less than %s\'.format([rules.gt, rules." + - "lt]) : \'\'\n\304\001\n\rsint32.gt_lte\032\262\001has(rules." + - "lte) && rules.lte >= rules.gt && (this >" + - " rules.lte || this <= rules.gt)? \'value " + - "must be greater than %s and less than or" + - " equal to %s\'.format([rules.gt, rules.lt" + - "e]) : \'\'\n\314\001\n\027sint32.gt_lte_exclusive\032\260\001h" + - "as(rules.lte) && rules.lte < rules.gt &&" + - " (rules.lte < this && this <= rules.gt)?" + - " \'value must be greater than %s or less " + - "than or equal to %s\'.format([rules.gt, r" + - "ules.lte]) : \'\'H\001R\002gt\022\355\007\n\003gte\030\005 \001(\021B\330\007\302H" + - "\324\007\n\211\001\n\nsint32.gte\032{!has(rules.lt) && !ha" + - "s(rules.lte) && this < rules.gte? \'value" + - " must be greater than or equal to %s\'.fo" + - "rmat([rules.gte]) : \'\'\n\303\001\n\rsint32.gte_lt" + - "\032\261\001has(rules.lt) && rules.lt >= rules.gt" + - "e && (this >= rules.lt || this < rules.g" + - "te)? \'value must be greater than or equa" + - "l to %s and less than %s\'.format([rules." + - "gte, rules.lt]) : \'\'\n\313\001\n\027sint32.gte_lt_e" + - "xclusive\032\257\001has(rules.lt) && rules.lt < r" + - "ules.gte && (rules.lt <= this && this < " + - "rules.gte)? \'value must be greater than " + - "or equal to %s or less than %s\'.format([" + - "rules.gte, rules.lt]) : \'\'\n\323\001\n\016sint32.gt" + - "e_lte\032\300\001has(rules.lte) && rules.lte >= r" + - "ules.gte && (this > rules.lte || this < " + - "rules.gte)? \'value must be greater than " + - "or equal to %s and less than or equal to" + - " %s\'.format([rules.gte, rules.lte]) : \'\'" + - "\n\333\001\n\030sint32.gte_lte_exclusive\032\276\001has(rule" + - "s.lte) && rules.lte < rules.gte && (rule" + - "s.lte < this && this < rules.gte)? \'valu" + - "e must be greater than or equal to %s or" + - " less than or equal to %s\'.format([rules" + - ".gte, rules.lte]) : \'\'H\001R\003gte\022z\n\002in\030\006 \003(" + - "\021Bj\302Hg\ne\n\tsint32.in\032X!(this in dyn(rules" + - ")[\'in\']) ? \'value must be in list %s\'.fo" + - "rmat([dyn(rules)[\'in\']]) : \'\'R\002in\022~\n\006not" + - "_in\030\007 \003(\021Bg\302Hd\nb\n\rsint32.not_in\032Qthis in" + - " rules.not_in ? \'value must not be in li" + - "st %s\'.format([rules.not_in]) : \'\'R\005notI" + - "n\0225\n\007example\030\010 \003(\021B\033\302H\030\n\026\n\016sint32.exampl" + - "e\032\004trueR\007example*\t\010\350\007\020\200\200\200\200\002B\013\n\tless_than" + - "B\016\n\014greater_than\"\245\025\n\013SInt64Rules\022q\n\005cons" + - "t\030\001 \001(\022B[\302HX\nV\n\014sint64.const\032Fthis != ru" + - "les.const ? \'value must equal %s\'.format" + - "([rules.const]) : \'\'R\005const\022\217\001\n\002lt\030\002 \001(\022" + - "B}\302Hz\nx\n\tsint64.lt\032k!has(rules.gte) && !" + - "has(rules.gt) && this >= rules.lt? \'valu" + - "e must be less than %s\'.format([rules.lt" + - "]) : \'\'H\000R\002lt\022\242\001\n\003lte\030\003 \001(\022B\215\001\302H\211\001\n\206\001\n\ns" + - "int64.lte\032x!has(rules.gte) && !has(rules" + - ".gt) && this > rules.lte? \'value must be" + - " less than or equal to %s\'.format([rules" + - ".lte]) : \'\'H\000R\003lte\022\240\007\n\002gt\030\004 \001(\022B\215\007\302H\211\007\n{" + - "\n\tsint64.gt\032n!has(rules.lt) && !has(rule" + - "s.lte) && this <= rules.gt? \'value must " + - "be greater than %s\'.format([rules.gt]) :" + - " \'\'\n\264\001\n\014sint64.gt_lt\032\243\001has(rules.lt) && " + - "rules.lt >= rules.gt && (this >= rules.l" + - "t || this <= rules.gt)? \'value must be g" + - "reater than %s and less than %s\'.format(" + - "[rules.gt, rules.lt]) : \'\'\n\274\001\n\026sint64.gt" + - "_lt_exclusive\032\241\001has(rules.lt) && rules.l" + - "t < rules.gt && (rules.lt <= this && thi" + - "s <= rules.gt)? \'value must be greater t" + - "han %s or less than %s\'.format([rules.gt" + - ", rules.lt]) : \'\'\n\304\001\n\rsint64.gt_lte\032\262\001ha" + - "s(rules.lte) && rules.lte >= rules.gt &&" + - " (this > rules.lte || this <= rules.gt)?" + - " \'value must be greater than %s and less" + - " than or equal to %s\'.format([rules.gt, " + - "rules.lte]) : \'\'\n\314\001\n\027sint64.gt_lte_exclu" + - "sive\032\260\001has(rules.lte) && rules.lte < rul" + - "es.gt && (rules.lte < this && this <= ru" + - "les.gt)? \'value must be greater than %s " + - "or less than or equal to %s\'.format([rul" + - "es.gt, rules.lte]) : \'\'H\001R\002gt\022\355\007\n\003gte\030\005 " + - "\001(\022B\330\007\302H\324\007\n\211\001\n\nsint64.gte\032{!has(rules.lt" + - ") && !has(rules.lte) && this < rules.gte" + - "? \'value must be greater than or equal t" + - "o %s\'.format([rules.gte]) : \'\'\n\303\001\n\rsint6" + - "4.gte_lt\032\261\001has(rules.lt) && rules.lt >= " + - "rules.gte && (this >= rules.lt || this <" + - " rules.gte)? \'value must be greater than" + - " or equal to %s and less than %s\'.format" + - "([rules.gte, rules.lt]) : \'\'\n\313\001\n\027sint64." + - "gte_lt_exclusive\032\257\001has(rules.lt) && rule" + - "s.lt < rules.gte && (rules.lt <= this &&" + - " this < rules.gte)? \'value must be great" + - "er than or equal to %s or less than %s\'." + - "format([rules.gte, rules.lt]) : \'\'\n\323\001\n\016s" + - "int64.gte_lte\032\300\001has(rules.lte) && rules." + - "lte >= rules.gte && (this > rules.lte ||" + - " this < rules.gte)? \'value must be great" + - "er than or equal to %s and less than or " + - "equal to %s\'.format([rules.gte, rules.lt" + - "e]) : \'\'\n\333\001\n\030sint64.gte_lte_exclusive\032\276\001" + - "has(rules.lte) && rules.lte < rules.gte " + - "&& (rules.lte < this && this < rules.gte" + - ")? \'value must be greater than or equal " + - "to %s or less than or equal to %s\'.forma" + - "t([rules.gte, rules.lte]) : \'\'H\001R\003gte\022z\n" + - "\002in\030\006 \003(\022Bj\302Hg\ne\n\tsint64.in\032X!(this in d" + - "yn(rules)[\'in\']) ? \'value must be in lis" + - "t %s\'.format([dyn(rules)[\'in\']]) : \'\'R\002i" + - "n\022~\n\006not_in\030\007 \003(\022Bg\302Hd\nb\n\rsint64.not_in\032" + - "Qthis in rules.not_in ? \'value must not " + - "be in list %s\'.format([rules.not_in]) : " + - "\'\'R\005notIn\0225\n\007example\030\010 \003(\022B\033\302H\030\n\026\n\016sint6" + - "4.example\032\004trueR\007example*\t\010\350\007\020\200\200\200\200\002B\013\n\tl" + - "ess_thanB\016\n\014greater_than\"\266\025\n\014Fixed32Rule" + - "s\022r\n\005const\030\001 \001(\007B\\\302HY\nW\n\rfixed32.const\032F" + - "this != rules.const ? \'value must equal " + - "%s\'.format([rules.const]) : \'\'R\005const\022\220\001" + - "\n\002lt\030\002 \001(\007B~\302H{\ny\n\nfixed32.lt\032k!has(rule" + - "s.gte) && !has(rules.gt) && this >= rule" + - "s.lt? \'value must be less than %s\'.forma" + - "t([rules.lt]) : \'\'H\000R\002lt\022\243\001\n\003lte\030\003 \001(\007B\216" + - "\001\302H\212\001\n\207\001\n\013fixed32.lte\032x!has(rules.gte) &" + - "& !has(rules.gt) && this > rules.lte? \'v" + - "alue must be less than or equal to %s\'.f" + - "ormat([rules.lte]) : \'\'H\000R\003lte\022\245\007\n\002gt\030\004 " + - "\001(\007B\222\007\302H\216\007\n|\n\nfixed32.gt\032n!has(rules.lt)" + - " && !has(rules.lte) && this <= rules.gt?" + - " \'value must be greater than %s\'.format(" + - "[rules.gt]) : \'\'\n\265\001\n\rfixed32.gt_lt\032\243\001has" + - "(rules.lt) && rules.lt >= rules.gt && (t" + - "his >= rules.lt || this <= rules.gt)? \'v" + - "alue must be greater than %s and less th" + - "an %s\'.format([rules.gt, rules.lt]) : \'\'" + - "\n\275\001\n\027fixed32.gt_lt_exclusive\032\241\001has(rules" + - ".lt) && rules.lt < rules.gt && (rules.lt" + - " <= this && this <= rules.gt)? \'value mu" + - "st be greater than %s or less than %s\'.f" + - "ormat([rules.gt, rules.lt]) : \'\'\n\305\001\n\016fix" + - "ed32.gt_lte\032\262\001has(rules.lte) && rules.lt" + - "e >= rules.gt && (this > rules.lte || th" + - "is <= rules.gt)? \'value must be greater " + - "than %s and less than or equal to %s\'.fo" + - "rmat([rules.gt, rules.lte]) : \'\'\n\315\001\n\030fix" + - "ed32.gt_lte_exclusive\032\260\001has(rules.lte) &" + - "& rules.lte < rules.gt && (rules.lte < t" + - "his && this <= rules.gt)? \'value must be" + - " greater than %s or less than or equal t" + - "o %s\'.format([rules.gt, rules.lte]) : \'\'" + - "H\001R\002gt\022\362\007\n\003gte\030\005 \001(\007B\335\007\302H\331\007\n\212\001\n\013fixed32." + - "gte\032{!has(rules.lt) && !has(rules.lte) &" + - "& this < rules.gte? \'value must be great" + - "er than or equal to %s\'.format([rules.gt" + - "e]) : \'\'\n\304\001\n\016fixed32.gte_lt\032\261\001has(rules." + - "lt) && rules.lt >= rules.gte && (this >=" + - " rules.lt || this < rules.gte)? \'value m" + - "ust be greater than or equal to %s and l" + - "ess than %s\'.format([rules.gte, rules.lt" + - "]) : \'\'\n\314\001\n\030fixed32.gte_lt_exclusive\032\257\001h" + - "as(rules.lt) && rules.lt < rules.gte && " + - "(rules.lt <= this && this < rules.gte)? " + - "\'value must be greater than or equal to " + - "%s or less than %s\'.format([rules.gte, r" + - "ules.lt]) : \'\'\n\324\001\n\017fixed32.gte_lte\032\300\001has" + - "(rules.lte) && rules.lte >= rules.gte &&" + - " (this > rules.lte || this < rules.gte)?" + - " \'value must be greater than or equal to" + - " %s and less than or equal to %s\'.format" + - "([rules.gte, rules.lte]) : \'\'\n\334\001\n\031fixed3" + - "2.gte_lte_exclusive\032\276\001has(rules.lte) && " + - "rules.lte < rules.gte && (rules.lte < th" + - "is && this < rules.gte)? \'value must be " + - "greater than or equal to %s or less than" + - " or equal to %s\'.format([rules.gte, rule" + - "s.lte]) : \'\'H\001R\003gte\022{\n\002in\030\006 \003(\007Bk\302Hh\nf\n\n" + - "fixed32.in\032X!(this in dyn(rules)[\'in\']) " + - "? \'value must be in list %s\'.format([dyn" + - "(rules)[\'in\']]) : \'\'R\002in\022\177\n\006not_in\030\007 \003(\007" + - "Bh\302He\nc\n\016fixed32.not_in\032Qthis in rules.n" + - "ot_in ? \'value must not be in list %s\'.f" + - "ormat([rules.not_in]) : \'\'R\005notIn\0226\n\007exa" + - "mple\030\010 \003(\007B\034\302H\031\n\027\n\017fixed32.example\032\004true" + - "R\007example*\t\010\350\007\020\200\200\200\200\002B\013\n\tless_thanB\016\n\014gre" + - "ater_than\"\266\025\n\014Fixed64Rules\022r\n\005const\030\001 \001(" + - "\006B\\\302HY\nW\n\rfixed64.const\032Fthis != rules.c" + - "onst ? \'value must equal %s\'.format([rul" + - "es.const]) : \'\'R\005const\022\220\001\n\002lt\030\002 \001(\006B~\302H{" + - "\ny\n\nfixed64.lt\032k!has(rules.gte) && !has(" + - "rules.gt) && this >= rules.lt? \'value mu" + - "st be less than %s\'.format([rules.lt]) :" + - " \'\'H\000R\002lt\022\243\001\n\003lte\030\003 \001(\006B\216\001\302H\212\001\n\207\001\n\013fixed" + - "64.lte\032x!has(rules.gte) && !has(rules.gt" + - ") && this > rules.lte? \'value must be le" + - "ss than or equal to %s\'.format([rules.lt" + - "e]) : \'\'H\000R\003lte\022\245\007\n\002gt\030\004 \001(\006B\222\007\302H\216\007\n|\n\nf" + - "ixed64.gt\032n!has(rules.lt) && !has(rules." + - "lte) && this <= rules.gt? \'value must be" + - " greater than %s\'.format([rules.gt]) : \'" + - "\'\n\265\001\n\rfixed64.gt_lt\032\243\001has(rules.lt) && r" + - "ules.lt >= rules.gt && (this >= rules.lt" + - " || this <= rules.gt)? \'value must be gr" + - "eater than %s and less than %s\'.format([" + - "rules.gt, rules.lt]) : \'\'\n\275\001\n\027fixed64.gt" + - "_lt_exclusive\032\241\001has(rules.lt) && rules.l" + - "t < rules.gt && (rules.lt <= this && thi" + - "s <= rules.gt)? \'value must be greater t" + - "han %s or less than %s\'.format([rules.gt" + - ", rules.lt]) : \'\'\n\305\001\n\016fixed64.gt_lte\032\262\001h" + - "as(rules.lte) && rules.lte >= rules.gt &" + - "& (this > rules.lte || this <= rules.gt)" + - "? \'value must be greater than %s and les" + - "s than or equal to %s\'.format([rules.gt," + - " rules.lte]) : \'\'\n\315\001\n\030fixed64.gt_lte_exc" + - "lusive\032\260\001has(rules.lte) && rules.lte < r" + - "ules.gt && (rules.lte < this && this <= " + - "rules.gt)? \'value must be greater than %" + - "s or less than or equal to %s\'.format([r" + - "ules.gt, rules.lte]) : \'\'H\001R\002gt\022\362\007\n\003gte\030" + - "\005 \001(\006B\335\007\302H\331\007\n\212\001\n\013fixed64.gte\032{!has(rules" + - ".lt) && !has(rules.lte) && this < rules." + - "gte? \'value must be greater than or equa" + - "l to %s\'.format([rules.gte]) : \'\'\n\304\001\n\016fi" + - "xed64.gte_lt\032\261\001has(rules.lt) && rules.lt" + - " >= rules.gte && (this >= rules.lt || th" + - "is < rules.gte)? \'value must be greater " + - "than or equal to %s and less than %s\'.fo" + - "rmat([rules.gte, rules.lt]) : \'\'\n\314\001\n\030fix" + - "ed64.gte_lt_exclusive\032\257\001has(rules.lt) &&" + - " rules.lt < rules.gte && (rules.lt <= th" + - "is && this < rules.gte)? \'value must be " + - "greater than or equal to %s or less than" + - " %s\'.format([rules.gte, rules.lt]) : \'\'\n" + - "\324\001\n\017fixed64.gte_lte\032\300\001has(rules.lte) && " + - "rules.lte >= rules.gte && (this > rules." + - "lte || this < rules.gte)? \'value must be" + - " greater than or equal to %s and less th" + - "an or equal to %s\'.format([rules.gte, ru" + - "les.lte]) : \'\'\n\334\001\n\031fixed64.gte_lte_exclu" + - "sive\032\276\001has(rules.lte) && rules.lte < rul" + - "es.gte && (rules.lte < this && this < ru" + - "les.gte)? \'value must be greater than or" + - " equal to %s or less than or equal to %s" + - "\'.format([rules.gte, rules.lte]) : \'\'H\001R" + - "\003gte\022{\n\002in\030\006 \003(\006Bk\302Hh\nf\n\nfixed64.in\032X!(t" + - "his in dyn(rules)[\'in\']) ? \'value must b" + - "e in list %s\'.format([dyn(rules)[\'in\']])" + - " : \'\'R\002in\022\177\n\006not_in\030\007 \003(\006Bh\302He\nc\n\016fixed6" + - "4.not_in\032Qthis in rules.not_in ? \'value " + - "must not be in list %s\'.format([rules.no" + - "t_in]) : \'\'R\005notIn\0226\n\007example\030\010 \003(\006B\034\302H\031" + - "\n\027\n\017fixed64.example\032\004trueR\007example*\t\010\350\007\020" + - "\200\200\200\200\002B\013\n\tless_thanB\016\n\014greater_than\"\310\025\n\rS" + - "Fixed32Rules\022s\n\005const\030\001 \001(\017B]\302HZ\nX\n\016sfix" + - "ed32.const\032Fthis != rules.const ? \'value" + - " must equal %s\'.format([rules.const]) : " + - "\'\'R\005const\022\221\001\n\002lt\030\002 \001(\017B\177\302H|\nz\n\013sfixed32." + - "lt\032k!has(rules.gte) && !has(rules.gt) &&" + - " this >= rules.lt? \'value must be less t" + - "han %s\'.format([rules.lt]) : \'\'H\000R\002lt\022\244\001" + - "\n\003lte\030\003 \001(\017B\217\001\302H\213\001\n\210\001\n\014sfixed32.lte\032x!ha" + - "s(rules.gte) && !has(rules.gt) && this >" + - " rules.lte? \'value must be less than or " + - "equal to %s\'.format([rules.lte]) : \'\'H\000R" + - "\003lte\022\252\007\n\002gt\030\004 \001(\017B\227\007\302H\223\007\n}\n\013sfixed32.gt\032" + - "n!has(rules.lt) && !has(rules.lte) && th" + - "is <= rules.gt? \'value must be greater t" + - "han %s\'.format([rules.gt]) : \'\'\n\266\001\n\016sfix" + - "ed32.gt_lt\032\243\001has(rules.lt) && rules.lt >" + - "= rules.gt && (this >= rules.lt || this " + - "<= rules.gt)? \'value must be greater tha" + - "n %s and less than %s\'.format([rules.gt," + - " rules.lt]) : \'\'\n\276\001\n\030sfixed32.gt_lt_excl" + - "usive\032\241\001has(rules.lt) && rules.lt < rule" + - "s.gt && (rules.lt <= this && this <= rul" + - "es.gt)? \'value must be greater than %s o" + - "r less than %s\'.format([rules.gt, rules." + - "lt]) : \'\'\n\306\001\n\017sfixed32.gt_lte\032\262\001has(rule" + - "s.lte) && rules.lte >= rules.gt && (this" + - " > rules.lte || this <= rules.gt)? \'valu" + - "e must be greater than %s and less than " + - "or equal to %s\'.format([rules.gt, rules." + - "lte]) : \'\'\n\316\001\n\031sfixed32.gt_lte_exclusive" + - "\032\260\001has(rules.lte) && rules.lte < rules.g" + - "t && (rules.lte < this && this <= rules." + - "gt)? \'value must be greater than %s or l" + - "ess than or equal to %s\'.format([rules.g" + - "t, rules.lte]) : \'\'H\001R\002gt\022\367\007\n\003gte\030\005 \001(\017B" + - "\342\007\302H\336\007\n\213\001\n\014sfixed32.gte\032{!has(rules.lt) " + - "&& !has(rules.lte) && this < rules.gte? " + - "\'value must be greater than or equal to " + - "%s\'.format([rules.gte]) : \'\'\n\305\001\n\017sfixed3" + - "2.gte_lt\032\261\001has(rules.lt) && rules.lt >= " + - "rules.gte && (this >= rules.lt || this <" + - " rules.gte)? \'value must be greater than" + - " or equal to %s and less than %s\'.format" + - "([rules.gte, rules.lt]) : \'\'\n\315\001\n\031sfixed3" + - "2.gte_lt_exclusive\032\257\001has(rules.lt) && ru" + - "les.lt < rules.gte && (rules.lt <= this " + - "&& this < rules.gte)? \'value must be gre" + - "ater than or equal to %s or less than %s" + - "\'.format([rules.gte, rules.lt]) : \'\'\n\325\001\n" + - "\020sfixed32.gte_lte\032\300\001has(rules.lte) && ru" + - "les.lte >= rules.gte && (this > rules.lt" + - "e || this < rules.gte)? \'value must be g" + - "reater than or equal to %s and less than" + - " or equal to %s\'.format([rules.gte, rule" + - "s.lte]) : \'\'\n\335\001\n\032sfixed32.gte_lte_exclus" + - "ive\032\276\001has(rules.lte) && rules.lte < rule" + - "s.gte && (rules.lte < this && this < rul", - "es.gte)? \'value must be greater than or " + - "equal to %s or less than or equal to %s\'" + - ".format([rules.gte, rules.lte]) : \'\'H\001R\003" + - "gte\022|\n\002in\030\006 \003(\017Bl\302Hi\ng\n\013sfixed32.in\032X!(t" + - "his in dyn(rules)[\'in\']) ? \'value must b" + - "e in list %s\'.format([dyn(rules)[\'in\']])" + - " : \'\'R\002in\022\200\001\n\006not_in\030\007 \003(\017Bi\302Hf\nd\n\017sfixe" + - "d32.not_in\032Qthis in rules.not_in ? \'valu" + - "e must not be in list %s\'.format([rules." + - "not_in]) : \'\'R\005notIn\0227\n\007example\030\010 \003(\017B\035\302" + - "H\032\n\030\n\020sfixed32.example\032\004trueR\007example*\t\010" + - "\350\007\020\200\200\200\200\002B\013\n\tless_thanB\016\n\014greater_than\"\310\025" + - "\n\rSFixed64Rules\022s\n\005const\030\001 \001(\020B]\302HZ\nX\n\016s" + - "fixed64.const\032Fthis != rules.const ? \'va" + - "lue must equal %s\'.format([rules.const])" + - " : \'\'R\005const\022\221\001\n\002lt\030\002 \001(\020B\177\302H|\nz\n\013sfixed" + - "64.lt\032k!has(rules.gte) && !has(rules.gt)" + - " && this >= rules.lt? \'value must be les" + - "s than %s\'.format([rules.lt]) : \'\'H\000R\002lt" + - "\022\244\001\n\003lte\030\003 \001(\020B\217\001\302H\213\001\n\210\001\n\014sfixed64.lte\032x" + - "!has(rules.gte) && !has(rules.gt) && thi" + - "s > rules.lte? \'value must be less than " + - "or equal to %s\'.format([rules.lte]) : \'\'" + - "H\000R\003lte\022\252\007\n\002gt\030\004 \001(\020B\227\007\302H\223\007\n}\n\013sfixed64." + - "gt\032n!has(rules.lt) && !has(rules.lte) &&" + - " this <= rules.gt? \'value must be greate" + - "r than %s\'.format([rules.gt]) : \'\'\n\266\001\n\016s" + - "fixed64.gt_lt\032\243\001has(rules.lt) && rules.l" + - "t >= rules.gt && (this >= rules.lt || th" + - "is <= rules.gt)? \'value must be greater " + - "than %s and less than %s\'.format([rules." + - "gt, rules.lt]) : \'\'\n\276\001\n\030sfixed64.gt_lt_e" + - "xclusive\032\241\001has(rules.lt) && rules.lt < r" + - "ules.gt && (rules.lt <= this && this <= " + - "rules.gt)? \'value must be greater than %" + - "s or less than %s\'.format([rules.gt, rul" + - "es.lt]) : \'\'\n\306\001\n\017sfixed64.gt_lte\032\262\001has(r" + - "ules.lte) && rules.lte >= rules.gt && (t" + - "his > rules.lte || this <= rules.gt)? \'v" + - "alue must be greater than %s and less th" + - "an or equal to %s\'.format([rules.gt, rul" + - "es.lte]) : \'\'\n\316\001\n\031sfixed64.gt_lte_exclus" + - "ive\032\260\001has(rules.lte) && rules.lte < rule" + - "s.gt && (rules.lte < this && this <= rul" + - "es.gt)? \'value must be greater than %s o" + - "r less than or equal to %s\'.format([rule" + - "s.gt, rules.lte]) : \'\'H\001R\002gt\022\367\007\n\003gte\030\005 \001" + - "(\020B\342\007\302H\336\007\n\213\001\n\014sfixed64.gte\032{!has(rules.l" + - "t) && !has(rules.lte) && this < rules.gt" + - "e? \'value must be greater than or equal " + - "to %s\'.format([rules.gte]) : \'\'\n\305\001\n\017sfix" + - "ed64.gte_lt\032\261\001has(rules.lt) && rules.lt " + - ">= rules.gte && (this >= rules.lt || thi" + - "s < rules.gte)? \'value must be greater t" + - "han or equal to %s and less than %s\'.for" + - "mat([rules.gte, rules.lt]) : \'\'\n\315\001\n\031sfix" + - "ed64.gte_lt_exclusive\032\257\001has(rules.lt) &&" + - " rules.lt < rules.gte && (rules.lt <= th" + - "is && this < rules.gte)? \'value must be " + - "greater than or equal to %s or less than" + - " %s\'.format([rules.gte, rules.lt]) : \'\'\n" + - "\325\001\n\020sfixed64.gte_lte\032\300\001has(rules.lte) &&" + - " rules.lte >= rules.gte && (this > rules" + - ".lte || this < rules.gte)? \'value must b" + - "e greater than or equal to %s and less t" + - "han or equal to %s\'.format([rules.gte, r" + - "ules.lte]) : \'\'\n\335\001\n\032sfixed64.gte_lte_exc" + - "lusive\032\276\001has(rules.lte) && rules.lte < r" + - "ules.gte && (rules.lte < this && this < " + - "rules.gte)? \'value must be greater than " + - "or equal to %s or less than or equal to " + - "%s\'.format([rules.gte, rules.lte]) : \'\'H" + - "\001R\003gte\022|\n\002in\030\006 \003(\020Bl\302Hi\ng\n\013sfixed64.in\032X" + - "!(this in dyn(rules)[\'in\']) ? \'value mus" + - "t be in list %s\'.format([dyn(rules)[\'in\'" + - "]]) : \'\'R\002in\022\200\001\n\006not_in\030\007 \003(\020Bi\302Hf\nd\n\017sf" + - "ixed64.not_in\032Qthis in rules.not_in ? \'v" + - "alue must not be in list %s\'.format([rul" + - "es.not_in]) : \'\'R\005notIn\0227\n\007example\030\010 \003(\020" + - "B\035\302H\032\n\030\n\020sfixed64.example\032\004trueR\007example" + - "*\t\010\350\007\020\200\200\200\200\002B\013\n\tless_thanB\016\n\014greater_than" + - "\"\274\001\n\tBoolRules\022o\n\005const\030\001 \001(\010BY\302HV\nT\n\nbo" + - "ol.const\032Fthis != rules.const ? \'value m" + - "ust equal %s\'.format([rules.const]) : \'\'" + - "R\005const\0223\n\007example\030\002 \003(\010B\031\302H\026\n\024\n\014bool.ex" + - "ample\032\004trueR\007example*\t\010\350\007\020\200\200\200\200\002\"\2539\n\013Stri" + - "ngRules\022s\n\005const\030\001 \001(\tB]\302HZ\nX\n\014string.co" + - "nst\032Hthis != rules.const ? \'value must e" + - "qual `%s`\'.format([rules.const]) : \'\'R\005c" + - "onst\022\203\001\n\003len\030\023 \001(\004Bq\302Hn\nl\n\nstring.len\032^u" + - "int(this.size()) != rules.len ? \'value l" + - "ength must be %s characters\'.format([rul" + - "es.len]) : \'\'R\003len\022\241\001\n\007min_len\030\002 \001(\004B\207\001\302" + - "H\203\001\n\200\001\n\016string.min_len\032nuint(this.size()" + - ") < rules.min_len ? \'value length must b" + - "e at least %s characters\'.format([rules." + - "min_len]) : \'\'R\006minLen\022\237\001\n\007max_len\030\003 \001(\004" + - "B\205\001\302H\201\001\n\177\n\016string.max_len\032muint(this.siz" + - "e()) > rules.max_len ? \'value length mus" + - "t be at most %s characters\'.format([rule" + - "s.max_len]) : \'\'R\006maxLen\022\245\001\n\tlen_bytes\030\024" + - " \001(\004B\207\001\302H\203\001\n\200\001\n\020string.len_bytes\032luint(b" + - "ytes(this).size()) != rules.len_bytes ? " + - "\'value length must be %s bytes\'.format([" + - "rules.len_bytes]) : \'\'R\010lenBytes\022\255\001\n\tmin" + - "_bytes\030\004 \001(\004B\217\001\302H\213\001\n\210\001\n\020string.min_bytes" + - "\032tuint(bytes(this).size()) < rules.min_b" + - "ytes ? \'value length must be at least %s" + - " bytes\'.format([rules.min_bytes]) : \'\'R\010" + - "minBytes\022\254\001\n\tmax_bytes\030\005 \001(\004B\216\001\302H\212\001\n\207\001\n\020" + - "string.max_bytes\032suint(bytes(this).size(" + - ")) > rules.max_bytes ? \'value length mus" + - "t be at most %s bytes\'.format([rules.max" + - "_bytes]) : \'\'R\010maxBytes\022\226\001\n\007pattern\030\006 \001(" + - "\tB|\302Hy\nw\n\016string.pattern\032e!this.matches(" + - "rules.pattern) ? \'value does not match r" + - "egex pattern `%s`\'.format([rules.pattern" + - "]) : \'\'R\007pattern\022\214\001\n\006prefix\030\007 \001(\tBt\302Hq\no" + - "\n\rstring.prefix\032^!this.startsWith(rules." + - "prefix) ? \'value does not have prefix `%" + - "s`\'.format([rules.prefix]) : \'\'R\006prefix\022" + - "\212\001\n\006suffix\030\010 \001(\tBr\302Ho\nm\n\rstring.suffix\032\\" + - "!this.endsWith(rules.suffix) ? \'value do" + - "es not have suffix `%s`\'.format([rules.s" + - "uffix]) : \'\'R\006suffix\022\232\001\n\010contains\030\t \001(\tB" + - "~\302H{\ny\n\017string.contains\032f!this.contains(" + - "rules.contains) ? \'value does not contai" + - "n substring `%s`\'.format([rules.contains" + - "]) : \'\'R\010contains\022\245\001\n\014not_contains\030\027 \001(\t" + - "B\201\001\302H~\n|\n\023string.not_contains\032ethis.cont" + - "ains(rules.not_contains) ? \'value contai" + - "ns substring `%s`\'.format([rules.not_con" + - "tains]) : \'\'R\013notContains\022z\n\002in\030\n \003(\tBj\302" + - "Hg\ne\n\tstring.in\032X!(this in dyn(rules)[\'i" + - "n\']) ? \'value must be in list %s\'.format" + - "([dyn(rules)[\'in\']]) : \'\'R\002in\022~\n\006not_in\030" + - "\013 \003(\tBg\302Hd\nb\n\rstring.not_in\032Qthis in rul" + - "es.not_in ? \'value must not be in list %" + - "s\'.format([rules.not_in]) : \'\'R\005notIn\022\346\001" + - "\n\005email\030\014 \001(\010B\315\001\302H\311\001\na\n\014string.email\022#va" + - "lue must be a valid email address\032,!rule" + - "s.email || this == \'\' || this.isEmail()\n" + - "d\n\022string.email_empty\0222value is empty, w" + - "hich is not a valid email address\032\032!rule" + - "s.email || this != \'\'H\000R\005email\022\361\001\n\010hostn" + - "ame\030\r \001(\010B\322\001\302H\316\001\ne\n\017string.hostname\022\036val" + - "ue must be a valid hostname\0322!rules.host" + - "name || this == \'\' || this.isHostname()\n" + - "e\n\025string.hostname_empty\022-value is empty" + - ", which is not a valid hostname\032\035!rules." + - "hostname || this != \'\'H\000R\010hostname\022\313\001\n\002i" + - "p\030\016 \001(\010B\270\001\302H\264\001\nU\n\tstring.ip\022 value must " + - "be a valid IP address\032&!rules.ip || this" + - " == \'\' || this.isIp()\n[\n\017string.ip_empty" + - "\022/value is empty, which is not a valid I" + - "P address\032\027!rules.ip || this != \'\'H\000R\002ip" + - "\022\334\001\n\004ipv4\030\017 \001(\010B\305\001\302H\301\001\n\\\n\013string.ipv4\022\"v" + - "alue must be a valid IPv4 address\032)!rule" + - "s.ipv4 || this == \'\' || this.isIp(4)\na\n\021" + - "string.ipv4_empty\0221value is empty, which" + - " is not a valid IPv4 address\032\031!rules.ipv" + - "4 || this != \'\'H\000R\004ipv4\022\334\001\n\004ipv6\030\020 \001(\010B\305" + - "\001\302H\301\001\n\\\n\013string.ipv6\022\"value must be a va" + - "lid IPv6 address\032)!rules.ipv6 || this ==" + - " \'\' || this.isIp(6)\na\n\021string.ipv6_empty" + - "\0221value is empty, which is not a valid I" + - "Pv6 address\032\031!rules.ipv6 || this != \'\'H\000" + - "R\004ipv6\022\304\001\n\003uri\030\021 \001(\010B\257\001\302H\253\001\nQ\n\nstring.ur" + - "i\022\031value must be a valid URI\032(!rules.uri" + - " || this == \'\' || this.isUri()\nV\n\020string" + - ".uri_empty\022(value is empty, which is not" + - " a valid URI\032\030!rules.uri || this != \'\'H\000" + - "R\003uri\022x\n\007uri_ref\030\022 \001(\010B]\302HZ\nX\n\016string.ur" + - "i_ref\022#value must be a valid URI Referen" + - "ce\032!!rules.uri_ref || this.isUriRef()H\000R" + - "\006uriRef\022\231\002\n\007address\030\025 \001(\010B\374\001\302H\370\001\n\201\001\n\016str" + - "ing.address\022-value must be a valid hostn" + - "ame, or ip address\032@!rules.address || th" + - "is == \'\' || this.isHostname() || this.is" + - "Ip()\nr\n\024string.address_empty\022!rules.ipv4_with_prefixlen " + - "|| this == \'\' || this.isIpPrefix(4)\n\222\001\n " + - "string.ipv4_with_prefixlen_empty\022Dvalue " + - "is empty, which is not a valid IPv4 addr" + - "ess with prefix length\032(!rules.ipv4_with" + - "_prefixlen || this != \'\'H\000R\021ipv4WithPref" + - "ixlen\022\342\002\n\023ipv6_with_prefixlen\030\034 \001(\010B\257\002\302H" + - "\253\002\n\223\001\n\032string.ipv6_with_prefixlen\0225value" + - " must be a valid IPv6 address with prefi" + - "x length\032>!rules.ipv6_with_prefixlen || " + - "this == \'\' || this.isIpPrefix(6)\n\222\001\n str" + - "ing.ipv6_with_prefixlen_empty\022Dvalue is " + - "empty, which is not a valid IPv6 address" + - " with prefix length\032(!rules.ipv6_with_pr" + - "efixlen || this != \'\'H\000R\021ipv6WithPrefixl" + - "en\022\374\001\n\tip_prefix\030\035 \001(\010B\334\001\302H\330\001\nl\n\020string." + - "ip_prefix\022\037value must be a valid IP pref" + - "ix\0327!rules.ip_prefix || this == \'\' || th" + - "is.isIpPrefix(true)\nh\n\026string.ip_prefix_" + - "empty\022.value is empty, which is not a va" + - "lid IP prefix\032\036!rules.ip_prefix || this " + - "!= \'\'H\000R\010ipPrefix\022\217\002\n\013ipv4_prefix\030\036 \001(\010B" + - "\353\001\302H\347\001\nu\n\022string.ipv4_prefix\022!value must" + - " be a valid IPv4 prefix\032!rules.host_and_port || this =" + - "= \'\' || this.isHostAndPort(true)\ny\n\032stri" + - "ng.host_and_port_empty\0227value is empty, " + - "which is not a valid host and port pair\032" + - "\"!rules.host_and_port || this != \'\'H\000R\013h" + - "ostAndPort\022\270\005\n\020well_known_regex\030\030 \001(\0162\030." + - "buf.validate.KnownRegexB\361\004\302H\355\004\n\360\001\n#strin" + - "g.well_known_regex.header_name\022&value mu" + - "st be a valid HTTP header name\032\240\001rules.w" + - "ell_known_regex != 1 || this == \'\' || th" + - "is.matches(!has(rules.strict) || rules.s" + - "trict ?\'^:?[0-9a-zA-Z!#$%&\\\'*+-.^_|~\\x60" + - "]+$\' :\'^[^\\u0000\\u000A\\u000D]+$\')\n\215\001\n)st" + - "ring.well_known_regex.header_name_empty\022" + - "5value is empty, which is not a valid HT" + - "TP header name\032)rules.well_known_regex !" + - "= 1 || this != \'\'\n\347\001\n$string.well_known_" + - "regex.header_value\022\'value must be a vali" + - "d HTTP header value\032\225\001rules.well_known_r" + - "egex != 2 || this.matches(!has(rules.str" + - "ict) || rules.strict ?\'^[^\\u0000-\\u0008\\" + - "u000A-\\u001F\\u007F]*$\' :\'^[^\\u0000\\u000A" + - "\\u000D]*$\')H\000R\016wellKnownRegex\022\026\n\006strict\030" + - "\031 \001(\010R\006strict\0225\n\007example\030\" \003(\tB\033\302H\030\n\026\n\016s" + - "tring.example\032\004trueR\007example*\t\010\350\007\020\200\200\200\200\002B" + - "\014\n\nwell_known\"\243\021\n\nBytesRules\022m\n\005const\030\001 " + - "\001(\014BW\302HT\nR\n\013bytes.const\032Cthis != rules.c" + - "onst ? \'value must be %x\'.format([rules." + - "const]) : \'\'R\005const\022}\n\003len\030\r \001(\004Bk\302Hh\nf\n" + - "\tbytes.len\032Yuint(this.size()) != rules.l" + - "en ? \'value length must be %s bytes\'.for" + - "mat([rules.len]) : \'\'R\003len\022\230\001\n\007min_len\030\002" + - " \001(\004B\177\302H|\nz\n\rbytes.min_len\032iuint(this.si" + - "ze()) < rules.min_len ? \'value length mu" + - "st be at least %s bytes\'.format([rules.m" + - "in_len]) : \'\'R\006minLen\022\220\001\n\007max_len\030\003 \001(\004B" + - "w\302Ht\nr\n\rbytes.max_len\032auint(this.size())" + - " > rules.max_len ? \'value must be at mos" + - "t %s bytes\'.format([rules.max_len]) : \'\'" + - "R\006maxLen\022\231\001\n\007pattern\030\004 \001(\tB\177\302H|\nz\n\rbytes" + - ".pattern\032i!string(this).matches(rules.pa" + - "ttern) ? \'value must match regex pattern" + - " `%s`\'.format([rules.pattern]) : \'\'R\007pat" + - "tern\022\211\001\n\006prefix\030\005 \001(\014Bq\302Hn\nl\n\014bytes.pref" + - "ix\032\\!this.startsWith(rules.prefix) ? \'va" + - "lue does not have prefix %x\'.format([rul" + - "es.prefix]) : \'\'R\006prefix\022\207\001\n\006suffix\030\006 \001(" + - "\014Bo\302Hl\nj\n\014bytes.suffix\032Z!this.endsWith(r" + - "ules.suffix) ? \'value does not have suff" + - "ix %x\'.format([rules.suffix]) : \'\'R\006suff" + - "ix\022\215\001\n\010contains\030\007 \001(\014Bq\302Hn\nl\n\016bytes.cont" + - "ains\032Z!this.contains(rules.contains) ? \'" + - "value does not contain %x\'.format([rules" + - ".contains]) : \'\'R\010contains\022\233\001\n\002in\030\010 \003(\014B" + - "\212\001\302H\206\001\n\203\001\n\010bytes.in\032wdyn(rules)[\'in\'].si" + - "ze() > 0 && !(this in dyn(rules)[\'in\']) " + - "? \'value must be in list %s\'.format([dyn" + - "(rules)[\'in\']]) : \'\'R\002in\022}\n\006not_in\030\t \003(\014" + - "Bf\302Hc\na\n\014bytes.not_in\032Qthis in rules.not" + - "_in ? \'value must not be in list %s\'.for" + - "mat([rules.not_in]) : \'\'R\005notIn\022\357\001\n\002ip\030\n" + - " \001(\010B\334\001\302H\330\001\nt\n\010bytes.ip\022 value must be a" + - " valid IP address\032F!rules.ip || this.siz" + - "e() == 0 || this.size() == 4 || this.siz" + - "e() == 16\n`\n\016bytes.ip_empty\022/value is em" + - "pty, which is not a valid IP address\032\035!r" + - "ules.ip || this.size() != 0H\000R\002ip\022\352\001\n\004ip" + - "v4\030\013 \001(\010B\323\001\302H\317\001\ne\n\nbytes.ipv4\022\"value mus" + - "t be a valid IPv4 address\0323!rules.ipv4 |" + - "| this.size() == 0 || this.size() == 4\nf" + - "\n\020bytes.ipv4_empty\0221value is empty, whic" + - "h is not a valid IPv4 address\032\037!rules.ip" + - "v4 || this.size() != 0H\000R\004ipv4\022\353\001\n\004ipv6\030" + - "\014 \001(\010B\324\001\302H\320\001\nf\n\nbytes.ipv6\022\"value must b" + - "e a valid IPv6 address\0324!rules.ipv6 || t" + - "his.size() == 0 || this.size() == 16\nf\n\020" + - "bytes.ipv6_empty\0221value is empty, which " + - "is not a valid IPv6 address\032\037!rules.ipv6" + - " || this.size() != 0H\000R\004ipv6\0224\n\007example\030" + - "\016 \003(\014B\032\302H\027\n\025\n\rbytes.example\032\004trueR\007examp" + - "le*\t\010\350\007\020\200\200\200\200\002B\014\n\nwell_known\"\327\003\n\tEnumRule" + - "s\022o\n\005const\030\001 \001(\005BY\302HV\nT\n\nenum.const\032Fthi" + - "s != rules.const ? \'value must equal %s\'" + - ".format([rules.const]) : \'\'R\005const\022!\n\014de" + - "fined_only\030\002 \001(\010R\013definedOnly\022x\n\002in\030\003 \003(" + - "\005Bh\302He\nc\n\007enum.in\032X!(this in dyn(rules)[" + - "\'in\']) ? \'value must be in list %s\'.form" + - "at([dyn(rules)[\'in\']]) : \'\'R\002in\022|\n\006not_i" + - "n\030\004 \003(\005Be\302Hb\n`\n\013enum.not_in\032Qthis in rul" + - "es.not_in ? \'value must not be in list %" + - "s\'.format([rules.not_in]) : \'\'R\005notIn\0223\n" + - "\007example\030\005 \003(\005B\031\302H\026\n\024\n\014enum.example\032\004tru" + - "eR\007example*\t\010\350\007\020\200\200\200\200\002\"\244\004\n\rRepeatedRules\022" + - "\250\001\n\tmin_items\030\001 \001(\004B\212\001\302H\206\001\n\203\001\n\022repeated." + - "min_items\032muint(this.size()) < rules.min" + - "_items ? \'value must contain at least %d" + - " item(s)\'.format([rules.min_items]) : \'\'" + - "R\010minItems\022\254\001\n\tmax_items\030\002 \001(\004B\216\001\302H\212\001\n\207\001" + - "\n\022repeated.max_items\032quint(this.size()) " + - "> rules.max_items ? \'value must contain " + - "no more than %s item(s)\'.format([rules.m" + - "ax_items]) : \'\'R\010maxItems\022x\n\006unique\030\003 \001(" + - "\010B`\302H]\n[\n\017repeated.unique\022(repeated valu" + - "e must contain unique items\032\036!rules.uniq" + - "ue || this.unique()R\006unique\0224\n\005items\030\004 \001" + - "(\0132\036.buf.validate.FieldConstraintsR\005item" + - "s*\t\010\350\007\020\200\200\200\200\002\"\270\003\n\010MapRules\022\231\001\n\tmin_pairs\030" + - "\001 \001(\004B|\302Hy\nw\n\rmap.min_pairs\032fuint(this.s" + - "ize()) < rules.min_pairs ? \'map must be " + - "at least %d entries\'.format([rules.min_p" + - "airs]) : \'\'R\010minPairs\022\230\001\n\tmax_pairs\030\002 \001(" + - "\004B{\302Hx\nv\n\rmap.max_pairs\032euint(this.size(" + - ")) > rules.max_pairs ? \'map must be at m" + - "ost %d entries\'.format([rules.max_pairs]" + - ") : \'\'R\010maxPairs\0222\n\004keys\030\004 \001(\0132\036.buf.val" + - "idate.FieldConstraintsR\004keys\0226\n\006values\030\005" + - " \001(\0132\036.buf.validate.FieldConstraintsR\006va" + - "lues*\t\010\350\007\020\200\200\200\200\002\"1\n\010AnyRules\022\016\n\002in\030\002 \003(\tR" + - "\002in\022\025\n\006not_in\030\003 \003(\tR\005notIn\"\242\027\n\rDurationR" + - "ules\022\216\001\n\005const\030\002 \001(\0132\031.google.protobuf.D" + - "urationB]\302HZ\nX\n\016duration.const\032Fthis != " + - "rules.const ? \'value must equal %s\'.form" + - "at([rules.const]) : \'\'R\005const\022\254\001\n\002lt\030\003 \001" + - "(\0132\031.google.protobuf.DurationB\177\302H|\nz\n\013du" + - "ration.lt\032k!has(rules.gte) && !has(rules" + - ".gt) && this >= rules.lt? \'value must be" + - " less than %s\'.format([rules.lt]) : \'\'H\000" + - "R\002lt\022\277\001\n\003lte\030\004 \001(\0132\031.google.protobuf.Dur" + - "ationB\217\001\302H\213\001\n\210\001\n\014duration.lte\032x!has(rule" + - "s.gte) && !has(rules.gt) && this > rules" + - ".lte? \'value must be less than or equal " + - "to %s\'.format([rules.lte]) : \'\'H\000R\003lte\022\305" + - "\007\n\002gt\030\005 \001(\0132\031.google.protobuf.DurationB\227" + - "\007\302H\223\007\n}\n\013duration.gt\032n!has(rules.lt) && " + - "!has(rules.lte) && this <= rules.gt? \'va" + - "lue must be greater than %s\'.format([rul" + - "es.gt]) : \'\'\n\266\001\n\016duration.gt_lt\032\243\001has(ru" + - "les.lt) && rules.lt >= rules.gt && (this" + - " >= rules.lt || this <= rules.gt)? \'valu" + - "e must be greater than %s and less than " + - "%s\'.format([rules.gt, rules.lt]) : \'\'\n\276\001" + - "\n\030duration.gt_lt_exclusive\032\241\001has(rules.l" + - "t) && rules.lt < rules.gt && (rules.lt <" + - "= this && this <= rules.gt)? \'value must" + - " be greater than %s or less than %s\'.for" + - "mat([rules.gt, rules.lt]) : \'\'\n\306\001\n\017durat" + - "ion.gt_lte\032\262\001has(rules.lte) && rules.lte" + - " >= rules.gt && (this > rules.lte || thi" + - "s <= rules.gt)? \'value must be greater t" + - "han %s and less than or equal to %s\'.for" + - "mat([rules.gt, rules.lte]) : \'\'\n\316\001\n\031dura" + - "tion.gt_lte_exclusive\032\260\001has(rules.lte) &" + - "& rules.lte < rules.gt && (rules.lte < t" + - "his && this <= rules.gt)? \'value must be" + - " greater than %s or less than or equal t" + - "o %s\'.format([rules.gt, rules.lte]) : \'\'", - "H\001R\002gt\022\222\010\n\003gte\030\006 \001(\0132\031.google.protobuf.D" + - "urationB\342\007\302H\336\007\n\213\001\n\014duration.gte\032{!has(ru" + - "les.lt) && !has(rules.lte) && this < rul" + - "es.gte? \'value must be greater than or e" + - "qual to %s\'.format([rules.gte]) : \'\'\n\305\001\n" + - "\017duration.gte_lt\032\261\001has(rules.lt) && rule" + - "s.lt >= rules.gte && (this >= rules.lt |" + - "| this < rules.gte)? \'value must be grea" + - "ter than or equal to %s and less than %s" + - "\'.format([rules.gte, rules.lt]) : \'\'\n\315\001\n" + - "\031duration.gte_lt_exclusive\032\257\001has(rules.l" + - "t) && rules.lt < rules.gte && (rules.lt " + - "<= this && this < rules.gte)? \'value mus" + - "t be greater than or equal to %s or less" + - " than %s\'.format([rules.gte, rules.lt]) " + - ": \'\'\n\325\001\n\020duration.gte_lte\032\300\001has(rules.lt" + - "e) && rules.lte >= rules.gte && (this > " + - "rules.lte || this < rules.gte)? \'value m" + - "ust be greater than or equal to %s and l" + - "ess than or equal to %s\'.format([rules.g" + - "te, rules.lte]) : \'\'\n\335\001\n\032duration.gte_lt" + - "e_exclusive\032\276\001has(rules.lte) && rules.lt" + - "e < rules.gte && (rules.lte < this && th" + - "is < rules.gte)? \'value must be greater " + - "than or equal to %s or less than or equa" + - "l to %s\'.format([rules.gte, rules.lte]) " + - ": \'\'H\001R\003gte\022\227\001\n\002in\030\007 \003(\0132\031.google.protob" + - "uf.DurationBl\302Hi\ng\n\013duration.in\032X!(this " + - "in dyn(rules)[\'in\']) ? \'value must be in" + - " list %s\'.format([dyn(rules)[\'in\']]) : \'" + - "\'R\002in\022\233\001\n\006not_in\030\010 \003(\0132\031.google.protobuf" + - ".DurationBi\302Hf\nd\n\017duration.not_in\032Qthis " + - "in rules.not_in ? \'value must not be in " + - "list %s\'.format([rules.not_in]) : \'\'R\005no" + - "tIn\022R\n\007example\030\t \003(\0132\031.google.protobuf.D" + - "urationB\035\302H\032\n\030\n\020duration.example\032\004trueR\007" + - "example*\t\010\350\007\020\200\200\200\200\002B\013\n\tless_thanB\016\n\014great" + - "er_than\"\260\030\n\016TimestampRules\022\220\001\n\005const\030\002 \001" + - "(\0132\032.google.protobuf.TimestampB^\302H[\nY\n\017t" + - "imestamp.const\032Fthis != rules.const ? \'v" + - "alue must equal %s\'.format([rules.const]" + - ") : \'\'R\005const\022\257\001\n\002lt\030\003 \001(\0132\032.google.prot" + - "obuf.TimestampB\200\001\302H}\n{\n\014timestamp.lt\032k!h" + - "as(rules.gte) && !has(rules.gt) && this " + - ">= rules.lt? \'value must be less than %s" + - "\'.format([rules.lt]) : \'\'H\000R\002lt\022\301\001\n\003lte\030" + - "\004 \001(\0132\032.google.protobuf.TimestampB\220\001\302H\214\001" + - "\n\211\001\n\rtimestamp.lte\032x!has(rules.gte) && !" + - "has(rules.gt) && this > rules.lte? \'valu" + - "e must be less than or equal to %s\'.form" + - "at([rules.lte]) : \'\'H\000R\003lte\022s\n\006lt_now\030\007 " + - "\001(\010BZ\302HW\nU\n\020timestamp.lt_now\032A(rules.lt_" + - "now && this > now) ? \'value must be less" + - " than now\' : \'\'H\000R\005ltNow\022\313\007\n\002gt\030\005 \001(\0132\032." + - "google.protobuf.TimestampB\234\007\302H\230\007\n~\n\014time" + - "stamp.gt\032n!has(rules.lt) && !has(rules.l" + - "te) && this <= rules.gt? \'value must be " + - "greater than %s\'.format([rules.gt]) : \'\'" + - "\n\267\001\n\017timestamp.gt_lt\032\243\001has(rules.lt) && " + - "rules.lt >= rules.gt && (this >= rules.l" + - "t || this <= rules.gt)? \'value must be g" + - "reater than %s and less than %s\'.format(" + - "[rules.gt, rules.lt]) : \'\'\n\277\001\n\031timestamp" + - ".gt_lt_exclusive\032\241\001has(rules.lt) && rule" + - "s.lt < rules.gt && (rules.lt <= this && " + - "this <= rules.gt)? \'value must be greate" + - "r than %s or less than %s\'.format([rules" + - ".gt, rules.lt]) : \'\'\n\307\001\n\020timestamp.gt_lt" + - "e\032\262\001has(rules.lte) && rules.lte >= rules" + - ".gt && (this > rules.lte || this <= rule" + - "s.gt)? \'value must be greater than %s an" + - "d less than or equal to %s\'.format([rule" + - "s.gt, rules.lte]) : \'\'\n\317\001\n\032timestamp.gt_" + - "lte_exclusive\032\260\001has(rules.lte) && rules." + - "lte < rules.gt && (rules.lte < this && t" + - "his <= rules.gt)? \'value must be greater" + - " than %s or less than or equal to %s\'.fo" + - "rmat([rules.gt, rules.lte]) : \'\'H\001R\002gt\022\230" + - "\010\n\003gte\030\006 \001(\0132\032.google.protobuf.Timestamp" + - "B\347\007\302H\343\007\n\214\001\n\rtimestamp.gte\032{!has(rules.lt" + - ") && !has(rules.lte) && this < rules.gte" + - "? \'value must be greater than or equal t" + - "o %s\'.format([rules.gte]) : \'\'\n\306\001\n\020times" + - "tamp.gte_lt\032\261\001has(rules.lt) && rules.lt " + - ">= rules.gte && (this >= rules.lt || thi" + - "s < rules.gte)? \'value must be greater t" + - "han or equal to %s and less than %s\'.for" + - "mat([rules.gte, rules.lt]) : \'\'\n\316\001\n\032time" + - "stamp.gte_lt_exclusive\032\257\001has(rules.lt) &" + - "& rules.lt < rules.gte && (rules.lt <= t" + - "his && this < rules.gte)? \'value must be" + - " greater than or equal to %s or less tha" + - "n %s\'.format([rules.gte, rules.lt]) : \'\'" + - "\n\326\001\n\021timestamp.gte_lte\032\300\001has(rules.lte) " + - "&& rules.lte >= rules.gte && (this > rul" + - "es.lte || this < rules.gte)? \'value must" + - " be greater than or equal to %s and less" + - " than or equal to %s\'.format([rules.gte," + - " rules.lte]) : \'\'\n\336\001\n\033timestamp.gte_lte_" + - "exclusive\032\276\001has(rules.lte) && rules.lte " + - "< rules.gte && (rules.lte < this && this" + - " < rules.gte)? \'value must be greater th" + - "an or equal to %s or less than or equal " + - "to %s\'.format([rules.gte, rules.lte]) : " + - "\'\'H\001R\003gte\022v\n\006gt_now\030\010 \001(\010B]\302HZ\nX\n\020timest" + - "amp.gt_now\032D(rules.gt_now && this < now)" + - " ? \'value must be greater than now\' : \'\'" + - "H\001R\005gtNow\022\300\001\n\006within\030\t \001(\0132\031.google.prot" + - "obuf.DurationB\214\001\302H\210\001\n\205\001\n\020timestamp.withi" + - "n\032qthis < now-rules.within || this > now" + - "+rules.within ? \'value must be within %s" + - " of now\'.format([rules.within]) : \'\'R\006wi" + - "thin\022T\n\007example\030\n \003(\0132\032.google.protobuf." + - "TimestampB\036\302H\033\n\031\n\021timestamp.example\032\004tru" + - "eR\007example*\t\010\350\007\020\200\200\200\200\002B\013\n\tless_thanB\016\n\014gr" + - "eater_than\"E\n\nViolations\0227\n\nviolations\030\001" + - " \003(\0132\027.buf.validate.ViolationR\nviolation" + - "s\"\321\001\n\tViolation\022-\n\005field\030\005 \001(\0132\027.buf.val" + - "idate.FieldPathR\005field\022+\n\004rule\030\006 \001(\0132\027.b" + - "uf.validate.FieldPathR\004rule\022#\n\rconstrain" + - "t_id\030\002 \001(\tR\014constraintId\022\030\n\007message\030\003 \001(" + - "\tR\007message\022\027\n\007for_key\030\004 \001(\010R\006forKeyJ\004\010\001\020" + - "\002R\nfield_path\"G\n\tFieldPath\022:\n\010elements\030\001" + - " \003(\0132\036.buf.validate.FieldPathElementR\010el" + - "ements\"\314\003\n\020FieldPathElement\022!\n\014field_num" + - "ber\030\001 \001(\005R\013fieldNumber\022\035\n\nfield_name\030\002 \001" + - "(\tR\tfieldName\022I\n\nfield_type\030\003 \001(\0162*.goog" + - "le.protobuf.FieldDescriptorProto.TypeR\tf" + - "ieldType\022E\n\010key_type\030\004 \001(\0162*.google.prot" + - "obuf.FieldDescriptorProto.TypeR\007keyType\022" + - "I\n\nvalue_type\030\005 \001(\0162*.google.protobuf.Fi" + - "eldDescriptorProto.TypeR\tvalueType\022\026\n\005in" + - "dex\030\006 \001(\004H\000R\005index\022\033\n\010bool_key\030\007 \001(\010H\000R\007" + - "boolKey\022\031\n\007int_key\030\010 \001(\003H\000R\006intKey\022\033\n\010ui" + - "nt_key\030\t \001(\004H\000R\007uintKey\022\037\n\nstring_key\030\n " + - "\001(\tH\000R\tstringKeyB\013\n\tsubscript*\207\001\n\006Ignore" + - "\022\026\n\022IGNORE_UNSPECIFIED\020\000\022\031\n\025IGNORE_IF_UN" + - "POPULATED\020\001\022\033\n\027IGNORE_IF_DEFAULT_VALUE\020\002" + - "\022\021\n\rIGNORE_ALWAYS\020\003*\032IGNORE_EMPTYIGNORE_" + - "DEFAULT*n\n\nKnownRegex\022\033\n\027KNOWN_REGEX_UNS" + - "PECIFIED\020\000\022 \n\034KNOWN_REGEX_HTTP_HEADER_NA" + - "ME\020\001\022!\n\035KNOWN_REGEX_HTTP_HEADER_VALUE\020\002:" + - "\\\n\007message\022\037.google.protobuf.MessageOpti" + - "ons\030\207\t \001(\0132 .buf.validate.MessageConstra" + - "intsR\007message:T\n\005oneof\022\035.google.protobuf" + - ".OneofOptions\030\207\t \001(\0132\036.buf.validate.Oneo" + - "fConstraintsR\005oneof:T\n\005field\022\035.google.pr" + - "otobuf.FieldOptions\030\207\t \001(\0132\036.buf.validat" + - "e.FieldConstraintsR\005field:c\n\npredefined\022" + - "\035.google.protobuf.FieldOptions\030\210\t \001(\0132#." + - "buf.validate.PredefinedConstraintsR\npred" + - "efinedBn\n\022build.buf.validateB\rValidatePr" + - "otoP\001ZGbuf.build/gen/go/bufbuild/protova" + - "lidate/protocolbuffers/go/buf/validate" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DescriptorProtos.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_buf_validate_Constraint_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_validate_Constraint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_Constraint_descriptor, - new java.lang.String[] { "Id", "Message", "Expression", }); - internal_static_buf_validate_MessageConstraints_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_validate_MessageConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_MessageConstraints_descriptor, - new java.lang.String[] { "Disabled", "Cel", }); - internal_static_buf_validate_OneofConstraints_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_validate_OneofConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_OneofConstraints_descriptor, - new java.lang.String[] { "Required", }); - internal_static_buf_validate_FieldConstraints_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_buf_validate_FieldConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_FieldConstraints_descriptor, - new java.lang.String[] { "Cel", "Required", "Ignore", "Float", "Double", "Int32", "Int64", "Uint32", "Uint64", "Sint32", "Sint64", "Fixed32", "Fixed64", "Sfixed32", "Sfixed64", "Bool", "String", "Bytes", "Enum", "Repeated", "Map", "Any", "Duration", "Timestamp", "Type", }); - internal_static_buf_validate_PredefinedConstraints_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_buf_validate_PredefinedConstraints_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_PredefinedConstraints_descriptor, - new java.lang.String[] { "Cel", }); - internal_static_buf_validate_FloatRules_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_buf_validate_FloatRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_FloatRules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Finite", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_DoubleRules_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_buf_validate_DoubleRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_DoubleRules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Finite", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_Int32Rules_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_buf_validate_Int32Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_Int32Rules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_Int64Rules_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_buf_validate_Int64Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_Int64Rules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_UInt32Rules_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_buf_validate_UInt32Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_UInt32Rules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_UInt64Rules_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_buf_validate_UInt64Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_UInt64Rules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_SInt32Rules_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_buf_validate_SInt32Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_SInt32Rules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_SInt64Rules_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_buf_validate_SInt64Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_SInt64Rules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_Fixed32Rules_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_buf_validate_Fixed32Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_Fixed32Rules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_Fixed64Rules_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_buf_validate_Fixed64Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_Fixed64Rules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_SFixed32Rules_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_buf_validate_SFixed32Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_SFixed32Rules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_SFixed64Rules_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_buf_validate_SFixed64Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_SFixed64Rules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_BoolRules_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_buf_validate_BoolRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_BoolRules_descriptor, - new java.lang.String[] { "Const", "Example", }); - internal_static_buf_validate_StringRules_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_buf_validate_StringRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_StringRules_descriptor, - new java.lang.String[] { "Const", "Len", "MinLen", "MaxLen", "LenBytes", "MinBytes", "MaxBytes", "Pattern", "Prefix", "Suffix", "Contains", "NotContains", "In", "NotIn", "Email", "Hostname", "Ip", "Ipv4", "Ipv6", "Uri", "UriRef", "Address", "Uuid", "Tuuid", "IpWithPrefixlen", "Ipv4WithPrefixlen", "Ipv6WithPrefixlen", "IpPrefix", "Ipv4Prefix", "Ipv6Prefix", "HostAndPort", "WellKnownRegex", "Strict", "Example", "WellKnown", }); - internal_static_buf_validate_BytesRules_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_buf_validate_BytesRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_BytesRules_descriptor, - new java.lang.String[] { "Const", "Len", "MinLen", "MaxLen", "Pattern", "Prefix", "Suffix", "Contains", "In", "NotIn", "Ip", "Ipv4", "Ipv6", "Example", "WellKnown", }); - internal_static_buf_validate_EnumRules_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_buf_validate_EnumRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_EnumRules_descriptor, - new java.lang.String[] { "Const", "DefinedOnly", "In", "NotIn", "Example", }); - internal_static_buf_validate_RepeatedRules_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_buf_validate_RepeatedRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_RepeatedRules_descriptor, - new java.lang.String[] { "MinItems", "MaxItems", "Unique", "Items", }); - internal_static_buf_validate_MapRules_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_buf_validate_MapRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_MapRules_descriptor, - new java.lang.String[] { "MinPairs", "MaxPairs", "Keys", "Values", }); - internal_static_buf_validate_AnyRules_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_buf_validate_AnyRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_AnyRules_descriptor, - new java.lang.String[] { "In", "NotIn", }); - internal_static_buf_validate_DurationRules_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_buf_validate_DurationRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_DurationRules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "Gt", "Gte", "In", "NotIn", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_TimestampRules_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_buf_validate_TimestampRules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_TimestampRules_descriptor, - new java.lang.String[] { "Const", "Lt", "Lte", "LtNow", "Gt", "Gte", "GtNow", "Within", "Example", "LessThan", "GreaterThan", }); - internal_static_buf_validate_Violations_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_buf_validate_Violations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_Violations_descriptor, - new java.lang.String[] { "Violations", }); - internal_static_buf_validate_Violation_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_buf_validate_Violation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_Violation_descriptor, - new java.lang.String[] { "Field", "Rule", "ConstraintId", "Message", "ForKey", }); - internal_static_buf_validate_FieldPath_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_buf_validate_FieldPath_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_FieldPath_descriptor, - new java.lang.String[] { "Elements", }); - internal_static_buf_validate_FieldPathElement_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_buf_validate_FieldPathElement_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_buf_validate_FieldPathElement_descriptor, - new java.lang.String[] { "FieldNumber", "FieldName", "FieldType", "KeyType", "ValueType", "Index", "BoolKey", "IntKey", "UintKey", "StringKey", "Subscript", }); - message.internalInit(descriptor.getExtensions().get(0)); - oneof.internalInit(descriptor.getExtensions().get(1)); - field.internalInit(descriptor.getExtensions().get(2)); - predefined.internalInit(descriptor.getExtensions().get(3)); - descriptor.resolveAllFeaturesImmutable(); - com.google.protobuf.DescriptorProtos.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(build.buf.validate.ValidateProto.predefined); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/src/main/java/build/buf/validate/Violation.java b/src/main/java/build/buf/validate/Violation.java deleted file mode 100644 index 7ba70fd6..00000000 --- a/src/main/java/build/buf/validate/Violation.java +++ /dev/null @@ -1,1932 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * `Violation` represents a single instance where a validation rule, expressed
- * as a `Constraint`, was not met. It provides information about the field that
- * caused the violation, the specific constraint that wasn't fulfilled, and a
- * human-readable error message.
- *
- * ```json
- * {
- * "fieldPath": "bar",
- * "constraintId": "foo.bar",
- * "message": "bar must be greater than 0"
- * }
- * ```
- * 
- * - * Protobuf type {@code buf.validate.Violation} - */ -public final class Violation extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.Violation) - ViolationOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Violation.class.getName()); - } - // Use Violation.newBuilder() to construct. - private Violation(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Violation() { - constraintId_ = ""; - message_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Violation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Violation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Violation.class, build.buf.validate.Violation.Builder.class); - } - - private int bitField0_; - public static final int FIELD_FIELD_NUMBER = 5; - private build.buf.validate.FieldPath field_; - /** - *
-   * `field` is a machine-readable path to the field that failed validation.
-   * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * }
-   * ```
-   *
-   * It could produce the following violation:
-   *
-   * ```textproto
-   * violation {
-   * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - * @return Whether the field field is set. - */ - @java.lang.Override - public boolean hasField() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * `field` is a machine-readable path to the field that failed validation.
-   * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * }
-   * ```
-   *
-   * It could produce the following violation:
-   *
-   * ```textproto
-   * violation {
-   * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - * @return The field. - */ - @java.lang.Override - public build.buf.validate.FieldPath getField() { - return field_ == null ? build.buf.validate.FieldPath.getDefaultInstance() : field_; - } - /** - *
-   * `field` is a machine-readable path to the field that failed validation.
-   * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * }
-   * ```
-   *
-   * It could produce the following violation:
-   *
-   * ```textproto
-   * violation {
-   * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - */ - @java.lang.Override - public build.buf.validate.FieldPathOrBuilder getFieldOrBuilder() { - return field_ == null ? build.buf.validate.FieldPath.getDefaultInstance() : field_; - } - - public static final int RULE_FIELD_NUMBER = 6; - private build.buf.validate.FieldPath rule_; - /** - *
-   * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-   * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-   * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * bool b = 2 [(buf.validate.field).cel = {
-   * id: "custom_constraint",
-   * expression: "!this ? 'b must be true': ''"
-   * }]
-   * }
-   * ```
-   *
-   * It could produce the following violations:
-   *
-   * ```textproto
-   * violation {
-   * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-   * ...
-   * }
-   * violation {
-   * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - * @return Whether the rule field is set. - */ - @java.lang.Override - public boolean hasRule() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-   * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-   * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * bool b = 2 [(buf.validate.field).cel = {
-   * id: "custom_constraint",
-   * expression: "!this ? 'b must be true': ''"
-   * }]
-   * }
-   * ```
-   *
-   * It could produce the following violations:
-   *
-   * ```textproto
-   * violation {
-   * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-   * ...
-   * }
-   * violation {
-   * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - * @return The rule. - */ - @java.lang.Override - public build.buf.validate.FieldPath getRule() { - return rule_ == null ? build.buf.validate.FieldPath.getDefaultInstance() : rule_; - } - /** - *
-   * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-   * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-   * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * bool b = 2 [(buf.validate.field).cel = {
-   * id: "custom_constraint",
-   * expression: "!this ? 'b must be true': ''"
-   * }]
-   * }
-   * ```
-   *
-   * It could produce the following violations:
-   *
-   * ```textproto
-   * violation {
-   * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-   * ...
-   * }
-   * violation {
-   * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - */ - @java.lang.Override - public build.buf.validate.FieldPathOrBuilder getRuleOrBuilder() { - return rule_ == null ? build.buf.validate.FieldPath.getDefaultInstance() : rule_; - } - - public static final int CONSTRAINT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object constraintId_ = ""; - /** - *
-   * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-   * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-   * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @return Whether the constraintId field is set. - */ - @java.lang.Override - public boolean hasConstraintId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-   * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-   * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-   * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @return The constraintId. - */ - @java.lang.Override - public java.lang.String getConstraintId() { - java.lang.Object ref = constraintId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - constraintId_ = s; - } - return s; - } - } - /** - *
-   * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-   * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-   * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @return The bytes for constraintId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getConstraintIdBytes() { - java.lang.Object ref = constraintId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - constraintId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object message_ = ""; - /** - *
-   * `message` is a human-readable error message that describes the nature of the violation.
-   * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-   * 
- * - * optional string message = 3 [json_name = "message"]; - * @return Whether the message field is set. - */ - @java.lang.Override - public boolean hasMessage() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-   * `message` is a human-readable error message that describes the nature of the violation.
-   * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-   * 
- * - * optional string message = 3 [json_name = "message"]; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - message_ = s; - } - return s; - } - } - /** - *
-   * `message` is a human-readable error message that describes the nature of the violation.
-   * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-   * 
- * - * optional string message = 3 [json_name = "message"]; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FOR_KEY_FIELD_NUMBER = 4; - private boolean forKey_ = false; - /** - *
-   * `for_key` indicates whether the violation was caused by a map key, rather than a value.
-   * 
- * - * optional bool for_key = 4 [json_name = "forKey"]; - * @return Whether the forKey field is set. - */ - @java.lang.Override - public boolean hasForKey() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-   * `for_key` indicates whether the violation was caused by a map key, rather than a value.
-   * 
- * - * optional bool for_key = 4 [json_name = "forKey"]; - * @return The forKey. - */ - @java.lang.Override - public boolean getForKey() { - return forKey_; - } - - 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 { - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, constraintId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, message_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeBool(4, forKey_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getField()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(6, getRule()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, constraintId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, message_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, forKey_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getField()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getRule()); - } - 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.Violation)) { - return super.equals(obj); - } - build.buf.validate.Violation other = (build.buf.validate.Violation) obj; - - if (hasField() != other.hasField()) return false; - if (hasField()) { - if (!getField() - .equals(other.getField())) return false; - } - if (hasRule() != other.hasRule()) return false; - if (hasRule()) { - if (!getRule() - .equals(other.getRule())) return false; - } - if (hasConstraintId() != other.hasConstraintId()) return false; - if (hasConstraintId()) { - if (!getConstraintId() - .equals(other.getConstraintId())) return false; - } - if (hasMessage() != other.hasMessage()) return false; - if (hasMessage()) { - if (!getMessage() - .equals(other.getMessage())) return false; - } - if (hasForKey() != other.hasForKey()) return false; - if (hasForKey()) { - if (getForKey() - != other.getForKey()) 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 (hasField()) { - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - } - if (hasRule()) { - hash = (37 * hash) + RULE_FIELD_NUMBER; - hash = (53 * hash) + getRule().hashCode(); - } - if (hasConstraintId()) { - hash = (37 * hash) + CONSTRAINT_ID_FIELD_NUMBER; - hash = (53 * hash) + getConstraintId().hashCode(); - } - if (hasMessage()) { - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - } - if (hasForKey()) { - hash = (37 * hash) + FOR_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForKey()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.Violation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Violation 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.Violation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Violation 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.Violation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Violation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.Violation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Violation 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.Violation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.Violation 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.Violation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Violation 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.Violation 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; - } - /** - *
-   * `Violation` represents a single instance where a validation rule, expressed
-   * as a `Constraint`, was not met. It provides information about the field that
-   * caused the violation, the specific constraint that wasn't fulfilled, and a
-   * human-readable error message.
-   *
-   * ```json
-   * {
-   * "fieldPath": "bar",
-   * "constraintId": "foo.bar",
-   * "message": "bar must be greater than 0"
-   * }
-   * ```
-   * 
- * - * Protobuf type {@code buf.validate.Violation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.Violation) - build.buf.validate.ViolationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Violation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Violation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Violation.class, build.buf.validate.Violation.Builder.class); - } - - // Construct using build.buf.validate.Violation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage - .alwaysUseFieldBuilders) { - internalGetFieldFieldBuilder(); - internalGetRuleFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - field_ = null; - if (fieldBuilder_ != null) { - fieldBuilder_.dispose(); - fieldBuilder_ = null; - } - rule_ = null; - if (ruleBuilder_ != null) { - ruleBuilder_.dispose(); - ruleBuilder_ = null; - } - constraintId_ = ""; - message_ = ""; - forKey_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Violation_descriptor; - } - - @java.lang.Override - public build.buf.validate.Violation getDefaultInstanceForType() { - return build.buf.validate.Violation.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.Violation build() { - build.buf.validate.Violation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.Violation buildPartial() { - build.buf.validate.Violation result = new build.buf.validate.Violation(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(build.buf.validate.Violation result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.field_ = fieldBuilder_ == null - ? field_ - : fieldBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.rule_ = ruleBuilder_ == null - ? rule_ - : ruleBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.constraintId_ = constraintId_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.message_ = message_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.forKey_ = forKey_; - to_bitField0_ |= 0x00000010; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.Violation) { - return mergeFrom((build.buf.validate.Violation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.Violation other) { - if (other == build.buf.validate.Violation.getDefaultInstance()) return this; - if (other.hasField()) { - mergeField(other.getField()); - } - if (other.hasRule()) { - mergeRule(other.getRule()); - } - if (other.hasConstraintId()) { - constraintId_ = other.constraintId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasMessage()) { - message_ = other.message_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasForKey()) { - setForKey(other.getForKey()); - } - 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 18: { - constraintId_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - message_ = input.readBytes(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 32: { - forKey_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: { - input.readMessage( - internalGetFieldFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 42 - case 50: { - input.readMessage( - internalGetRuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 50 - 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 build.buf.validate.FieldPath field_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldPath, build.buf.validate.FieldPath.Builder, build.buf.validate.FieldPathOrBuilder> fieldBuilder_; - /** - *
-     * `field` is a machine-readable path to the field that failed validation.
-     * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     *
-     * It could produce the following violation:
-     *
-     * ```textproto
-     * violation {
-     * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - * @return Whether the field field is set. - */ - public boolean hasField() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * `field` is a machine-readable path to the field that failed validation.
-     * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     *
-     * It could produce the following violation:
-     *
-     * ```textproto
-     * violation {
-     * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - * @return The field. - */ - public build.buf.validate.FieldPath getField() { - if (fieldBuilder_ == null) { - return field_ == null ? build.buf.validate.FieldPath.getDefaultInstance() : field_; - } else { - return fieldBuilder_.getMessage(); - } - } - /** - *
-     * `field` is a machine-readable path to the field that failed validation.
-     * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     *
-     * It could produce the following violation:
-     *
-     * ```textproto
-     * violation {
-     * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - */ - public Builder setField(build.buf.validate.FieldPath value) { - if (fieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - field_ = value; - } else { - fieldBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `field` is a machine-readable path to the field that failed validation.
-     * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     *
-     * It could produce the following violation:
-     *
-     * ```textproto
-     * violation {
-     * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - */ - public Builder setField( - build.buf.validate.FieldPath.Builder builderForValue) { - if (fieldBuilder_ == null) { - field_ = builderForValue.build(); - } else { - fieldBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * `field` is a machine-readable path to the field that failed validation.
-     * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     *
-     * It could produce the following violation:
-     *
-     * ```textproto
-     * violation {
-     * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - */ - public Builder mergeField(build.buf.validate.FieldPath value) { - if (fieldBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - field_ != null && - field_ != build.buf.validate.FieldPath.getDefaultInstance()) { - getFieldBuilder().mergeFrom(value); - } else { - field_ = value; - } - } else { - fieldBuilder_.mergeFrom(value); - } - if (field_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - *
-     * `field` is a machine-readable path to the field that failed validation.
-     * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     *
-     * It could produce the following violation:
-     *
-     * ```textproto
-     * violation {
-     * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - */ - public Builder clearField() { - bitField0_ = (bitField0_ & ~0x00000001); - field_ = null; - if (fieldBuilder_ != null) { - fieldBuilder_.dispose(); - fieldBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * `field` is a machine-readable path to the field that failed validation.
-     * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     *
-     * It could produce the following violation:
-     *
-     * ```textproto
-     * violation {
-     * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - */ - public build.buf.validate.FieldPath.Builder getFieldBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetFieldFieldBuilder().getBuilder(); - } - /** - *
-     * `field` is a machine-readable path to the field that failed validation.
-     * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     *
-     * It could produce the following violation:
-     *
-     * ```textproto
-     * violation {
-     * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - */ - public build.buf.validate.FieldPathOrBuilder getFieldOrBuilder() { - if (fieldBuilder_ != null) { - return fieldBuilder_.getMessageOrBuilder(); - } else { - return field_ == null ? - build.buf.validate.FieldPath.getDefaultInstance() : field_; - } - } - /** - *
-     * `field` is a machine-readable path to the field that failed validation.
-     * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * }
-     * ```
-     *
-     * It could produce the following violation:
-     *
-     * ```textproto
-     * violation {
-     * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldPath, build.buf.validate.FieldPath.Builder, build.buf.validate.FieldPathOrBuilder> - internalGetFieldFieldBuilder() { - if (fieldBuilder_ == null) { - fieldBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldPath, build.buf.validate.FieldPath.Builder, build.buf.validate.FieldPathOrBuilder>( - getField(), - getParentForChildren(), - isClean()); - field_ = null; - } - return fieldBuilder_; - } - - private build.buf.validate.FieldPath rule_; - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldPath, build.buf.validate.FieldPath.Builder, build.buf.validate.FieldPathOrBuilder> ruleBuilder_; - /** - *
-     * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-     * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-     * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * bool b = 2 [(buf.validate.field).cel = {
-     * id: "custom_constraint",
-     * expression: "!this ? 'b must be true': ''"
-     * }]
-     * }
-     * ```
-     *
-     * It could produce the following violations:
-     *
-     * ```textproto
-     * violation {
-     * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-     * ...
-     * }
-     * violation {
-     * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - * @return Whether the rule field is set. - */ - public boolean hasRule() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-     * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-     * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * bool b = 2 [(buf.validate.field).cel = {
-     * id: "custom_constraint",
-     * expression: "!this ? 'b must be true': ''"
-     * }]
-     * }
-     * ```
-     *
-     * It could produce the following violations:
-     *
-     * ```textproto
-     * violation {
-     * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-     * ...
-     * }
-     * violation {
-     * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - * @return The rule. - */ - public build.buf.validate.FieldPath getRule() { - if (ruleBuilder_ == null) { - return rule_ == null ? build.buf.validate.FieldPath.getDefaultInstance() : rule_; - } else { - return ruleBuilder_.getMessage(); - } - } - /** - *
-     * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-     * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-     * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * bool b = 2 [(buf.validate.field).cel = {
-     * id: "custom_constraint",
-     * expression: "!this ? 'b must be true': ''"
-     * }]
-     * }
-     * ```
-     *
-     * It could produce the following violations:
-     *
-     * ```textproto
-     * violation {
-     * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-     * ...
-     * }
-     * violation {
-     * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - */ - public Builder setRule(build.buf.validate.FieldPath value) { - if (ruleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rule_ = value; - } else { - ruleBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-     * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-     * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * bool b = 2 [(buf.validate.field).cel = {
-     * id: "custom_constraint",
-     * expression: "!this ? 'b must be true': ''"
-     * }]
-     * }
-     * ```
-     *
-     * It could produce the following violations:
-     *
-     * ```textproto
-     * violation {
-     * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-     * ...
-     * }
-     * violation {
-     * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - */ - public Builder setRule( - build.buf.validate.FieldPath.Builder builderForValue) { - if (ruleBuilder_ == null) { - rule_ = builderForValue.build(); - } else { - ruleBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-     * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-     * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * bool b = 2 [(buf.validate.field).cel = {
-     * id: "custom_constraint",
-     * expression: "!this ? 'b must be true': ''"
-     * }]
-     * }
-     * ```
-     *
-     * It could produce the following violations:
-     *
-     * ```textproto
-     * violation {
-     * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-     * ...
-     * }
-     * violation {
-     * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - */ - public Builder mergeRule(build.buf.validate.FieldPath value) { - if (ruleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - rule_ != null && - rule_ != build.buf.validate.FieldPath.getDefaultInstance()) { - getRuleBuilder().mergeFrom(value); - } else { - rule_ = value; - } - } else { - ruleBuilder_.mergeFrom(value); - } - if (rule_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - *
-     * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-     * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-     * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * bool b = 2 [(buf.validate.field).cel = {
-     * id: "custom_constraint",
-     * expression: "!this ? 'b must be true': ''"
-     * }]
-     * }
-     * ```
-     *
-     * It could produce the following violations:
-     *
-     * ```textproto
-     * violation {
-     * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-     * ...
-     * }
-     * violation {
-     * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - */ - public Builder clearRule() { - bitField0_ = (bitField0_ & ~0x00000002); - rule_ = null; - if (ruleBuilder_ != null) { - ruleBuilder_.dispose(); - ruleBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-     * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-     * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * bool b = 2 [(buf.validate.field).cel = {
-     * id: "custom_constraint",
-     * expression: "!this ? 'b must be true': ''"
-     * }]
-     * }
-     * ```
-     *
-     * It could produce the following violations:
-     *
-     * ```textproto
-     * violation {
-     * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-     * ...
-     * }
-     * violation {
-     * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - */ - public build.buf.validate.FieldPath.Builder getRuleBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetRuleFieldBuilder().getBuilder(); - } - /** - *
-     * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-     * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-     * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * bool b = 2 [(buf.validate.field).cel = {
-     * id: "custom_constraint",
-     * expression: "!this ? 'b must be true': ''"
-     * }]
-     * }
-     * ```
-     *
-     * It could produce the following violations:
-     *
-     * ```textproto
-     * violation {
-     * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-     * ...
-     * }
-     * violation {
-     * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - */ - public build.buf.validate.FieldPathOrBuilder getRuleOrBuilder() { - if (ruleBuilder_ != null) { - return ruleBuilder_.getMessageOrBuilder(); - } else { - return rule_ == null ? - build.buf.validate.FieldPath.getDefaultInstance() : rule_; - } - } - /** - *
-     * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-     * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-     * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-     *
-     * For example, consider the following message:
-     *
-     * ```proto
-     * message Message {
-     * bool a = 1 [(buf.validate.field).required = true];
-     * bool b = 2 [(buf.validate.field).cel = {
-     * id: "custom_constraint",
-     * expression: "!this ? 'b must be true': ''"
-     * }]
-     * }
-     * ```
-     *
-     * It could produce the following violations:
-     *
-     * ```textproto
-     * violation {
-     * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-     * ...
-     * }
-     * violation {
-     * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-     * ...
-     * }
-     * ```
-     * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - */ - private com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldPath, build.buf.validate.FieldPath.Builder, build.buf.validate.FieldPathOrBuilder> - internalGetRuleFieldBuilder() { - if (ruleBuilder_ == null) { - ruleBuilder_ = new com.google.protobuf.SingleFieldBuilder< - build.buf.validate.FieldPath, build.buf.validate.FieldPath.Builder, build.buf.validate.FieldPathOrBuilder>( - getRule(), - getParentForChildren(), - isClean()); - rule_ = null; - } - return ruleBuilder_; - } - - private java.lang.Object constraintId_ = ""; - /** - *
-     * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-     * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-     * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @return Whether the constraintId field is set. - */ - public boolean hasConstraintId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-     * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-     * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @return The constraintId. - */ - public java.lang.String getConstraintId() { - java.lang.Object ref = constraintId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - constraintId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-     * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-     * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @return The bytes for constraintId. - */ - public com.google.protobuf.ByteString - getConstraintIdBytes() { - java.lang.Object ref = constraintId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - constraintId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-     * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-     * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @param value The constraintId to set. - * @return This builder for chaining. - */ - public Builder setConstraintId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - constraintId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-     * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-     * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @return This builder for chaining. - */ - public Builder clearConstraintId() { - constraintId_ = getDefaultInstance().getConstraintId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-     * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-     * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @param value The bytes for constraintId to set. - * @return This builder for chaining. - */ - public Builder setConstraintIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - constraintId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-     * `message` is a human-readable error message that describes the nature of the violation.
-     * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-     * 
- * - * optional string message = 3 [json_name = "message"]; - * @return Whether the message field is set. - */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * `message` is a human-readable error message that describes the nature of the violation.
-     * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-     * 
- * - * optional string message = 3 [json_name = "message"]; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - message_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * `message` is a human-readable error message that describes the nature of the violation.
-     * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-     * 
- * - * optional string message = 3 [json_name = "message"]; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * `message` is a human-readable error message that describes the nature of the violation.
-     * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-     * 
- * - * optional string message = 3 [json_name = "message"]; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - message_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * `message` is a human-readable error message that describes the nature of the violation.
-     * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-     * 
- * - * optional string message = 3 [json_name = "message"]; - * @return This builder for chaining. - */ - public Builder clearMessage() { - message_ = getDefaultInstance().getMessage(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * `message` is a human-readable error message that describes the nature of the violation.
-     * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-     * 
- * - * optional string message = 3 [json_name = "message"]; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - message_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private boolean forKey_ ; - /** - *
-     * `for_key` indicates whether the violation was caused by a map key, rather than a value.
-     * 
- * - * optional bool for_key = 4 [json_name = "forKey"]; - * @return Whether the forKey field is set. - */ - @java.lang.Override - public boolean hasForKey() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * `for_key` indicates whether the violation was caused by a map key, rather than a value.
-     * 
- * - * optional bool for_key = 4 [json_name = "forKey"]; - * @return The forKey. - */ - @java.lang.Override - public boolean getForKey() { - return forKey_; - } - /** - *
-     * `for_key` indicates whether the violation was caused by a map key, rather than a value.
-     * 
- * - * optional bool for_key = 4 [json_name = "forKey"]; - * @param value The forKey to set. - * @return This builder for chaining. - */ - public Builder setForKey(boolean value) { - - forKey_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * `for_key` indicates whether the violation was caused by a map key, rather than a value.
-     * 
- * - * optional bool for_key = 4 [json_name = "forKey"]; - * @return This builder for chaining. - */ - public Builder clearForKey() { - bitField0_ = (bitField0_ & ~0x00000010); - forKey_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.Violation) - } - - // @@protoc_insertion_point(class_scope:buf.validate.Violation) - private static final build.buf.validate.Violation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.Violation(); - } - - public static build.buf.validate.Violation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Violation 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.Violation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/ViolationOrBuilder.java b/src/main/java/build/buf/validate/ViolationOrBuilder.java deleted file mode 100644 index e9219368..00000000 --- a/src/main/java/build/buf/validate/ViolationOrBuilder.java +++ /dev/null @@ -1,283 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface ViolationOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.Violation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * `field` is a machine-readable path to the field that failed validation.
-   * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * }
-   * ```
-   *
-   * It could produce the following violation:
-   *
-   * ```textproto
-   * violation {
-   * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - * @return Whether the field field is set. - */ - boolean hasField(); - /** - *
-   * `field` is a machine-readable path to the field that failed validation.
-   * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * }
-   * ```
-   *
-   * It could produce the following violation:
-   *
-   * ```textproto
-   * violation {
-   * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - * @return The field. - */ - build.buf.validate.FieldPath getField(); - /** - *
-   * `field` is a machine-readable path to the field that failed validation.
-   * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * }
-   * ```
-   *
-   * It could produce the following violation:
-   *
-   * ```textproto
-   * violation {
-   * field { element { field_number: 1, field_name: "a", field_type: 8 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath field = 5 [json_name = "field"]; - */ - build.buf.validate.FieldPathOrBuilder getFieldOrBuilder(); - - /** - *
-   * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-   * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-   * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * bool b = 2 [(buf.validate.field).cel = {
-   * id: "custom_constraint",
-   * expression: "!this ? 'b must be true': ''"
-   * }]
-   * }
-   * ```
-   *
-   * It could produce the following violations:
-   *
-   * ```textproto
-   * violation {
-   * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-   * ...
-   * }
-   * violation {
-   * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - * @return Whether the rule field is set. - */ - boolean hasRule(); - /** - *
-   * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-   * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-   * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * bool b = 2 [(buf.validate.field).cel = {
-   * id: "custom_constraint",
-   * expression: "!this ? 'b must be true': ''"
-   * }]
-   * }
-   * ```
-   *
-   * It could produce the following violations:
-   *
-   * ```textproto
-   * violation {
-   * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-   * ...
-   * }
-   * violation {
-   * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - * @return The rule. - */ - build.buf.validate.FieldPath getRule(); - /** - *
-   * `rule` is a machine-readable path that points to the specific constraint rule that failed validation.
-   * This will be a nested field starting from the FieldConstraints of the field that failed validation.
-   * For custom constraints, this will provide the path of the constraint, e.g. `cel[0]`.
-   *
-   * For example, consider the following message:
-   *
-   * ```proto
-   * message Message {
-   * bool a = 1 [(buf.validate.field).required = true];
-   * bool b = 2 [(buf.validate.field).cel = {
-   * id: "custom_constraint",
-   * expression: "!this ? 'b must be true': ''"
-   * }]
-   * }
-   * ```
-   *
-   * It could produce the following violations:
-   *
-   * ```textproto
-   * violation {
-   * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
-   * ...
-   * }
-   * violation {
-   * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
-   * ...
-   * }
-   * ```
-   * 
- * - * optional .buf.validate.FieldPath rule = 6 [json_name = "rule"]; - */ - build.buf.validate.FieldPathOrBuilder getRuleOrBuilder(); - - /** - *
-   * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-   * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-   * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @return Whether the constraintId field is set. - */ - boolean hasConstraintId(); - /** - *
-   * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-   * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-   * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @return The constraintId. - */ - java.lang.String getConstraintId(); - /** - *
-   * `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
-   * This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
-   * 
- * - * optional string constraint_id = 2 [json_name = "constraintId"]; - * @return The bytes for constraintId. - */ - com.google.protobuf.ByteString - getConstraintIdBytes(); - - /** - *
-   * `message` is a human-readable error message that describes the nature of the violation.
-   * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-   * 
- * - * optional string message = 3 [json_name = "message"]; - * @return Whether the message field is set. - */ - boolean hasMessage(); - /** - *
-   * `message` is a human-readable error message that describes the nature of the violation.
-   * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-   * 
- * - * optional string message = 3 [json_name = "message"]; - * @return The message. - */ - java.lang.String getMessage(); - /** - *
-   * `message` is a human-readable error message that describes the nature of the violation.
-   * This can be the default error message from the violated `Constraint`, or it can be a custom message that gives more context about the violation.
-   * 
- * - * optional string message = 3 [json_name = "message"]; - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-   * `for_key` indicates whether the violation was caused by a map key, rather than a value.
-   * 
- * - * optional bool for_key = 4 [json_name = "forKey"]; - * @return Whether the forKey field is set. - */ - boolean hasForKey(); - /** - *
-   * `for_key` indicates whether the violation was caused by a map key, rather than a value.
-   * 
- * - * optional bool for_key = 4 [json_name = "forKey"]; - * @return The forKey. - */ - boolean getForKey(); -} diff --git a/src/main/java/build/buf/validate/Violations.java b/src/main/java/build/buf/validate/Violations.java deleted file mode 100644 index 100c4f5f..00000000 --- a/src/main/java/build/buf/validate/Violations.java +++ /dev/null @@ -1,823 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -/** - *
- * `Violations` is a collection of `Violation` messages. This message type is returned by
- * protovalidate when a proto message fails to meet the requirements set by the `Constraint` validation rules.
- * Each individual violation is represented by a `Violation` message.
- * 
- * - * Protobuf type {@code buf.validate.Violations} - */ -public final class Violations extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:buf.validate.Violations) - ViolationsOrBuilder { -private static final long serialVersionUID = 0L; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 30, - /* patch= */ 2, - /* suffix= */ "", - Violations.class.getName()); - } - // Use Violations.newBuilder() to construct. - private Violations(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Violations() { - violations_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Violations_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Violations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Violations.class, build.buf.validate.Violations.Builder.class); - } - - public static final int VIOLATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List violations_; - /** - *
-   * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-   * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public java.util.List getViolationsList() { - return violations_; - } - /** - *
-   * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-   * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public java.util.List - getViolationsOrBuilderList() { - return violations_; - } - /** - *
-   * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-   * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public int getViolationsCount() { - return violations_.size(); - } - /** - *
-   * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-   * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public build.buf.validate.Violation getViolations(int index) { - return violations_.get(index); - } - /** - *
-   * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-   * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - @java.lang.Override - public build.buf.validate.ViolationOrBuilder getViolationsOrBuilder( - int index) { - return violations_.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 < violations_.size(); i++) { - output.writeMessage(1, violations_.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 < violations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, violations_.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.Violations)) { - return super.equals(obj); - } - build.buf.validate.Violations other = (build.buf.validate.Violations) obj; - - if (!getViolationsList() - .equals(other.getViolationsList())) 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 (getViolationsCount() > 0) { - hash = (37 * hash) + VIOLATIONS_FIELD_NUMBER; - hash = (53 * hash) + getViolationsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static build.buf.validate.Violations parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Violations 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.Violations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Violations 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.Violations parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static build.buf.validate.Violations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static build.buf.validate.Violations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Violations 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.Violations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseDelimitedWithIOException(PARSER, input); - } - - public static build.buf.validate.Violations 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.Violations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage - .parseWithIOException(PARSER, input); - } - public static build.buf.validate.Violations 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.Violations 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; - } - /** - *
-   * `Violations` is a collection of `Violation` messages. This message type is returned by
-   * protovalidate when a proto message fails to meet the requirements set by the `Constraint` validation rules.
-   * Each individual violation is represented by a `Violation` message.
-   * 
- * - * Protobuf type {@code buf.validate.Violations} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:buf.validate.Violations) - build.buf.validate.ViolationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Violations_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Violations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - build.buf.validate.Violations.class, build.buf.validate.Violations.Builder.class); - } - - // Construct using build.buf.validate.Violations.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (violationsBuilder_ == null) { - violations_ = java.util.Collections.emptyList(); - } else { - violations_ = null; - violationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return build.buf.validate.ValidateProto.internal_static_buf_validate_Violations_descriptor; - } - - @java.lang.Override - public build.buf.validate.Violations getDefaultInstanceForType() { - return build.buf.validate.Violations.getDefaultInstance(); - } - - @java.lang.Override - public build.buf.validate.Violations build() { - build.buf.validate.Violations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public build.buf.validate.Violations buildPartial() { - build.buf.validate.Violations result = new build.buf.validate.Violations(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.validate.Violations result) { - if (violationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - violations_ = java.util.Collections.unmodifiableList(violations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.violations_ = violations_; - } else { - result.violations_ = violationsBuilder_.build(); - } - } - - private void buildPartial0(build.buf.validate.Violations result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof build.buf.validate.Violations) { - return mergeFrom((build.buf.validate.Violations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(build.buf.validate.Violations other) { - if (other == build.buf.validate.Violations.getDefaultInstance()) return this; - if (violationsBuilder_ == null) { - if (!other.violations_.isEmpty()) { - if (violations_.isEmpty()) { - violations_ = other.violations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureViolationsIsMutable(); - violations_.addAll(other.violations_); - } - onChanged(); - } - } else { - if (!other.violations_.isEmpty()) { - if (violationsBuilder_.isEmpty()) { - violationsBuilder_.dispose(); - violationsBuilder_ = null; - violations_ = other.violations_; - bitField0_ = (bitField0_ & ~0x00000001); - violationsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - internalGetViolationsFieldBuilder() : null; - } else { - violationsBuilder_.addAllMessages(other.violations_); - } - } - } - 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: { - build.buf.validate.Violation m = - input.readMessage( - build.buf.validate.Violation.parser(), - extensionRegistry); - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.add(m); - } else { - violationsBuilder_.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 violations_ = - java.util.Collections.emptyList(); - private void ensureViolationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - violations_ = new java.util.ArrayList(violations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Violation, build.buf.validate.Violation.Builder, build.buf.validate.ViolationOrBuilder> violationsBuilder_; - - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public java.util.List getViolationsList() { - if (violationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(violations_); - } else { - return violationsBuilder_.getMessageList(); - } - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public int getViolationsCount() { - if (violationsBuilder_ == null) { - return violations_.size(); - } else { - return violationsBuilder_.getCount(); - } - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public build.buf.validate.Violation getViolations(int index) { - if (violationsBuilder_ == null) { - return violations_.get(index); - } else { - return violationsBuilder_.getMessage(index); - } - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public Builder setViolations( - int index, build.buf.validate.Violation value) { - if (violationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureViolationsIsMutable(); - violations_.set(index, value); - onChanged(); - } else { - violationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public Builder setViolations( - int index, build.buf.validate.Violation.Builder builderForValue) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.set(index, builderForValue.build()); - onChanged(); - } else { - violationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations(build.buf.validate.Violation value) { - if (violationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureViolationsIsMutable(); - violations_.add(value); - onChanged(); - } else { - violationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations( - int index, build.buf.validate.Violation value) { - if (violationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureViolationsIsMutable(); - violations_.add(index, value); - onChanged(); - } else { - violationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations( - build.buf.validate.Violation.Builder builderForValue) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.add(builderForValue.build()); - onChanged(); - } else { - violationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addViolations( - int index, build.buf.validate.Violation.Builder builderForValue) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.add(index, builderForValue.build()); - onChanged(); - } else { - violationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public Builder addAllViolations( - java.lang.Iterable values) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, violations_); - onChanged(); - } else { - violationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public Builder clearViolations() { - if (violationsBuilder_ == null) { - violations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - violationsBuilder_.clear(); - } - return this; - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public Builder removeViolations(int index) { - if (violationsBuilder_ == null) { - ensureViolationsIsMutable(); - violations_.remove(index); - onChanged(); - } else { - violationsBuilder_.remove(index); - } - return this; - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public build.buf.validate.Violation.Builder getViolationsBuilder( - int index) { - return internalGetViolationsFieldBuilder().getBuilder(index); - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public build.buf.validate.ViolationOrBuilder getViolationsOrBuilder( - int index) { - if (violationsBuilder_ == null) { - return violations_.get(index); } else { - return violationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public java.util.List - getViolationsOrBuilderList() { - if (violationsBuilder_ != null) { - return violationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(violations_); - } - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public build.buf.validate.Violation.Builder addViolationsBuilder() { - return internalGetViolationsFieldBuilder().addBuilder( - build.buf.validate.Violation.getDefaultInstance()); - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public build.buf.validate.Violation.Builder addViolationsBuilder( - int index) { - return internalGetViolationsFieldBuilder().addBuilder( - index, build.buf.validate.Violation.getDefaultInstance()); - } - /** - *
-     * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-     * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - public java.util.List - getViolationsBuilderList() { - return internalGetViolationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Violation, build.buf.validate.Violation.Builder, build.buf.validate.ViolationOrBuilder> - internalGetViolationsFieldBuilder() { - if (violationsBuilder_ == null) { - violationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - build.buf.validate.Violation, build.buf.validate.Violation.Builder, build.buf.validate.ViolationOrBuilder>( - violations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - violations_ = null; - } - return violationsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:buf.validate.Violations) - } - - // @@protoc_insertion_point(class_scope:buf.validate.Violations) - private static final build.buf.validate.Violations DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new build.buf.validate.Violations(); - } - - public static build.buf.validate.Violations getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Violations 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.Violations getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/build/buf/validate/ViolationsOrBuilder.java b/src/main/java/build/buf/validate/ViolationsOrBuilder.java deleted file mode 100644 index 010d3b81..00000000 --- a/src/main/java/build/buf/validate/ViolationsOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: buf/validate/validate.proto -// Protobuf Java Version: 4.30.2 - -package build.buf.validate; - -public interface ViolationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.validate.Violations) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-   * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - java.util.List - getViolationsList(); - /** - *
-   * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-   * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - build.buf.validate.Violation getViolations(int index); - /** - *
-   * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-   * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - int getViolationsCount(); - /** - *
-   * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-   * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - java.util.List - getViolationsOrBuilderList(); - /** - *
-   * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
-   * 
- * - * repeated .buf.validate.Violation violations = 1 [json_name = "violations"]; - */ - build.buf.validate.ViolationOrBuilder getViolationsOrBuilder( - int index); -} From 23aa2586c5ef6e779906b56cc2be94d738d1918b Mon Sep 17 00:00:00 2001 From: "Philip K. Warren" Date: Wed, 16 Apr 2025 10:28:18 -0500 Subject: [PATCH 2/4] Run generate before conformance target --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7f771909..c0c36757 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ clean: ## Delete intermediate build artifacts $(GRADLE) clean .PHONY: conformance -conformance: ## Execute conformance tests. +conformance: generate ## Execute conformance tests. $(GRADLE) conformance:conformance .PHONY: help From 77a88e5f8982f733454c100feea7cc3138477dcc Mon Sep 17 00:00:00 2001 From: "Philip K. Warren" Date: Wed, 16 Apr 2025 10:39:47 -0500 Subject: [PATCH 3/4] Fix generation --- .github/workflows/ci.yaml | 2 -- Makefile | 13 ++----------- build.gradle.kts | 17 +---------------- conformance/build.gradle.kts | 24 ++++++++++++++++++++++++ 4 files changed, 27 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 25d56777..01f3501f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,8 +41,6 @@ jobs: uses: gradle/actions/wrapper-validation@v4 - name: Lint run: make lint - - name: Generate - run: make checkgenerate - name: Build run: make build - name: Docs diff --git a/Makefile b/Makefile index c0c36757..16436ef9 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ MAKEFLAGS += --no-print-directory GRADLE ?= ./gradlew .PHONY: all -all: lint generate build docs conformance ## Run all tests and lint (default) +all: lint build docs conformance ## Run all tests and lint (default) .PHONY: build build: ## Build the entire project. @@ -19,27 +19,18 @@ build: ## Build the entire project. docs: ## Build javadocs for the project. $(GRADLE) javadoc -.PHONY: checkgenerate -checkgenerate: generate ## Checks if `make generate` produces a diff. - @# Used in CI to verify that `make generate` doesn't produce a diff. - test -z "$$(git status --porcelain | tee /dev/stderr)" - .PHONY: clean clean: ## Delete intermediate build artifacts $(GRADLE) clean .PHONY: conformance -conformance: generate ## Execute conformance tests. +conformance: ## Execute conformance tests. $(GRADLE) conformance:conformance .PHONY: help help: ## Describe useful make targets @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%-15s %s\n", $$1, $$2}' -.PHONY: generate -generate: ## Regenerate code and license headers - $(GRADLE) generate - .PHONY: lint lint: ## Lint code $(GRADLE) spotlessCheck diff --git a/build.gradle.kts b/build.gradle.kts index cab51522..3a9586b6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -113,32 +113,17 @@ tasks.register("generateSources") { commandLine(buf.asPath, "generate", "--template", "buf.gen.yaml", "src/main/resources") } -tasks.register("generateConformance") { - dependsOn("configureBuf") - description = "Generates sources for the bufbuild/protovalidate-testing module to conformance/build/generated/sources/bufgen." - commandLine( - buf.asPath, - "generate", - "--template", - "conformance/buf.gen.yaml", - "-o", - "conformance/", - "buf.build/bufbuild/protovalidate-testing:${project.findProperty("protovalidate.version")}", - ) -} - tasks.register("generate") { description = "Generates sources with buf generate and buf export." dependsOn( "generateTestSources", "generateSources", - "generateConformance", "licenseHeader", ) } tasks.withType { - dependsOn("generateTestSources") + dependsOn("generate") if (JavaVersion.current().isJava9Compatible) { doFirst { options.compilerArgs = mutableListOf("--release", "8") diff --git a/conformance/build.gradle.kts b/conformance/build.gradle.kts index 0444109f..a69c45f3 100644 --- a/conformance/build.gradle.kts +++ b/conformance/build.gradle.kts @@ -7,6 +7,14 @@ plugins { application java alias(libs.plugins.errorprone) + alias(libs.plugins.osdetector) +} + +val buf: Configuration by configurations.creating + +tasks.register("configureBuf") { + description = "Installs the Buf CLI." + File(buf.asPath).setExecutable(true) } val conformanceCLIFile = @@ -39,6 +47,18 @@ tasks.register("conformance") { commandLine(*(listOf(conformanceCLIPath) + conformanceArgs + listOf(conformanceAppScript)).toTypedArray()) } +tasks.register("generateConformance") { + dependsOn("configureBuf") + description = "Generates sources for the bufbuild/protovalidate-testing module to build/generated/sources/bufgen." + commandLine( + buf.asPath, + "generate", + "--template", + "buf.gen.yaml", + "buf.build/bufbuild/protovalidate-testing:${project.findProperty("protovalidate.version")}", + ) +} + sourceSets { main { java { @@ -48,6 +68,7 @@ sourceSets { } tasks.withType { + dependsOn("generateConformance") if (JavaVersion.current().isJava9Compatible) { doFirst { options.compilerArgs = mutableListOf("--release", "8") @@ -100,6 +121,9 @@ dependencies { implementation(libs.assertj) implementation(platform(libs.junit.bom)) + + buf("build.buf:buf:${libs.versions.buf.get()}:${osdetector.classifier}@exe") + testImplementation("org.junit.jupiter:junit-jupiter") testRuntimeOnly("org.junit.platform:junit-platform-launcher") From a43c1d3205d71ce20d1a69b14b7e09361c346180 Mon Sep 17 00:00:00 2001 From: "Philip K. Warren" Date: Wed, 16 Apr 2025 10:41:07 -0500 Subject: [PATCH 4/4] Continue running checkgenerate for license-header --- .github/workflows/ci.yaml | 2 ++ Makefile | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 01f3501f..25d56777 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,6 +41,8 @@ jobs: uses: gradle/actions/wrapper-validation@v4 - name: Lint run: make lint + - name: Generate + run: make checkgenerate - name: Build run: make build - name: Docs diff --git a/Makefile b/Makefile index 16436ef9..7f771909 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ MAKEFLAGS += --no-print-directory GRADLE ?= ./gradlew .PHONY: all -all: lint build docs conformance ## Run all tests and lint (default) +all: lint generate build docs conformance ## Run all tests and lint (default) .PHONY: build build: ## Build the entire project. @@ -19,6 +19,11 @@ build: ## Build the entire project. docs: ## Build javadocs for the project. $(GRADLE) javadoc +.PHONY: checkgenerate +checkgenerate: generate ## Checks if `make generate` produces a diff. + @# Used in CI to verify that `make generate` doesn't produce a diff. + test -z "$$(git status --porcelain | tee /dev/stderr)" + .PHONY: clean clean: ## Delete intermediate build artifacts $(GRADLE) clean @@ -31,6 +36,10 @@ conformance: ## Execute conformance tests. help: ## Describe useful make targets @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%-15s %s\n", $$1, $$2}' +.PHONY: generate +generate: ## Regenerate code and license headers + $(GRADLE) generate + .PHONY: lint lint: ## Lint code $(GRADLE) spotlessCheck